From 1b6ea369043779bd5367176b74c9df42a61ee814 Mon Sep 17 00:00:00 2001 From: yafimski Date: Mon, 8 Jul 2024 12:56:32 +0300 Subject: [PATCH] fix: html deploy dist --- assets/IngredientGalleryItem-DBrSEriu.js | 1 - assets/index-B5Qt9EMX.js | 1 + assets/index-Bg03e8lu.css | 1 - assets/index-Byioo-hb.js | 890 ----------------------- index.html | 7 +- 5 files changed, 4 insertions(+), 896 deletions(-) delete mode 100644 assets/IngredientGalleryItem-DBrSEriu.js create mode 100644 assets/index-B5Qt9EMX.js delete mode 100644 assets/index-Bg03e8lu.css delete mode 100644 assets/index-Byioo-hb.js diff --git a/assets/IngredientGalleryItem-DBrSEriu.js b/assets/IngredientGalleryItem-DBrSEriu.js deleted file mode 100644 index 2c261bb..0000000 --- a/assets/IngredientGalleryItem-DBrSEriu.js +++ /dev/null @@ -1 +0,0 @@ -import{u as a,a as u,j as r,h as m,F as x,f as g,s as o,b as f}from"./index-Byioo-hb.js";function N({item:c}){const{itemName:e}=c,l=a(t=>t.groups.ingredientsGroups),s=a(t=>t.recipe.currentGroupName),n=u(),d=()=>{var t;if(!s)n(o("Ingredient group cannot be empty"));else{const p=(t=l.filter(i=>i.groupName===s)[0])==null?void 0:t.items.filter(i=>i.itemName===e)[0];n(p?o("Ingredient is already in the group!"):f({groupName:s,itemName:e}))}};return r.jsx("div",{className:"flex flex-row","data-testid":`${e}_gallery`,children:r.jsxs("div",{className:"relative flex flex-col print-rounded card-shadow w-cw aspect-videoReverse",children:[r.jsx("img",{src:`../src/assets/ingredients/${e.toLowerCase()}.webp`,alt:e,className:"print-rounded"}),r.jsx("div",{className:"absolute inset-0 flex center bg-white print-rounded bg-opacity-70 opacity-0 hover:opacity-100 hover:cursor-pointer transition-opacity",onClick:()=>d(),onKeyDown:m,children:r.jsx(x,{icon:g,className:"cursor-pointer text-4xl text-green-600"})}),r.jsx("p",{className:"flex flex-grow rounded-b-2xl center px-4 text-center text-fluidPrintTitle",children:e})]})})}export{N as default}; diff --git a/assets/index-B5Qt9EMX.js b/assets/index-B5Qt9EMX.js new file mode 100644 index 0000000..3e0a78a --- /dev/null +++ b/assets/index-B5Qt9EMX.js @@ -0,0 +1 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function s(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=s(e);fetch(e.href,r)}})(); diff --git a/assets/index-Bg03e8lu.css b/assets/index-Bg03e8lu.css deleted file mode 100644 index 2d9ae24..0000000 --- a/assets/index-Bg03e8lu.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Indie+Flower&family=Shadows+Into+Light&family=Shantell+Sans:ital,wght@0,300..800;1,300..800&display=swap&family=Roboto:wght@300;400;500;700&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}body,html{box-sizing:border-box}div,button{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:Roboto}p,span{font-family:Indie Flower}div,img{touch-action:auto}h2,input{font-family:Indie Flower}input{padding:.5em 1em;font-style:italic}input::-moz-placeholder{color:gray}input::placeholder{color:gray}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}*,: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: }:root{--fluid-20-28: clamp(1.25rem, .4926rem + 1.1834vi, 1.75rem);--fluid-16-24: clamp(1rem, .2426rem + 1.1834vi, 1.5rem);--fluid-10-20: clamp(.625rem, -.3217rem + 1.4793vi, 1.25rem);--fluid-6-16: clamp(.375rem, -.5717rem + 1.6vi, 1rem);--fluid-8-14: clamp(.5rem, -.068rem + .8876vi, .875rem);--fluid-6-10: clamp(.375rem, -.0037rem + .5917vi, .625rem);--fluid-2-6: clamp(.125rem, -.2537rem + .5917cqi, .375rem);--w-clamp: clamp(3cqw, 6cqw, 8cqw);--w-clamp-input: clamp(24cqw, 36cqw, 44cqw);--w-clamp-small: clamp(12cqw, 20cqw, 28cqw);--h-clamp: clamp(20cqh, 25cqh, 30cqh);--h-clamp-small: clamp(12cqh, 20cqh, 28cqh)}.scroll-normal{direction:rtl}.scroll-mirror{direction:ltr}.modal-open-button{position:absolute;top:0;left:0;z-index:10;--tw-rotate: -12deg;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));text-align:center;font-family:Shadows Into Light;font-size:var(--fluid-16-24);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.modal-open-button:hover{--tw-rotate: -0deg;--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.modal-open-button{margin:2rem}}@media (min-width: 768px){.modal-open-button{margin:3rem}}@media (min-width: 1024px){.modal-open-button{margin:4rem}}.modal-container{align-items:center;justify-content:center;position:absolute;top:0;left:0;display:flex;height:100%;width:100%;flex-direction:column;padding:1rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.modal-content{align-items:center;justify-content:center;position:relative;margin-top:5rem;display:flex;aspect-ratio:1 / 1;width:50%;flex-direction:column;border-radius:1rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.modal-image{height:100%;border-radius:1rem}.modal-image-title{position:absolute;top:0;margin-top:.5rem;font-family:Indie Flower}@media (min-width: 768px){.modal-image-title{font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1024px){.modal-image-title{font-size:1.5rem;line-height:2rem}}.close-modal-button{align-items:center;justify-content:center;position:absolute;top:0;right:0;margin:1rem;text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.close-modal-button:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;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))}.modal-nav-buttons{position:absolute;bottom:0;display:flex;width:100%;justify-content:space-between;padding:1rem}.nav-button{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nav-button:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;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))}@media (min-width: 768px){.nav-icon{font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1024px){.nav-icon{font-size:1.5rem;line-height:2rem}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;border-style:none;background-color:rgb(107 114 128 / var(--tw-bg-opacity));--tw-bg-opacity: .8}.num-input-icons{cursor:pointer;font-size:1.25rem;line-height:1.75rem}.group-chip{margin-bottom:1rem;border-radius:1rem;border-right-width:2px;border-left-width:2px;--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity));padding:.125rem 1.5rem;font-family:Indie Flower;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.group-chip:hover{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));box-shadow:0 2px 4px #0003}.group-chip-dead{margin-bottom:1rem;border-radius:1rem;border-right-width:2px;border-left-width:2px;--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity));padding:.125rem 1.5rem;font-family:Indie Flower;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.grid-autofill{display:grid;grid-template-columns:repeat(auto-fill,minmax(8rem,1fr));grid-auto-columns:auto}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.center{align-items:center;justify-content:center}.input-border{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));border:.5px solid rgba(0,0,0,.12);border-bottom:1px solid rgba(0,0,0,.12)}.main-gallery{box-shadow:0 0 15px #0000004d;display:flex;max-height:60cqh;flex-direction:column;overflow:hidden;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:1rem}.a4ratio{aspect-ratio:1 / 1.41;max-height:calc((2 / 3 * 100cqw) * 1.41)}.w-cw{width:6.5cqw}.card-shadow{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.suspense-gallery-item{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f;position:relative;display:flex;aspect-ratio:9/16;flex-direction:column;border-radius:1rem;--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}@media (min-width: 1024px){.suspense-gallery-item{width:5rem}}@media (min-width: 1280px){.suspense-gallery-item{width:8rem}}.toast{position:fixed;top:4rem;left:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));padding:1rem 2rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));animation:fadeIn 1s ease-in-out}.required-element-border{border-bottom:2px solid red}.required-element-fill{background-color:#f003}.unit-card{box-shadow:0 3px 8px #0003;margin-left:.25rem;margin-right:.25rem;border-bottom-width:4px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.25rem .5rem;font-family:Indie Flower;font-size:1.25rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.unit-card-chosen{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-width:4px;--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity));transition:.3s}.sexy-button{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f;border-radius:.75rem;border-width:2px;border-color:transparent;padding-left:1.5rem;padding-right:1.5rem;font-family:Shadows Into Light;line-height:2;letter-spacing:.1em;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}@media (min-width: 1024px){.sexy-button{font-size:1rem;line-height:1.5rem}}.go-to-button-arrow{align-items:center;justify-content:center;position:absolute;margin:2rem;display:flex;cursor:pointer;border-radius:.375rem;padding:.75rem;font-family:Shadows Into Light;font-weight:600;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));transition-duration:.3s}@media (min-width: 1024px){.go-to-button-arrow{padding:1rem}}.print-to-a4-button{position:fixed;bottom:0;right:0;--tw-rotate: -12deg;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));text-align:center;font-family:Shadows Into Light;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.print-to-a4-button:hover{--tw-rotate: -0deg;--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.print-to-a4-button{margin:1rem}}@media (min-width: 768px){.print-to-a4-button{margin:1.5rem;font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.print-to-a4-button{margin:2rem;font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.print-to-a4-button{margin:2.5rem}}.recipe-title{font-family:Shadows Into Light}@media (min-width: 640px){.recipe-title{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.recipe-title{margin-top:.5rem;font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.recipe-title{margin-top:1rem;font-size:1.125rem;line-height:1.75rem}}@media (min-width: 640px){.recipe-subtitle-text{font-size:.75rem;line-height:1rem}}@media (min-width: 1280px){.recipe-subtitle-text{font-size:1rem;line-height:1.5rem}}@media (min-width: 640px){.print-image{width:1rem}}@media (min-width: 768px){.print-image{width:1rem}}@media (min-width: 1024px){.print-image{width:1.5rem}}@media (min-width: 1280px){.print-image{width:3rem}}@media (min-width: 640px){.print-rounded{border-radius:.375rem}}@media (min-width: 768px){.print-rounded{border-radius:.375rem}}@media (min-width: 1024px){.print-rounded{border-radius:.5rem}}@media (min-width: 1280px){.print-rounded{border-radius:.5rem}}@media (min-width: 640px){.print-rounded-img{border-top-left-radius:.125rem;border-top-right-radius:.125rem}}@media (min-width: 768px){.print-rounded-img{border-top-left-radius:.375rem;border-top-right-radius:.375rem}}@media (min-width: 1024px){.print-rounded-img{border-top-left-radius:.5rem;border-top-right-radius:.5rem}}@media (min-width: 1280px){.print-rounded-img{border-top-left-radius:.5rem;border-top-right-radius:.5rem}}.instruction-print-text{font-size:var(--fluid-6-16)}@media (min-width: 1280px){.instruction-print-text{font-size:var(--fluid-6-10)}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\/3{top:33.333333%}.z-50{z-index:50}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-auto{margin:auto}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-8{margin-left:2rem;margin-right:2rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-ml-2{margin-left:-.5rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-12{margin-left:3rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-16{margin-top:4rem}.mt-28{margin-top:7rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.aspect-square{aspect-ratio:1 / 1}.aspect-videoReverse{aspect-ratio:9/16}.aspect-videoThin{aspect-ratio:9/13}.aspect-videoWide{aspect-ratio:20/9}.h-1\/4{height:25%}.h-2\/5{height:40%}.h-3\/5{height:60%}.h-5\/6{height:83.333333%}.h-clampSmall{height:var(--h-clamp-small)}.h-fit{height:-moz-fit-content;height:fit-content}.h-screen{height:100vh}.max-h-24{max-height:6rem}.max-h-half{max-height:55cqh}.max-h-screen{max-height:100vh}.max-h-semi{max-height:60cqh}.max-h-short{max-height:20cqh}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-11\/12{width:91.666667%}.w-2\/3{width:66.666667%}.w-2\/5{width:40%}.w-60{width:15rem}.w-96{width:24rem}.w-clamp{width:var(--w-clamp)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-inputs{width:var(--w-clamp-input)}.w-tinyImage{width:3rem}.min-w-12{min-width:3rem}.min-w-16{min-width:4rem}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-6{max-width:1.5rem}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-4{row-gap:1rem}.gap-y-8{row-gap:2rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-2xl{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}.rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-l-2{border-left-width:2px}.border-r-2{border-right-width:2px}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-l-neutral-400{--tw-border-opacity: 1;border-left-color:rgb(163 163 163 / var(--tw-border-opacity))}.border-r-neutral-400{--tw-border-opacity: 1;border-right-color:rgb(163 163 163 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity))}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-80{--tw-bg-opacity: .8}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-6{padding-left:1.5rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-indie{font-family:Indie Flower}.font-roboto{font-family:Roboto}.font-shadowsLight{font-family:Shadows Into Light}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-fluidCard{font-size:var(--fluid-6-16)}.text-fluidPrint{font-size:var(--fluid-8-14)}.text-fluidPrintSubtitle{font-size:var(--fluid-6-10)}.text-fluidPrintTitle{font-size:var(--fluid-10-20)}.text-fluidSubtitle{font-size:var(--fluid-16-24)}.text-fluidTitle{font-size:var(--fluid-20-28)}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-none{line-height:1}.leading-tight{line-height:1.25}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.text-neutral-800{--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.blur{--tw-blur: blur(8px);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,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;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}@keyframes fadeIn{0%{top:0;opacity:0}to{top:4em;opacity:1}}.hover\:-translate-x-4:hover{--tw-translate-x: -1rem;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))}.hover\:-translate-y-4:hover{--tw-translate-y: -1rem;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))}.hover\:translate-x-4:hover{--tw-translate-x: 1rem;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))}.hover\:scale-105: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))}.hover\:cursor-grabbing:hover{cursor:grabbing}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-2:hover{border-width:2px}.hover\:border-y-2:hover{border-top-width:2px;border-bottom-width:2px}.hover\:border-black:hover{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.hover\:border-yellow-200:hover{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity))}.hover\:bg-green-400:hover{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.hover\:bg-red-400:hover{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\:text-slate-500:hover{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.hover\:opacity-100:hover{opacity:1}.focus\:bg-gray-200:focus{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.focus\:text-blue-500:focus{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.focus\:text-slate-500:focus{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.sm\:mx-2{margin-left:.5rem;margin-right:.5rem}.sm\:mx-6{margin-left:1.5rem;margin-right:1.5rem}.sm\:mb-1{margin-bottom:.25rem}.sm\:mb-2{margin-bottom:.5rem}.sm\:mr-4{margin-right:1rem}.sm\:mt-4{margin-top:1rem}.sm\:min-h-16{min-height:4rem}.sm\:w-1\/3{width:33.333333%}.sm\:w-10{width:2.5rem}.sm\:w-2\/3{width:66.666667%}.sm\:w-20{width:5rem}.sm\:w-24{width:6rem}.sm\:w-36{width:9rem}.sm\:w-5\/6{width:83.333333%}.sm\:w-8{width:2rem}.sm\:max-w-6{max-width:1.5rem}.sm\:gap-1{gap:.25rem}.sm\:gap-4{gap:1rem}.sm\:p-0{padding:0}.sm\:p-2{padding:.5rem}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}}@media (min-width: 768px){.md\:-m-2{margin:-.5rem}.md\:mx-12{margin-left:3rem;margin-right:3rem}.md\:mx-2{margin-left:.5rem;margin-right:.5rem}.md\:mx-4{margin-left:1rem;margin-right:1rem}.md\:-ml-4{margin-left:-1rem}.md\:mb-2{margin-bottom:.5rem}.md\:mb-4{margin-bottom:1rem}.md\:ml-2{margin-left:.5rem}.md\:ml-4{margin-left:1rem}.md\:mr-2{margin-right:.5rem}.md\:mt-1{margin-top:.25rem}.md\:mt-2{margin-top:.5rem}.md\:mt-6{margin-top:1.5rem}.md\:min-h-24{min-height:6rem}.md\:w-10{width:2.5rem}.md\:w-12{width:3rem}.md\:w-20{width:5rem}.md\:w-36{width:9rem}.md\:w-4\/5{width:80%}.md\:w-44{width:11rem}.md\:w-5\/6{width:83.333333%}.md\:w-60{width:15rem}.md\:w-8{width:2rem}.md\:w-clampSmall{width:var(--w-clamp-small)}.md\:w-tinyImage{width:3rem}.md\:max-w-8{max-width:2rem}.md\:justify-between{justify-content:space-between}.md\:gap-1{gap:.25rem}.md\:gap-2{gap:.5rem}.md\:gap-4{gap:1rem}.md\:gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.md\:gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.md\:gap-y-2{row-gap:.5rem}.md\:rounded-md{border-radius:.375rem}.md\:p-1{padding:.25rem}.md\:p-2{padding:.5rem}.md\:p-4{padding:1rem}.md\:px-1{padding-left:.25rem;padding-right:.25rem}.md\:py-1{padding-top:.25rem;padding-bottom:.25rem}.md\:pt-0{padding-top:0}.md\:pt-0\.5{padding-top:.125rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 1024px){.lg\:-m-4{margin:-1rem}.lg\:mx-2{margin-left:.5rem;margin-right:.5rem}.lg\:mx-4{margin-left:1rem;margin-right:1rem}.lg\:mx-6{margin-left:1.5rem;margin-right:1.5rem}.lg\:mx-8{margin-left:2rem;margin-right:2rem}.lg\:my-2{margin-top:.5rem;margin-bottom:.5rem}.lg\:mb-1{margin-bottom:.25rem}.lg\:mb-3{margin-bottom:.75rem}.lg\:mb-4{margin-bottom:1rem}.lg\:mb-6{margin-bottom:1.5rem}.lg\:mb-8{margin-bottom:2rem}.lg\:ml-4{margin-left:1rem}.lg\:ml-8{margin-left:2rem}.lg\:mr-4{margin-right:1rem}.lg\:mr-8{margin-right:2rem}.lg\:mt-2{margin-top:.5rem}.lg\:mt-4{margin-top:1rem}.lg\:mt-8{margin-top:2rem}.lg\:w-12{width:3rem}.lg\:w-16{width:4rem}.lg\:w-28{width:7rem}.lg\:w-3\/5{width:60%}.lg\:w-4\/5{width:80%}.lg\:w-52{width:13rem}.lg\:w-96{width:24rem}.lg\:w-clamp{width:var(--w-clamp)}.lg\:min-w-48{min-width:12rem}.lg\:max-w-10{max-width:2.5rem}.lg\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\:justify-center{justify-content:center}.lg\:gap-1{gap:.25rem}.lg\:gap-3{gap:.75rem}.lg\:gap-8{gap:2rem}.lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.lg\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.lg\:overflow-x-auto{overflow-x:auto}.lg\:rounded-lg{border-radius:.5rem}.lg\:p-2{padding:.5rem}.lg\:px-3{padding-left:.75rem;padding-right:.75rem}.lg\:py-2{padding-top:.5rem;padding-bottom:.5rem}.lg\:pb-4{padding-bottom:1rem}.lg\:pt-1{padding-top:.25rem}.lg\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\:text-sm{font-size:.875rem;line-height:1.25rem}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.xl\:mb-10{margin-bottom:2.5rem}.xl\:mb-4{margin-bottom:1rem}.xl\:w-56{width:14rem}.xl\:w-96{width:24rem}.xl\:w-full{width:100%}.xl\:max-w-12{max-width:3rem}.xl\:gap-4{gap:1rem}} diff --git a/assets/index-Byioo-hb.js b/assets/index-Byioo-hb.js deleted file mode 100644 index 0294991..0000000 --- a/assets/index-Byioo-hb.js +++ /dev/null @@ -1,890 +0,0 @@ -function qx(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var Kl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function CT(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Xx={exports:{}},qf={},Qx={exports:{}},De={};/** - * @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 iu=Symbol.for("react.element"),ET=Symbol.for("react.portal"),NT=Symbol.for("react.fragment"),kT=Symbol.for("react.strict_mode"),RT=Symbol.for("react.profiler"),OT=Symbol.for("react.provider"),PT=Symbol.for("react.context"),TT=Symbol.for("react.forward_ref"),IT=Symbol.for("react.suspense"),AT=Symbol.for("react.memo"),DT=Symbol.for("react.lazy"),u1=Symbol.iterator;function LT(e){return e===null||typeof e!="object"?null:(e=u1&&e[u1]||e["@@iterator"],typeof e=="function"?e:null)}var Zx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jx=Object.assign,eb={};function xl(e,t,n){this.props=e,this.context=t,this.refs=eb,this.updater=n||Zx}xl.prototype.isReactComponent={};xl.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")};xl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tb(){}tb.prototype=xl.prototype;function ov(e,t,n){this.props=e,this.context=t,this.refs=eb,this.updater=n||Zx}var av=ov.prototype=new tb;av.constructor=ov;Jx(av,xl.prototype);av.isPureReactComponent=!0;var c1=Array.isArray,nb=Object.prototype.hasOwnProperty,lv={current:null},rb={key:!0,ref:!0,__self:!0,__source:!0};function ib(e,t,n){var r,o={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)nb.call(t,r)&&!rb.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(c===1)o.children=n;else if(1{throw new Error("uSES not initialized!")};function uv(e=ho){return function(){return Hn.useContext(e)}}var ub=uv(),cb=tI,nI=e=>{cb=e},rI=(e,t)=>e===t;function iI(e=ho){const t=e===ho?ub:uv(e),n=(r,o={})=>{const{equalityFn:l=rI,devModeChecks:s={}}=typeof o=="function"?{equalityFn:o}:o,{store:c,subscription:f,getServerState:h,stabilityCheck:p,identityFunctionCheck:m}=t();Hn.useRef(!0);const v=Hn.useCallback({[r.name](E){return r(E)}}[r.name],[r,p,s.stabilityCheck]),S=cb(f.addNestedSub,c.getState,h||c.getState,v,l);return Hn.useDebugValue(S),S};return Object.assign(n,{withTypes:()=>n}),n}var He=iI();function oI(e){e()}function aI(){let e=null,t=null;return{clear(){e=null,t=null},notify(){oI(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var h1={notify(){},get:()=>[]};function lI(e,t){let n,r=h1,o=0,l=!1;function s(N){p();const T=r.subscribe(N);let _=!1;return()=>{_||(_=!0,T(),m())}}function c(){r.notify()}function f(){E.onStateChange&&E.onStateChange()}function h(){return l}function p(){o++,n||(n=e.subscribe(f),r=aI())}function m(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=h1)}function v(){l||(l=!0,p())}function S(){l&&(l=!1,m())}const E={addNestedSub:s,notifyNestedSubs:c,handleChangeWrapper:f,isSubscribed:h,trySubscribe:v,tryUnsubscribe:S,getListeners:()=>r};return E}var sI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uI=typeof navigator<"u"&&navigator.product==="ReactNative",cI=sI||uI?Hn.useLayoutEffect:Hn.useEffect;function fI({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:l="once"}){const s=Hn.useMemo(()=>{const h=lI(e);return{store:e,subscription:h,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:l}},[e,r,o,l]),c=Hn.useMemo(()=>e.getState(),[e]);cI(()=>{const{subscription:h}=s;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),c!==e.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[s,c]);const f=t||ho;return Hn.createElement(f.Provider,{value:s},n)}var dI=fI;function fb(e=ho){const t=e===ho?ub:uv(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var pI=fb();function hI(e=ho){const t=e===ho?pI:fb(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var wn=hI();nI(JT.useSyncExternalStoreWithSelector);var Th={},db={exports:{}},Xn={},pb={exports:{}},hb={};/** - * @license React - * scheduler.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. - */(function(e){function t(z,te){var ne=z.length;z.push(te);e:for(;0>>1,pe=z[ae];if(0>>1;aeo(qe,ne))Meo(bt,qe)?(z[ae]=bt,z[Me]=ne,ae=Me):(z[ae]=qe,z[Ve]=ne,ae=Ve);else if(Meo(bt,ne))z[ae]=bt,z[Me]=ne,ae=Me;else break e}}return te}function o(z,te){var ne=z.sortIndex-te.sortIndex;return ne!==0?ne:z.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var f=[],h=[],p=1,m=null,v=3,S=!1,E=!1,N=!1,T=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(z){for(var te=n(h);te!==null;){if(te.callback===null)r(h);else if(te.startTime<=z)r(h),te.sortIndex=te.expirationTime,t(f,te);else break;te=n(h)}}function I(z){if(N=!1,C(z),!E)if(n(f)!==null)E=!0,Ne(M);else{var te=n(h);te!==null&&F(I,te.startTime-z)}}function M(z,te){E=!1,N&&(N=!1,_(B),B=-1),S=!0;var ne=v;try{for(C(te),m=n(f);m!==null&&(!(m.expirationTime>te)||z&&!Z());){var ae=m.callback;if(typeof ae=="function"){m.callback=null,v=m.priorityLevel;var pe=ae(m.expirationTime<=te);te=e.unstable_now(),typeof pe=="function"?m.callback=pe:m===n(f)&&r(f),C(te)}else r(f);m=n(f)}if(m!==null)var Fe=!0;else{var Ve=n(h);Ve!==null&&F(I,Ve.startTime-te),Fe=!1}return Fe}finally{m=null,v=ne,S=!1}}var G=!1,k=null,B=-1,U=5,K=-1;function Z(){return!(e.unstable_now()-Kz||125ae?(z.sortIndex=ne,t(h,z),n(f)===null&&z===n(h)&&(N?(_(B),B=-1):N=!0,F(I,ne-ae))):(z.sortIndex=pe,t(f,z),E||S||(E=!0,Ne(M))),z},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(z){var te=v;return function(){var ne=v;v=te;try{return z.apply(this,arguments)}finally{v=ne}}}})(hb);pb.exports=hb;var mI=pb.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 vI=O,Yn=mI;function Q(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"),Ih=Object.prototype.hasOwnProperty,gI=/^[: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]*$/,m1={},v1={};function yI(e){return Ih.call(v1,e)?!0:Ih.call(m1,e)?!1:gI.test(e)?v1[e]=!0:(m1[e]=!0,!1)}function wI(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 xI(e,t,n,r){if(t===null||typeof t>"u"||wI(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 xn(e,t,n,r,o,l,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=s}var Jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jt[e]=new xn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jt[t]=new xn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jt[e]=new xn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jt[e]=new xn(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){Jt[e]=new xn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jt[e]=new xn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jt[e]=new xn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jt[e]=new xn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jt[e]=new xn(e,5,!1,e.toLowerCase(),null,!1,!1)});var cv=/[\-:]([a-z])/g;function fv(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(cv,fv);Jt[t]=new xn(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(cv,fv);Jt[t]=new xn(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(cv,fv);Jt[t]=new xn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jt[e]=new xn(e,1,!1,e.toLowerCase(),null,!1,!1)});Jt.xlinkHref=new xn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jt[e]=new xn(e,1,!1,e.toLowerCase(),null,!0,!0)});function dv(e,t,n,r){var o=Jt.hasOwnProperty(t)?Jt[t]:null;(o!==null?o.type!==0:r||!(2c||o[s]!==l[c]){var f=` -`+o[s].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),f}while(1<=s&&0<=c);break}}}finally{Hp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?os(e):""}function bI(e){switch(e.tag){case 5:return os(e.type);case 16:return os("Lazy");case 13:return os("Suspense");case 19:return os("SuspenseList");case 0:case 2:case 15:return e=Gp(e.type,!1),e;case 11:return e=Gp(e.type.render,!1),e;case 1:return e=Gp(e.type,!0),e;default:return""}}function Mh(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 ja:return"Fragment";case Ma:return"Portal";case Ah:return"Profiler";case pv:return"StrictMode";case Dh:return"Suspense";case Lh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gb:return(e.displayName||"Context")+".Consumer";case vb:return(e._context.displayName||"Context")+".Provider";case hv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mv:return t=e.displayName||null,t!==null?t:Mh(e.type)||"Memo";case Xi:t=e._payload,e=e._init;try{return Mh(e(t))}catch{}}return null}function SI(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 Mh(t);case 8:return t===pv?"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 mo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _I(e){var t=wb(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 o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uc(e){e._valueTracker||(e._valueTracker=_I(e))}function xb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function tf(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 jh(e,t){var n=t.checked;return gt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function y1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mo(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 bb(e,t){t=t.checked,t!=null&&dv(e,"checked",t,!1)}function Fh(e,t){bb(e,t);var n=mo(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")?zh(e,t.type,n):t.hasOwnProperty("defaultValue")&&zh(e,t.type,mo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function w1(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 zh(e,t,n){(t!=="number"||tf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var as=Array.isArray;function Ja(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=cc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Os(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fs={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},CI=["Webkit","ms","Moz","O"];Object.keys(fs).forEach(function(e){CI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fs[t]=fs[e]})});function Eb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fs.hasOwnProperty(e)&&fs[e]?(""+t).trim():t+"px"}function Nb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Eb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var EI=gt({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 Bh(e,t){if(t){if(EI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function Wh(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 Hh=null;function vv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gh=null,el=null,tl=null;function S1(e){if(e=su(e)){if(typeof Gh!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=ed(t),Gh(e.stateNode,e.type,t))}}function kb(e){el?tl?tl.push(e):tl=[e]:el=e}function Rb(){if(el){var e=el,t=tl;if(tl=el=null,S1(e),t)for(e=0;e>>=0,e===0?32:31-(MI(e)/jI|0)|0}var fc=64,dc=4194304;function ls(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 af(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var c=s&~o;c!==0?r=ls(c):(l&=s,l!==0&&(r=ls(l)))}else s=n&~o,s!==0?r=ls(s):l!==0&&(r=ls(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function au(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mr(t),e[t]=n}function $I(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=ps),T1=" ",I1=!1;function Vb(e,t){switch(e){case"keyup":return mA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function gA(e,t){switch(e){case"compositionend":return qb(t);case"keypress":return t.which!==32?null:(I1=!0,T1);case"textInput":return e=t.data,e===T1&&I1?null:e;default:return null}}function yA(e,t){if(Fa)return e==="compositionend"||!Cv&&Vb(e,t)?(e=Kb(),Bc=bv=no=null,Fa=!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=M1(n)}}function Jb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function eS(){for(var e=window,t=tf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tf(e.document)}return t}function Ev(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 kA(e){var t=eS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Jb(n.ownerDocument.documentElement,n)){if(r!==null&&Ev(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=j1(n,l);var s=j1(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,za=null,Qh=null,ms=null,Zh=!1;function F1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zh||za==null||za!==tf(r)||(r=za,"selectionStart"in r&&Ev(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}),ms&&Ls(ms,r)||(ms=r,r=uf(Qh,"onSelect"),0Ba||(e.current=im[Ba],im[Ba]=null,Ba--)}function et(e,t){Ba++,im[Ba]=e.current,e.current=t}var vo={},fn=So(vo),Tn=So(!1),ta=vo;function sl(e,t){var n=e.type.contextTypes;if(!n)return vo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function In(e){return e=e.childContextTypes,e!=null}function ff(){at(Tn),at(fn)}function G1(e,t,n){if(fn.current!==vo)throw Error(Q(168));et(fn,t),et(Tn,n)}function uS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Q(108,SI(e)||"Unknown",o));return gt({},n,r)}function df(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vo,ta=fn.current,et(fn,e),et(Tn,Tn.current),!0}function K1(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=uS(e,t,ta),r.__reactInternalMemoizedMergedChildContext=e,at(Tn),at(fn),et(fn,e)):at(Tn),et(Tn,n)}var hi=null,td=!1,oh=!1;function cS(e){hi===null?hi=[e]:hi.push(e)}function zA(e){td=!0,cS(e)}function _o(){if(!oh&&hi!==null){oh=!0;var e=0,t=Ye;try{var n=hi;for(Ye=1;e>=s,o-=s,mi=1<<32-Mr(t)+o|n<B?(U=k,k=null):U=k.sibling;var K=v(_,k,C[B],I);if(K===null){k===null&&(k=U);break}e&&k&&K.alternate===null&&t(_,k),b=l(K,b,B),G===null?M=K:G.sibling=K,G=K,k=U}if(B===C.length)return n(_,k),ft&&Uo(_,B),M;if(k===null){for(;BB?(U=k,k=null):U=k.sibling;var Z=v(_,k,K.value,I);if(Z===null){k===null&&(k=U);break}e&&k&&Z.alternate===null&&t(_,k),b=l(Z,b,B),G===null?M=Z:G.sibling=Z,G=Z,k=U}if(K.done)return n(_,k),ft&&Uo(_,B),M;if(k===null){for(;!K.done;B++,K=C.next())K=m(_,K.value,I),K!==null&&(b=l(K,b,B),G===null?M=K:G.sibling=K,G=K);return ft&&Uo(_,B),M}for(k=r(_,k);!K.done;B++,K=C.next())K=S(k,_,B,K.value,I),K!==null&&(e&&K.alternate!==null&&k.delete(K.key===null?B:K.key),b=l(K,b,B),G===null?M=K:G.sibling=K,G=K);return e&&k.forEach(function(he){return t(_,he)}),ft&&Uo(_,B),M}function T(_,b,C,I){if(typeof C=="object"&&C!==null&&C.type===ja&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case sc:e:{for(var M=C.key,G=b;G!==null;){if(G.key===M){if(M=C.type,M===ja){if(G.tag===7){n(_,G.sibling),b=o(G,C.props.children),b.return=_,_=b;break e}}else if(G.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Xi&&q1(M)===G.type){n(_,G.sibling),b=o(G,C.props),b.ref=Zl(_,G,C),b.return=_,_=b;break e}n(_,G);break}else t(_,G);G=G.sibling}C.type===ja?(b=Jo(C.props.children,_.mode,I,C.key),b.return=_,_=b):(I=Xc(C.type,C.key,C.props,null,_.mode,I),I.ref=Zl(_,b,C),I.return=_,_=I)}return s(_);case Ma:e:{for(G=C.key;b!==null;){if(b.key===G)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(_,b.sibling),b=o(b,C.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=ph(C,_.mode,I),b.return=_,_=b}return s(_);case Xi:return G=C._init,T(_,b,G(C._payload),I)}if(as(C))return E(_,b,C,I);if(Yl(C))return N(_,b,C,I);wc(_,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(n(_,b.sibling),b=o(b,C),b.return=_,_=b):(n(_,b),b=dh(C,_.mode,I),b.return=_,_=b),s(_)):n(_,b)}return T}var cl=hS(!0),mS=hS(!1),mf=So(null),vf=null,Ga=null,Ov=null;function Pv(){Ov=Ga=vf=null}function Tv(e){var t=mf.current;at(mf),e._currentValue=t}function lm(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 rl(e,t){vf=e,Ov=Ga=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pn=!0),e.firstContext=null)}function wr(e){var t=e._currentValue;if(Ov!==e)if(e={context:e,memoizedValue:t,next:null},Ga===null){if(vf===null)throw Error(Q(308));Ga=e,vf.dependencies={lanes:0,firstContext:e}}else Ga=Ga.next=e;return t}var Ko=null;function Iv(e){Ko===null?Ko=[e]:Ko.push(e)}function vS(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Iv(t)):(n.next=o.next,o.next=n),t.interleaved=n,bi(e,r)}function bi(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 Qi=!1;function Av(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gS(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 gi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,bi(e,n)}return o=r.interleaved,o===null?(t.next=t,Iv(r)):(t.next=o.next,o.next=t),r.interleaved=t,bi(e,n)}function Hc(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,yv(e,n)}}function X1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gf(e,t,n,r){var o=e.updateQueue;Qi=!1;var l=o.firstBaseUpdate,s=o.lastBaseUpdate,c=o.shared.pending;if(c!==null){o.shared.pending=null;var f=c,h=f.next;f.next=null,s===null?l=h:s.next=h,s=f;var p=e.alternate;p!==null&&(p=p.updateQueue,c=p.lastBaseUpdate,c!==s&&(c===null?p.firstBaseUpdate=h:c.next=h,p.lastBaseUpdate=f))}if(l!==null){var m=o.baseState;s=0,p=h=f=null,c=l;do{var v=c.lane,S=c.eventTime;if((r&v)===v){p!==null&&(p=p.next={eventTime:S,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var E=e,N=c;switch(v=t,S=n,N.tag){case 1:if(E=N.payload,typeof E=="function"){m=E.call(S,m,v);break e}m=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=N.payload,v=typeof E=="function"?E.call(S,m,v):E,v==null)break e;m=gt({},m,v);break e;case 2:Qi=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[c]:v.push(c))}else S={eventTime:S,lane:v,tag:c.tag,payload:c.payload,callback:c.callback,next:null},p===null?(h=p=S,f=m):p=p.next=S,s|=v;if(c=c.next,c===null){if(c=o.shared.pending,c===null)break;v=c,c=v.next,v.next=null,o.lastBaseUpdate=v,o.shared.pending=null}}while(!0);if(p===null&&(f=m),o.baseState=f,o.firstBaseUpdate=h,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);ia|=s,e.lanes=s,e.memoizedState=m}}function Q1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=lh.transition;lh.transition={};try{e(!1),t()}finally{Ye=n,lh.transition=r}}function DS(){return xr().memoizedState}function WA(e,t,n){var r=fo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},LS(e))MS(t,n);else if(n=vS(e,t,n,r),n!==null){var o=gn();jr(n,e,r,o),jS(n,t,r)}}function HA(e,t,n){var r=fo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(LS(e))MS(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,c=l(s,n);if(o.hasEagerState=!0,o.eagerState=c,zr(c,s)){var f=t.interleaved;f===null?(o.next=o,Iv(t)):(o.next=f.next,f.next=o),t.interleaved=o;return}}catch{}finally{}n=vS(e,t,o,r),n!==null&&(o=gn(),jr(n,e,r,o),jS(n,t,r))}}function LS(e){var t=e.alternate;return e===vt||t!==null&&t===vt}function MS(e,t){vs=wf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yv(e,n)}}var xf={readContext:wr,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useInsertionEffect:ln,useLayoutEffect:ln,useMemo:ln,useReducer:ln,useRef:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useMutableSource:ln,useSyncExternalStore:ln,useId:ln,unstable_isNewReconciler:!1},GA={readContext:wr,useCallback:function(e,t){return qr().memoizedState=[e,t===void 0?null:t],e},useContext:wr,useEffect:J1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kc(4194308,4,OS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kc(4,2,e,t)},useMemo:function(e,t){var n=qr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qr();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=WA.bind(null,vt,e),[r.memoizedState,e]},useRef:function(e){var t=qr();return e={current:e},t.memoizedState=e},useState:Z1,useDebugValue:$v,useDeferredValue:function(e){return qr().memoizedState=e},useTransition:function(){var e=Z1(!1),t=e[0];return e=BA.bind(null,e[1]),qr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=vt,o=qr();if(ft){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),Ht===null)throw Error(Q(349));ra&30||bS(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,J1(_S.bind(null,r,l,e),[e]),r.flags|=2048,Ws(9,SS.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=qr(),t=Ht.identifierPrefix;if(ft){var n=vi,r=mi;n=(r&~(1<<32-Mr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$s++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Qr]=t,e[Fs]=r,YS(e,t,!1,!1),t.stateNode=e;e:{switch(s=Wh(n,r),n){case"dialog":it("cancel",e),it("close",e),o=r;break;case"iframe":case"object":case"embed":it("load",e),o=r;break;case"video":case"audio":for(o=0;opl&&(t.flags|=128,r=!0,Jl(l,!1),t.lanes=4194304)}else{if(!r)if(e=yf(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!ft)return sn(t),null}else 2*Et()-l.renderingStartTime>pl&&n!==1073741824&&(t.flags|=128,r=!0,Jl(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Et(),t.sibling=null,n=mt.current,et(mt,r?n&1|2:n&1),t):(sn(t),null);case 22:case 23:return Yv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Wn&1073741824&&(sn(t),t.subtreeFlags&6&&(t.flags|=8192)):sn(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function JA(e,t){switch(kv(t),t.tag){case 1:return In(t.type)&&ff(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fl(),at(Tn),at(fn),Mv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lv(t),null;case 13:if(at(mt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return at(mt),null;case 4:return fl(),null;case 10:return Tv(t.type._context),null;case 22:case 23:return Yv(),null;case 24:return null;default:return null}}var bc=!1,cn=!1,e3=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Ka(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){wt(e,t,r)}else n.current=null}function vm(e,t,n){try{n()}catch(r){wt(e,t,r)}}var cw=!1;function t3(e,t){if(Jh=lf,e=eS(),Ev(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 o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,c=-1,f=-1,h=0,p=0,m=e,v=null;t:for(;;){for(var S;m!==n||o!==0&&m.nodeType!==3||(c=s+o),m!==l||r!==0&&m.nodeType!==3||(f=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(S=m.firstChild)!==null;)v=m,m=S;for(;;){if(m===e)break t;if(v===n&&++h===o&&(c=s),v===l&&++p===r&&(f=s),(S=m.nextSibling)!==null)break;m=v,v=m.parentNode}m=S}n=c===-1||f===-1?null:{start:c,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(em={focusedElem:e,selectionRange:n},lf=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var N=E.memoizedProps,T=E.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?N:Rr(t.type,N),T);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(I){wt(t,t.return,I)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return E=cw,cw=!1,E}function gs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&vm(t,n,l)}o=o.next}while(o!==r)}}function id(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 gm(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 XS(e){var t=e.alternate;t!==null&&(e.alternate=null,XS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qr],delete t[Fs],delete t[rm],delete t[jA],delete t[FA])),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 QS(e){return e.tag===5||e.tag===3||e.tag===4}function fw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||QS(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 ym(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=cf));else if(r!==4&&(e=e.child,e!==null))for(ym(e,t,n),e=e.sibling;e!==null;)ym(e,t,n),e=e.sibling}function wm(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(wm(e,t,n),e=e.sibling;e!==null;)wm(e,t,n),e=e.sibling}var Qt=null,Pr=!1;function Yi(e,t,n){for(n=n.child;n!==null;)ZS(e,t,n),n=n.sibling}function ZS(e,t,n){if(ei&&typeof ei.onCommitFiberUnmount=="function")try{ei.onCommitFiberUnmount(Xf,n)}catch{}switch(n.tag){case 5:cn||Ka(n,t);case 6:var r=Qt,o=Pr;Qt=null,Yi(e,t,n),Qt=r,Pr=o,Qt!==null&&(Pr?(e=Qt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qt.removeChild(n.stateNode));break;case 18:Qt!==null&&(Pr?(e=Qt,n=n.stateNode,e.nodeType===8?ih(e.parentNode,n):e.nodeType===1&&ih(e,n),As(e)):ih(Qt,n.stateNode));break;case 4:r=Qt,o=Pr,Qt=n.stateNode.containerInfo,Pr=!0,Yi(e,t,n),Qt=r,Pr=o;break;case 0:case 11:case 14:case 15:if(!cn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&vm(n,t,s),o=o.next}while(o!==r)}Yi(e,t,n);break;case 1:if(!cn&&(Ka(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){wt(n,t,c)}Yi(e,t,n);break;case 21:Yi(e,t,n);break;case 22:n.mode&1?(cn=(r=cn)||n.memoizedState!==null,Yi(e,t,n),cn=r):Yi(e,t,n);break;default:Yi(e,t,n)}}function dw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new e3),t.forEach(function(r){var o=c3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function kr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~l}if(r=o,r=Et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*r3(r/1960))-r,10e?16:e,ro===null)var r=!1;else{if(e=ro,ro=null,_f=0,ze&6)throw Error(Q(331));var o=ze;for(ze|=4,ue=e.current;ue!==null;){var l=ue,s=l.child;if(ue.flags&16){var c=l.deletions;if(c!==null){for(var f=0;fEt()-Gv?Zo(e,0):Hv|=n),An(e,t)}function a_(e,t){t===0&&(e.mode&1?(t=dc,dc<<=1,!(dc&130023424)&&(dc=4194304)):t=1);var n=gn();e=bi(e,t),e!==null&&(au(e,t,n),An(e,n))}function u3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),a_(e,n)}function c3(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Q(314))}r!==null&&r.delete(t),a_(e,n)}var l_;l_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tn.current)Pn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pn=!1,QA(e,t,n);Pn=!!(e.flags&131072)}else Pn=!1,ft&&t.flags&1048576&&fS(t,hf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yc(e,t),e=t.pendingProps;var o=sl(t,fn.current);rl(t,n),o=Fv(null,t,r,e,o,n);var l=zv();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,In(r)?(l=!0,df(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Av(t),o.updater=rd,t.stateNode=o,o._reactInternals=t,um(t,r,e,n),t=dm(null,t,r,!0,l,n)):(t.tag=0,ft&&l&&Nv(t),vn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=d3(r),e=Rr(r,e),o){case 0:t=fm(null,t,r,e,n);break e;case 1:t=lw(null,t,r,e,n);break e;case 11:t=ow(null,t,r,e,n);break e;case 14:t=aw(null,t,r,Rr(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rr(r,o),fm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rr(r,o),lw(e,t,r,o,n);case 3:e:{if(HS(t),e===null)throw Error(Q(387));r=t.pendingProps,l=t.memoizedState,o=l.element,gS(e,t),gf(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=dl(Error(Q(423)),t),t=sw(e,t,r,n,o);break e}else if(r!==o){o=dl(Error(Q(424)),t),t=sw(e,t,r,n,o);break e}else for(Gn=so(t.stateNode.containerInfo.firstChild),Kn=t,ft=!0,Ir=null,n=mS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ul(),r===o){t=Si(e,t,n);break e}vn(e,t,r,n)}t=t.child}return t;case 5:return yS(t),e===null&&am(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,tm(r,o)?s=null:l!==null&&tm(r,l)&&(t.flags|=32),WS(e,t),vn(e,t,s,n),t.child;case 6:return e===null&&am(t),null;case 13:return GS(e,t,n);case 4:return Dv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cl(t,null,r,n):vn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rr(r,o),ow(e,t,r,o,n);case 7:return vn(e,t,t.pendingProps,n),t.child;case 8:return vn(e,t,t.pendingProps.children,n),t.child;case 12:return vn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,et(mf,r._currentValue),r._currentValue=s,l!==null)if(zr(l.value,s)){if(l.children===o.children&&!Tn.current){t=Si(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var c=l.dependencies;if(c!==null){s=l.child;for(var f=c.firstContext;f!==null;){if(f.context===r){if(l.tag===1){f=gi(-1,n&-n),f.tag=2;var h=l.updateQueue;if(h!==null){h=h.shared;var p=h.pending;p===null?f.next=f:(f.next=p.next,p.next=f),h.pending=f}}l.lanes|=n,f=l.alternate,f!==null&&(f.lanes|=n),lm(l.return,n,t),c.lanes|=n;break}f=f.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(Q(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),lm(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}vn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,rl(t,n),o=wr(o),r=r(o),t.flags|=1,vn(e,t,r,n),t.child;case 14:return r=t.type,o=Rr(r,t.pendingProps),o=Rr(r.type,o),aw(e,t,r,o,n);case 15:return $S(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rr(r,o),Yc(e,t),t.tag=1,In(r)?(e=!0,df(t)):e=!1,rl(t,n),FS(t,r,o),um(t,r,o,n),dm(null,t,r,!0,e,n);case 19:return KS(e,t,n);case 22:return BS(e,t,n)}throw Error(Q(156,t.tag))};function s_(e,t){return Lb(e,t)}function f3(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 gr(e,t,n,r){return new f3(e,t,n,r)}function qv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d3(e){if(typeof e=="function")return qv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hv)return 11;if(e===mv)return 14}return 2}function po(e,t){var n=e.alternate;return n===null?(n=gr(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 Xc(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")qv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ja:return Jo(n.children,o,l,t);case pv:s=8,o|=8;break;case Ah:return e=gr(12,n,t,o|2),e.elementType=Ah,e.lanes=l,e;case Dh:return e=gr(13,n,t,o),e.elementType=Dh,e.lanes=l,e;case Lh:return e=gr(19,n,t,o),e.elementType=Lh,e.lanes=l,e;case yb:return ad(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vb:s=10;break e;case gb:s=9;break e;case hv:s=11;break e;case mv:s=14;break e;case Xi:s=16,r=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=gr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Jo(e,t,n,r){return e=gr(7,e,r,t),e.lanes=n,e}function ad(e,t,n,r){return e=gr(22,e,r,t),e.elementType=yb,e.lanes=n,e.stateNode={isHidden:!1},e}function dh(e,t,n){return e=gr(6,e,null,t),e.lanes=n,e}function ph(e,t,n){return t=gr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function p3(e,t,n,r,o){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=Yp(0),this.expirationTimes=Yp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xv(e,t,n,r,o,l,s,c,f){return e=new p3(e,t,n,c,f),t===1?(t=1,l===!0&&(t|=8)):t=0,l=gr(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Av(l),e}function h3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d_)}catch(e){console.error(e)}}d_(),db.exports=Xn;var Zr=db.exports;const w3=Vf(Zr),x3=qx({__proto__:null,default:w3},[Zr]);var xw=Zr;Th.createRoot=xw.createRoot,Th.hydrateRoot=xw.hydrateRoot;/** - * @remix-run/router v1.16.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function hl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function S3(){return Math.random().toString(36).substr(2,8)}function Sw(e,t){return{usr:e.state,key:e.key,idx:t}}function Gs(e,t,n,r){return n===void 0&&(n=null),ht({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Co(t):t,{state:n,key:t&&t.key||r||S3()})}function aa(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Co(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,s=o.history,c=kt.Pop,f=null,h=p();h==null&&(h=0,s.replaceState(ht({},s.state,{idx:h}),""));function p(){return(s.state||{idx:null}).idx}function m(){c=kt.Pop;let T=p(),_=T==null?null:T-h;h=T,f&&f({action:c,location:N.location,delta:_})}function v(T,_){c=kt.Push;let b=Gs(N.location,T,_);h=p()+1;let C=Sw(b,h),I=N.createHref(b);try{s.pushState(C,"",I)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;o.location.assign(I)}l&&f&&f({action:c,location:N.location,delta:1})}function S(T,_){c=kt.Replace;let b=Gs(N.location,T,_);h=p();let C=Sw(b,h),I=N.createHref(b);s.replaceState(C,"",I),l&&f&&f({action:c,location:N.location,delta:0})}function E(T){let _=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof T=="string"?T:aa(T);return b=b.replace(/ $/,"%20"),Ae(_,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,_)}let N={get action(){return c},get location(){return e(o,s)},listen(T){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(bw,m),f=T,()=>{o.removeEventListener(bw,m),f=null}},createHref(T){return t(o,T)},createURL:E,encodeLocation(T){let _=E(T);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:v,replace:S,go(T){return s.go(T)}};return N}var ct;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ct||(ct={}));const C3=new Set(["lazy","caseSensitive","path","id","index","children"]);function E3(e){return e.index===!0}function Cm(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,l)=>{let s=[...n,l],c=typeof o.id=="string"?o.id:s.join("-");if(Ae(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ae(!r[c],'Found a route id collision on id "'+c+`". Route id's must be globally unique within Data Router usages`),E3(o)){let f=ht({},o,t(o),{id:c});return r[c]=f,f}else{let f=ht({},o,t(o),{id:c,children:void 0});return r[c]=f,o.children&&(f.children=Cm(o.children,t,s,r)),f}})}function Va(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Co(t):t,o=_l(r.pathname||"/",n);if(o==null)return null;let l=p_(e);k3(l);let s=null;for(let c=0;s==null&&c{let f={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};f.relativePath.startsWith("/")&&(Ae(f.relativePath.startsWith(r),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(r.length));let h=yi([r,f.relativePath]),p=n.concat(f);l.children&&l.children.length>0&&(Ae(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),p_(l.children,t,p,h)),!(l.path==null&&!l.index)&&t.push({path:h,score:D3(h,l.index),routesMeta:p})};return e.forEach((l,s)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))o(l,s);else for(let f of h_(l.path))o(l,s,f)}),t}function h_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let s=h_(r.join("/")),c=[];return c.push(...s.map(f=>f===""?l:[l,f].join("/"))),o&&c.push(...s),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function k3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:L3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const R3=/^:[\w-]+$/,O3=3,P3=2,T3=1,I3=10,A3=-2,_w=e=>e==="*";function D3(e,t){let n=e.split("/"),r=n.length;return n.some(_w)&&(r+=A3),t&&(r+=P3),n.filter(o=>!_w(o)).reduce((o,l)=>o+(R3.test(l)?O3:l===""?T3:I3),r)}function L3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function M3(e,t){let{routesMeta:n}=e,r={},o="/",l=[];for(let s=0;s{let{paramName:v,isOptional:S}=p;if(v==="*"){let N=c[m]||"";s=l.slice(0,l.length-N.length).replace(/(.)\/+$/,"$1")}const E=c[m];return S&&!E?h[v]=void 0:h[v]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:s,pattern:e}}function F3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),hl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function z3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return hl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _l(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function U3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Co(e):e;return{pathname:n?n.startsWith("/")?n:$3(n,t):t,search:W3(r),hash:H3(o)}}function $3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function hh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function m_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function eg(e,t){let n=m_(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Co(e):(o=ht({},e),Ae(!o.pathname||!o.pathname.includes("?"),hh("?","pathname","search",o)),Ae(!o.pathname||!o.pathname.includes("#"),hh("#","pathname","hash",o)),Ae(!o.search||!o.search.includes("#"),hh("#","search","hash",o)));let l=e===""||o.pathname==="",s=l?"/":o.pathname,c;if(s==null)c=n;else{let m=t.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),m-=1;o.pathname=v.join("/")}c=m>=0?t[m]:"/"}let f=U3(o,c),h=s&&s!=="/"&&s.endsWith("/"),p=(l||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}const yi=e=>e.join("/").replace(/\/\/+/g,"/"),B3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,H3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ng{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function rg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const v_=["post","put","patch","delete"],G3=new Set(v_),K3=["get",...v_],Y3=new Set(K3),V3=new Set([301,302,303,307,308]),q3=new Set([307,308]),mh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},X3={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ts={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ig=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Q3=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),g_="remix-router-transitions";function Z3(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ae(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let A=e.detectErrorBoundary;o=j=>({hasErrorBoundary:A(j)})}else o=Q3;let l={},s=Cm(e.routes,o,void 0,l),c,f=e.basename||"/",h=e.unstable_dataStrategy||nD,p=ht({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),m=null,v=new Set,S=null,E=null,N=null,T=e.hydrationData!=null,_=Va(s,e.history.location,f),b=null;if(_==null){let A=fr(404,{pathname:e.history.location.pathname}),{matches:j,route:W}=Aw(s);_=j,b={[W.id]:A}}let C,I=_.some(A=>A.route.lazy),M=_.some(A=>A.route.loader);if(I)C=!1;else if(!M)C=!0;else if(p.v7_partialHydration){let A=e.hydrationData?e.hydrationData.loaderData:null,j=e.hydrationData?e.hydrationData.errors:null,W=X=>X.route.loader?typeof X.route.loader=="function"&&X.route.loader.hydrate===!0?!1:A&&A[X.route.id]!==void 0||j&&j[X.route.id]!==void 0:!0;if(j){let X=_.findIndex(ee=>j[ee.route.id]!==void 0);C=_.slice(0,X+1).every(W)}else C=_.every(W)}else C=e.hydrationData!=null;let G,k={historyAction:e.history.action,location:e.history.location,matches:_,initialized:C,navigation:mh,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},B=kt.Pop,U=!1,K,Z=!1,he=new Map,be=null,J=!1,oe=!1,Ne=[],F=[],z=new Map,te=0,ne=-1,ae=new Map,pe=new Set,Fe=new Map,Ve=new Map,qe=new Set,Me=new Map,bt=new Map,Mt=!1;function Gt(){if(m=e.history.listen(A=>{let{action:j,location:W,delta:X}=A;if(Mt){Mt=!1;return}hl(bt.size===0||X!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ee=va({currentLocation:k.location,nextLocation:W,historyAction:j});if(ee&&X!=null){Mt=!0,e.history.go(X*-1),Sr(ee,{state:"blocked",location:W,proceed(){Sr(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:W}),e.history.go(X)},reset(){let ge=new Map(k.blockers);ge.set(ee,ts),Ge({blockers:ge})}});return}return en(j,W)}),n){hD(t,he);let A=()=>mD(t,he);t.addEventListener("pagehide",A),be=()=>t.removeEventListener("pagehide",A)}return k.initialized||en(kt.Pop,k.location,{initialHydration:!0}),G}function Ue(){m&&m(),be&&be(),v.clear(),K&&K.abort(),k.fetchers.forEach((A,j)=>Cn(j)),k.blockers.forEach((A,j)=>Li(j))}function Jn(A){return v.add(A),()=>v.delete(A)}function Ge(A,j){j===void 0&&(j={}),k=ht({},k,A);let W=[],X=[];p.v7_fetcherPersist&&k.fetchers.forEach((ee,ge)=>{ee.state==="idle"&&(qe.has(ge)?X.push(ge):W.push(ge))}),[...v].forEach(ee=>ee(k,{deletedFetchers:X,unstable_viewTransitionOpts:j.viewTransitionOpts,unstable_flushSync:j.flushSync===!0})),p.v7_fetcherPersist&&(W.forEach(ee=>k.fetchers.delete(ee)),X.forEach(ee=>Cn(ee)))}function dn(A,j,W){var X,ee;let{flushSync:ge}=W===void 0?{}:W,ce=k.actionData!=null&&k.navigation.formMethod!=null&&Tr(k.navigation.formMethod)&&k.navigation.state==="loading"&&((X=A.state)==null?void 0:X._isRedirect)!==!0,ie;j.actionData?Object.keys(j.actionData).length>0?ie=j.actionData:ie=null:ce?ie=k.actionData:ie=null;let ye=j.loaderData?Tw(k.loaderData,j.loaderData,j.matches||[],j.errors):k.loaderData,Se=k.blockers;Se.size>0&&(Se=new Map(Se),Se.forEach((me,Ze)=>Se.set(Ze,ts)));let tt=U===!0||k.navigation.formMethod!=null&&Tr(k.navigation.formMethod)&&((ee=A.state)==null?void 0:ee._isRedirect)!==!0;c&&(s=c,c=void 0),J||B===kt.Pop||(B===kt.Push?e.history.push(A,A.state):B===kt.Replace&&e.history.replace(A,A.state));let nt;if(B===kt.Pop){let me=he.get(k.location.pathname);me&&me.has(A.pathname)?nt={currentLocation:k.location,nextLocation:A}:he.has(A.pathname)&&(nt={currentLocation:A,nextLocation:k.location})}else if(Z){let me=he.get(k.location.pathname);me?me.add(A.pathname):(me=new Set([A.pathname]),he.set(k.location.pathname,me)),nt={currentLocation:k.location,nextLocation:A}}Ge(ht({},j,{actionData:ie,loaderData:ye,historyAction:B,location:A,initialized:!0,navigation:mh,revalidation:"idle",restoreScrollPosition:Ut(A,j.matches||k.matches),preventScrollReset:tt,blockers:Se}),{viewTransitionOpts:nt,flushSync:ge===!0}),B=kt.Pop,U=!1,Z=!1,J=!1,oe=!1,Ne=[],F=[]}async function st(A,j){if(typeof A=="number"){e.history.go(A);return}let W=Em(k.location,k.matches,f,p.v7_prependBasename,A,p.v7_relativeSplatPath,j==null?void 0:j.fromRouteId,j==null?void 0:j.relative),{path:X,submission:ee,error:ge}=Cw(p.v7_normalizeFormMethod,!1,W,j),ce=k.location,ie=Gs(k.location,X,j&&j.state);ie=ht({},ie,e.history.encodeLocation(ie));let ye=j&&j.replace!=null?j.replace:void 0,Se=kt.Push;ye===!0?Se=kt.Replace:ye===!1||ee!=null&&Tr(ee.formMethod)&&ee.formAction===k.location.pathname+k.location.search&&(Se=kt.Replace);let tt=j&&"preventScrollReset"in j?j.preventScrollReset===!0:void 0,nt=(j&&j.unstable_flushSync)===!0,me=va({currentLocation:ce,nextLocation:ie,historyAction:Se});if(me){Sr(me,{state:"blocked",location:ie,proceed(){Sr(me,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),st(A,j)},reset(){let Ze=new Map(k.blockers);Ze.set(me,ts),Ge({blockers:Ze})}});return}return await en(Se,ie,{submission:ee,pendingError:ge,preventScrollReset:tt,replace:j&&j.replace,enableViewTransition:j&&j.unstable_viewTransition,flushSync:nt})}function Sn(){if(br(),Ge({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){en(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}en(B||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation})}}async function en(A,j,W){K&&K.abort(),K=null,B=A,J=(W&&W.startUninterruptedRevalidation)===!0,zt(k.location,k.matches),U=(W&&W.preventScrollReset)===!0,Z=(W&&W.enableViewTransition)===!0;let X=c||s,ee=W&&W.overrideNavigation,ge=Va(X,j,f),ce=(W&&W.flushSync)===!0;if(!ge){let me=fr(404,{pathname:j.pathname}),{matches:Ze,route:Nt}=Aw(X);Ro(),dn(j,{matches:Ze,loaderData:{},errors:{[Nt.id]:me}},{flushSync:ce});return}if(k.initialized&&!oe&&sD(k.location,j)&&!(W&&W.submission&&Tr(W.submission.formMethod))){dn(j,{matches:ge},{flushSync:ce});return}K=new AbortController;let ie=La(e.history,j,K.signal,W&&W.submission),ye;if(W&&W.pendingError)ye=[xs(ge).route.id,{type:ct.error,error:W.pendingError}];else if(W&&W.submission&&Tr(W.submission.formMethod)){let me=await _n(ie,j,W.submission,ge,{replace:W.replace,flushSync:ce});if(me.shortCircuited)return;ye=me.pendingActionResult,ee=vh(j,W.submission),ce=!1,ie=La(e.history,ie.url,ie.signal)}let{shortCircuited:Se,loaderData:tt,errors:nt}=await Eo(ie,j,ge,ee,W&&W.submission,W&&W.fetcherSubmission,W&&W.replace,W&&W.initialHydration===!0,ce,ye);Se||(K=null,dn(j,ht({matches:ge},Iw(ye),{loaderData:tt,errors:nt})))}async function _n(A,j,W,X,ee){ee===void 0&&(ee={}),br();let ge=dD(j,W);Ge({navigation:ge},{flushSync:ee.flushSync===!0});let ce,ie=km(X,j);if(!ie.route.action&&!ie.route.lazy)ce={type:ct.error,error:fr(405,{method:A.method,pathname:j.pathname,routeId:ie.route.id})};else if(ce=(await Mn("action",A,[ie],X))[0],A.signal.aborted)return{shortCircuited:!0};if(qo(ce)){let ye;return ee&&ee.replace!=null?ye=ee.replace:ye=Rw(ce.response.headers.get("Location"),new URL(A.url),f)===k.location.pathname+k.location.search,await nn(A,ce,{submission:W,replace:ye}),{shortCircuited:!0}}if(Vo(ce))throw fr(400,{type:"defer-action"});if(vr(ce)){let ye=xs(X,ie.route.id);return(ee&&ee.replace)!==!0&&(B=kt.Push),{pendingActionResult:[ye.route.id,ce]}}return{pendingActionResult:[ie.route.id,ce]}}async function Eo(A,j,W,X,ee,ge,ce,ie,ye,Se){let tt=X||vh(j,ee),nt=ee||ge||Mw(tt),me=c||s,[Ze,Nt]=Ew(e.history,k,W,nt,j,p.v7_partialHydration&&ie===!0,p.unstable_skipActionErrorRevalidation,oe,Ne,F,qe,Fe,pe,me,f,Se);if(Ro(Oe=>!(W&&W.some(Kt=>Kt.route.id===Oe))||Ze&&Ze.some(Kt=>Kt.route.id===Oe)),ne=++te,Ze.length===0&&Nt.length===0){let Oe=Ii();return dn(j,ht({matches:W,loaderData:{},errors:Se&&vr(Se[1])?{[Se[0]]:Se[1].error}:null},Iw(Se),Oe?{fetchers:new Map(k.fetchers)}:{}),{flushSync:ye}),{shortCircuited:!0}}if(!J&&(!p.v7_partialHydration||!ie)){Nt.forEach(Kt=>{let Yt=k.fetchers.get(Kt.key),Ot=ns(void 0,Yt?Yt.data:void 0);k.fetchers.set(Kt.key,Ot)});let Oe;Se&&!vr(Se[1])?Oe={[Se[0]]:Se[1].data}:k.actionData&&(Object.keys(k.actionData).length===0?Oe=null:Oe=k.actionData),Ge(ht({navigation:tt},Oe!==void 0?{actionData:Oe}:{},Nt.length>0?{fetchers:new Map(k.fetchers)}:{}),{flushSync:ye})}Nt.forEach(Oe=>{z.has(Oe.key)&&St(Oe.key),Oe.controller&&z.set(Oe.key,Oe.controller)});let Oo=()=>Nt.forEach(Oe=>St(Oe.key));K&&K.signal.addEventListener("abort",Oo);let{loaderResults:Hr,fetcherResults:ri}=await ko(k.matches,W,Ze,Nt,A);if(A.signal.aborted)return{shortCircuited:!0};K&&K.signal.removeEventListener("abort",Oo),Nt.forEach(Oe=>z.delete(Oe.key));let Mi=Dw([...Hr,...ri]);if(Mi){if(Mi.idx>=Ze.length){let Oe=Nt[Mi.idx-Ze.length].key;pe.add(Oe)}return await nn(A,Mi.result,{replace:ce}),{shortCircuited:!0}}let{loaderData:ji,errors:nr}=Pw(k,W,Ze,Hr,Se,Nt,ri,Me);Me.forEach((Oe,Kt)=>{Oe.subscribe(Yt=>{(Yt||Oe.done)&&Me.delete(Kt)})}),p.v7_partialHydration&&ie&&k.errors&&Object.entries(k.errors).filter(Oe=>{let[Kt]=Oe;return!Ze.some(Yt=>Yt.route.id===Kt)}).forEach(Oe=>{let[Kt,Yt]=Oe;nr=Object.assign(nr||{},{[Kt]:Yt})});let ga=Ii(),ya=Ai(ne),wa=ga||ya||Nt.length>0;return ht({loaderData:ji,errors:nr},wa?{fetchers:new Map(k.fetchers)}:{})}function No(A,j,W,X){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(A)&&St(A);let ee=(X&&X.unstable_flushSync)===!0,ge=c||s,ce=Em(k.location,k.matches,f,p.v7_prependBasename,W,p.v7_relativeSplatPath,j,X==null?void 0:X.relative),ie=Va(ge,ce,f);if(!ie){Ft(A,j,fr(404,{pathname:ce}),{flushSync:ee});return}let{path:ye,submission:Se,error:tt}=Cw(p.v7_normalizeFormMethod,!0,ce,X);if(tt){Ft(A,j,tt,{flushSync:ee});return}let nt=km(ie,ye);if(U=(X&&X.preventScrollReset)===!0,Se&&Tr(Se.formMethod)){tn(A,j,ye,nt,ie,ee,Se);return}Fe.set(A,{routeId:j,path:ye}),jt(A,j,ye,nt,ie,ee,Se)}async function tn(A,j,W,X,ee,ge,ce){if(br(),Fe.delete(A),!X.route.action&&!X.route.lazy){let Ot=fr(405,{method:ce.formMethod,pathname:W,routeId:j});Ft(A,j,Ot,{flushSync:ge});return}let ie=k.fetchers.get(A);er(A,pD(ce,ie),{flushSync:ge});let ye=new AbortController,Se=La(e.history,W,ye.signal,ce);z.set(A,ye);let tt=te,me=(await Mn("action",Se,[X],ee))[0];if(Se.signal.aborted){z.get(A)===ye&&z.delete(A);return}if(p.v7_fetcherPersist&&qe.has(A)){if(qo(me)||vr(me)){er(A,qi(void 0));return}}else{if(qo(me))if(z.delete(A),ne>tt){er(A,qi(void 0));return}else return pe.add(A),er(A,ns(ce)),nn(Se,me,{fetcherSubmission:ce});if(vr(me)){Ft(A,j,me.error);return}}if(Vo(me))throw fr(400,{type:"defer-action"});let Ze=k.navigation.location||k.location,Nt=La(e.history,Ze,ye.signal),Oo=c||s,Hr=k.navigation.state!=="idle"?Va(Oo,k.navigation.location,f):k.matches;Ae(Hr,"Didn't find any matches after fetcher action");let ri=++te;ae.set(A,ri);let Mi=ns(ce,me.data);k.fetchers.set(A,Mi);let[ji,nr]=Ew(e.history,k,Hr,ce,Ze,!1,p.unstable_skipActionErrorRevalidation,oe,Ne,F,qe,Fe,pe,Oo,f,[X.route.id,me]);nr.filter(Ot=>Ot.key!==A).forEach(Ot=>{let Po=Ot.key,wu=k.fetchers.get(Po),xu=ns(void 0,wu?wu.data:void 0);k.fetchers.set(Po,xu),z.has(Po)&&St(Po),Ot.controller&&z.set(Po,Ot.controller)}),Ge({fetchers:new Map(k.fetchers)});let ga=()=>nr.forEach(Ot=>St(Ot.key));ye.signal.addEventListener("abort",ga);let{loaderResults:ya,fetcherResults:wa}=await ko(k.matches,Hr,ji,nr,Nt);if(ye.signal.aborted)return;ye.signal.removeEventListener("abort",ga),ae.delete(A),z.delete(A),nr.forEach(Ot=>z.delete(Ot.key));let Oe=Dw([...ya,...wa]);if(Oe){if(Oe.idx>=ji.length){let Ot=nr[Oe.idx-ji.length].key;pe.add(Ot)}return nn(Nt,Oe.result)}let{loaderData:Kt,errors:Yt}=Pw(k,k.matches,ji,ya,void 0,nr,wa,Me);if(k.fetchers.has(A)){let Ot=qi(me.data);k.fetchers.set(A,Ot)}Ai(ri),k.navigation.state==="loading"&&ri>ne?(Ae(B,"Expected pending action"),K&&K.abort(),dn(k.navigation.location,{matches:Hr,loaderData:Kt,errors:Yt,fetchers:new Map(k.fetchers)})):(Ge({errors:Yt,loaderData:Tw(k.loaderData,Kt,Hr,Yt),fetchers:new Map(k.fetchers)}),oe=!1)}async function jt(A,j,W,X,ee,ge,ce){let ie=k.fetchers.get(A);er(A,ns(ce,ie?ie.data:void 0),{flushSync:ge});let ye=new AbortController,Se=La(e.history,W,ye.signal);z.set(A,ye);let tt=te,me=(await Mn("loader",Se,[X],ee))[0];if(Vo(me)&&(me=await b_(me,Se.signal,!0)||me),z.get(A)===ye&&z.delete(A),!Se.signal.aborted){if(qe.has(A)){er(A,qi(void 0));return}if(qo(me))if(ne>tt){er(A,qi(void 0));return}else{pe.add(A),await nn(Se,me);return}if(vr(me)){Ft(A,j,me.error);return}Ae(!Vo(me),"Unhandled fetcher deferred data"),er(A,qi(me.data))}}async function nn(A,j,W){let{submission:X,fetcherSubmission:ee,replace:ge}=W===void 0?{}:W;j.response.headers.has("X-Remix-Revalidate")&&(oe=!0);let ce=j.response.headers.get("Location");Ae(ce,"Expected a Location header on the redirect Response"),ce=Rw(ce,new URL(A.url),f);let ie=Gs(k.location,ce,{_isRedirect:!0});if(n){let Ze=!1;if(j.response.headers.has("X-Remix-Reload-Document"))Ze=!0;else if(ig.test(ce)){const Nt=e.history.createURL(ce);Ze=Nt.origin!==t.location.origin||_l(Nt.pathname,f)==null}if(Ze){ge?t.location.replace(ce):t.location.assign(ce);return}}K=null;let ye=ge===!0?kt.Replace:kt.Push,{formMethod:Se,formAction:tt,formEncType:nt}=k.navigation;!X&&!ee&&Se&&tt&&nt&&(X=Mw(k.navigation));let me=X||ee;if(q3.has(j.response.status)&&me&&Tr(me.formMethod))await en(ye,ie,{submission:ht({},me,{formAction:ce}),preventScrollReset:U});else{let Ze=vh(ie,X);await en(ye,ie,{overrideNavigation:Ze,fetcherSubmission:ee,preventScrollReset:U})}}async function Mn(A,j,W,X){try{let ee=await rD(h,A,j,W,X,l,o);return await Promise.all(ee.map((ge,ce)=>{if(uD(ge)){let ie=ge.result;return{type:ct.redirect,response:aD(ie,j,W[ce].route.id,X,f,p.v7_relativeSplatPath)}}return oD(ge)}))}catch(ee){return W.map(()=>({type:ct.error,error:ee}))}}async function ko(A,j,W,X,ee){let[ge,...ce]=await Promise.all([W.length?Mn("loader",ee,W,j):[],...X.map(ie=>{if(ie.matches&&ie.match&&ie.controller){let ye=La(e.history,ie.path,ie.controller.signal);return Mn("loader",ye,[ie.match],ie.matches).then(Se=>Se[0])}else return Promise.resolve({type:ct.error,error:fr(404,{pathname:ie.path})})})]);return await Promise.all([Lw(A,W,ge,ge.map(()=>ee.signal),!1,k.loaderData),Lw(A,X.map(ie=>ie.match),ce,X.map(ie=>ie.controller?ie.controller.signal:null),!0)]),{loaderResults:ge,fetcherResults:ce}}function br(){oe=!0,Ne.push(...Ro()),Fe.forEach((A,j)=>{z.has(j)&&(F.push(j),St(j))})}function er(A,j,W){W===void 0&&(W={}),k.fetchers.set(A,j),Ge({fetchers:new Map(k.fetchers)},{flushSync:(W&&W.flushSync)===!0})}function Ft(A,j,W,X){X===void 0&&(X={});let ee=xs(k.matches,j);Cn(A),Ge({errors:{[ee.route.id]:W},fetchers:new Map(k.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function rn(A){return p.v7_fetcherPersist&&(Ve.set(A,(Ve.get(A)||0)+1),qe.has(A)&&qe.delete(A)),k.fetchers.get(A)||X3}function Cn(A){let j=k.fetchers.get(A);z.has(A)&&!(j&&j.state==="loading"&&ae.has(A))&&St(A),Fe.delete(A),ae.delete(A),pe.delete(A),qe.delete(A),k.fetchers.delete(A)}function Ti(A){if(p.v7_fetcherPersist){let j=(Ve.get(A)||0)-1;j<=0?(Ve.delete(A),qe.add(A)):Ve.set(A,j)}else Cn(A);Ge({fetchers:new Map(k.fetchers)})}function St(A){let j=z.get(A);Ae(j,"Expected fetch controller: "+A),j.abort(),z.delete(A)}function ni(A){for(let j of A){let W=rn(j),X=qi(W.data);k.fetchers.set(j,X)}}function Ii(){let A=[],j=!1;for(let W of pe){let X=k.fetchers.get(W);Ae(X,"Expected fetcher: "+W),X.state==="loading"&&(pe.delete(W),A.push(W),j=!0)}return ni(A),j}function Ai(A){let j=[];for(let[W,X]of ae)if(X0}function Di(A,j){let W=k.blockers.get(A)||ts;return bt.get(A)!==j&&bt.set(A,j),W}function Li(A){k.blockers.delete(A),bt.delete(A)}function Sr(A,j){let W=k.blockers.get(A)||ts;Ae(W.state==="unblocked"&&j.state==="blocked"||W.state==="blocked"&&j.state==="blocked"||W.state==="blocked"&&j.state==="proceeding"||W.state==="blocked"&&j.state==="unblocked"||W.state==="proceeding"&&j.state==="unblocked","Invalid blocker state transition: "+W.state+" -> "+j.state);let X=new Map(k.blockers);X.set(A,j),Ge({blockers:X})}function va(A){let{currentLocation:j,nextLocation:W,historyAction:X}=A;if(bt.size===0)return;bt.size>1&&hl(!1,"A router only supports one blocker at a time");let ee=Array.from(bt.entries()),[ge,ce]=ee[ee.length-1],ie=k.blockers.get(ge);if(!(ie&&ie.state==="proceeding")&&ce({currentLocation:j,nextLocation:W,historyAction:X}))return ge}function Ro(A){let j=[];return Me.forEach((W,X)=>{(!A||A(X))&&(W.cancel(),j.push(X),Me.delete(X))}),j}function Pl(A,j,W){if(S=A,N=j,E=W||null,!T&&k.navigation===mh){T=!0;let X=Ut(k.location,k.matches);X!=null&&Ge({restoreScrollPosition:X})}return()=>{S=null,N=null,E=null}}function dt(A,j){return E&&E(A,j.map(X=>N3(X,k.loaderData)))||A.key}function zt(A,j){if(S&&N){let W=dt(A,j);S[W]=N()}}function Ut(A,j){if(S){let W=dt(A,j),X=S[W];if(typeof X=="number")return X}return null}function tr(A){l={},c=Cm(A,o,void 0,l)}return G={get basename(){return f},get future(){return p},get state(){return k},get routes(){return s},get window(){return t},initialize:Gt,subscribe:Jn,enableScrollRestoration:Pl,navigate:st,fetch:No,revalidate:Sn,createHref:A=>e.history.createHref(A),encodeLocation:A=>e.history.encodeLocation(A),getFetcher:rn,deleteFetcher:Ti,dispose:Ue,getBlocker:Di,deleteBlocker:Li,_internalFetchControllers:z,_internalActiveDeferreds:Me,_internalSetRoutes:tr},G}function J3(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Em(e,t,n,r,o,l,s,c){let f,h;if(s){f=[];for(let m of t)if(f.push(m),m.route.id===s){h=m;break}}else f=t,h=t[t.length-1];let p=tg(o||".",eg(f,l),_l(e.pathname,n)||e.pathname,c==="path");return o==null&&(p.search=e.search,p.hash=e.hash),(o==null||o===""||o===".")&&h&&h.route.index&&!og(p.search)&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:yi([n,p.pathname])),aa(p)}function Cw(e,t,n,r){if(!r||!J3(r))return{path:n};if(r.formMethod&&!fD(r.formMethod))return{path:n,error:fr(405,{method:r.formMethod})};let o=()=>({path:n,error:fr(400,{type:"invalid-body"})}),l=r.formMethod||"get",s=e?l.toUpperCase():l.toLowerCase(),c=w_(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Tr(s))return o();let v=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((S,E)=>{let[N,T]=E;return""+S+N+"="+T+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:v}}}else if(r.formEncType==="application/json"){if(!Tr(s))return o();try{let v=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:c,formEncType:r.formEncType,formData:void 0,json:v,text:void 0}}}catch{return o()}}}Ae(typeof FormData=="function","FormData is not available in this environment");let f,h;if(r.formData)f=Nm(r.formData),h=r.formData;else if(r.body instanceof FormData)f=Nm(r.body),h=r.body;else if(r.body instanceof URLSearchParams)f=r.body,h=Ow(f);else if(r.body==null)f=new URLSearchParams,h=new FormData;else try{f=new URLSearchParams(r.body),h=Ow(f)}catch{return o()}let p={formMethod:s,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(Tr(p.formMethod))return{path:n,submission:p};let m=Co(n);return t&&m.search&&og(m.search)&&f.append("index",""),m.search="?"+f,{path:aa(m),submission:p}}function eD(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Ew(e,t,n,r,o,l,s,c,f,h,p,m,v,S,E,N){let T=N?vr(N[1])?N[1].error:N[1].data:void 0,_=e.createURL(t.location),b=e.createURL(o),C=N&&vr(N[1])?N[0]:void 0,I=C?eD(n,C):n,M=N?N[1].statusCode:void 0,G=s&&M&&M>=400,k=I.filter((U,K)=>{let{route:Z}=U;if(Z.lazy)return!0;if(Z.loader==null)return!1;if(l)return typeof Z.loader!="function"||Z.loader.hydrate?!0:t.loaderData[Z.id]===void 0&&(!t.errors||t.errors[Z.id]===void 0);if(tD(t.loaderData,t.matches[K],U)||f.some(J=>J===U.route.id))return!0;let he=t.matches[K],be=U;return Nw(U,ht({currentUrl:_,currentParams:he.params,nextUrl:b,nextParams:be.params},r,{actionResult:T,unstable_actionStatus:M,defaultShouldRevalidate:G?!1:c||_.pathname+_.search===b.pathname+b.search||_.search!==b.search||y_(he,be)}))}),B=[];return m.forEach((U,K)=>{if(l||!n.some(oe=>oe.route.id===U.routeId)||p.has(K))return;let Z=Va(S,U.path,E);if(!Z){B.push({key:K,routeId:U.routeId,path:U.path,matches:null,match:null,controller:null});return}let he=t.fetchers.get(K),be=km(Z,U.path),J=!1;v.has(K)?J=!1:h.includes(K)?J=!0:he&&he.state!=="idle"&&he.data===void 0?J=c:J=Nw(be,ht({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:T,unstable_actionStatus:M,defaultShouldRevalidate:G?!1:c})),J&&B.push({key:K,routeId:U.routeId,path:U.path,matches:Z,match:be,controller:new AbortController})}),[k,B]}function tD(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function y_(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Nw(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function kw(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ae(o,"No route found in manifest");let l={};for(let s in r){let f=o[s]!==void 0&&s!=="hasErrorBoundary";hl(!f,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!f&&!C3.has(s)&&(l[s]=r[s])}Object.assign(o,l),Object.assign(o,ht({},t(o),{lazy:void 0}))}function nD(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function rD(e,t,n,r,o,l,s,c){let f=r.reduce((m,v)=>m.add(v.route.id),new Set),h=new Set,p=await e({matches:o.map(m=>{let v=f.has(m.route.id);return ht({},m,{shouldLoad:v,resolve:E=>(h.add(m.route.id),v?iD(t,n,m,l,s,E,c):Promise.resolve({type:ct.data,result:void 0}))})}),request:n,params:o[0].params,context:c});return o.forEach(m=>Ae(h.has(m.route.id),'`match.resolve()` was not called for route id "'+m.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),p.filter((m,v)=>f.has(o[v].route.id))}async function iD(e,t,n,r,o,l,s){let c,f,h=p=>{let m,v=new Promise((N,T)=>m=T);f=()=>m(),t.signal.addEventListener("abort",f);let S=N=>typeof p!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):p({request:t,params:n.params,context:s},...N!==void 0?[N]:[]),E;return l?E=l(N=>S(N)):E=(async()=>{try{return{type:"data",result:await S()}}catch(N){return{type:"error",result:N}}})(),Promise.race([E,v])};try{let p=n.route[e];if(n.route.lazy)if(p){let m,[v]=await Promise.all([h(p).catch(S=>{m=S}),kw(n.route,o,r)]);if(m!==void 0)throw m;c=v}else if(await kw(n.route,o,r),p=n.route[e],p)c=await h(p);else if(e==="action"){let m=new URL(t.url),v=m.pathname+m.search;throw fr(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:ct.data,result:void 0};else if(p)c=await h(p);else{let m=new URL(t.url),v=m.pathname+m.search;throw fr(404,{pathname:v})}Ae(c.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(p){return{type:ct.error,result:p}}finally{f&&t.signal.removeEventListener("abort",f)}return c}async function oD(e){let{result:t,type:n,status:r}=e;if(x_(t)){let s;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(c){return{type:ct.error,error:c}}return n===ct.error?{type:ct.error,error:new ng(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:ct.data,data:s,statusCode:t.status,headers:t.headers}}if(n===ct.error)return{type:ct.error,error:t,statusCode:rg(t)?t.status:r};if(cD(t)){var o,l;return{type:ct.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}return{type:ct.data,data:t,statusCode:r}}function aD(e,t,n,r,o,l){let s=e.headers.get("Location");if(Ae(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!ig.test(s)){let c=r.slice(0,r.findIndex(f=>f.route.id===n)+1);s=Em(new URL(t.url),c,o,!0,s,l),e.headers.set("Location",s)}return e}function Rw(e,t,n){if(ig.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),l=_l(o.pathname,n)!=null;if(o.origin===t.origin&&l)return o.pathname+o.search+o.hash}return e}function La(e,t,n,r){let o=e.createURL(w_(t)).toString(),l={signal:n};if(r&&Tr(r.formMethod)){let{formMethod:s,formEncType:c}=r;l.method=s.toUpperCase(),c==="application/json"?(l.headers=new Headers({"Content-Type":c}),l.body=JSON.stringify(r.json)):c==="text/plain"?l.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?l.body=Nm(r.formData):l.body=r.formData}return new Request(o,l)}function Nm(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Ow(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function lD(e,t,n,r,o,l){let s={},c=null,f,h=!1,p={},m=r&&vr(r[1])?r[1].error:void 0;return n.forEach((v,S)=>{let E=t[S].route.id;if(Ae(!qo(v),"Cannot handle redirect results in processLoaderData"),vr(v)){let N=v.error;m!==void 0&&(N=m,m=void 0),c=c||{};{let T=xs(e,E);c[T.route.id]==null&&(c[T.route.id]=N)}s[E]=void 0,h||(h=!0,f=rg(v.error)?v.error.status:500),v.headers&&(p[E]=v.headers)}else Vo(v)?(o.set(E,v.deferredData),s[E]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!h&&(f=v.statusCode),v.headers&&(p[E]=v.headers)):(s[E]=v.data,v.statusCode&&v.statusCode!==200&&!h&&(f=v.statusCode),v.headers&&(p[E]=v.headers))}),m!==void 0&&r&&(c={[r[0]]:m},s[r[0]]=void 0),{loaderData:s,errors:c,statusCode:f||200,loaderHeaders:p}}function Pw(e,t,n,r,o,l,s,c){let{loaderData:f,errors:h}=lD(t,n,r,o,c);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Aw(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function fr(e,t){let{pathname:n,routeId:r,method:o,type:l}=t===void 0?{}:t,s="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":l==="defer-action"?c="defer() is not supported in actions":l==="invalid-body"&&(c="Unable to encode submission body")):e===403?(s="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",c='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new ng(e||500,s,new Error(c),!0)}function Dw(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(qo(n))return{result:n,idx:t}}}function w_(e){let t=typeof e=="string"?Co(e):e;return aa(ht({},t,{hash:""}))}function sD(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function uD(e){return x_(e.result)&&V3.has(e.result.status)}function Vo(e){return e.type===ct.deferred}function vr(e){return e.type===ct.error}function qo(e){return(e&&e.type)===ct.redirect}function cD(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function x_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function fD(e){return Y3.has(e.toLowerCase())}function Tr(e){return G3.has(e.toLowerCase())}async function Lw(e,t,n,r,o,l){for(let s=0;sm.route.id===f.route.id),p=h!=null&&!y_(h,f)&&(l&&l[f.route.id])!==void 0;if(Vo(c)&&(o||p)){let m=r[s];Ae(m,"Expected an AbortSignal for revalidating fetcher deferred result"),await b_(c,m,o).then(v=>{v&&(n[s]=v||n[s])})}}}async function b_(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ct.data,data:e.deferredData.unwrappedData}}catch(o){return{type:ct.error,error:o}}return{type:ct.data,data:e.deferredData.data}}}function og(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function km(e,t){let n=typeof t=="string"?Co(t).search:t.search;if(e[e.length-1].route.index&&og(n||""))return e[e.length-1];let r=m_(e);return r[r.length-1]}function Mw(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:l,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:l,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function vh(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function dD(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ns(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function pD(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function qi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function hD(e,t){try{let n=e.sessionStorage.getItem(g_);if(n){let r=JSON.parse(n);for(let[o,l]of Object.entries(r||{}))l&&Array.isArray(l)&&t.set(o,new Set(l||[]))}}catch{}}function mD(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(g_,JSON.stringify(n))}catch(r){hl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Nf(){return Nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c.current=!0}),O.useCallback(function(h,p){if(p===void 0&&(p={}),!c.current)return;if(typeof h=="number"){r.go(h);return}let m=tg(h,JSON.parse(s),l,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:yi([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,s,l,e])}function E_(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(ha),{matches:o}=O.useContext(ma),{pathname:l}=dd(),s=JSON.stringify(eg(o,r.v7_relativeSplatPath));return O.useMemo(()=>tg(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function yD(e,t,n,r){cu()||Ae(!1);let{navigator:o}=O.useContext(ha),{matches:l}=O.useContext(ma),s=l[l.length-1],c=s?s.params:{};s&&s.pathname;let f=s?s.pathnameBase:"/";s&&s.route;let h=dd(),p;p=h;let m=p.pathname||"/",v=m;if(f!=="/"){let N=f.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(N.length).join("/")}let S=Va(e,{pathname:v});return _D(S&&S.map(N=>Object.assign({},N,{params:Object.assign({},c,N.params),pathname:yi([f,o.encodeLocation?o.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?f:yi([f,o.encodeLocation?o.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),l,n,r)}function wD(){let e=kD(),t=rg(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:o},n):null,null)}const xD=O.createElement(wD,null);class bD extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(ma.Provider,{value:this.props.routeContext},O.createElement(__.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function SD(e){let{routeContext:t,match:n,children:r}=e,o=O.useContext(fd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(ma.Provider,{value:t},r)}function _D(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let s=e,c=(o=n)==null?void 0:o.errors;if(c!=null){let p=s.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);p>=0||Ae(!1),s=s.slice(0,Math.min(s.length,p+1))}let f=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((p,m,v)=>{let S,E=!1,N=null,T=null;n&&(S=c&&m.route.id?c[m.route.id]:void 0,N=m.route.errorElement||xD,f&&(h<0&&v===0?(OD("route-fallback"),E=!0,T=null):h===v&&(E=!0,T=m.route.hydrateFallbackElement||null)));let _=t.concat(s.slice(0,v+1)),b=()=>{let C;return S?C=N:E?C=T:m.route.Component?C=O.createElement(m.route.Component,null):m.route.element?C=m.route.element:C=p,O.createElement(SD,{match:m,routeContext:{outlet:p,matches:_,isDataRoute:n!=null},children:C})};return n&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?O.createElement(bD,{location:n.location,revalidation:n.revalidation,component:N,error:S,children:b(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):b()},null)}var N_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N_||{}),kf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(kf||{});function CD(e){let t=O.useContext(fd);return t||Ae(!1),t}function ED(e){let t=O.useContext(S_);return t||Ae(!1),t}function ND(e){let t=O.useContext(ma);return t||Ae(!1),t}function k_(e){let t=ND(),n=t.matches[t.matches.length-1];return n.route.id||Ae(!1),n.route.id}function kD(){var e;let t=O.useContext(__),n=ED(kf.UseRouteError),r=k_(kf.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function RD(){let{router:e}=CD(N_.UseNavigateStable),t=k_(kf.UseNavigateStable),n=O.useRef(!1);return C_(()=>{n.current=!0}),O.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Nf({fromRouteId:t},l)))},[e,t])}const jw={};function OD(e,t,n){jw[e]||(jw[e]=!0)}function PD(e){let{basename:t="/",children:n=null,location:r,navigationType:o=kt.Pop,navigator:l,static:s=!1,future:c}=e;cu()&&Ae(!1);let f=t.replace(/^\/*/,"/"),h=O.useMemo(()=>({basename:f,navigator:l,static:s,future:Nf({v7_relativeSplatPath:!1},c)}),[f,c,l,s]);typeof r=="string"&&(r=Co(r));let{pathname:p="/",search:m="",hash:v="",state:S=null,key:E="default"}=r,N=O.useMemo(()=>{let T=_l(p,f);return T==null?null:{location:{pathname:T,search:m,hash:v,state:S,key:E},navigationType:o}},[f,p,m,v,S,E,o]);return N==null?null:O.createElement(ha.Provider,{value:h},O.createElement(ag.Provider,{children:n,value:N}))}new Promise(()=>{});function TD(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:O.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:O.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:O.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function AD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function DD(e,t){return e.button===0&&(!t||t==="_self")&&!AD(e)}const LD=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],MD="6";try{window.__reactRouterVersion=MD}catch{}function jD(e,t){return Z3({basename:void 0,future:Ks({},void 0,{v7_prependBasename:!0}),history:b3({window:void 0}),hydrationData:FD(),routes:e,mapRouteProperties:TD,unstable_dataStrategy:void 0,window:void 0}).initialize()}function FD(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ks({},t,{errors:zD(t.errors)})),t}function zD(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new ng(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let l=window[o.__subType];if(typeof l=="function")try{let s=new l(o.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let l=new Error(o.message);l.stack="",n[r]=l}}else n[r]=o;return n}const UD=O.createContext({isTransitioning:!1}),$D=O.createContext(new Map),BD="startTransition",Fw=Ph[BD],WD="flushSync",zw=x3[WD];function HD(e){Fw?Fw(e):e()}function rs(e){zw?zw(e):e()}class GD{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function KD(e){let{fallbackElement:t,router:n,future:r}=e,[o,l]=O.useState(n.state),[s,c]=O.useState(),[f,h]=O.useState({isTransitioning:!1}),[p,m]=O.useState(),[v,S]=O.useState(),[E,N]=O.useState(),T=O.useRef(new Map),{v7_startTransition:_}=r||{},b=O.useCallback(k=>{_?HD(k):k()},[_]),C=O.useCallback((k,B)=>{let{deletedFetchers:U,unstable_flushSync:K,unstable_viewTransitionOpts:Z}=B;U.forEach(be=>T.current.delete(be)),k.fetchers.forEach((be,J)=>{be.data!==void 0&&T.current.set(J,be.data)});let he=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!Z||he){K?rs(()=>l(k)):b(()=>l(k));return}if(K){rs(()=>{v&&(p&&p.resolve(),v.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:Z.currentLocation,nextLocation:Z.nextLocation})});let be=n.window.document.startViewTransition(()=>{rs(()=>l(k))});be.finished.finally(()=>{rs(()=>{m(void 0),S(void 0),c(void 0),h({isTransitioning:!1})})}),rs(()=>S(be));return}v?(p&&p.resolve(),v.skipTransition(),N({state:k,currentLocation:Z.currentLocation,nextLocation:Z.nextLocation})):(c(k),h({isTransitioning:!0,flushSync:!1,currentLocation:Z.currentLocation,nextLocation:Z.nextLocation}))},[n.window,v,p,T,b]);O.useLayoutEffect(()=>n.subscribe(C),[n,C]),O.useEffect(()=>{f.isTransitioning&&!f.flushSync&&m(new GD)},[f]),O.useEffect(()=>{if(p&&s&&n.window){let k=s,B=p.promise,U=n.window.document.startViewTransition(async()=>{b(()=>l(k)),await B});U.finished.finally(()=>{m(void 0),S(void 0),c(void 0),h({isTransitioning:!1})}),S(U)}},[b,s,p,n.window]),O.useEffect(()=>{p&&s&&o.location.key===s.location.key&&p.resolve()},[p,v,o.location,s]),O.useEffect(()=>{!f.isTransitioning&&E&&(c(E.state),h({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),N(void 0))},[f.isTransitioning,E]),O.useEffect(()=>{},[]);let I=O.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,B,U)=>n.navigate(k,{state:B,preventScrollReset:U==null?void 0:U.preventScrollReset}),replace:(k,B,U)=>n.navigate(k,{replace:!0,state:B,preventScrollReset:U==null?void 0:U.preventScrollReset})}),[n]),M=n.basename||"/",G=O.useMemo(()=>({router:n,navigator:I,static:!1,basename:M}),[n,I,M]);return O.createElement(O.Fragment,null,O.createElement(fd.Provider,{value:G},O.createElement(S_.Provider,{value:o},O.createElement($D.Provider,{value:T.current},O.createElement(UD.Provider,{value:f},O.createElement(PD,{basename:M,location:o.location,navigationType:o.historyAction,navigator:I,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?O.createElement(YD,{routes:n.routes,future:n.future,state:o}):t))))),null)}function YD(e){let{routes:t,future:n,state:r}=e;return yD(t,void 0,r,n)}const VD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,XD=O.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:l,replace:s,state:c,target:f,to:h,preventScrollReset:p,unstable_viewTransition:m}=t,v=ID(t,LD),{basename:S}=O.useContext(ha),E,N=!1;if(typeof h=="string"&&qD.test(h)&&(E=h,VD))try{let C=new URL(window.location.href),I=h.startsWith("//")?new URL(C.protocol+h):new URL(h),M=_l(I.pathname,S);I.origin===C.origin&&M!=null?h=M+I.search+I.hash:N=!0}catch{}let T=vD(h,{relative:o}),_=QD(h,{replace:s,state:c,target:f,preventScrollReset:p,relative:o,unstable_viewTransition:m});function b(C){r&&r(C),C.defaultPrevented||_(C)}return O.createElement("a",Ks({},v,{href:E||T,onClick:N||l?r:b,ref:n,target:f}))});var Uw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Uw||(Uw={}));var $w;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($w||($w={}));function QD(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:s,unstable_viewTransition:c}=t===void 0?{}:t,f=lg(),h=dd(),p=E_(e,{relative:s});return O.useCallback(m=>{if(DD(m,n)){m.preventDefault();let v=r!==void 0?r:aa(h)===aa(p);f(e,{replace:v,state:o,preventScrollReset:l,relative:s,unstable_viewTransition:c})}},[h,f,p,r,o,n,e,l,s,c])}function ZD(){return x.jsxs("div",{className:"flex flex-col center h-screen",children:[x.jsx("h1",{className:"text-fluidTitle mb-4",children:"404 Page Not Found"}),x.jsx(XD,{to:"/",style:{fontSize:20,textDecoration:"none"},children:"Back to a4recipe Home"})]})}const Oi=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation())},Qc=e=>{e.target.select()},ml="None";function Xt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var JD=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bw=JD,gh=()=>Math.random().toString(36).substring(7).split("").join("."),e4={INIT:`@@redux/INIT${gh()}`,REPLACE:`@@redux/REPLACE${gh()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gh()}`},Rf=e4;function sg(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function R_(e,t,n){if(typeof e!="function")throw new Error(Xt(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Xt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Xt(1));return n(R_)(e,t)}let r=e,o=t,l=new Map,s=l,c=0,f=!1;function h(){s===l&&(s=new Map,l.forEach((T,_)=>{s.set(_,T)}))}function p(){if(f)throw new Error(Xt(3));return o}function m(T){if(typeof T!="function")throw new Error(Xt(4));if(f)throw new Error(Xt(5));let _=!0;h();const b=c++;return s.set(b,T),function(){if(_){if(f)throw new Error(Xt(6));_=!1,h(),s.delete(b),l=null}}}function v(T){if(!sg(T))throw new Error(Xt(7));if(typeof T.type>"u")throw new Error(Xt(8));if(typeof T.type!="string")throw new Error(Xt(17));if(f)throw new Error(Xt(9));try{f=!0,o=r(o,T)}finally{f=!1}return(l=s).forEach(b=>{b()}),T}function S(T){if(typeof T!="function")throw new Error(Xt(10));r=T,v({type:Rf.REPLACE})}function E(){const T=m;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Xt(11));function b(){const I=_;I.next&&I.next(p())}return b(),{unsubscribe:T(b)}},[Bw](){return this}}}return v({type:Rf.INIT}),{dispatch:v,subscribe:m,getState:p,replaceReducer:S,[Bw]:E}}function t4(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Rf.INIT})>"u")throw new Error(Xt(12));if(typeof n(void 0,{type:Rf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Xt(13))})}function n4(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw c&&c.type,new Error(Xt(14));h[m]=E,f=f||E!==S}return f=f||r.length!==Object.keys(s).length,f?h:s}}function Of(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function r4(...e){return t=>(n,r)=>{const o=t(n,r);let l=()=>{throw new Error(Xt(15))};const s={getState:o.getState,dispatch:(f,...h)=>l(f,...h)},c=e.map(f=>f(s));return l=Of(...c)(o.dispatch),{...o,dispatch:l}}}function i4(e){return sg(e)&&"type"in e&&typeof e.type=="string"}var O_=Symbol.for("immer-nothing"),Ww=Symbol.for("immer-draftable"),Vn=Symbol.for("immer-state");function Ar(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var vl=Object.getPrototypeOf;function go(e){return!!e&&!!e[Vn]}function _i(e){var t;return e?P_(e)||Array.isArray(e)||!!e[Ww]||!!((t=e.constructor)!=null&&t[Ww])||hd(e)||md(e):!1}var o4=Object.prototype.constructor.toString();function P_(e){if(!e||typeof e!="object")return!1;const t=vl(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===o4}function Pf(e,t){pd(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function pd(e){const t=e[Vn];return t?t.type_:Array.isArray(e)?1:hd(e)?2:md(e)?3:0}function Rm(e,t){return pd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function T_(e,t,n){const r=pd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function a4(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function hd(e){return e instanceof Map}function md(e){return e instanceof Set}function Bo(e){return e.copy_||e.base_}function Om(e,t){if(hd(e))return new Map(e);if(md(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=P_(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Vn];let o=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=l4),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>ug(r,!0))),e}function l4(){Ar(2)}function vd(e){return Object.isFrozen(e)}var s4={};function la(e){const t=s4[e];return t||Ar(0,e),t}var Ys;function I_(){return Ys}function u4(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Hw(e,t){t&&(la("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Pm(e){Tm(e),e.drafts_.forEach(c4),e.drafts_=null}function Tm(e){e===Ys&&(Ys=e.parent_)}function Gw(e){return Ys=u4(Ys,e)}function c4(e){const t=e[Vn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Kw(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Vn].modified_&&(Pm(t),Ar(4)),_i(e)&&(e=Tf(t,e),t.parent_||If(t,e)),t.patches_&&la("Patches").generateReplacementPatches_(n[Vn].base_,e,t.patches_,t.inversePatches_)):e=Tf(t,n,[]),Pm(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==O_?e:void 0}function Tf(e,t,n){if(vd(t))return t;const r=t[Vn];if(!r)return Pf(t,(o,l)=>Yw(e,r,t,o,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return If(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let l=o,s=!1;r.type_===3&&(l=new Set(o),o.clear(),s=!0),Pf(l,(c,f)=>Yw(e,r,o,c,f,n,s)),If(e,o,!1),n&&e.patches_&&la("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Yw(e,t,n,r,o,l,s){if(go(o)){const c=l&&t&&t.type_!==3&&!Rm(t.assigned_,r)?l.concat(r):void 0,f=Tf(e,o,c);if(T_(n,r,f),go(f))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(_i(o)&&!vd(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Tf(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&If(e,o)}}function If(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ug(t,n)}function f4(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:I_(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,l=cg;n&&(o=[r],l=Vs);const{revoke:s,proxy:c}=Proxy.revocable(o,l);return r.draft_=c,r.revoke_=s,c}var cg={get(e,t){if(t===Vn)return e;const n=Bo(e);if(!Rm(n,t))return d4(e,n,t);const r=n[t];return e.finalized_||!_i(r)?r:r===yh(e.base_,t)?(wh(e),e.copy_[t]=Am(r,e)):r},has(e,t){return t in Bo(e)},ownKeys(e){return Reflect.ownKeys(Bo(e))},set(e,t,n){const r=A_(Bo(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=yh(Bo(e),t),l=o==null?void 0:o[Vn];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(a4(n,o)&&(n!==void 0||Rm(e.base_,t)))return!0;wh(e),Im(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return yh(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,wh(e),Im(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Bo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ar(11)},getPrototypeOf(e){return vl(e.base_)},setPrototypeOf(){Ar(12)}},Vs={};Pf(cg,(e,t)=>{Vs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Vs.deleteProperty=function(e,t){return Vs.set.call(this,e,t,void 0)};Vs.set=function(e,t,n){return cg.set.call(this,e[0],t,n,e[0])};function yh(e,t){const n=e[Vn];return(n?Bo(n):e)[t]}function d4(e,t,n){var o;const r=A_(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function A_(e,t){if(!(t in e))return;let n=vl(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=vl(n)}}function Im(e){e.modified_||(e.modified_=!0,e.parent_&&Im(e.parent_))}function wh(e){e.copy_||(e.copy_=Om(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var p4=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const s=this;return function(f=l,...h){return s.produce(f,p=>n.call(this,p,...h))}}typeof n!="function"&&Ar(6),r!==void 0&&typeof r!="function"&&Ar(7);let o;if(_i(t)){const l=Gw(this),s=Am(t,void 0);let c=!0;try{o=n(s),c=!1}finally{c?Pm(l):Tm(l)}return Hw(l,r),Kw(o,l)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===O_&&(o=void 0),this.autoFreeze_&&ug(o,!0),r){const l=[],s=[];la("Patches").generateReplacementPatches_(t,o,l,s),r(l,s)}return o}else Ar(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...c)=>this.produceWithPatches(s,f=>t(f,...c));let r,o;return[this.produce(t,n,(s,c)=>{r=s,o=c}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){_i(e)||Ar(8),go(e)&&(e=D_(e));const t=Gw(this),n=Am(e,void 0);return n[Vn].isManual_=!0,Tm(t),n}finishDraft(e,t){const n=e&&e[Vn];(!n||!n.isManual_)&&Ar(9);const{scope_:r}=n;return Hw(r,t),Kw(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=la("Patches").applyPatches_;return go(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Am(e,t){const n=hd(e)?la("MapSet").proxyMap_(e,t):md(e)?la("MapSet").proxySet_(e,t):f4(e,t);return(t?t.scope_:I_()).drafts_.push(n),n}function D_(e){return go(e)||Ar(10,e),L_(e)}function L_(e){if(!_i(e)||vd(e))return e;const t=e[Vn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Om(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Om(e,!0);return Pf(n,(r,o)=>{T_(n,r,L_(o))}),t&&(t.finalized_=!1),n}var qn=new p4,M_=qn.produce;qn.produceWithPatches.bind(qn);qn.setAutoFreeze.bind(qn);qn.setUseStrictShallowCopy.bind(qn);qn.applyPatches.bind(qn);qn.createDraft.bind(qn);qn.finishDraft.bind(qn);function h4(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function m4(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function v4(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Vw=e=>Array.isArray(e)?e:[e];function g4(e){const t=Array.isArray(e[0])?e[0]:e;return v4(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function y4(e,t){const n=[],{length:r}=e;for(let o=0;o{n=Cc(),s.resetResultsCount()},s.resultsCount=()=>l,s.resetResultsCount=()=>{l=0},s}function j_(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let l=0,s=0,c,f={},h=o.pop();typeof h=="object"&&(f=h,h=o.pop()),h4(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const p={...n,...f},{memoize:m,memoizeOptions:v=[],argsMemoize:S=fg,argsMemoizeOptions:E=[],devModeChecks:N={}}=p,T=Vw(v),_=Vw(E),b=g4(o),C=m(function(){return l++,h.apply(null,arguments)},...T),I=S(function(){s++;const G=y4(b,arguments);return c=C.apply(null,G),c},..._);return Object.assign(I,{resultFunc:h,memoizedResultFunc:C,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>c,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:m,argsMemoize:S})};return Object.assign(r,{withTypes:()=>r}),r}var S4=j_(fg),_4=Object.assign((e,t=S4)=>{m4(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(l=>e[l]);return t(r,(...l)=>l.reduce((s,c,f)=>(s[n[f]]=c,s),{}))},{withTypes:()=>_4});function F_(e){return({dispatch:n,getState:r})=>o=>l=>typeof l=="function"?l(n,r,e):o(l)}var C4=F_(),E4=F_,N4=(...e)=>{const t=j_(...e),n=Object.assign((...r)=>{const o=t(...r),l=(s,...c)=>o(go(s)?D_(s):s,...c);return Object.assign(l,o),l},{withTypes:()=>n});return n};N4(fg);var k4=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Of:Of.apply(null,arguments)};function gl(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(Dn(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>i4(r)&&r.type===e,n}var z_=class us extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,us.prototype)}static get[Symbol.species](){return us}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new us(...t[0].concat(this)):new us(...t.concat(this))}};function Xw(e){return _i(e)?M_(e,()=>{}):e}function Qw(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(Dn(10));const r=n.insert(t,e);return e.set(t,r),r}function R4(e){return typeof e=="boolean"}var O4=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:l=!0}=t??{};let s=new z_;return n&&(R4(n)?s.push(C4):s.push(E4(n.extraArgument))),s},P4="RTK_autoBatch",U_=e=>t=>{setTimeout(t,e)},T4=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:U_(10),I4=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,l=!1,s=!1;const c=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?T4:e.type==="callback"?e.queueNotification:U_(e.timeout),h=()=>{s=!1,l&&(l=!1,c.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const m=()=>o&&p(),v=r.subscribe(m);return c.add(p),()=>{v(),c.delete(p)}},dispatch(p){var m;try{return o=!((m=p==null?void 0:p.meta)!=null&&m[P4]),l=!o,l&&(s||(s=!0,f(h))),r.dispatch(p)}finally{o=!0}}})},A4=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new z_(e);return r&&o.push(I4(typeof r=="object"?r:void 0)),o},D4=!0;function L4(e){const t=O4(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:l=void 0,enhancers:s=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(sg(n))c=n4(n);else throw new Error(Dn(1));let f;typeof r=="function"?f=r(t):f=t();let h=Of;o&&(h=k4({trace:!D4,...typeof o=="object"&&o}));const p=r4(...f),m=A4(p);let v=typeof s=="function"?s(m):m();const S=h(...v);return R_(c,l,S)}function $_(e){const t={},n=[];let r;const o={addCase(l,s){const c=typeof l=="string"?l:l.type;if(!c)throw new Error(Dn(28));if(c in t)throw new Error(Dn(29));return t[c]=s,o},addMatcher(l,s){return n.push({matcher:l,reducer:s}),o},addDefaultCase(l){return r=l,o}};return e(o),[t,n,r]}function M4(e){return typeof e=="function"}function j4(e,t){let[n,r,o]=$_(t),l;if(M4(e))l=()=>Xw(e());else{const c=Xw(e);l=()=>c}function s(c=l(),f){let h=[n[f.type],...r.filter(({matcher:p})=>p(f)).map(({reducer:p})=>p)];return h.filter(p=>!!p).length===0&&(h=[o]),h.reduce((p,m)=>{if(m)if(go(p)){const S=m(p,f);return S===void 0?p:S}else{if(_i(p))return M_(p,v=>m(v,f));{const v=m(p,f);if(v===void 0){if(p===null)return p;throw new Error(Dn(9))}return v}}return p},c)}return s.getInitialState=l,s}var F4="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",z4=(e=21)=>{let t="",n=e;for(;n--;)t+=F4[Math.random()*64|0];return t},U4=Symbol.for("rtk-slice-createasyncthunk");function $4(e,t){return`${e}/${t}`}function B4({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[U4];return function(o){const{name:l,reducerPath:s=l}=o;if(!l)throw new Error(Dn(11));typeof process<"u";const c=(typeof o.reducers=="function"?o.reducers(H4()):o.reducers)||{},f=Object.keys(c),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(C,I){const M=typeof C=="string"?C:C.type;if(!M)throw new Error(Dn(12));if(M in h.sliceCaseReducersByType)throw new Error(Dn(13));return h.sliceCaseReducersByType[M]=I,p},addMatcher(C,I){return h.sliceMatchers.push({matcher:C,reducer:I}),p},exposeAction(C,I){return h.actionCreators[C]=I,p},exposeCaseReducer(C,I){return h.sliceCaseReducersByName[C]=I,p}};f.forEach(C=>{const I=c[C],M={reducerName:C,type:$4(l,C),createNotation:typeof o.reducers=="function"};K4(I)?V4(M,I,p,t):G4(M,I,p)});function m(){const[C={},I=[],M=void 0]=typeof o.extraReducers=="function"?$_(o.extraReducers):[o.extraReducers],G={...C,...h.sliceCaseReducersByType};return j4(o.initialState,k=>{for(let B in G)k.addCase(B,G[B]);for(let B of h.sliceMatchers)k.addMatcher(B.matcher,B.reducer);for(let B of I)k.addMatcher(B.matcher,B.reducer);M&&k.addDefaultCase(M)})}const v=C=>C,S=new Map;let E;function N(C,I){return E||(E=m()),E(C,I)}function T(){return E||(E=m()),E.getInitialState()}function _(C,I=!1){function M(k){let B=k[C];return typeof B>"u"&&I&&(B=T()),B}function G(k=v){const B=Qw(S,I,{insert:()=>new WeakMap});return Qw(B,k,{insert:()=>{const U={};for(const[K,Z]of Object.entries(o.selectors??{}))U[K]=W4(Z,k,T,I);return U}})}return{reducerPath:C,getSelectors:G,get selectors(){return G(M)},selectSlice:M}}const b={name:l,reducer:N,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:T,..._(s),injectInto(C,{reducerPath:I,...M}={}){const G=I??s;return C.inject({reducerPath:G,reducer:N},M),{...b,..._(G,!0)}}};return b}}function W4(e,t,n,r){function o(l,...s){let c=t(l);return typeof c>"u"&&r&&(c=n()),e(c,...s)}return o.unwrapped=e,o}var gd=B4();function H4(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function G4({type:e,reducerName:t,createNotation:n},r,o){let l,s;if("reducer"in r){if(n&&!Y4(r))throw new Error(Dn(17));l=r.reducer,s=r.prepare}else l=r;o.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,s?gl(e,s):gl(e))}function K4(e){return e._reducerDefinitionType==="asyncThunk"}function Y4(e){return e._reducerDefinitionType==="reducerWithPrepare"}function V4({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Dn(18));const{payloadCreator:l,fulfilled:s,pending:c,rejected:f,settled:h,options:p}=n,m=o(e,l,p);r.exposeAction(t,m),s&&r.addCase(m.fulfilled,s),c&&r.addCase(m.pending,c),f&&r.addCase(m.rejected,f),h&&r.addMatcher(m.settled,h),r.exposeCaseReducer(t,{fulfilled:s||Ec,pending:c||Ec,rejected:f||Ec,settled:h||Ec})}function Ec(){}var q4=(e,t)=>{if(typeof e!="function")throw new Error(Dn(32))},dg="listenerMiddleware",X4=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:l}=e;if(t)o=gl(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Dn(21));return q4(l),{predicate:o,type:t,effect:l}},Q4=Object.assign(e=>{const{type:t,predicate:n,effect:r}=X4(e);return{id:z4(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Dn(22))}}},{withTypes:()=>Q4}),Z4=Object.assign(gl(`${dg}/add`),{withTypes:()=>Z4});gl(`${dg}/removeAll`);var J4=Object.assign(gl(`${dg}/remove`),{withTypes:()=>J4});function Dn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const eL={warning:""},B_=gd({name:"warning",initialState:eL,reducers:{setWarning:(e,t)=>{e.warning=t.payload}}}),{setWarning:Dr}=B_.actions,tL=B_.reducer;var Af={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Af.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,p="__lodash_placeholder__",m=1,v=2,S=4,E=1,N=2,T=1,_=2,b=4,C=8,I=16,M=32,G=64,k=128,B=256,U=512,K=30,Z="...",he=800,be=16,J=1,oe=2,Ne=3,F=1/0,z=9007199254740991,te=17976931348623157e292,ne=NaN,ae=4294967295,pe=ae-1,Fe=ae>>>1,Ve=[["ary",k],["bind",T],["bindKey",_],["curry",C],["curryRight",I],["flip",U],["partial",M],["partialRight",G],["rearg",B]],qe="[object Arguments]",Me="[object Array]",bt="[object AsyncFunction]",Mt="[object Boolean]",Gt="[object Date]",Ue="[object DOMException]",Jn="[object Error]",Ge="[object Function]",dn="[object GeneratorFunction]",st="[object Map]",Sn="[object Number]",en="[object Null]",_n="[object Object]",Eo="[object Promise]",No="[object Proxy]",tn="[object RegExp]",jt="[object Set]",nn="[object String]",Mn="[object Symbol]",ko="[object Undefined]",br="[object WeakMap]",er="[object WeakSet]",Ft="[object ArrayBuffer]",rn="[object DataView]",Cn="[object Float32Array]",Ti="[object Float64Array]",St="[object Int8Array]",ni="[object Int16Array]",Ii="[object Int32Array]",Ai="[object Uint8Array]",Di="[object Uint8ClampedArray]",Li="[object Uint16Array]",Sr="[object Uint32Array]",va=/\b__p \+= '';/g,Ro=/\b(__p \+=) '' \+/g,Pl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dt=/&(?:amp|lt|gt|quot|#39);/g,zt=/[&<>"']/g,Ut=RegExp(dt.source),tr=RegExp(zt.source),A=/<%-([\s\S]+?)%>/g,j=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,ge=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ce=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(ce.source),ye=/^\s+/,Se=/\s/,tt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nt=/\{\n\/\* \[wrapped with (.+)\] \*/,me=/,? & /,Ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nt=/[()=,{}\[\]\/\s]/,Oo=/\\(\\)?/g,Hr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ri=/\w*$/,Mi=/^[-+]0x[0-9a-f]+$/i,ji=/^0b[01]+$/i,nr=/^\[object .+?Constructor\]$/,ga=/^0o[0-7]+$/i,ya=/^(?:0|[1-9]\d*)$/,wa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Oe=/($^)/,Kt=/['\n\r\u2028\u2029\\]/g,Yt="\\ud800-\\udfff",Ot="\\u0300-\\u036f",Po="\\ufe20-\\ufe2f",wu="\\u20d0-\\u20ff",xu=Ot+Po+wu,zg="\\u2700-\\u27bf",Ug="a-z\\xdf-\\xf6\\xf8-\\xff",xC="\\xac\\xb1\\xd7\\xf7",bC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",SC="\\u2000-\\u206f",_C=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$g="A-Z\\xc0-\\xd6\\xd8-\\xde",Bg="\\ufe0e\\ufe0f",Wg=xC+bC+SC+_C,Id="['’]",CC="["+Yt+"]",Hg="["+Wg+"]",bu="["+xu+"]",Gg="\\d+",EC="["+zg+"]",Kg="["+Ug+"]",Yg="[^"+Yt+Wg+Gg+zg+Ug+$g+"]",Ad="\\ud83c[\\udffb-\\udfff]",NC="(?:"+bu+"|"+Ad+")",Vg="[^"+Yt+"]",Dd="(?:\\ud83c[\\udde6-\\uddff]){2}",Ld="[\\ud800-\\udbff][\\udc00-\\udfff]",xa="["+$g+"]",qg="\\u200d",Xg="(?:"+Kg+"|"+Yg+")",kC="(?:"+xa+"|"+Yg+")",Qg="(?:"+Id+"(?:d|ll|m|re|s|t|ve))?",Zg="(?:"+Id+"(?:D|LL|M|RE|S|T|VE))?",Jg=NC+"?",ey="["+Bg+"]?",RC="(?:"+qg+"(?:"+[Vg,Dd,Ld].join("|")+")"+ey+Jg+")*",OC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",PC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ty=ey+Jg+RC,TC="(?:"+[EC,Dd,Ld].join("|")+")"+ty,IC="(?:"+[Vg+bu+"?",bu,Dd,Ld,CC].join("|")+")",AC=RegExp(Id,"g"),DC=RegExp(bu,"g"),Md=RegExp(Ad+"(?="+Ad+")|"+IC+ty,"g"),LC=RegExp([xa+"?"+Kg+"+"+Qg+"(?="+[Hg,xa,"$"].join("|")+")",kC+"+"+Zg+"(?="+[Hg,xa+Xg,"$"].join("|")+")",xa+"?"+Xg+"+"+Qg,xa+"+"+Zg,PC,OC,Gg,TC].join("|"),"g"),MC=RegExp("["+qg+Yt+xu+Bg+"]"),jC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FC=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zC=-1,rt={};rt[Cn]=rt[Ti]=rt[St]=rt[ni]=rt[Ii]=rt[Ai]=rt[Di]=rt[Li]=rt[Sr]=!0,rt[qe]=rt[Me]=rt[Ft]=rt[Mt]=rt[rn]=rt[Gt]=rt[Jn]=rt[Ge]=rt[st]=rt[Sn]=rt[_n]=rt[tn]=rt[jt]=rt[nn]=rt[br]=!1;var Je={};Je[qe]=Je[Me]=Je[Ft]=Je[rn]=Je[Mt]=Je[Gt]=Je[Cn]=Je[Ti]=Je[St]=Je[ni]=Je[Ii]=Je[st]=Je[Sn]=Je[_n]=Je[tn]=Je[jt]=Je[nn]=Je[Mn]=Je[Ai]=Je[Di]=Je[Li]=Je[Sr]=!0,Je[Jn]=Je[Ge]=Je[br]=!1;var UC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},$C={"&":"&","<":"<",">":">",'"':""","'":"'"},BC={"&":"&","<":"<",">":">",""":'"',"'":"'"},WC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HC=parseFloat,GC=parseInt,ny=typeof Kl=="object"&&Kl&&Kl.Object===Object&&Kl,KC=typeof self=="object"&&self&&self.Object===Object&&self,Vt=ny||KC||Function("return this")(),jd=t&&!t.nodeType&&t,To=jd&&!0&&e&&!e.nodeType&&e,ry=To&&To.exports===jd,Fd=ry&&ny.process,rr=function(){try{var D=To&&To.require&&To.require("util").types;return D||Fd&&Fd.binding&&Fd.binding("util")}catch{}}(),iy=rr&&rr.isArrayBuffer,oy=rr&&rr.isDate,ay=rr&&rr.isMap,ly=rr&&rr.isRegExp,sy=rr&&rr.isSet,uy=rr&&rr.isTypedArray;function jn(D,H,$){switch($.length){case 0:return D.call(H);case 1:return D.call(H,$[0]);case 2:return D.call(H,$[0],$[1]);case 3:return D.call(H,$[0],$[1],$[2])}return D.apply(H,$)}function YC(D,H,$,le){for(var _e=-1,$e=D==null?0:D.length;++_e<$e;){var Pt=D[_e];H(le,Pt,$(Pt),D)}return le}function ir(D,H){for(var $=-1,le=D==null?0:D.length;++$-1}function zd(D,H,$){for(var le=-1,_e=D==null?0:D.length;++le<_e;)if($(H,D[le]))return!0;return!1}function ut(D,H){for(var $=-1,le=D==null?0:D.length,_e=Array(le);++$-1;);return $}function gy(D,H){for(var $=D.length;$--&&ba(H,D[$],0)>-1;);return $}function nE(D,H){for(var $=D.length,le=0;$--;)D[$]===H&&++le;return le}var rE=Wd(UC),iE=Wd($C);function oE(D){return"\\"+WC[D]}function aE(D,H){return D==null?n:D[H]}function Sa(D){return MC.test(D)}function lE(D){return jC.test(D)}function sE(D){for(var H,$=[];!(H=D.next()).done;)$.push(H.value);return $}function Yd(D){var H=-1,$=Array(D.size);return D.forEach(function(le,_e){$[++H]=[_e,le]}),$}function yy(D,H){return function($){return D(H($))}}function Ui(D,H){for(var $=-1,le=D.length,_e=0,$e=[];++$-1}function qE(i,a){var u=this.__data__,d=zu(u,i);return d<0?(++this.size,u.push([i,a])):u[d][1]=a,this}ii.prototype.clear=GE,ii.prototype.delete=KE,ii.prototype.get=YE,ii.prototype.has=VE,ii.prototype.set=qE;function oi(i){var a=-1,u=i==null?0:i.length;for(this.clear();++a=a?i:a)),i}function lr(i,a,u,d,g,w){var R,P=a&m,L=a&v,Y=a&S;if(u&&(R=g?u(i,d,g,w):u(i)),R!==n)return R;if(!pt(i))return i;var V=Ee(i);if(V){if(R=JN(i),!P)return En(i,R)}else{var q=an(i),re=q==Ge||q==dn;if(Ki(i))return e0(i,P);if(q==_n||q==qe||re&&!g){if(R=L||re?{}:w0(i),!P)return L?BN(i,fN(R,i)):$N(i,Py(R,i))}else{if(!Je[q])return g?i:{};R=ek(i,q,P)}}w||(w=new Cr);var fe=w.get(i);if(fe)return fe;w.set(i,R),V0(i)?i.forEach(function(xe){R.add(lr(xe,a,u,xe,i,w))}):K0(i)&&i.forEach(function(xe,Te){R.set(Te,lr(xe,a,u,Te,i,w))});var we=Y?L?wp:yp:L?kn:$t,Re=V?n:we(i);return ir(Re||i,function(xe,Te){Re&&(Te=xe,xe=i[Te]),jl(R,Te,lr(xe,a,u,Te,i,w))}),R}function dN(i){var a=$t(i);return function(u){return Ty(u,i,a)}}function Ty(i,a,u){var d=u.length;if(i==null)return!d;for(i=Xe(i);d--;){var g=u[d],w=a[g],R=i[g];if(R===n&&!(g in i)||!w(R))return!1}return!0}function Iy(i,a,u){if(typeof i!="function")throw new or(s);return Hl(function(){i.apply(n,u)},a)}function Fl(i,a,u,d){var g=-1,w=Su,R=!0,P=i.length,L=[],Y=a.length;if(!P)return L;u&&(a=ut(a,Fn(u))),d?(w=zd,R=!1):a.length>=o&&(w=Tl,R=!1,a=new Do(a));e:for(;++gg?0:g+u),d=d===n||d>g?g:ke(d),d<0&&(d+=g),d=u>d?0:X0(d);u0&&u(P)?a>1?qt(P,a-1,u,d,g):zi(g,P):d||(g[g.length]=P)}return g}var ep=a0(),Ly=a0(!0);function Gr(i,a){return i&&ep(i,a,$t)}function tp(i,a){return i&&Ly(i,a,$t)}function $u(i,a){return Fi(a,function(u){return ci(i[u])})}function Mo(i,a){a=Hi(a,i);for(var u=0,d=a.length;i!=null&&ua}function mN(i,a){return i!=null&&Ke.call(i,a)}function vN(i,a){return i!=null&&a in Xe(i)}function gN(i,a,u){return i>=on(a,u)&&i=120&&V.length>=120)?new Do(R&&V):n}V=i[0];var q=-1,re=P[0];e:for(;++q-1;)P!==i&&Iu.call(P,L,1),Iu.call(i,L,1);return i}function Ky(i,a){for(var u=i?a.length:0,d=u-1;u--;){var g=a[u];if(u==d||g!==w){var w=g;ui(g)?Iu.call(i,g,1):fp(i,g)}}return i}function sp(i,a){return i+Lu(Ny()*(a-i+1))}function PN(i,a,u,d){for(var g=-1,w=Tt(Du((a-i)/(u||1)),0),R=$(w);w--;)R[d?w:++g]=i,i+=u;return R}function up(i,a){var u="";if(!i||a<1||a>z)return u;do a%2&&(u+=i),a=Lu(a/2),a&&(i+=i);while(a);return u}function Pe(i,a){return Np(S0(i,a,Rn),i+"")}function TN(i){return Oy(Aa(i))}function IN(i,a){var u=Aa(i);return Zu(u,Lo(a,0,u.length))}function $l(i,a,u,d){if(!pt(i))return i;a=Hi(a,i);for(var g=-1,w=a.length,R=w-1,P=i;P!=null&&++gg?0:g+a),u=u>g?g:u,u<0&&(u+=g),g=a>u?0:u-a>>>0,a>>>=0;for(var w=$(g);++d>>1,R=i[w];R!==null&&!Un(R)&&(u?R<=a:R=o){var Y=a?null:KN(i);if(Y)return Cu(Y);R=!1,g=Tl,L=new Do}else L=a?[]:P;e:for(;++d=d?i:sr(i,a,u)}var Jy=_E||function(i){return Vt.clearTimeout(i)};function e0(i,a){if(a)return i.slice();var u=i.length,d=by?by(u):new i.constructor(u);return i.copy(d),d}function mp(i){var a=new i.constructor(i.byteLength);return new Pu(a).set(new Pu(i)),a}function jN(i,a){var u=a?mp(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}function FN(i){var a=new i.constructor(i.source,ri.exec(i));return a.lastIndex=i.lastIndex,a}function zN(i){return Ml?Xe(Ml.call(i)):{}}function t0(i,a){var u=a?mp(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}function n0(i,a){if(i!==a){var u=i!==n,d=i===null,g=i===i,w=Un(i),R=a!==n,P=a===null,L=a===a,Y=Un(a);if(!P&&!Y&&!w&&i>a||w&&R&&L&&!P&&!Y||d&&R&&L||!u&&L||!g)return 1;if(!d&&!w&&!Y&&i=P)return L;var Y=u[d];return L*(Y=="desc"?-1:1)}}return i.index-a.index}function r0(i,a,u,d){for(var g=-1,w=i.length,R=u.length,P=-1,L=a.length,Y=Tt(w-R,0),V=$(L+Y),q=!d;++P1?u[g-1]:n,R=g>2?u[2]:n;for(w=i.length>3&&typeof w=="function"?(g--,w):n,R&&hn(u[0],u[1],R)&&(w=g<3?n:w,g=1),a=Xe(a);++d-1?g[w?a[R]:R]:n}}function u0(i){return si(function(a){var u=a.length,d=u,g=ar.prototype.thru;for(i&&a.reverse();d--;){var w=a[d];if(typeof w!="function")throw new or(s);if(g&&!R&&Xu(w)=="wrapper")var R=new ar([],!0)}for(d=R?d:u;++d1&&je.reverse(),V&&LP))return!1;var Y=w.get(i),V=w.get(a);if(Y&&V)return Y==a&&V==i;var q=-1,re=!0,fe=u&N?new Do:n;for(w.set(i,a),w.set(a,i);++q1?"& ":"")+a[d],a=a.join(u>2?", ":" "),i.replace(tt,`{ -/* [wrapped with `+a+`] */ -`)}function nk(i){return Ee(i)||zo(i)||!!(Cy&&i&&i[Cy])}function ui(i,a){var u=typeof i;return a=a??z,!!a&&(u=="number"||u!="symbol"&&ya.test(i))&&i>-1&&i%1==0&&i0){if(++a>=he)return arguments[0]}else a=0;return i.apply(n,arguments)}}function Zu(i,a){var u=-1,d=i.length,g=d-1;for(a=a===n?d:a;++u1?i[a-1]:n;return u=typeof u=="function"?(i.pop(),u):n,D0(i,u)});function L0(i){var a=y(i);return a.__chain__=!0,a}function pR(i,a){return a(i),i}function Ju(i,a){return a(i)}var hR=si(function(i){var a=i.length,u=a?i[0]:0,d=this.__wrapped__,g=function(w){return Jd(w,i)};return a>1||this.__actions__.length||!(d instanceof Le)||!ui(u)?this.thru(g):(d=d.slice(u,+u+(a?1:0)),d.__actions__.push({func:Ju,args:[g],thisArg:n}),new ar(d,this.__chain__).thru(function(w){return a&&!w.length&&w.push(n),w}))});function mR(){return L0(this)}function vR(){return new ar(this.value(),this.__chain__)}function gR(){this.__values__===n&&(this.__values__=q0(this.value()));var i=this.__index__>=this.__values__.length,a=i?n:this.__values__[this.__index__++];return{done:i,value:a}}function yR(){return this}function wR(i){for(var a,u=this;u instanceof Fu;){var d=R0(u);d.__index__=0,d.__values__=n,a?g.__wrapped__=d:a=d;var g=d;u=u.__wrapped__}return g.__wrapped__=i,a}function xR(){var i=this.__wrapped__;if(i instanceof Le){var a=i;return this.__actions__.length&&(a=new Le(this)),a=a.reverse(),a.__actions__.push({func:Ju,args:[kp],thisArg:n}),new ar(a,this.__chain__)}return this.thru(kp)}function bR(){return Qy(this.__wrapped__,this.__actions__)}var SR=Gu(function(i,a,u){Ke.call(i,u)?++i[u]:ai(i,u,1)});function _R(i,a,u){var d=Ee(i)?cy:pN;return u&&hn(i,a,u)&&(a=n),d(i,ve(a,3))}function CR(i,a){var u=Ee(i)?Fi:Dy;return u(i,ve(a,3))}var ER=s0(O0),NR=s0(P0);function kR(i,a){return qt(ec(i,a),1)}function RR(i,a){return qt(ec(i,a),F)}function OR(i,a,u){return u=u===n?1:ke(u),qt(ec(i,a),u)}function M0(i,a){var u=Ee(i)?ir:Bi;return u(i,ve(a,3))}function j0(i,a){var u=Ee(i)?VC:Ay;return u(i,ve(a,3))}var PR=Gu(function(i,a,u){Ke.call(i,u)?i[u].push(a):ai(i,u,[a])});function TR(i,a,u,d){i=Nn(i)?i:Aa(i),u=u&&!d?ke(u):0;var g=i.length;return u<0&&(u=Tt(g+u,0)),oc(i)?u<=g&&i.indexOf(a,u)>-1:!!g&&ba(i,a,u)>-1}var IR=Pe(function(i,a,u){var d=-1,g=typeof a=="function",w=Nn(i)?$(i.length):[];return Bi(i,function(R){w[++d]=g?jn(a,R,u):zl(R,a,u)}),w}),AR=Gu(function(i,a,u){ai(i,u,a)});function ec(i,a){var u=Ee(i)?ut:Uy;return u(i,ve(a,3))}function DR(i,a,u,d){return i==null?[]:(Ee(a)||(a=a==null?[]:[a]),u=d?n:u,Ee(u)||(u=u==null?[]:[u]),Hy(i,a,u))}var LR=Gu(function(i,a,u){i[u?0:1].push(a)},function(){return[[],[]]});function MR(i,a,u){var d=Ee(i)?Ud:hy,g=arguments.length<3;return d(i,ve(a,4),u,g,Bi)}function jR(i,a,u){var d=Ee(i)?qC:hy,g=arguments.length<3;return d(i,ve(a,4),u,g,Ay)}function FR(i,a){var u=Ee(i)?Fi:Dy;return u(i,rc(ve(a,3)))}function zR(i){var a=Ee(i)?Oy:TN;return a(i)}function UR(i,a,u){(u?hn(i,a,u):a===n)?a=1:a=ke(a);var d=Ee(i)?sN:IN;return d(i,a)}function $R(i){var a=Ee(i)?uN:DN;return a(i)}function BR(i){if(i==null)return 0;if(Nn(i))return oc(i)?_a(i):i.length;var a=an(i);return a==st||a==jt?i.size:op(i).length}function WR(i,a,u){var d=Ee(i)?$d:LN;return u&&hn(i,a,u)&&(a=n),d(i,ve(a,3))}var HR=Pe(function(i,a){if(i==null)return[];var u=a.length;return u>1&&hn(i,a[0],a[1])?a=[]:u>2&&hn(a[0],a[1],a[2])&&(a=[a[0]]),Hy(i,qt(a,1),[])}),tc=CE||function(){return Vt.Date.now()};function GR(i,a){if(typeof a!="function")throw new or(s);return i=ke(i),function(){if(--i<1)return a.apply(this,arguments)}}function F0(i,a,u){return a=u?n:a,a=i&&a==null?i.length:a,li(i,k,n,n,n,n,a)}function z0(i,a){var u;if(typeof a!="function")throw new or(s);return i=ke(i),function(){return--i>0&&(u=a.apply(this,arguments)),i<=1&&(a=n),u}}var Op=Pe(function(i,a,u){var d=T;if(u.length){var g=Ui(u,Ta(Op));d|=M}return li(i,d,a,u,g)}),U0=Pe(function(i,a,u){var d=T|_;if(u.length){var g=Ui(u,Ta(U0));d|=M}return li(a,d,i,u,g)});function $0(i,a,u){a=u?n:a;var d=li(i,C,n,n,n,n,n,a);return d.placeholder=$0.placeholder,d}function B0(i,a,u){a=u?n:a;var d=li(i,I,n,n,n,n,n,a);return d.placeholder=B0.placeholder,d}function W0(i,a,u){var d,g,w,R,P,L,Y=0,V=!1,q=!1,re=!0;if(typeof i!="function")throw new or(s);a=cr(a)||0,pt(u)&&(V=!!u.leading,q="maxWait"in u,w=q?Tt(cr(u.maxWait)||0,a):w,re="trailing"in u?!!u.trailing:re);function fe(Ct){var Nr=d,di=g;return d=g=n,Y=Ct,R=i.apply(di,Nr),R}function we(Ct){return Y=Ct,P=Hl(Te,a),V?fe(Ct):R}function Re(Ct){var Nr=Ct-L,di=Ct-Y,s1=a-Nr;return q?on(s1,w-di):s1}function xe(Ct){var Nr=Ct-L,di=Ct-Y;return L===n||Nr>=a||Nr<0||q&&di>=w}function Te(){var Ct=tc();if(xe(Ct))return je(Ct);P=Hl(Te,Re(Ct))}function je(Ct){return P=n,re&&d?fe(Ct):(d=g=n,R)}function $n(){P!==n&&Jy(P),Y=0,d=L=g=P=n}function mn(){return P===n?R:je(tc())}function Bn(){var Ct=tc(),Nr=xe(Ct);if(d=arguments,g=this,L=Ct,Nr){if(P===n)return we(L);if(q)return Jy(P),P=Hl(Te,a),fe(L)}return P===n&&(P=Hl(Te,a)),R}return Bn.cancel=$n,Bn.flush=mn,Bn}var KR=Pe(function(i,a){return Iy(i,1,a)}),YR=Pe(function(i,a,u){return Iy(i,cr(a)||0,u)});function VR(i){return li(i,U)}function nc(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new or(s);var u=function(){var d=arguments,g=a?a.apply(this,d):d[0],w=u.cache;if(w.has(g))return w.get(g);var R=i.apply(this,d);return u.cache=w.set(g,R)||w,R};return u.cache=new(nc.Cache||oi),u}nc.Cache=oi;function rc(i){if(typeof i!="function")throw new or(s);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function qR(i){return z0(2,i)}var XR=MN(function(i,a){a=a.length==1&&Ee(a[0])?ut(a[0],Fn(ve())):ut(qt(a,1),Fn(ve()));var u=a.length;return Pe(function(d){for(var g=-1,w=on(d.length,u);++g=a}),zo=jy(function(){return arguments}())?jy:function(i){return yt(i)&&Ke.call(i,"callee")&&!_y.call(i,"callee")},Ee=$.isArray,fO=iy?Fn(iy):wN;function Nn(i){return i!=null&&ic(i.length)&&!ci(i)}function _t(i){return yt(i)&&Nn(i)}function dO(i){return i===!0||i===!1||yt(i)&&pn(i)==Mt}var Ki=NE||$p,pO=oy?Fn(oy):xN;function hO(i){return yt(i)&&i.nodeType===1&&!Gl(i)}function mO(i){if(i==null)return!0;if(Nn(i)&&(Ee(i)||typeof i=="string"||typeof i.splice=="function"||Ki(i)||Ia(i)||zo(i)))return!i.length;var a=an(i);if(a==st||a==jt)return!i.size;if(Wl(i))return!op(i).length;for(var u in i)if(Ke.call(i,u))return!1;return!0}function vO(i,a){return Ul(i,a)}function gO(i,a,u){u=typeof u=="function"?u:n;var d=u?u(i,a):n;return d===n?Ul(i,a,n,u):!!d}function Tp(i){if(!yt(i))return!1;var a=pn(i);return a==Jn||a==Ue||typeof i.message=="string"&&typeof i.name=="string"&&!Gl(i)}function yO(i){return typeof i=="number"&&Ey(i)}function ci(i){if(!pt(i))return!1;var a=pn(i);return a==Ge||a==dn||a==bt||a==No}function G0(i){return typeof i=="number"&&i==ke(i)}function ic(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=z}function pt(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function yt(i){return i!=null&&typeof i=="object"}var K0=ay?Fn(ay):SN;function wO(i,a){return i===a||ip(i,a,bp(a))}function xO(i,a,u){return u=typeof u=="function"?u:n,ip(i,a,bp(a),u)}function bO(i){return Y0(i)&&i!=+i}function SO(i){if(ok(i))throw new _e(l);return Fy(i)}function _O(i){return i===null}function CO(i){return i==null}function Y0(i){return typeof i=="number"||yt(i)&&pn(i)==Sn}function Gl(i){if(!yt(i)||pn(i)!=_n)return!1;var a=Tu(i);if(a===null)return!0;var u=Ke.call(a,"constructor")&&a.constructor;return typeof u=="function"&&u instanceof u&&ku.call(u)==xE}var Ip=ly?Fn(ly):_N;function EO(i){return G0(i)&&i>=-z&&i<=z}var V0=sy?Fn(sy):CN;function oc(i){return typeof i=="string"||!Ee(i)&&yt(i)&&pn(i)==nn}function Un(i){return typeof i=="symbol"||yt(i)&&pn(i)==Mn}var Ia=uy?Fn(uy):EN;function NO(i){return i===n}function kO(i){return yt(i)&&an(i)==br}function RO(i){return yt(i)&&pn(i)==er}var OO=qu(ap),PO=qu(function(i,a){return i<=a});function q0(i){if(!i)return[];if(Nn(i))return oc(i)?_r(i):En(i);if(Il&&i[Il])return sE(i[Il]());var a=an(i),u=a==st?Yd:a==jt?Cu:Aa;return u(i)}function fi(i){if(!i)return i===0?i:0;if(i=cr(i),i===F||i===-F){var a=i<0?-1:1;return a*te}return i===i?i:0}function ke(i){var a=fi(i),u=a%1;return a===a?u?a-u:a:0}function X0(i){return i?Lo(ke(i),0,ae):0}function cr(i){if(typeof i=="number")return i;if(Un(i))return ne;if(pt(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=pt(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=my(i);var u=ji.test(i);return u||ga.test(i)?GC(i.slice(2),u?2:8):Mi.test(i)?ne:+i}function Q0(i){return Kr(i,kn(i))}function TO(i){return i?Lo(ke(i),-z,z):i===0?i:0}function Be(i){return i==null?"":zn(i)}var IO=Oa(function(i,a){if(Wl(a)||Nn(a)){Kr(a,$t(a),i);return}for(var u in a)Ke.call(a,u)&&jl(i,u,a[u])}),Z0=Oa(function(i,a){Kr(a,kn(a),i)}),ac=Oa(function(i,a,u,d){Kr(a,kn(a),i,d)}),AO=Oa(function(i,a,u,d){Kr(a,$t(a),i,d)}),DO=si(Jd);function LO(i,a){var u=Ra(i);return a==null?u:Py(u,a)}var MO=Pe(function(i,a){i=Xe(i);var u=-1,d=a.length,g=d>2?a[2]:n;for(g&&hn(a[0],a[1],g)&&(d=1);++u1),w}),Kr(i,wp(i),u),d&&(u=lr(u,m|v|S,YN));for(var g=a.length;g--;)fp(u,a[g]);return u});function eP(i,a){return e1(i,rc(ve(a)))}var tP=si(function(i,a){return i==null?{}:RN(i,a)});function e1(i,a){if(i==null)return{};var u=ut(wp(i),function(d){return[d]});return a=ve(a),Gy(i,u,function(d,g){return a(d,g[0])})}function nP(i,a,u){a=Hi(a,i);var d=-1,g=a.length;for(g||(g=1,i=n);++da){var d=i;i=a,a=d}if(u||i%1||a%1){var g=Ny();return on(i+g*(a-i+HC("1e-"+((g+"").length-1))),a)}return sp(i,a)}var pP=Pa(function(i,a,u){return a=a.toLowerCase(),i+(u?r1(a):a)});function r1(i){return Lp(Be(i).toLowerCase())}function i1(i){return i=Be(i),i&&i.replace(wa,rE).replace(DC,"")}function hP(i,a,u){i=Be(i),a=zn(a);var d=i.length;u=u===n?d:Lo(ke(u),0,d);var g=u;return u-=a.length,u>=0&&i.slice(u,g)==a}function mP(i){return i=Be(i),i&&tr.test(i)?i.replace(zt,iE):i}function vP(i){return i=Be(i),i&&ie.test(i)?i.replace(ce,"\\$&"):i}var gP=Pa(function(i,a,u){return i+(u?"-":"")+a.toLowerCase()}),yP=Pa(function(i,a,u){return i+(u?" ":"")+a.toLowerCase()}),wP=l0("toLowerCase");function xP(i,a,u){i=Be(i),a=ke(a);var d=a?_a(i):0;if(!a||d>=a)return i;var g=(a-d)/2;return Vu(Lu(g),u)+i+Vu(Du(g),u)}function bP(i,a,u){i=Be(i),a=ke(a);var d=a?_a(i):0;return a&&d>>0,u?(i=Be(i),i&&(typeof a=="string"||a!=null&&!Ip(a))&&(a=zn(a),!a&&Sa(i))?Gi(_r(i),0,u):i.split(a,u)):[]}var RP=Pa(function(i,a,u){return i+(u?" ":"")+Lp(a)});function OP(i,a,u){return i=Be(i),u=u==null?0:Lo(ke(u),0,i.length),a=zn(a),i.slice(u,u+a.length)==a}function PP(i,a,u){var d=y.templateSettings;u&&hn(i,a,u)&&(a=n),i=Be(i),a=ac({},a,d,h0);var g=ac({},a.imports,d.imports,h0),w=$t(g),R=Kd(g,w),P,L,Y=0,V=a.interpolate||Oe,q="__p += '",re=Vd((a.escape||Oe).source+"|"+V.source+"|"+(V===W?Hr:Oe).source+"|"+(a.evaluate||Oe).source+"|$","g"),fe="//# sourceURL="+(Ke.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zC+"]")+` -`;i.replace(re,function(xe,Te,je,$n,mn,Bn){return je||(je=$n),q+=i.slice(Y,Bn).replace(Kt,oE),Te&&(P=!0,q+=`' + -__e(`+Te+`) + -'`),mn&&(L=!0,q+=`'; -`+mn+`; -__p += '`),je&&(q+=`' + -((__t = (`+je+`)) == null ? '' : __t) + -'`),Y=Bn+xe.length,xe}),q+=`'; -`;var we=Ke.call(a,"variable")&&a.variable;if(!we)q=`with (obj) { -`+q+` -} -`;else if(Nt.test(we))throw new _e(c);q=(L?q.replace(va,""):q).replace(Ro,"$1").replace(Pl,"$1;"),q="function("+(we||"obj")+`) { -`+(we?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(P?", __e = _.escape":"")+(L?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+q+`return __p -}`;var Re=a1(function(){return $e(w,fe+"return "+q).apply(n,R)});if(Re.source=q,Tp(Re))throw Re;return Re}function TP(i){return Be(i).toLowerCase()}function IP(i){return Be(i).toUpperCase()}function AP(i,a,u){if(i=Be(i),i&&(u||a===n))return my(i);if(!i||!(a=zn(a)))return i;var d=_r(i),g=_r(a),w=vy(d,g),R=gy(d,g)+1;return Gi(d,w,R).join("")}function DP(i,a,u){if(i=Be(i),i&&(u||a===n))return i.slice(0,wy(i)+1);if(!i||!(a=zn(a)))return i;var d=_r(i),g=gy(d,_r(a))+1;return Gi(d,0,g).join("")}function LP(i,a,u){if(i=Be(i),i&&(u||a===n))return i.replace(ye,"");if(!i||!(a=zn(a)))return i;var d=_r(i),g=vy(d,_r(a));return Gi(d,g).join("")}function MP(i,a){var u=K,d=Z;if(pt(a)){var g="separator"in a?a.separator:g;u="length"in a?ke(a.length):u,d="omission"in a?zn(a.omission):d}i=Be(i);var w=i.length;if(Sa(i)){var R=_r(i);w=R.length}if(u>=w)return i;var P=u-_a(d);if(P<1)return d;var L=R?Gi(R,0,P).join(""):i.slice(0,P);if(g===n)return L+d;if(R&&(P+=L.length-P),Ip(g)){if(i.slice(P).search(g)){var Y,V=L;for(g.global||(g=Vd(g.source,Be(ri.exec(g))+"g")),g.lastIndex=0;Y=g.exec(V);)var q=Y.index;L=L.slice(0,q===n?P:q)}}else if(i.indexOf(zn(g),P)!=P){var re=L.lastIndexOf(g);re>-1&&(L=L.slice(0,re))}return L+d}function jP(i){return i=Be(i),i&&Ut.test(i)?i.replace(dt,dE):i}var FP=Pa(function(i,a,u){return i+(u?" ":"")+a.toUpperCase()}),Lp=l0("toUpperCase");function o1(i,a,u){return i=Be(i),a=u?n:a,a===n?lE(i)?mE(i):ZC(i):i.match(a)||[]}var a1=Pe(function(i,a){try{return jn(i,n,a)}catch(u){return Tp(u)?u:new _e(u)}}),zP=si(function(i,a){return ir(a,function(u){u=Yr(u),ai(i,u,Op(i[u],i))}),i});function UP(i){var a=i==null?0:i.length,u=ve();return i=a?ut(i,function(d){if(typeof d[1]!="function")throw new or(s);return[u(d[0]),d[1]]}):[],Pe(function(d){for(var g=-1;++gz)return[];var u=ae,d=on(i,ae);a=ve(a),i-=ae;for(var g=Gd(d,a);++u0||a<0)?new Le(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),a!==n&&(a=ke(a),u=a<0?u.dropRight(-a):u.take(a-i)),u)},Le.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Le.prototype.toArray=function(){return this.take(ae)},Gr(Le.prototype,function(i,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),d=/^(?:head|last)$/.test(a),g=y[d?"take"+(a=="last"?"Right":""):a],w=d||/^find/.test(a);g&&(y.prototype[a]=function(){var R=this.__wrapped__,P=d?[1]:arguments,L=R instanceof Le,Y=P[0],V=L||Ee(R),q=function(Te){var je=g.apply(y,zi([Te],P));return d&&re?je[0]:je};V&&u&&typeof Y=="function"&&Y.length!=1&&(L=V=!1);var re=this.__chain__,fe=!!this.__actions__.length,we=w&&!re,Re=L&&!fe;if(!w&&V){R=Re?R:new Le(this);var xe=i.apply(R,P);return xe.__actions__.push({func:Ju,args:[q],thisArg:n}),new ar(xe,re)}return we&&Re?i.apply(this,P):(xe=this.thru(q),we?d?xe.value()[0]:xe.value():xe)})}),ir(["pop","push","shift","sort","splice","unshift"],function(i){var a=Eu[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",d=/^(?:pop|shift)$/.test(i);y.prototype[i]=function(){var g=arguments;if(d&&!this.__chain__){var w=this.value();return a.apply(Ee(w)?w:[],g)}return this[u](function(R){return a.apply(Ee(R)?R:[],g)})}}),Gr(Le.prototype,function(i,a){var u=y[a];if(u){var d=u.name+"";Ke.call(ka,d)||(ka[d]=[]),ka[d].push({name:a,func:u})}}),ka[Ku(n,_).name]=[{name:"wrapper",func:n}],Le.prototype.clone=jE,Le.prototype.reverse=FE,Le.prototype.value=zE,y.prototype.at=hR,y.prototype.chain=mR,y.prototype.commit=vR,y.prototype.next=gR,y.prototype.plant=wR,y.prototype.reverse=xR,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=bR,y.prototype.first=y.prototype.head,Il&&(y.prototype[Il]=yR),y},Ca=vE();To?((To.exports=Ca)._=Ca,jd._=Ca):Vt._=Ca}).call(Kl)})(Af,Af.exports);var Ho=Af.exports;const nL={chefInstructions:[],currentInstruction:null,availableItems:[]},W_=gd({name:"chefActions",initialState:nL,reducers:{resetChefInstructions:e=>{e.chefInstructions=[]},setCustomInstructionItem:(e,t)=>{const n=e.chefInstructions.find(r=>r.id===t.payload.id);n&&(n.customItem=t.payload.customItem)},addChefInstruction:(e,t)=>{e.chefInstructions.push(t.payload)},removeChefInstruction:(e,t)=>{e.chefInstructions.find(r=>Ho.isEqual(r,t.payload))&&(e.chefInstructions=e.chefInstructions.filter(r=>!Ho.isEqual(r,t.payload)))},updateChefInstructionItems:(e,t)=>{const n=e.chefInstructions.find(r=>r.id===t.payload.id);if(n){const r={...n,items:t.payload.items};e.chefInstructions=e.chefInstructions.filter(o=>!Ho.isEqual(o,n)),e.chefInstructions.push(r)}},updateInstructionTime:(e,t)=>{const{instruction:n,time:r}=t.payload,o=e.chefInstructions.find(l=>Ho.isEqual(l,n));o&&(o.action.time=r)},updateInstructionAction:(e,t)=>{const n=e.chefInstructions.find(r=>r.id===t.payload.id);n&&(n.action=t.payload.action)},updateInstructionNote:(e,t)=>{const n=e.chefInstructions.find(r=>r.id===t.payload.id);n&&(n.note=t.payload.note)},setAvailableItems:(e,t)=>{e.availableItems=t.payload},updateAvailableItem:(e,t)=>{const n=e.availableItems.findIndex(r=>Ho.isEqual(r,t.payload));n===-1?e.availableItems.push(t.payload):e.availableItems.splice(n,1)},updateAvailableItems:(e,t)=>{e.availableItems.push(...t.payload)}}}),{resetChefInstructions:rL,setCustomInstructionItem:iL,addChefInstruction:oL,removeChefInstruction:aL,updateChefInstructionItems:H_,updateInstructionTime:lL,updateInstructionAction:sL,updateInstructionNote:Nc,setAvailableItems:uL,updateAvailableItem:pg,updateAvailableItems:cL}=W_.actions,fL=W_.reducer;function sa({page:e,isNext:t}){const n=lg(),r=wn(),o=He(p=>p.recipe.title),l=He(p=>p.groups.ingredientsGroups),s=He(p=>p.actions.chefInstructions),c=async()=>{const p=l.flatMap(S=>S.items.flat()),m=p.every(S=>S.amount>0),v=p.every(S=>S.unit!==ml);return m&&v},f=async()=>{const p=s.every(v=>v.items.length>0||v.customItem),m=s.every(v=>v.action.time!==0);return s.length>0&&p&&m},h=async()=>{if(t){let p=!1,m="";if(e==="/quantities"&&(o.length>0&&l.length>0?p=!0:m="You must have a Recipe Title and ingredients!"),e==="/instructions")if(await c()){p=!0;const v=l.flatMap(S=>S.items.flat());r(uL(v))}else m="Fill in all quantities and units!";(e==="/print"||e==="/doublePrint")&&(await f()?p=!0:m="Create some instructions with ingredients!"),p?(r(Dr("")),n(e)):r(Dr(m))}else r(Dr("")),n(e)};return x.jsx("div",{"data-testid":t?"next":"back",onKeyDown:Oi,onClick:h,children:t?x.jsx("button",{className:"go-to-button-arrow right-0 bg-green-500 hover:bg-green-400 hover:translate-x-4",type:"button",children:"NEXT"}):x.jsx("button",{className:"go-to-button-arrow left-0 bg-red-500 hover:bg-red-400 hover:-translate-x-4",type:"button",children:"BACK"})})}function G_(){return x.jsx("div",{"data-testid":"print",onKeyDown:Oi,onClick:()=>console.log("here"),children:x.jsxs("button",{type:"button",className:"print-to-a4-button",children:["PRINT",x.jsx("br",{}),"TO A4"]})})}const to=["All-purpose flour","Almond flour","Almond milk","Apples","Artichoke","Asparagus","Avocado","Bacon","Baguette","Baking powder","Baking soda","Banana","Barley","Basil","Bay leaves","Beans","Bean sprouts","Beets","Black beans","Black-eyed peas","Black olives","Black pepper","Blueberries","Bread","Bread buns","Bread crumbs","Bread flour","Broccoli","Brown butter","Brown lentils","Brown rice","Brown sugar","Brussels sprouts","Butter","Buttermilk","Cabbage","Cake flour","Candied ginger","Carrots","Cashew nuts","Cauliflower","Celery","Cheddar cheese","Cherries","Chia seeds","Chicken breasts","Chicken broth","Chickpeas","Chili powder","Cilantro","Cinnamon","Cloves","Cocoa nibs","Cocoa powder","Coconut milk","Coconut oil","Condensed milk","Cornmeal","Cornstarch","Corn syrup","Couscous","Cranberries","Cream cheese","Cumin","Dark chocolate","Dill","Eggs","Eggwhite","Fennel","Feta cheese","Fish sauce","Garlic","Gelatin","Ginger","Goat cheese","Grapes","Graham crackers","Greek yogurt","Green beans","Green lentils","Green olives","Ground beef","Ham","Hazelnuts","Heavy cream","Honey","Hot sauce","Kale","Ketchup","Leek","Lemon","Lemon juice","Lemon zest","Lentils","Lima beans","Lime","Macadamia nuts","Maple syrup","Marzipan","Mayonnaise","Milk","Molasses","Mozzarella cheese","Mung beans","Mushrooms","Mustard","Nutmeg","Oats","Olive oil","Onion","Orange","Oregano","Paprika","Parmesan cheese","Parsley","Pasta","Peas","Pecan flour","Pecans","Pecorino cheese","Pineapple","Pine nuts","Poppy seeds","Pork chop","Potatoes","Powdered sugar","Quinoa","Raisins","Raspberries","Red Bell Pepper","Red pepper flakes","Rice","Ricotta cheese","Rosemary","Salmon","Salt","Sausage","Seasoning","Shortening","Sliced bread","Sour cream","Soy sauce","Spinach","Sugar","Swiss cheese","Thyme","Tomato paste","Tomato sauce","Turkey","Vanilla bean","Vanilla extract","Vanilla sugar","Vegetable oil","Vinegar","Water","Walnuts","White chocolate","Whole wheat flour","Yeast","Yellow Bell Pepper","Yogurt","Yolk","Zucchini"],kc=["mg","g","kg","ml","liter","whole","quart","pint","lbs","oz","tsp","tbsp","cup","can"],Zw=[ml,"gallon","piece","slice","strip","drop","dash","smidgen","bunch","jar","stick","clove","head","fillet","block","sheet","pack","packet","bag","bar","cube","handful","bottle","sprig","stalk","ear","bowl","scoop","dozen","pinch"],dL=[{actionName:"Add",time:-1,unit:"min",equipment:"hand"},{actionName:"Bake",time:20,unit:"min",equipment:"oven"},{actionName:"Blanch",time:1,unit:"min",equipment:"stove"},{actionName:"Blend",time:-1,unit:"min",equipment:"blender"},{actionName:"Boil",time:5,unit:"min",equipment:"stove"},{actionName:"Braise",time:10,unit:"min",equipment:"oven"},{actionName:"Broil",time:20,unit:"min",equipment:"broiler"},{actionName:"Chill",time:5,unit:"min",equipment:"hand"},{actionName:"Chop",time:-1,unit:"min",equipment:"knife"},{actionName:"Core",time:-1,unit:"min",equipment:"corer"},{actionName:"Cure",time:5,unit:"hours",equipment:"refrigerator"},{actionName:"Dice",time:-1,unit:"min",equipment:"knife"},{actionName:"Dress",time:-1,unit:"min",equipment:"none"},{actionName:"Emulsify",time:-1,unit:"min",equipment:"blender"},{actionName:"Fold",time:-1,unit:"min",equipment:"spatula"},{actionName:"Ferment",time:24,unit:"hours",equipment:"refrigerator"},{actionName:"Fry",time:5,unit:"min",equipment:"stove"},{actionName:"Garnish",time:-1,unit:"min",equipment:"none"},{actionName:"Glaze",time:-1,unit:"min",equipment:"brush"},{actionName:"Grate",time:-1,unit:"min",equipment:"grater"},{actionName:"Grill",time:20,unit:"min",equipment:"grill"},{actionName:"Infuse",time:-1,unit:"min",equipment:"stove"},{actionName:"Knead",time:10,unit:"min",equipment:"stand mixer"},{actionName:"Marinate",time:8,unit:"hours",equipment:"refrigerator"},{actionName:"Mince",time:-1,unit:"min",equipment:"knife"},{actionName:"Mix",time:-1,unit:"min",equipment:"bowl"},{actionName:"Peel",time:-1,unit:"min",equipment:"peeler"},{actionName:"Poach",time:8,unit:"min",equipment:"stove"},{actionName:"Purée",time:-1,unit:"min",equipment:"food processor"},{actionName:"Roast",time:20,unit:"min",equipment:"oven"},{actionName:"Sauté",time:5,unit:"min",equipment:"stove"},{actionName:"Score",time:-1,unit:"min",equipment:"knife"},{actionName:"Sear",time:2,unit:"min",equipment:"stove"},{actionName:"Season",time:-1,unit:"min",equipment:"none"},{actionName:"Shred",time:-1,unit:"min",equipment:"grater"},{actionName:"Sieve",time:-1,unit:"min",equipment:"sieve"},{actionName:"Simmer",time:30,unit:"min",equipment:"stove"},{actionName:"Slice",time:-1,unit:"min",equipment:"knife"},{actionName:"Smoke",time:2,unit:"hours",equipment:"smoker"},{actionName:"Steam",time:10,unit:"min",equipment:"steamer"},{actionName:"Stew",time:45,unit:"min",equipment:"slow cooker"},{actionName:"Strain",time:-1,unit:"min",equipment:"strainer"},{actionName:"Toast",time:2,unit:"min",equipment:"toaster"},{actionName:"Trim",time:-1,unit:"min",equipment:"knife"},{actionName:"Warm",time:5,unit:"min",equipment:"hand"},{actionName:"Whisk",time:5,unit:"min",equipment:"hand mixer"}],pL={title:"Mock",currentItem:"",currentGroupName:"",possibleItems:to,batches:1,invalidState:!1},K_=gd({name:"recipe",initialState:pL,reducers:{resetRecipe:e=>{e.title="",e.currentItem="",e.currentGroupName="",e.possibleItems=to,e.batches=1,e.invalidState=!1},toggleInvalidState:e=>{e.invalidState=!e.invalidState},nameRecipe:(e,t)=>{e.title=t.payload},nameGroup:(e,t)=>{e.currentGroupName=t.payload},setItem:(e,t)=>{e.currentItem=t.payload},updatePossibleItems:(e,t)=>{e.possibleItems=to.filter(n=>n.toLowerCase().includes(t.payload.toLowerCase()))},setBatches:(e,t)=>{e.batches=t.payload}}}),{nameRecipe:hL,nameGroup:Y_,setItem:mL,updatePossibleItems:vL,setBatches:XF,resetRecipe:V_,toggleInvalidState:QF}=K_.actions,gL=K_.reducer,yL={ingredientsGroups:[]},q_=gd({name:"groups",initialState:yL,reducers:{resetIngredientsGroup:e=>{e.ingredientsGroups=[]},addItemToIngredientGroup:(e,t)=>{const{groupName:n,itemName:r,item:o}=t.payload,l=e.ingredientsGroups.find(s=>s.groupName===n);if(l)if(o)l.items.push(o);else{const s={itemName:r,amount:0,unit:ml};l.items.push(s)}else e.ingredientsGroups.push({groupName:n,items:[{itemName:r,amount:0,unit:ml}]})},removeItemFromIngredientGroup:(e,t)=>{const{groupName:n,itemName:r}=t.payload,o=e.ingredientsGroups.find(l=>l.groupName===n);if(o){const l=o.items.findIndex(s=>s.itemName===r);l!==-1&&o.items.splice(l,1),o.items.length===0&&(e.ingredientsGroups=e.ingredientsGroups.filter(s=>s.groupName!==n))}},updateAmount:(e,t)=>{const{groupName:n,itemName:r,amount:o}=t.payload,l=e.ingredientsGroups.find(c=>c.groupName===n),s=l==null?void 0:l.items.filter(c=>c.itemName===r);s&&(s[0].amount=o)},updateUnit:(e,t)=>{const{groupName:n,itemName:r,unit:o}=t.payload,l=e.ingredientsGroups.find(c=>c.groupName===n),s=l==null?void 0:l.items.filter(c=>c.itemName===r);s&&(s[0].unit=o)}}}),{addItemToIngredientGroup:Dm,removeItemFromIngredientGroup:X_,updateAmount:is,updateUnit:Q_,resetIngredientsGroup:Z_}=q_.actions,wL=q_.reducer;function J_(){const e=lg(),t=wn(),n=async()=>{t(V_()),t(Dr("")),t(Z_()),t(rL()),e("/")};return x.jsx("div",{"data-testid":"make_another",onKeyDown:Oi,onClick:n,children:x.jsx("button",{className:"go-to-button-arrow right-0 py-4 bg-green-500 hover:bg-green-400 hover:-translate-y-4",type:"button",children:"MAKE ANOTHER"})})}function xL(){return He(t=>t.groups.ingredientsGroups).map(t=>x.jsxs("div",{className:"flex flex-row items-center justify-between md:gap-x-1 lg:gap-x-2 sm:mb-1 md:mb-2 lg:mb-3 xl:mb-4",children:[x.jsx("p",{className:"group-chip-dead text-fluidPrintSubtitle leading-none px-1 mr-4 sm:max-w-6 md:max-w-8 lg:max-w-10 xl:max-w-12",children:t.groupName}),x.jsx("div",{className:"flex flex-row items-start sm:gap-1 md:gap-2 lg:gap-3",children:t.items.map(n=>x.jsxs("div",{className:"flex flex-col center print-rounded",children:[x.jsx("img",{src:`../src/assets/ingredients/${n.itemName.toLowerCase()}.webp`,alt:n.itemName,className:"card-shadow print-rounded print-image"}),x.jsxs("div",{className:"py-2 h-fit",children:[x.jsx("p",{className:"text-fluidPrintSubtitle leading-tight max-w-6",children:n.itemName}),x.jsx("p",{className:"text-fluidPrintSubtitle leading-tight ",children:x.jsxs("b",{children:[n.amount,"  ",n.unit]})})]})]},`${t.groupName}_${n.itemName}`))})]},t.groupName))}function bL(){return He(t=>t.actions.chefInstructions).map((t,n)=>x.jsxs("div",{className:"flex flex-col md:mb-2 lg:mb-6 xl:mb-10 sm:w-5/6 md:w-5/6 lg:w-4/5 xl:w-full center items-start",children:[x.jsxs("div",{className:"relative flex flex-row md:gap-1 lg:gap-1 xl:gap-4 pointer-events-none items-center justify-start",children:[x.jsxs("span",{className:"instruction-print-text min-w-12",children:["Step ",n+1]}),x.jsx("div",{className:"a4scale-smaller",children:x.jsxs("div",{className:"bg-white card-shadow print-rounded print-image mr-2",children:[x.jsx("img",{draggable:"false",src:`../src/assets/chefActions/${t.action.actionName.toLowerCase()}.webp`,alt:t.action.actionName,"data-testid":`${t.action.actionName}_action`,className:"print-rounded-img print-image"}),x.jsx("p",{className:"instruction-print-text py-0.5",children:t.action.actionName})]})}),x.jsx("span",{className:"instruction-print-text",children:"THE"}),t.customItem?x.jsx("b",{className:"instruction-print-text",children:t.customItem}):x.jsx("div",{className:"center justify-start sm:w-20 md:w-44 lg:w-52 xl:w-56 flex flex-row flex-wrap",children:t.items.map(r=>x.jsxs("div",{className:"flex center py-1 px-1",children:[x.jsx("img",{src:`../src/assets/ingredients/${r.itemName.toLowerCase()}.webp`,alt:r.itemName,className:"card-shadow print-image print-rounded"})," "]},`${t.id}_${r.itemName}`))}),t.action.time!==-1&&x.jsxs("span",{className:"flex instruction-print-text min-w-12",children:["FOR ",x.jsx("br",{}),t.action.time," ",t.action.unit]})]}),x.jsx("span",{className:"instruction-print-text pt-0.5 lg:pt-1",children:t.note})]},`${t.id}`))}function SL(){const e=He(r=>r.recipe.title);let t=0;const n=document.querySelector("#a4_1");return n&&(t=n.getBoundingClientRect().width/n.getBoundingClientRect().height),x.jsxs("div",{"data-testid":"doubleResultpage",className:"relative min-h-screen flex flex-col",children:[x.jsx(J_,{}),x.jsx("span",{className:`absolute top-1/3 left-0 ml-12 font-bold ${t>.709&&t<.7095?"text-green-600":"text-red-600"}`,children:t}),x.jsx(sa,{page:"/instructions",isNext:!1}),x.jsxs("div",{className:"flex flex-row center gap-x-8 mt-28 mb-16",children:[x.jsxs("div",{id:"a4_1",className:"relative flex flex-col a4ratio w-1/3 text-center input-border items-center",children:[x.jsx("h1",{className:"recipe-title",children:e}),x.jsx("h2",{className:"recipe-subtitle-text mb-1",children:"page 1"}),x.jsx("hr",{className:"w-1/2 border-gray-200 md:mb-2 lg:mb-4"}),x.jsx("h2",{className:"recipe-subtitle-text sm:mb-2 md:mb-4 lg:mb-8",children:"Ingredients:"}),x.jsx("div",{className:"flex flex-col justify-center",children:x.jsx(xL,{})})]}),x.jsxs("div",{id:"a4_2",className:"relative flex flex-col a4ratio w-1/3 text-center input-border items-center",children:[x.jsx("h1",{className:"recipe-title",children:e}),x.jsx("h2",{className:"recipe-subtitle-text mb-1",children:"page 2"}),x.jsx("hr",{className:"w-1/2 border-gray-200 mb-2"}),x.jsx("h2",{className:"recipe-subtitle-text lg:mb-1 xl:mb-4",children:"Steps:"}),x.jsx("div",{className:"flex flex-col justify-center",children:x.jsx("div",{className:"flex flex-col center",children:x.jsx(bL,{})})}),x.jsx("h2",{className:"recipe-subtitle-text mb-2",children:"Enjoy !"})]})]}),x.jsx("div",{className:"fixed bottom-0 right-0 go-to-button-arrow mb-0",children:x.jsx(G_,{})})]})}function hg(){const e=He(r=>r.warning.warning),t=wn();O.useEffect(()=>{const r=setTimeout(()=>{t(Dr(""))},4e3);return()=>clearTimeout(r)},[t]);const n=()=>{t(Dr(""))};return x.jsx("div",{className:"toast font-indie",onClick:n,onKeyDown:Oi,"data-testid":"snack",children:e})}function _L(){const e=wn(),t=He(p=>p.recipe.possibleItems),n=He(p=>p.recipe.currentGroupName),r=He(p=>p.recipe.currentItem),o=He(p=>p.recipe.title),l=He(p=>p.warning.warning),s=He(p=>p.groups.ingredientsGroups),c=(p,m,v)=>{if(p.preventDefault(),!m)e(Dr("Enter a group name!"));else if(!v)e(Dr("Search an ingredient!"));else if(t.length===0)e(Dr("No items found!"));else if(t.length===1){const S=s.filter(E=>E.groupName===m)[0];if(S)if(S.items.filter(N=>N.itemName===t[0])[0])e(Dr("Ingredient is already in the group!"));else{const N={groupName:m,itemName:t[0]};e(Dm(N))}else{const E={groupName:m,itemName:t[0]};e(Dm(E))}}else e(Dr("Too many ingredients at once!"))},f=p=>{const m=p.currentTarget.value;e(mL(m)),e(vL(m))},h=()=>{e(V_()),e(Z_())};return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex flex-col w-full h-1/4 center text-center",children:[x.jsx("h1",{className:"mt-4 text-fluidTitle font-shadowsLight",children:"Welcome to a4recipe"}),x.jsx("h3",{className:"pt-2 pb-2 text-fluidSubtitle",children:"Name your recipe and start adding ingredients!"}),x.jsx("input",{type:"text",required:!0,className:`w-inputs center input-border xl:w-96 ${o.length===0&&"required-element-border"}`,placeholder:"Give your recipe a name",value:o,onChange:p=>e(hL(p.target.value)),onKeyDown:p=>{p.key==="Enter"&&p.target.blur()},onFocus:Qc}),x.jsx("div",{className:"md:justify-between lg:justify-center gap-y-4",children:x.jsxs("form",{className:"pt-4 pb-2",children:[x.jsxs("div",{className:"flex flex-row center w-full mb-4 gap-4",children:[x.jsx("input",{type:"text",className:"input-border text-center w-96 lg:mr-8",placeholder:"Search ingredients",value:r,onInput:f,onFocus:Qc}),x.jsx("input",{type:"text",className:"input-border w-60",placeholder:"Give them a group name",value:n,onChange:p=>e(Y_(p.target.value)),onFocus:Qc})]}),x.jsxs("div",{className:"flex flex-row justify-between",children:[x.jsx("button",{type:"button",className:"sexy-button bg-slate-500 hover:bg-white hover:text-slate-500 focus:text-slate-500 focus:bg-gray-200 text-gray-50",onClick:h,children:"RESET"}),x.jsx("button",{form:"addIngredientsSelect",type:"submit",className:"sexy-button bg-blue-500 hover:bg-white hover:text-blue-500 focus:text-blue-500 focus:bg-gray-200 text-gray-50",onClick:p=>c(p,n,r),children:"ADD"})]})]})})]}),l&&x.jsx(hg,{})]})}const CL="modulepreload",EL=function(e){return"/"+e},Jw={},NL=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),s=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=Promise.all(n.map(c=>{if(c=EL(c),c in Jw)return;Jw[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":CL,f||(p.as="script",p.crossOrigin=""),p.href=c,s&&p.setAttribute("nonce",s),document.head.appendChild(p),f)return new Promise((m,v)=>{p.addEventListener("load",m),p.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>t()).catch(l=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l})};var kL={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},RL={prefix:"fas",iconName:"angles-right",icon:[512,512,[187,"angle-double-right"],"f101","M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"]},e2={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},t2={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},OL={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},yd=OL,PL={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},TL={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},IL={prefix:"fas",iconName:"angles-left",icon:[512,512,[171,"angle-double-left"],"f100","M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"]},ZF={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344V280H168c-13.3 0-24-10.7-24-24s10.7-24 24-24h64V168c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H280v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]};function ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;o--){var l=n[o],s=(l.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=l)}return lt.head.insertBefore(t,r),e}}var iM="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Js(){for(var e=12,t="";e-- >0;)t+=iM[Math.random()*62|0];return t}function Cl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function xg(e){return e.classList?Cl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function p2(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function oM(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(p2(e[n]),'" ')},"").trim()}function wd(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function bg(e){return e.size!==Jr.size||e.x!==Jr.x||e.y!==Jr.y||e.rotate!==Jr.rotate||e.flipX||e.flipY}function aM(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},l="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),f={transform:"".concat(l," ").concat(s," ").concat(c)},h={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:f,path:h}}function lM(e){var t=e.transform,n=e.width,r=n===void 0?Mm:n,o=e.height,l=o===void 0?Mm:o,s=e.startCentered,c=s===void 0?!1:s,f="";return c&&a2?f+="translate(".concat(t.x/Vi-r/2,"em, ").concat(t.y/Vi-l/2,"em) "):c?f+="translate(calc(-50% + ".concat(t.x/Vi,"em), calc(-50% + ").concat(t.y/Vi,"em)) "):f+="translate(".concat(t.x/Vi,"em, ").concat(t.y/Vi,"em) "),f+="scale(".concat(t.size/Vi*(t.flipX?-1:1),", ").concat(t.size/Vi*(t.flipY?-1:1),") "),f+="rotate(".concat(t.rotate,"deg) "),f}var sM=`:root, :host { - --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; - --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; - --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; - --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; - --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; - --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; - --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; -} - -svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { - overflow: visible; - box-sizing: content-box; -} - -.svg-inline--fa { - display: var(--fa-display, inline-block); - height: 1em; - overflow: visible; - vertical-align: -0.125em; -} -.svg-inline--fa.fa-2xs { - vertical-align: 0.1em; -} -.svg-inline--fa.fa-xs { - vertical-align: 0em; -} -.svg-inline--fa.fa-sm { - vertical-align: -0.0714285705em; -} -.svg-inline--fa.fa-lg { - vertical-align: -0.2em; -} -.svg-inline--fa.fa-xl { - vertical-align: -0.25em; -} -.svg-inline--fa.fa-2xl { - vertical-align: -0.3125em; -} -.svg-inline--fa.fa-pull-left { - margin-right: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-pull-right { - margin-left: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-li { - width: var(--fa-li-width, 2em); - top: 0.25em; -} -.svg-inline--fa.fa-fw { - width: var(--fa-fw-width, 1.25em); -} - -.fa-layers svg.svg-inline--fa { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; -} - -.fa-layers-counter, .fa-layers-text { - display: inline-block; - position: absolute; - text-align: center; -} - -.fa-layers { - display: inline-block; - height: 1em; - position: relative; - text-align: center; - vertical-align: -0.125em; - width: 1em; -} -.fa-layers svg.svg-inline--fa { - -webkit-transform-origin: center center; - transform-origin: center center; -} - -.fa-layers-text { - left: 50%; - top: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - -webkit-transform-origin: center center; - transform-origin: center center; -} - -.fa-layers-counter { - background-color: var(--fa-counter-background-color, #ff253a); - border-radius: var(--fa-counter-border-radius, 1em); - box-sizing: border-box; - color: var(--fa-inverse, #fff); - line-height: var(--fa-counter-line-height, 1); - max-width: var(--fa-counter-max-width, 5em); - min-width: var(--fa-counter-min-width, 1.5em); - overflow: hidden; - padding: var(--fa-counter-padding, 0.25em 0.5em); - right: var(--fa-right, 0); - text-overflow: ellipsis; - top: var(--fa-top, 0); - -webkit-transform: scale(var(--fa-counter-scale, 0.25)); - transform: scale(var(--fa-counter-scale, 0.25)); - -webkit-transform-origin: top right; - transform-origin: top right; -} - -.fa-layers-bottom-right { - bottom: var(--fa-bottom, 0); - right: var(--fa-right, 0); - top: auto; - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: bottom right; - transform-origin: bottom right; -} - -.fa-layers-bottom-left { - bottom: var(--fa-bottom, 0); - left: var(--fa-left, 0); - right: auto; - top: auto; - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: bottom left; - transform-origin: bottom left; -} - -.fa-layers-top-right { - top: var(--fa-top, 0); - right: var(--fa-right, 0); - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: top right; - transform-origin: top right; -} - -.fa-layers-top-left { - left: var(--fa-left, 0); - right: auto; - top: var(--fa-top, 0); - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: top left; - transform-origin: top left; -} - -.fa-1x { - font-size: 1em; -} - -.fa-2x { - font-size: 2em; -} - -.fa-3x { - font-size: 3em; -} - -.fa-4x { - font-size: 4em; -} - -.fa-5x { - font-size: 5em; -} - -.fa-6x { - font-size: 6em; -} - -.fa-7x { - font-size: 7em; -} - -.fa-8x { - font-size: 8em; -} - -.fa-9x { - font-size: 9em; -} - -.fa-10x { - font-size: 10em; -} - -.fa-2xs { - font-size: 0.625em; - line-height: 0.1em; - vertical-align: 0.225em; -} - -.fa-xs { - font-size: 0.75em; - line-height: 0.0833333337em; - vertical-align: 0.125em; -} - -.fa-sm { - font-size: 0.875em; - line-height: 0.0714285718em; - vertical-align: 0.0535714295em; -} - -.fa-lg { - font-size: 1.25em; - line-height: 0.05em; - vertical-align: -0.075em; -} - -.fa-xl { - font-size: 1.5em; - line-height: 0.0416666682em; - vertical-align: -0.125em; -} - -.fa-2xl { - font-size: 2em; - line-height: 0.03125em; - vertical-align: -0.1875em; -} - -.fa-fw { - text-align: center; - width: 1.25em; -} - -.fa-ul { - list-style-type: none; - margin-left: var(--fa-li-margin, 2.5em); - padding-left: 0; -} -.fa-ul > li { - position: relative; -} - -.fa-li { - left: calc(var(--fa-li-width, 2em) * -1); - position: absolute; - text-align: center; - width: var(--fa-li-width, 2em); - line-height: inherit; -} - -.fa-border { - border-color: var(--fa-border-color, #eee); - border-radius: var(--fa-border-radius, 0.1em); - border-style: var(--fa-border-style, solid); - border-width: var(--fa-border-width, 0.08em); - padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); -} - -.fa-pull-left { - float: left; - margin-right: var(--fa-pull-margin, 0.3em); -} - -.fa-pull-right { - float: right; - margin-left: var(--fa-pull-margin, 0.3em); -} - -.fa-beat { - -webkit-animation-name: fa-beat; - animation-name: fa-beat; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-bounce { - -webkit-animation-name: fa-bounce; - animation-name: fa-bounce; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); -} - -.fa-fade { - -webkit-animation-name: fa-fade; - animation-name: fa-fade; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-beat-fade { - -webkit-animation-name: fa-beat-fade; - animation-name: fa-beat-fade; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-flip { - -webkit-animation-name: fa-flip; - animation-name: fa-flip; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-shake { - -webkit-animation-name: fa-shake; - animation-name: fa-shake; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, linear); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin { - -webkit-animation-name: fa-spin; - animation-name: fa-spin; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 2s); - animation-duration: var(--fa-animation-duration, 2s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, linear); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-reverse { - --fa-animation-direction: reverse; -} - -.fa-pulse, -.fa-spin-pulse { - -webkit-animation-name: fa-spin; - animation-name: fa-spin; - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); - animation-timing-function: var(--fa-animation-timing, steps(8)); -} - -@media (prefers-reduced-motion: reduce) { - .fa-beat, -.fa-bounce, -.fa-fade, -.fa-beat-fade, -.fa-flip, -.fa-pulse, -.fa-shake, -.fa-spin, -.fa-spin-pulse { - -webkit-animation-delay: -1ms; - animation-delay: -1ms; - -webkit-animation-duration: 1ms; - animation-duration: 1ms; - -webkit-animation-iteration-count: 1; - animation-iteration-count: 1; - -webkit-transition-delay: 0s; - transition-delay: 0s; - -webkit-transition-duration: 0s; - transition-duration: 0s; - } -} -@-webkit-keyframes fa-beat { - 0%, 90% { - -webkit-transform: scale(1); - transform: scale(1); - } - 45% { - -webkit-transform: scale(var(--fa-beat-scale, 1.25)); - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@keyframes fa-beat { - 0%, 90% { - -webkit-transform: scale(1); - transform: scale(1); - } - 45% { - -webkit-transform: scale(var(--fa-beat-scale, 1.25)); - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@-webkit-keyframes fa-bounce { - 0% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 10% { - -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 100% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } -} -@keyframes fa-bounce { - 0% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 10% { - -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 100% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } -} -@-webkit-keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); - } -} -@keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); - } -} -@-webkit-keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - -webkit-transform: scale(1); - transform: scale(1); - } - 50% { - opacity: 1; - -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - -webkit-transform: scale(1); - transform: scale(1); - } - 50% { - opacity: 1; - -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@-webkit-keyframes fa-flip { - 50% { - -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@keyframes fa-flip { - 50% { - -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@-webkit-keyframes fa-shake { - 0% { - -webkit-transform: rotate(-15deg); - transform: rotate(-15deg); - } - 4% { - -webkit-transform: rotate(15deg); - transform: rotate(15deg); - } - 8%, 24% { - -webkit-transform: rotate(-18deg); - transform: rotate(-18deg); - } - 12%, 28% { - -webkit-transform: rotate(18deg); - transform: rotate(18deg); - } - 16% { - -webkit-transform: rotate(-22deg); - transform: rotate(-22deg); - } - 20% { - -webkit-transform: rotate(22deg); - transform: rotate(22deg); - } - 32% { - -webkit-transform: rotate(-12deg); - transform: rotate(-12deg); - } - 36% { - -webkit-transform: rotate(12deg); - transform: rotate(12deg); - } - 40%, 100% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } -} -@keyframes fa-shake { - 0% { - -webkit-transform: rotate(-15deg); - transform: rotate(-15deg); - } - 4% { - -webkit-transform: rotate(15deg); - transform: rotate(15deg); - } - 8%, 24% { - -webkit-transform: rotate(-18deg); - transform: rotate(-18deg); - } - 12%, 28% { - -webkit-transform: rotate(18deg); - transform: rotate(18deg); - } - 16% { - -webkit-transform: rotate(-22deg); - transform: rotate(-22deg); - } - 20% { - -webkit-transform: rotate(22deg); - transform: rotate(22deg); - } - 32% { - -webkit-transform: rotate(-12deg); - transform: rotate(-12deg); - } - 36% { - -webkit-transform: rotate(12deg); - transform: rotate(12deg); - } - 40%, 100% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } -} -@-webkit-keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -@keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -.fa-rotate-90 { - -webkit-transform: rotate(90deg); - transform: rotate(90deg); -} - -.fa-rotate-180 { - -webkit-transform: rotate(180deg); - transform: rotate(180deg); -} - -.fa-rotate-270 { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); -} - -.fa-flip-horizontal { - -webkit-transform: scale(-1, 1); - transform: scale(-1, 1); -} - -.fa-flip-vertical { - -webkit-transform: scale(1, -1); - transform: scale(1, -1); -} - -.fa-flip-both, -.fa-flip-horizontal.fa-flip-vertical { - -webkit-transform: scale(-1, -1); - transform: scale(-1, -1); -} - -.fa-rotate-by { - -webkit-transform: rotate(var(--fa-rotate-angle, 0)); - transform: rotate(var(--fa-rotate-angle, 0)); -} - -.fa-stack { - display: inline-block; - vertical-align: middle; - height: 2em; - position: relative; - width: 2.5em; -} - -.fa-stack-1x, -.fa-stack-2x { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; - z-index: var(--fa-stack-z-index, auto); -} - -.svg-inline--fa.fa-stack-1x { - height: 1em; - width: 1.25em; -} -.svg-inline--fa.fa-stack-2x { - height: 2em; - width: 2.5em; -} - -.fa-inverse { - color: var(--fa-inverse, #fff); -} - -.sr-only, -.fa-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; -} - -.sr-only-focusable:not(:focus), -.fa-sr-only-focusable:not(:focus) { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.svg-inline--fa .fa-primary { - fill: var(--fa-primary-color, currentColor); - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa .fa-secondary { - fill: var(--fa-secondary-color, currentColor); - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-primary { - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-secondary { - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa mask .fa-primary, -.svg-inline--fa mask .fa-secondary { - fill: black; -} - -.fad.fa-inverse, -.fa-duotone.fa-inverse { - color: var(--fa-inverse, #fff); -}`;function h2(){var e=l2,t=s2,n=de.cssPrefix,r=de.replacementClass,o=sM;if(n!==e||r!==t){var l=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");o=o.replace(l,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(c,".".concat(r))}return o}var ax=!1;function xh(){de.autoAddCss&&!ax&&(rM(h2()),ax=!0)}var uM={mixout:function(){return{dom:{css:h2,insertCss:xh}}},hooks:function(){return{beforeDOMElementCreation:function(){xh()},beforeI2svg:function(){xh()}}}},Ei=yo||{};Ei[Ci]||(Ei[Ci]={});Ei[Ci].styles||(Ei[Ci].styles={});Ei[Ci].hooks||(Ei[Ci].hooks={});Ei[Ci].shims||(Ei[Ci].shims=[]);var Lr=Ei[Ci],m2=[],cM=function e(){lt.removeEventListener("DOMContentLoaded",e),Lf=1,m2.map(function(t){return t()})},Lf=!1;Pi&&(Lf=(lt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(lt.readyState),Lf||lt.addEventListener("DOMContentLoaded",cM));function fM(e){Pi&&(Lf?setTimeout(e,0):m2.push(e))}function pu(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,o=e.children,l=o===void 0?[]:o;return typeof e=="string"?p2(e):"<".concat(t," ").concat(oM(r),">").concat(l.map(pu).join(""),"")}function lx(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var bh=function(t,n,r,o){var l=Object.keys(t),s=l.length,c=n,f,h,p;for(r===void 0?(f=1,p=t[l[0]]):(f=0,p=r);f=55296&&o<=56319&&n=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function sx(e){return Object.keys(e).reduce(function(t,n){var r=e[n],o=!!r.icon;return o?t[r.iconName]=r.icon:t[n]=r,t},{})}function zm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,l=sx(t);typeof Lr.hooks.addPack=="function"&&!o?Lr.hooks.addPack(e,sx(t)):Lr.styles[e]=se(se({},Lr.styles[e]||{}),l),e==="fas"&&zm("fa",t)}var Dc,Lc,Mc,qa=Lr.styles,hM=Lr.shims,mM=(Dc={},Lt(Dc,ot,Object.values(Qs[ot])),Lt(Dc,xt,Object.values(Qs[xt])),Dc),Sg=null,v2={},g2={},y2={},w2={},x2={},vM=(Lc={},Lt(Lc,ot,Object.keys(qs[ot])),Lt(Lc,xt,Object.keys(qs[xt])),Lc);function gM(e){return~ZL.indexOf(e)}function yM(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!gM(o)?o:null}var b2=function(){var t=function(l){return bh(qa,function(s,c,f){return s[f]=bh(c,l,{}),s},{})};v2=t(function(o,l,s){if(l[3]&&(o[l[3]]=s),l[2]){var c=l[2].filter(function(f){return typeof f=="number"});c.forEach(function(f){o[f.toString(16)]=s})}return o}),g2=t(function(o,l,s){if(o[s]=s,l[2]){var c=l[2].filter(function(f){return typeof f=="string"});c.forEach(function(f){o[f]=s})}return o}),x2=t(function(o,l,s){var c=l[2];return o[s]=s,c.forEach(function(f){o[f]=s}),o});var n="far"in qa||de.autoFetchSvg,r=bh(hM,function(o,l){var s=l[0],c=l[1],f=l[2];return c==="far"&&!n&&(c="fas"),typeof s=="string"&&(o.names[s]={prefix:c,iconName:f}),typeof s=="number"&&(o.unicodes[s.toString(16)]={prefix:c,iconName:f}),o},{names:{},unicodes:{}});y2=r.names,w2=r.unicodes,Sg=xd(de.styleDefault,{family:de.familyDefault})};nM(function(e){Sg=xd(e.styleDefault,{family:de.familyDefault})});b2();function _g(e,t){return(v2[e]||{})[t]}function wM(e,t){return(g2[e]||{})[t]}function Qo(e,t){return(x2[e]||{})[t]}function S2(e){return y2[e]||{prefix:null,iconName:null}}function xM(e){var t=w2[e],n=_g("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function wo(){return Sg}var Cg=function(){return{prefix:null,iconName:null,rest:[]}};function xd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ot:n,o=qs[r][e],l=Xs[r][e]||Xs[r][o],s=e in Lr.styles?e:null;return l||s||null}var ux=(Mc={},Lt(Mc,ot,Object.keys(Qs[ot])),Lt(Mc,xt,Object.keys(Qs[xt])),Mc);function bd(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,o=r===void 0?!1:r,l=(t={},Lt(t,ot,"".concat(de.cssPrefix,"-").concat(ot)),Lt(t,xt,"".concat(de.cssPrefix,"-").concat(xt)),t),s=null,c=ot;(e.includes(l[ot])||e.some(function(h){return ux[ot].includes(h)}))&&(c=ot),(e.includes(l[xt])||e.some(function(h){return ux[xt].includes(h)}))&&(c=xt);var f=e.reduce(function(h,p){var m=yM(de.cssPrefix,p);if(qa[p]?(p=mM[c].includes(p)?KL[c][p]:p,s=p,h.prefix=p):vM[c].indexOf(p)>-1?(s=p,h.prefix=xd(p,{family:c})):m?h.iconName=m:p!==de.replacementClass&&p!==l[ot]&&p!==l[xt]&&h.rest.push(p),!o&&h.prefix&&h.iconName){var v=s==="fa"?S2(h.iconName):{},S=Qo(h.prefix,h.iconName);v.prefix&&(s=null),h.iconName=v.iconName||S||h.iconName,h.prefix=v.prefix||h.prefix,h.prefix==="far"&&!qa.far&&qa.fas&&!de.autoFetchSvg&&(h.prefix="fas")}return h},Cg());return(e.includes("fa-brands")||e.includes("fab"))&&(f.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(f.prefix="fad"),!f.prefix&&c===xt&&(qa.fass||de.autoFetchSvg)&&(f.prefix="fass",f.iconName=Qo(f.prefix,f.iconName)||f.iconName),(f.prefix==="fa"||s==="fa")&&(f.prefix=wo()||"fas"),f}var bM=function(){function e(){AL(this,e),this.definitions={}}return LL(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),l=0;l0&&p.forEach(function(m){typeof m=="string"&&(n[c][m]=h)}),n[c][f]=h}),n}}]),e}(),cx=[],Xa={},ol={},SM=Object.keys(ol);function _M(e,t){var n=t.mixoutsTo;return cx=e,Xa={},Object.keys(ol).forEach(function(r){SM.indexOf(r)===-1&&delete ol[r]}),cx.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(s){typeof o[s]=="function"&&(n[s]=o[s]),Df(o[s])==="object"&&Object.keys(o[s]).forEach(function(c){n[s]||(n[s]={}),n[s][c]=o[s][c]})}),r.hooks){var l=r.hooks();Object.keys(l).forEach(function(s){Xa[s]||(Xa[s]=[]),Xa[s].push(l[s])})}r.provides&&r.provides(ol)}),n}function Um(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return Pi?(ca("beforeI2svg",t),Ni("pseudoElements2svg",t),Ni("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;de.autoReplaceSvg===!1&&(de.autoReplaceSvg=!0),de.observeMutations=!0,fM(function(){kM({autoReplaceSvgRoot:n}),ca("watch",t)})}},NM={icon:function(t){if(t===null)return null;if(Df(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Qo(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=xd(t[0]);return{prefix:r,iconName:Qo(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(de.cssPrefix,"-"))>-1||t.match(YL))){var o=bd(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||wo(),iconName:Qo(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var l=wo();return{prefix:l,iconName:Qo(l,t)||t}}}},Zn={noAuto:CM,config:de,dom:EM,parse:NM,library:_2,findIconDefinition:$m,toHtml:pu},kM=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?lt:n;(Object.keys(Lr.styles).length>0||de.autoFetchSvg)&&Pi&&de.autoReplaceSvg&&Zn.dom.i2svg({node:r})};function Sd(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return pu(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Pi){var r=lt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function RM(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,l=e.styles,s=e.transform;if(bg(s)&&n.found&&!r.found){var c=n.width,f=n.height,h={x:c/f/2,y:.5};o.style=wd(se(se({},l),{},{"transform-origin":"".concat(h.x+s.x/16,"em ").concat(h.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function OM(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,l=e.symbol,s=l===!0?"".concat(t,"-").concat(de.cssPrefix,"-").concat(n):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:se(se({},o),{},{id:s}),children:r}]}]}function Eg(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,l=e.iconName,s=e.transform,c=e.symbol,f=e.title,h=e.maskId,p=e.titleId,m=e.extra,v=e.watchable,S=v===void 0?!1:v,E=r.found?r:n,N=E.width,T=E.height,_=o==="fak",b=[de.replacementClass,l?"".concat(de.cssPrefix,"-").concat(l):""].filter(function(U){return m.classes.indexOf(U)===-1}).filter(function(U){return U!==""||!!U}).concat(m.classes).join(" "),C={children:[],attributes:se(se({},m.attributes),{},{"data-prefix":o,"data-icon":l,class:b,role:m.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(N," ").concat(T)})},I=_&&!~m.classes.indexOf("fa-fw")?{width:"".concat(N/T*16*.0625,"em")}:{};S&&(C.attributes[ua]=""),f&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(p||Js())},children:[f]}),delete C.attributes.title);var M=se(se({},C),{},{prefix:o,iconName:l,main:n,mask:r,maskId:h,transform:s,symbol:c,styles:se(se({},I),m.styles)}),G=r.found&&n.found?Ni("generateAbstractMask",M)||{children:[],attributes:{}}:Ni("generateAbstractIcon",M)||{children:[],attributes:{}},k=G.children,B=G.attributes;return M.children=k,M.attributes=B,c?OM(M):RM(M)}function fx(e){var t=e.content,n=e.width,r=e.height,o=e.transform,l=e.title,s=e.extra,c=e.watchable,f=c===void 0?!1:c,h=se(se(se({},s.attributes),l?{title:l}:{}),{},{class:s.classes.join(" ")});f&&(h[ua]="");var p=se({},s.styles);bg(o)&&(p.transform=lM({transform:o,startCentered:!0,width:n,height:r}),p["-webkit-transform"]=p.transform);var m=wd(p);m.length>0&&(h.style=m);var v=[];return v.push({tag:"span",attributes:h,children:[t]}),l&&v.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),v}function PM(e){var t=e.content,n=e.title,r=e.extra,o=se(se(se({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),l=wd(r.styles);l.length>0&&(o.style=l);var s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var Sh=Lr.styles;function Bm(e){var t=e[0],n=e[1],r=e.slice(4),o=mg(r,1),l=o[0],s=null;return Array.isArray(l)?s={tag:"g",attributes:{class:"".concat(de.cssPrefix,"-").concat(Xo.GROUP)},children:[{tag:"path",attributes:{class:"".concat(de.cssPrefix,"-").concat(Xo.SECONDARY),fill:"currentColor",d:l[0]}},{tag:"path",attributes:{class:"".concat(de.cssPrefix,"-").concat(Xo.PRIMARY),fill:"currentColor",d:l[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:l}},{found:!0,width:t,height:n,icon:s}}var TM={found:!1,width:512,height:512};function IM(e,t){!u2&&!de.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Wm(e,t){var n=t;return t==="fa"&&de.styleDefault!==null&&(t=wo()),new Promise(function(r,o){if(Ni("missingIconAbstract"),n==="fa"){var l=S2(e)||{};e=l.iconName||e,t=l.prefix||t}if(e&&t&&Sh[t]&&Sh[t][e]){var s=Sh[t][e];return r(Bm(s))}IM(e,t),r(se(se({},TM),{},{icon:de.showMissingIcons&&e?Ni("missingIconAbstract")||{}:{}}))})}var dx=function(){},Hm=de.measurePerformance&&Rc&&Rc.mark&&Rc.measure?Rc:{mark:dx,measure:dx},cs='FA "6.5.2"',AM=function(t){return Hm.mark("".concat(cs," ").concat(t," begins")),function(){return C2(t)}},C2=function(t){Hm.mark("".concat(cs," ").concat(t," ends")),Hm.measure("".concat(cs," ").concat(t),"".concat(cs," ").concat(t," begins"),"".concat(cs," ").concat(t," ends"))},Ng={begin:AM,end:C2},Zc=function(){};function px(e){var t=e.getAttribute?e.getAttribute(ua):null;return typeof t=="string"}function DM(e){var t=e.getAttribute?e.getAttribute(gg):null,n=e.getAttribute?e.getAttribute(yg):null;return t&&n}function LM(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(de.replacementClass)}function MM(){if(de.autoReplaceSvg===!0)return Jc.replace;var e=Jc[de.autoReplaceSvg];return e||Jc.replace}function jM(e){return lt.createElementNS("http://www.w3.org/2000/svg",e)}function FM(e){return lt.createElement(e)}function E2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?jM:FM:n;if(typeof e=="string")return lt.createTextNode(e);var o=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){o.setAttribute(s,e.attributes[s])});var l=e.children||[];return l.forEach(function(s){o.appendChild(E2(s,{ceFn:r}))}),o}function zM(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Jc={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(E2(o),n)}),n.getAttribute(ua)===null&&de.keepOriginalSource){var r=lt.createComment(zM(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~xg(n).indexOf(de.replacementClass))return Jc.replace(t);var o=new RegExp("".concat(de.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var l=r[0].attributes.class.split(" ").reduce(function(c,f){return f===de.replacementClass||f.match(o)?c.toSvg.push(f):c.toNode.push(f),c},{toNode:[],toSvg:[]});r[0].attributes.class=l.toSvg.join(" "),l.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",l.toNode.join(" "))}var s=r.map(function(c){return pu(c)}).join(` -`);n.setAttribute(ua,""),n.innerHTML=s}};function hx(e){e()}function N2(e,t){var n=typeof t=="function"?t:Zc;if(e.length===0)n();else{var r=hx;de.mutateApproach===HL&&(r=yo.requestAnimationFrame||hx),r(function(){var o=MM(),l=Ng.begin("mutate");e.map(o),l(),n()})}}var kg=!1;function k2(){kg=!0}function Gm(){kg=!1}var Mf=null;function mx(e){if(ix&&de.observeMutations){var t=e.treeCallback,n=t===void 0?Zc:t,r=e.nodeCallback,o=r===void 0?Zc:r,l=e.pseudoElementsCallback,s=l===void 0?Zc:l,c=e.observeMutationsRoot,f=c===void 0?lt:c;Mf=new ix(function(h){if(!kg){var p=wo();Cl(h).forEach(function(m){if(m.type==="childList"&&m.addedNodes.length>0&&!px(m.addedNodes[0])&&(de.searchPseudoElements&&s(m.target),n(m.target)),m.type==="attributes"&&m.target.parentNode&&de.searchPseudoElements&&s(m.target.parentNode),m.type==="attributes"&&px(m.target)&&~QL.indexOf(m.attributeName))if(m.attributeName==="class"&&DM(m.target)){var v=bd(xg(m.target)),S=v.prefix,E=v.iconName;m.target.setAttribute(gg,S||p),E&&m.target.setAttribute(yg,E)}else LM(m.target)&&o(m.target)})}}),Pi&&Mf.observe(f,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function UM(){Mf&&Mf.disconnect()}function $M(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,o){var l=o.split(":"),s=l[0],c=l.slice(1);return s&&c.length>0&&(r[s]=c.join(":").trim()),r},{})),n}function BM(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=bd(xg(e));return o.prefix||(o.prefix=wo()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=wM(o.prefix,e.innerText)||_g(o.prefix,Fm(e.innerText))),!o.iconName&&de.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function WM(e){var t=Cl(e.attributes).reduce(function(o,l){return o.name!=="class"&&o.name!=="style"&&(o[l.name]=l.value),o},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return de.autoA11y&&(n?t["aria-labelledby"]="".concat(de.replacementClass,"-title-").concat(r||Js()):(t["aria-hidden"]="true",t.focusable="false")),t}function HM(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Jr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function vx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=BM(e),r=n.iconName,o=n.prefix,l=n.rest,s=WM(e),c=Um("parseNodeAttributes",{},e),f=t.styleParser?$M(e):[];return se({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:Jr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:l,styles:f,attributes:s}},c)}var GM=Lr.styles;function R2(e){var t=de.autoReplaceSvg==="nest"?vx(e,{styleParser:!1}):vx(e);return~t.extra.classes.indexOf(c2)?Ni("generateLayersText",e,t):Ni("generateSvgReplacementMutation",e,t)}var xo=new Set;wg.map(function(e){xo.add("fa-".concat(e))});Object.keys(qs[ot]).map(xo.add.bind(xo));Object.keys(qs[xt]).map(xo.add.bind(xo));xo=fu(xo);function gx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Pi)return Promise.resolve();var n=lt.documentElement.classList,r=function(m){return n.add("".concat(ox,"-").concat(m))},o=function(m){return n.remove("".concat(ox,"-").concat(m))},l=de.autoFetchSvg?xo:wg.map(function(p){return"fa-".concat(p)}).concat(Object.keys(GM));l.includes("fa")||l.push("fa");var s=[".".concat(c2,":not([").concat(ua,"])")].concat(l.map(function(p){return".".concat(p,":not([").concat(ua,"])")})).join(", ");if(s.length===0)return Promise.resolve();var c=[];try{c=Cl(e.querySelectorAll(s))}catch{}if(c.length>0)r("pending"),o("complete");else return Promise.resolve();var f=Ng.begin("onTree"),h=c.reduce(function(p,m){try{var v=R2(m);v&&p.push(v)}catch(S){u2||S.name==="MissingIcon"&&console.error(S)}return p},[]);return new Promise(function(p,m){Promise.all(h).then(function(v){N2(v,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),f(),p()})}).catch(function(v){f(),m(v)})})}function KM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;R2(e).then(function(n){n&&N2([n],t)})}function YM(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:$m(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:$m(o||{})),e(r,se(se({},n),{},{mask:o}))}}var VM=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?Jr:r,l=n.symbol,s=l===void 0?!1:l,c=n.mask,f=c===void 0?null:c,h=n.maskId,p=h===void 0?null:h,m=n.title,v=m===void 0?null:m,S=n.titleId,E=S===void 0?null:S,N=n.classes,T=N===void 0?[]:N,_=n.attributes,b=_===void 0?{}:_,C=n.styles,I=C===void 0?{}:C;if(t){var M=t.prefix,G=t.iconName,k=t.icon;return Sd(se({type:"icon"},t),function(){return ca("beforeDOMElementCreation",{iconDefinition:t,params:n}),de.autoA11y&&(v?b["aria-labelledby"]="".concat(de.replacementClass,"-title-").concat(E||Js()):(b["aria-hidden"]="true",b.focusable="false")),Eg({icons:{main:Bm(k),mask:f?Bm(f.icon):{found:!1,width:null,height:null,icon:{}}},prefix:M,iconName:G,transform:se(se({},Jr),o),symbol:s,title:v,maskId:p,titleId:E,extra:{attributes:b,styles:I,classes:T}})})}},qM={mixout:function(){return{icon:YM(VM)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=gx,n.nodeCallback=KM,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?lt:r,l=n.callback,s=l===void 0?function(){}:l;return gx(o,s)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,l=r.title,s=r.titleId,c=r.prefix,f=r.transform,h=r.symbol,p=r.mask,m=r.maskId,v=r.extra;return new Promise(function(S,E){Promise.all([Wm(o,c),p.iconName?Wm(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(N){var T=mg(N,2),_=T[0],b=T[1];S([n,Eg({icons:{main:_,mask:b},prefix:c,iconName:o,transform:f,symbol:h,maskId:m,title:l,titleId:s,extra:v,watchable:!0})])}).catch(E)})},t.generateAbstractIcon=function(n){var r=n.children,o=n.attributes,l=n.main,s=n.transform,c=n.styles,f=wd(c);f.length>0&&(o.style=f);var h;return bg(s)&&(h=Ni("generateAbstractTransformGrouping",{main:l,transform:s,containerWidth:l.width,iconWidth:l.width})),r.push(h||l.icon),{children:r,attributes:o}}}},XM={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,l=o===void 0?[]:o;return Sd({type:"layer"},function(){ca("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(c){Array.isArray(c)?c.map(function(f){s=s.concat(f.abstract)}):s=s.concat(c.abstract)}),[{tag:"span",attributes:{class:["".concat(de.cssPrefix,"-layers")].concat(fu(l)).join(" ")},children:s}]})}}}},QM={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.title,l=o===void 0?null:o,s=r.classes,c=s===void 0?[]:s,f=r.attributes,h=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return Sd({type:"counter",content:n},function(){return ca("beforeDOMElementCreation",{content:n,params:r}),PM({content:n.toString(),title:l,extra:{attributes:h,styles:m,classes:["".concat(de.cssPrefix,"-layers-counter")].concat(fu(c))}})})}}}},ZM={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,l=o===void 0?Jr:o,s=r.title,c=s===void 0?null:s,f=r.classes,h=f===void 0?[]:f,p=r.attributes,m=p===void 0?{}:p,v=r.styles,S=v===void 0?{}:v;return Sd({type:"text",content:n},function(){return ca("beforeDOMElementCreation",{content:n,params:r}),fx({content:n,transform:se(se({},Jr),l),title:c,extra:{attributes:m,styles:S,classes:["".concat(de.cssPrefix,"-layers-text")].concat(fu(h))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.title,l=r.transform,s=r.extra,c=null,f=null;if(a2){var h=parseInt(getComputedStyle(n).fontSize,10),p=n.getBoundingClientRect();c=p.width/h,f=p.height/h}return de.autoA11y&&!o&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,fx({content:n.innerHTML,width:c,height:f,transform:l,title:o,extra:s,watchable:!0})])}}},JM=new RegExp('"',"ug"),yx=[1105920,1112319];function e5(e){var t=e.replace(JM,""),n=pM(t,0),r=n>=yx[0]&&n<=yx[1],o=t.length===2?t[0]===t[1]:!1;return{value:Fm(o?t[0]:t),isSecondary:r||o}}function wx(e,t){var n="".concat(WL).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var l=Cl(e.children),s=l.filter(function(k){return k.getAttribute(jm)===t})[0],c=yo.getComputedStyle(e,t),f=c.getPropertyValue("font-family").match(VL),h=c.getPropertyValue("font-weight"),p=c.getPropertyValue("content");if(s&&!f)return e.removeChild(s),r();if(f&&p!=="none"&&p!==""){var m=c.getPropertyValue("content"),v=~["Sharp"].indexOf(f[2])?xt:ot,S=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(f[2])?Xs[v][f[2].toLowerCase()]:qL[v][h],E=e5(m),N=E.value,T=E.isSecondary,_=f[0].startsWith("FontAwesome"),b=_g(S,N),C=b;if(_){var I=xM(N);I.iconName&&I.prefix&&(b=I.iconName,S=I.prefix)}if(b&&!T&&(!s||s.getAttribute(gg)!==S||s.getAttribute(yg)!==C)){e.setAttribute(n,C),s&&e.removeChild(s);var M=HM(),G=M.extra;G.attributes[jm]=t,Wm(b,S).then(function(k){var B=Eg(se(se({},M),{},{icons:{main:k,mask:Cg()},prefix:S,iconName:C,extra:G,watchable:!0})),U=lt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(U,e.firstChild):e.appendChild(U),U.outerHTML=B.map(function(K){return pu(K)}).join(` -`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function t5(e){return Promise.all([wx(e,"::before"),wx(e,"::after")])}function n5(e){return e.parentNode!==document.head&&!~GL.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(jm)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function xx(e){if(Pi)return new Promise(function(t,n){var r=Cl(e.querySelectorAll("*")).filter(n5).map(t5),o=Ng.begin("searchPseudoElements");k2(),Promise.all(r).then(function(){o(),Gm(),t()}).catch(function(){o(),Gm(),n()})})}var r5={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=xx,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?lt:r;de.searchPseudoElements&&xx(o)}}},bx=!1,i5={mixout:function(){return{dom:{unwatch:function(){k2(),bx=!0}}}},hooks:function(){return{bootstrap:function(){mx(Um("mutationObserverCallbacks",{}))},noAuto:function(){UM()},watch:function(n){var r=n.observeMutationsRoot;bx?Gm():mx(Um("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Sx=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,o){var l=o.toLowerCase().split("-"),s=l[0],c=l.slice(1).join("-");if(s&&c==="h")return r.flipX=!0,r;if(s&&c==="v")return r.flipY=!0,r;if(c=parseFloat(c),isNaN(c))return r;switch(s){case"grow":r.size=r.size+c;break;case"shrink":r.size=r.size-c;break;case"left":r.x=r.x-c;break;case"right":r.x=r.x+c;break;case"up":r.y=r.y-c;break;case"down":r.y=r.y+c;break;case"rotate":r.rotate=r.rotate+c;break}return r},n)},o5={mixout:function(){return{parse:{transform:function(n){return Sx(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=Sx(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,o=n.transform,l=n.containerWidth,s=n.iconWidth,c={transform:"translate(".concat(l/2," 256)")},f="translate(".concat(o.x*32,", ").concat(o.y*32,") "),h="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),p="rotate(".concat(o.rotate," 0 0)"),m={transform:"".concat(f," ").concat(h," ").concat(p)},v={transform:"translate(".concat(s/2*-1," -256)")},S={outer:c,inner:m,path:v};return{tag:"g",attributes:se({},S.outer),children:[{tag:"g",attributes:se({},S.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:se(se({},r.icon.attributes),S.path)}]}]}}}},_h={x:0,y:0,width:"100%",height:"100%"};function _x(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function a5(e){return e.tag==="g"?e.children:[e]}var l5={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),l=o?bd(o.split(" ").map(function(s){return s.trim()})):Cg();return l.prefix||(l.prefix=wo()),n.mask=l,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,o=n.attributes,l=n.main,s=n.mask,c=n.maskId,f=n.transform,h=l.width,p=l.icon,m=s.width,v=s.icon,S=aM({transform:f,containerWidth:m,iconWidth:h}),E={tag:"rect",attributes:se(se({},_h),{},{fill:"white"})},N=p.children?{children:p.children.map(_x)}:{},T={tag:"g",attributes:se({},S.inner),children:[_x(se({tag:p.tag,attributes:se(se({},p.attributes),S.path)},N))]},_={tag:"g",attributes:se({},S.outer),children:[T]},b="mask-".concat(c||Js()),C="clip-".concat(c||Js()),I={tag:"mask",attributes:se(se({},_h),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,_]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:a5(v)},I]};return r.push(M,{tag:"rect",attributes:se({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(b,")")},_h)}),{children:r,attributes:o}}}},s5={provides:function(t){var n=!1;yo.matchMedia&&(n=yo.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},l={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:se(se({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=se(se({},l),{},{attributeName:"opacity"}),c={tag:"circle",attributes:se(se({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||c.children.push({tag:"animate",attributes:se(se({},l),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:se(se({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(c),r.push({tag:"path",attributes:se(se({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:se(se({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:se(se({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:se(se({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},u5={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-symbol"),l=o===null?!1:o===""?!0:o;return n.symbol=l,n}}}},c5=[uM,qM,XM,QM,ZM,r5,i5,o5,l5,s5,u5];_M(c5,{mixoutsTo:Zn});Zn.noAuto;Zn.config;Zn.library;Zn.dom;var Km=Zn.parse;Zn.findIconDefinition;Zn.toHtml;var f5=Zn.icon;Zn.layer;Zn.text;Zn.counter;var O2={exports:{}},d5="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p5=d5,h5=p5;function P2(){}function T2(){}T2.resetWarningCache=P2;var m5=function(){function e(r,o,l,s,c,f){if(f!==h5){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:T2,resetWarningCache:P2};return n.PropTypes=n,n};O2.exports=m5();var Rg=O2.exports;const Ie=Vf(Rg);function Cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function g5(e,t){if(e==null)return{};var n=v5(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ym(e){return y5(e)||w5(e)||x5(e)||b5()}function y5(e){if(Array.isArray(e))return Vm(e)}function w5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x5(e,t){if(e){if(typeof e=="string")return Vm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vm(e,t)}}function Vm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(f){return A2(e,f)}),o=Object.keys(t.attributes||{}).reduce(function(f,h){var p=t.attributes[h];switch(h){case"class":f.attrs.className=p,delete t.attributes.class;break;case"style":f.attrs.style=N5(p);break;default:h.indexOf("aria-")===0||h.indexOf("data-")===0?f.attrs[h.toLowerCase()]=p:f.attrs[I2(h)]=p}return f},{attrs:{}}),l=n.style,s=l===void 0?{}:l,c=g5(n,C5);return o.attrs.style=Xr(Xr({},o.attrs.style),s),e.apply(void 0,[t.tag,Xr(Xr({},o.attrs),c)].concat(Ym(r)))}var D2=!1;try{D2=!0}catch{}function k5(){if(!D2&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ex(e){if(e&&jf(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Km.icon)return Km.icon(e);if(e===null)return null;if(e&&jf(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Ch(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Qa({},e,t):{}}var Nx={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ln=Qe.forwardRef(function(e,t){var n=Xr(Xr({},Nx),e),r=n.icon,o=n.mask,l=n.symbol,s=n.className,c=n.title,f=n.titleId,h=n.maskId,p=Ex(r),m=Ch("classes",[].concat(Ym(S5(n)),Ym((s||"").split(" ")))),v=Ch("transform",typeof n.transform=="string"?Km.transform(n.transform):n.transform),S=Ch("mask",Ex(o)),E=f5(p,Xr(Xr(Xr(Xr({},m),v),S),{},{symbol:l,title:c,titleId:f,maskId:h}));if(!E)return k5("Could not find icon",p),null;var N=E.abstract,T={ref:t};return Object.keys(n).forEach(function(_){Nx.hasOwnProperty(_)||(T[_]=n[_])}),R5(N[0],T)});Ln.displayName="FontAwesomeIcon";Ln.propTypes={beat:Ie.bool,border:Ie.bool,beatFade:Ie.bool,bounce:Ie.bool,className:Ie.string,fade:Ie.bool,flash:Ie.bool,mask:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),maskId:Ie.string,fixedWidth:Ie.bool,inverse:Ie.bool,flip:Ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),listItem:Ie.bool,pull:Ie.oneOf(["right","left"]),pulse:Ie.bool,rotation:Ie.oneOf([0,90,180,270]),shake:Ie.bool,size:Ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ie.bool,spinPulse:Ie.bool,spinReverse:Ie.bool,symbol:Ie.oneOfType([Ie.bool,Ie.string]),title:Ie.string,titleId:Ie.string,transform:Ie.oneOfType([Ie.string,Ie.object]),swapOpacity:Ie.bool};var R5=A2.bind(null,Qe.createElement),qm={exports:{}},fa={},Xm={exports:{}},Br={},Qm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;/*! - * Adapted from jQuery UI core - * - * http://jqueryui.com - * - * Copyright 2014 jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - * - * http://api.jqueryui.com/category/ui-core/ - */var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function l(m,v){return v.getPropertyValue("overflow")!=="visible"||m.scrollWidth<=0&&m.scrollHeight<=0}function s(m){var v=m.offsetWidth<=0&&m.offsetHeight<=0;if(v&&!m.innerHTML)return!0;try{var S=window.getComputedStyle(m),E=S.getPropertyValue("display");return v?E!==r&&l(m,S):E===n}catch{return console.warn("Failed to inspect element style"),!1}}function c(m){for(var v=m,S=m.getRootNode&&m.getRootNode();v&&v!==document.body;){if(S&&v===S&&(v=S.host.parentNode),s(v))return!1;v=v.parentNode}return!0}function f(m,v){var S=m.nodeName.toLowerCase(),E=o.test(S)&&!m.disabled||S==="a"&&m.href||v;return E&&c(m)}function h(m){var v=m.getAttribute("tabindex");v===null&&(v=void 0);var S=isNaN(v);return(S||v>=0)&&f(m,!S)}function p(m){var v=[].slice.call(m.querySelectorAll("*"),0).reduce(function(S,E){return S.concat(E.shadowRoot?p(E.shadowRoot):[E])},[]);return v.filter(h)}e.exports=t.default})(Qm,Qm.exports);var L2=Qm.exports;Object.defineProperty(Br,"__esModule",{value:!0});Br.resetState=I5;Br.log=A5;Br.handleBlur=eu;Br.handleFocus=tu;Br.markForFocusLater=D5;Br.returnFocus=L5;Br.popWithoutFocus=M5;Br.setupScopedFocus=j5;Br.teardownScopedFocus=F5;var O5=L2,P5=T5(O5);function T5(e){return e&&e.__esModule?e:{default:e}}var wl=[],Za=null,Zm=!1;function I5(){wl=[]}function A5(){}function eu(){Zm=!0}function tu(){if(Zm){if(Zm=!1,!Za)return;setTimeout(function(){if(!Za.contains(document.activeElement)){var e=(0,P5.default)(Za)[0]||Za;e.focus()}},0)}}function D5(){wl.push(document.activeElement)}function L5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{wl.length!==0&&(t=wl.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function M5(){wl.length>0&&wl.pop()}function j5(e){Za=e,window.addEventListener?(window.addEventListener("blur",eu,!1),document.addEventListener("focus",tu,!0)):(window.attachEvent("onBlur",eu),document.attachEvent("onFocus",tu))}function F5(){Za=null,window.addEventListener?(window.removeEventListener("blur",eu),document.removeEventListener("focus",tu)):(window.detachEvent("onBlur",eu),document.detachEvent("onFocus",tu))}var Jm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=L2,r=o(n);function o(c){return c&&c.__esModule?c:{default:c}}function l(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return c.activeElement.shadowRoot?l(c.activeElement.shadowRoot):c.activeElement}function s(c,f){var h=(0,r.default)(c);if(!h.length){f.preventDefault();return}var p=void 0,m=f.shiftKey,v=h[0],S=h[h.length-1],E=l();if(c===E){if(!m)return;p=S}if(S===E&&!m&&(p=v),v===E&&m&&(p=S),p){f.preventDefault(),p.focus();return}var N=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),T=N!=null&&N[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(T){var _=h.indexOf(E);if(_>-1&&(_+=m?-1:1),p=h[_],typeof p>"u"){f.preventDefault(),p=m?S:v,p.focus();return}f.preventDefault(),p.focus()}}e.exports=t.default})(Jm,Jm.exports);var z5=Jm.exports,Wr={},U5=function(){},$5=U5,Fr={},M2={exports:{}};/*! - Copyright (c) 2015 Jed Watson. - Based on code that is Copyright 2013-2015, Facebook, Inc. - All rights reserved. -*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(M2);var B5=M2.exports;Object.defineProperty(Fr,"__esModule",{value:!0});Fr.canUseDOM=Fr.SafeNodeList=Fr.SafeHTMLCollection=void 0;var W5=B5,H5=G5(W5);function G5(e){return e&&e.__esModule?e:{default:e}}var _d=H5.default,K5=_d.canUseDOM?window.HTMLElement:{};Fr.SafeHTMLCollection=_d.canUseDOM?window.HTMLCollection:{};Fr.SafeNodeList=_d.canUseDOM?window.NodeList:{};Fr.canUseDOM=_d.canUseDOM;Fr.default=K5;Object.defineProperty(Wr,"__esModule",{value:!0});Wr.resetState=Q5;Wr.log=Z5;Wr.assertNodeList=j2;Wr.setElement=J5;Wr.validateElement=Og;Wr.hide=ej;Wr.show=tj;Wr.documentNotReadyOrSSRTesting=nj;var Y5=$5,V5=X5(Y5),q5=Fr;function X5(e){return e&&e.__esModule?e:{default:e}}var dr=null;function Q5(){dr&&(dr.removeAttribute?dr.removeAttribute("aria-hidden"):dr.length!=null?dr.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(dr).forEach(function(e){return e.removeAttribute("aria-hidden")})),dr=null}function Z5(){}function j2(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function J5(e){var t=e;if(typeof t=="string"&&q5.canUseDOM){var n=document.querySelectorAll(t);j2(n,t),t=n}return dr=t||dr,dr}function Og(e){var t=e||dr;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,V5.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function ej(e){var t=!0,n=!1,r=void 0;try{for(var o=Og(e)[Symbol.iterator](),l;!(t=(l=o.next()).done);t=!0){var s=l.value;s.setAttribute("aria-hidden","true")}}catch(c){n=!0,r=c}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function tj(e){var t=!0,n=!1,r=void 0;try{for(var o=Og(e)[Symbol.iterator](),l;!(t=(l=o.next()).done);t=!0){var s=l.value;s.removeAttribute("aria-hidden")}}catch(c){n=!0,r=c}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function nj(){dr=null}var El={};Object.defineProperty(El,"__esModule",{value:!0});El.resetState=rj;El.log=ij;var _s={},Cs={};function kx(e,t){e.classList.remove(t)}function rj(){var e=document.getElementsByTagName("html")[0];for(var t in _s)kx(e,_s[t]);var n=document.body;for(var r in Cs)kx(n,Cs[r]);_s={},Cs={}}function ij(){}var oj=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},aj=function(t,n){return t[n]&&(t[n]-=1),n},lj=function(t,n,r){r.forEach(function(o){oj(n,o),t.add(o)})},sj=function(t,n,r){r.forEach(function(o){aj(n,o),n[o]===0&&t.remove(o)})};El.add=function(t,n){return lj(t.classList,t.nodeName.toLowerCase()=="html"?_s:Cs,n.split(" "))};El.remove=function(t,n){return sj(t.classList,t.nodeName.toLowerCase()=="html"?_s:Cs,n.split(" "))};var Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.log=cj;Nl.resetState=fj;function uj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var F2=function e(){var t=this;uj(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},Ff=new F2;function cj(){console.log("portalOpenInstances ----------"),console.log(Ff.openInstances.length),Ff.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function fj(){Ff=new F2}Nl.default=Ff;var Pg={};Object.defineProperty(Pg,"__esModule",{value:!0});Pg.resetState=mj;Pg.log=vj;var dj=Nl,pj=hj(dj);function hj(e){return e&&e.__esModule?e:{default:e}}var un=void 0,Or=void 0,ea=[];function mj(){for(var e=[un,Or],t=0;t0?(document.body.firstChild!==un&&document.body.insertBefore(un,document.body.firstChild),document.body.lastChild!==Or&&document.body.appendChild(Or)):(un.parentElement&&un.parentElement.removeChild(un),Or.parentElement&&Or.parentElement.removeChild(Or))}pj.default.subscribe(gj);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(J){for(var oe=1;oe0&&(he-=1,he===0&&S.show(te)),F.props.shouldFocusAfterRender&&(F.props.shouldReturnFocusAfterClose?(h.returnFocus(F.props.preventScroll),h.teardownScopedFocus()):h.popWithoutFocus()),F.props.onAfterClose&&F.props.onAfterClose(),C.default.deregister(F)},F.open=function(){F.beforeOpen(),F.state.afterOpen&&F.state.beforeClose?(clearTimeout(F.closeTimer),F.setState({beforeClose:!1})):(F.props.shouldFocusAfterRender&&(h.setupScopedFocus(F.node),h.markForFocusLater()),F.setState({isOpen:!0},function(){F.openAnimationFrame=requestAnimationFrame(function(){F.setState({afterOpen:!0}),F.props.isOpen&&F.props.onAfterOpen&&F.props.onAfterOpen({overlayEl:F.overlay,contentEl:F.content})})}))},F.close=function(){F.props.closeTimeoutMS>0?F.closeWithTimeout():F.closeWithoutTimeout()},F.focusContent=function(){return F.content&&!F.contentHasFocus()&&F.content.focus({preventScroll:!0})},F.closeWithTimeout=function(){var z=Date.now()+F.props.closeTimeoutMS;F.setState({beforeClose:!0,closesAt:z},function(){F.closeTimer=setTimeout(F.closeWithoutTimeout,F.state.closesAt-Date.now())})},F.closeWithoutTimeout=function(){F.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},F.afterClose)},F.handleKeyDown=function(z){K(z)&&(0,m.default)(F.content,z),F.props.shouldCloseOnEsc&&Z(z)&&(z.stopPropagation(),F.requestClose(z))},F.handleOverlayOnClick=function(z){F.shouldClose===null&&(F.shouldClose=!0),F.shouldClose&&F.props.shouldCloseOnOverlayClick&&(F.ownerHandlesClose()?F.requestClose(z):F.focusContent()),F.shouldClose=null},F.handleContentOnMouseUp=function(){F.shouldClose=!1},F.handleOverlayOnMouseDown=function(z){!F.props.shouldCloseOnOverlayClick&&z.target==F.overlay&&z.preventDefault()},F.handleContentOnClick=function(){F.shouldClose=!1},F.handleContentOnMouseDown=function(){F.shouldClose=!1},F.requestClose=function(z){return F.ownerHandlesClose()&&F.props.onRequestClose(z)},F.ownerHandlesClose=function(){return F.props.onRequestClose},F.shouldBeClosed=function(){return!F.state.isOpen&&!F.state.beforeClose},F.contentHasFocus=function(){return document.activeElement===F.content||F.content.contains(document.activeElement)},F.buildClassName=function(z,te){var ne=(typeof te>"u"?"undefined":r(te))==="object"?te:{base:U[z],afterOpen:U[z]+"--after-open",beforeClose:U[z]+"--before-close"},ae=ne.base;return F.state.afterOpen&&(ae=ae+" "+ne.afterOpen),F.state.beforeClose&&(ae=ae+" "+ne.beforeClose),typeof te=="string"&&te?ae+" "+te:ae},F.attributesFromObject=function(z,te){return Object.keys(te).reduce(function(ne,ae){return ne[z+"-"+ae]=te[ae],ne},{})},F.state={afterOpen:!1,beforeClose:!1},F.shouldClose=null,F.moveFromContentToOverlay=null,F}return o(oe,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(F,z){this.props.isOpen&&!F.isOpen?this.open():!this.props.isOpen&&F.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!z.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var F=this.props,z=F.appElement,te=F.ariaHideApp,ne=F.htmlOpenClassName,ae=F.bodyOpenClassName,pe=F.parentSelector,Fe=pe&&pe().ownerDocument||document;ae&&N.add(Fe.body,ae),ne&&N.add(Fe.getElementsByTagName("html")[0],ne),te&&(he+=1,S.hide(z)),C.default.register(this)}},{key:"render",value:function(){var F=this.props,z=F.id,te=F.className,ne=F.overlayClassName,ae=F.defaultStyles,pe=F.children,Fe=te?{}:ae.content,Ve=ne?{}:ae.overlay;if(this.shouldBeClosed())return null;var qe={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:n({},Ve,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Me=n({id:z,ref:this.setContentRef,style:n({},Fe,this.props.style.content),className:this.buildClassName("content",te),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),bt=this.props.contentElement(Me,pe);return this.props.overlayElement(qe,bt)}}]),oe}(l.Component);be.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},be.propTypes={isOpen:c.default.bool.isRequired,defaultStyles:c.default.shape({content:c.default.object,overlay:c.default.object}),style:c.default.shape({content:c.default.object,overlay:c.default.object}),className:c.default.oneOfType([c.default.string,c.default.object]),overlayClassName:c.default.oneOfType([c.default.string,c.default.object]),parentSelector:c.default.func,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,ariaHideApp:c.default.bool,appElement:c.default.oneOfType([c.default.instanceOf(_.default),c.default.instanceOf(T.SafeHTMLCollection),c.default.instanceOf(T.SafeNodeList),c.default.arrayOf(c.default.instanceOf(_.default))]),onAfterOpen:c.default.func,onAfterClose:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,role:c.default.string,contentLabel:c.default.string,aria:c.default.object,data:c.default.object,children:c.default.node,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func,testId:c.default.string},t.default=be,e.exports=t.default})(Xm,Xm.exports);var yj=Xm.exports;function z2(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function U2(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function $2(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}z2.__suppressDeprecationWarning=!0;U2.__suppressDeprecationWarning=!0;$2.__suppressDeprecationWarning=!0;function wj(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var l=e.displayName||e.name,s=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. - -`+l+" uses "+s+" but also contains the following legacy lifecycles:"+(n!==null?` - `+n:"")+(r!==null?` - `+r:"")+(o!==null?` - `+o:"")+` - -The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=z2,t.componentWillReceiveProps=U2),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=$2;var c=t.componentDidUpdate;t.componentDidUpdate=function(h,p,m){var v=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;c.call(this,h,p,v)}}return e}const xj=Object.freeze(Object.defineProperty({__proto__:null,polyfill:wj},Symbol.toStringTag,{value:"Module"})),bj=CT(xj);Object.defineProperty(fa,"__esModule",{value:!0});fa.bodyOpenClassName=fa.portalClassName=void 0;var Ox=Object.assign||function(e){for(var t=1;t{r(c=>(c+1)%to.length)},[]),l=O.useCallback(()=>{r(c=>c===0?to.length-1:c-1)},[]),s=O.useCallback(c=>{c.key==="ArrowRight"?o():c.key==="ArrowLeft"&&l()},[o,l]);return O.useEffect(()=>(e?document.addEventListener("keydown",s):document.removeEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}),[e,s]),Lx.setAppElement(document.getElementById("root")),x.jsx(Lx,{isOpen:e,onRequestClose:()=>t(),className:"modal-container",overlayClassName:"modal-overlay",shouldCloseOnOverlayClick:!0,children:x.jsxs("div",{className:"modal-content",children:[x.jsx("button",{type:"button",className:"close-modal-button",onClick:()=>t(),children:x.jsx(Ln,{icon:yd,className:"nav-icon"})}),x.jsx("span",{className:"modal-image-title",children:to[n]}),x.jsx("img",{src:`../src/assets/ingredients/${to[n].toLowerCase()}.webp`,alt:`${to[n]}`,className:"modal-image"}),x.jsxs("div",{className:"modal-nav-buttons",children:[x.jsx("button",{type:"button",className:"nav-button prev",onClick:l,children:x.jsx(Ln,{icon:PL,className:"nav-icon"})}),x.jsx("button",{type:"button",className:"nav-button next",onClick:o,children:x.jsx(Ln,{icon:TL,className:"nav-icon"})})]})]})})}const Mj=O.lazy(()=>NL(()=>import("./IngredientGalleryItem-DBrSEriu.js"),[]));function jj(){const[e,t]=O.useState(!1),n=He(o=>o.recipe.possibleItems),r=n.length<5?"flex flex-row gap-x-8":"grid-autofill";return x.jsxs(x.Fragment,{children:[!e&&x.jsxs("div",{className:"modal-open-button",onClick:()=>t(!0),onKeyDown:Oi,children:["CLICK ME",x.jsx("br",{}),'to say "Wow"',x.jsx("br",{}),'and "Ooooh"']}),x.jsx(Lj,{isOpen:e,onClose:()=>t(!1)}),x.jsx("div",{className:"flex flex-row overflow-auto no-scrollbar justify-evenly",children:x.jsx("div",{className:`flex flex-row flex-wrap center gap-y-8 gap-x-4 ${r}`,children:n.map(o=>x.jsx(O.Suspense,{fallback:x.jsx("div",{className:"suspense-gallery-item","data-testid":`${o}_suspense`,children:""}),children:x.jsx(Mj,{item:{itemName:o,amount:0,unit:ml}})},`${o}_suspense`))})})]})}function Fj(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}const Cd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function kl(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Tg(e){return"nodeType"in e}function bn(e){var t,n;return e?kl(e)?e:Tg(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Ig(e){const{Document:t}=bn(e);return e instanceof t}function vu(e){return kl(e)?!1:e instanceof bn(e).HTMLElement}function W2(e){return e instanceof bn(e).SVGElement}function Rl(e){return e?kl(e)?e.document:Tg(e)?Ig(e)?e:vu(e)||W2(e)?e.ownerDocument:document:document:document}const Ur=Cd?O.useLayoutEffect:O.useEffect;function Ed(e){const t=O.useRef(e);return Ur(()=>{t.current=e}),O.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=O.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function nu(e,t){t===void 0&&(t=[e]);const n=O.useRef(e);return Ur(()=>{n.current!==e&&(n.current=e)},t),n}function gu(e,t){const n=O.useRef();return O.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function $f(e){const t=Ed(e),n=O.useRef(null),r=O.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function Bf(e){const t=O.useRef();return O.useEffect(()=>{t.current=e},[e]),t.current}let Eh={};function Nd(e,t){return O.useMemo(()=>{if(t)return t;const n=Eh[e]==null?0:Eh[e]+1;return Eh[e]=n,e+"-"+n},[e,t])}function H2(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const c=Object.entries(s);for(const[f,h]of c){const p=l[f];p!=null&&(l[f]=p+e*h)}return l},{...t})}}const al=H2(1),Wf=H2(-1);function Uj(e){return"clientX"in e&&"clientY"in e}function kd(e){if(!e)return!1;const{KeyboardEvent:t}=bn(e.target);return t&&e instanceof t}function $j(e){if(!e)return!1;const{TouchEvent:t}=bn(e.target);return t&&e instanceof t}function Hf(e){if($j(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Uj(e)?{x:e.clientX,y:e.clientY}:null}const ki=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[ki.Translate.toString(e),ki.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Mx="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Bj(e){return e.matches(Mx)?e:e.querySelector(Mx)}const Wj={display:"none"};function Hj(e){let{id:t,value:n}=e;return Qe.createElement("div",{id:t,style:Wj},n)}function Gj(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Qe.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Kj(){const[e,t]=O.useState("");return{announce:O.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const G2=O.createContext(null);function Yj(e){const t=O.useContext(G2);O.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function Vj(){const[e]=O.useState(()=>new Set),t=O.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[O.useCallback(r=>{let{type:o,event:l}=r;e.forEach(s=>{var c;return(c=s[o])==null?void 0:c.call(s,l)})},[e]),t]}const qj={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},Xj={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Qj(e){let{announcements:t=Xj,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=qj}=e;const{announce:l,announcement:s}=Kj(),c=Nd("DndLiveRegion"),[f,h]=O.useState(!1);if(O.useEffect(()=>{h(!0)},[]),Yj(O.useMemo(()=>({onDragStart(m){let{active:v}=m;l(t.onDragStart({active:v}))},onDragMove(m){let{active:v,over:S}=m;t.onDragMove&&l(t.onDragMove({active:v,over:S}))},onDragOver(m){let{active:v,over:S}=m;l(t.onDragOver({active:v,over:S}))},onDragEnd(m){let{active:v,over:S}=m;l(t.onDragEnd({active:v,over:S}))},onDragCancel(m){let{active:v,over:S}=m;l(t.onDragCancel({active:v,over:S}))}}),[l,t])),!f)return null;const p=Qe.createElement(Qe.Fragment,null,Qe.createElement(Hj,{id:r,value:o.draggable}),Qe.createElement(Gj,{id:c,announcement:s}));return n?Zr.createPortal(p,n):p}var At;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(At||(At={}));function Gf(){}function Kf(e,t){return O.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function K2(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(r=>r!=null),[...t])}const $r=Object.freeze({x:0,y:0});function Y2(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Zj(e,t){const n=Hf(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function V2(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Jj(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function ev(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function e6(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const q2=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=ev(t),l=[];for(const s of r){const{id:c}=s,f=n.get(c);if(f){const h=ev(f),p=o.reduce((v,S,E)=>v+Y2(h[E],S),0),m=Number((p/4).toFixed(4));l.push({id:c,data:{droppableContainer:s,value:m}})}}return l.sort(V2)};function t6(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),s=o-r,c=l-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const l of r){const{id:s}=l,c=n.get(s);if(c){const f=t6(c,t);f>0&&o.push({id:s,data:{droppableContainer:l,value:f}})}}return o.sort(Jj)};function r6(e,t){const{top:n,left:r,bottom:o,right:l}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=l}const X2=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const o=[];for(const l of t){const{id:s}=l,c=n.get(s);if(c&&r6(r,c)){const h=ev(c).reduce((m,v)=>m+Y2(r,v),0),p=Number((h/4).toFixed(4));o.push({id:s,data:{droppableContainer:l,value:p}})}}return o.sort(V2)};function i6(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Q2(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:$r}function o6(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l({...s,top:s.top+e*c.y,bottom:s.bottom+e*c.y,left:s.left+e*c.x,right:s.right+e*c.x}),{...n})}}const a6=o6(1);function Z2(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function l6(e,t,n){const r=Z2(t);if(!r)return e;const{scaleX:o,scaleY:l,x:s,y:c}=r,f=e.left-s-(1-o)*parseFloat(n),h=e.top-c-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),p=o?e.width/o:e.width,m=l?e.height/l:e.height;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f}}const s6={ignoreTransform:!1};function Ol(e,t){t===void 0&&(t=s6);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:h,transformOrigin:p}=bn(e).getComputedStyle(e);h&&(n=l6(n,h,p))}const{top:r,left:o,width:l,height:s,bottom:c,right:f}=n;return{top:r,left:o,width:l,height:s,bottom:c,right:f}}function jx(e){return Ol(e,{ignoreTransform:!0})}function u6(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function c6(e,t){return t===void 0&&(t=bn(e).getComputedStyle(e)),t.position==="fixed"}function f6(e,t){t===void 0&&(t=bn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const l=t[o];return typeof l=="string"?n.test(l):!1})}function Ag(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(Ig(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!vu(o)||W2(o)||n.includes(o))return n;const l=bn(e).getComputedStyle(o);return o!==e&&f6(o,l)&&n.push(o),c6(o,l)?n:r(o.parentNode)}return e?r(e):n}function J2(e){const[t]=Ag(e,1);return t??null}function Nh(e){return!Cd||!e?null:kl(e)?e:Tg(e)?Ig(e)||e===Rl(e).scrollingElement?window:vu(e)?e:null:null}function eC(e){return kl(e)?e.scrollX:e.scrollLeft}function tC(e){return kl(e)?e.scrollY:e.scrollTop}function tv(e){return{x:eC(e),y:tC(e)}}var Wt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Wt||(Wt={}));function nC(e){return!Cd||!e?!1:e===document.scrollingElement}function rC(e){const t={x:0,y:0},n=nC(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,l=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:o,isLeft:l,isBottom:s,isRight:c,maxScroll:r,minScroll:t}}const d6={x:.2,y:.2};function p6(e,t,n,r,o){let{top:l,left:s,right:c,bottom:f}=n;r===void 0&&(r=10),o===void 0&&(o=d6);const{isTop:h,isBottom:p,isLeft:m,isRight:v}=rC(e),S={x:0,y:0},E={x:0,y:0},N={height:t.height*o.y,width:t.width*o.x};return!h&&l<=t.top+N.height?(S.y=Wt.Backward,E.y=r*Math.abs((t.top+N.height-l)/N.height)):!p&&f>=t.bottom-N.height&&(S.y=Wt.Forward,E.y=r*Math.abs((t.bottom-N.height-f)/N.height)),!v&&c>=t.right-N.width?(S.x=Wt.Forward,E.x=r*Math.abs((t.right-N.width-c)/N.width)):!m&&s<=t.left+N.width&&(S.x=Wt.Backward,E.x=r*Math.abs((t.left+N.width-s)/N.width)),{direction:S,speed:E}}function h6(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:s}=window;return{top:0,left:0,right:l,bottom:s,width:l,height:s}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function iC(e){return e.reduce((t,n)=>al(t,tv(n)),$r)}function m6(e){return e.reduce((t,n)=>t+eC(n),0)}function v6(e){return e.reduce((t,n)=>t+tC(n),0)}function oC(e,t){if(t===void 0&&(t=Ol),!e)return;const{top:n,left:r,bottom:o,right:l}=t(e);J2(e)&&(o<=0||l<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const g6=[["x",["left","right"],m6],["y",["top","bottom"],v6]];class Dg{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ag(n),o=iC(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,s,c]of g6)for(const f of s)Object.defineProperty(this,f,{get:()=>{const h=c(r),p=o[l]-h;return this.rect[f]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Es{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function y6(e){const{EventTarget:t}=bn(e);return e instanceof t?e:Rl(e)}function kh(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var pr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(pr||(pr={}));function Fx(e){e.preventDefault()}function w6(e){e.stopPropagation()}var We;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(We||(We={}));const aC={start:[We.Space,We.Enter],cancel:[We.Esc],end:[We.Space,We.Enter]},x6=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case We.Right:return{...n,x:n.x+25};case We.Left:return{...n,x:n.x-25};case We.Down:return{...n,y:n.y+25};case We.Up:return{...n,y:n.y-25}}};class lC{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Es(Rl(n)),this.windowListeners=new Es(bn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(pr.Resize,this.handleCancel),this.windowListeners.add(pr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(pr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&oC(r),n($r)}handleKeyDown(t){if(kd(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:l=aC,coordinateGetter:s=x6,scrollBehavior:c="smooth"}=o,{code:f}=t;if(l.end.includes(f)){this.handleEnd(t);return}if(l.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:h}=r.current,p=h?{x:h.left,y:h.top}:$r;this.referenceCoordinates||(this.referenceCoordinates=p);const m=s(t,{active:n,context:r.current,currentCoordinates:p});if(m){const v=Wf(m,p),S={x:0,y:0},{scrollableAncestors:E}=r.current;for(const N of E){const T=t.code,{isTop:_,isRight:b,isLeft:C,isBottom:I,maxScroll:M,minScroll:G}=rC(N),k=h6(N),B={x:Math.min(T===We.Right?k.right-k.width/2:k.right,Math.max(T===We.Right?k.left:k.left+k.width/2,m.x)),y:Math.min(T===We.Down?k.bottom-k.height/2:k.bottom,Math.max(T===We.Down?k.top:k.top+k.height/2,m.y))},U=T===We.Right&&!b||T===We.Left&&!C,K=T===We.Down&&!I||T===We.Up&&!_;if(U&&B.x!==m.x){const Z=N.scrollLeft+v.x,he=T===We.Right&&Z<=M.x||T===We.Left&&Z>=G.x;if(he&&!v.y){N.scrollTo({left:Z,behavior:c});return}he?S.x=N.scrollLeft-Z:S.x=T===We.Right?N.scrollLeft-M.x:N.scrollLeft-G.x,S.x&&N.scrollBy({left:-S.x,behavior:c});break}else if(K&&B.y!==m.y){const Z=N.scrollTop+v.y,he=T===We.Down&&Z<=M.y||T===We.Up&&Z>=G.y;if(he&&!v.x){N.scrollTo({top:Z,behavior:c});return}he?S.y=N.scrollTop-Z:S.y=T===We.Down?N.scrollTop-M.y:N.scrollTop-G.y,S.y&&N.scrollBy({top:-S.y,behavior:c});break}}this.handleMove(t,al(Wf(m,this.referenceCoordinates),S))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}lC.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=aC,onActivation:o}=t,{active:l}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const c=l.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function zx(e){return!!(e&&"distance"in e)}function Ux(e){return!!(e&&"delay"in e)}class Lg{constructor(t,n,r){var o;r===void 0&&(r=y6(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:s}=l;this.props=t,this.events=n,this.document=Rl(s),this.documentListeners=new Es(this.document),this.listeners=new Es(r),this.windowListeners=new Es(bn(s)),this.initialCoordinates=(o=Hf(l))!=null?o:$r,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(pr.Resize,this.handleCancel),this.windowListeners.add(pr.DragStart,Fx),this.windowListeners.add(pr.VisibilityChange,this.handleCancel),this.windowListeners.add(pr.ContextMenu,Fx),this.documentListeners.add(pr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ux(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(zx(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(pr.Click,w6,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(pr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:l}=this,{onMove:s,options:{activationConstraint:c}}=l;if(!o)return;const f=(n=Hf(t))!=null?n:$r,h=Wf(o,f);if(!r&&c){if(zx(c)){if(c.tolerance!=null&&kh(h,c.tolerance))return this.handleCancel();if(kh(h,c.distance))return this.handleStart()}return Ux(c)&&kh(h,c.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),s(f)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===We.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const b6={move:{name:"pointermove"},end:{name:"pointerup"}};class sC extends Lg{constructor(t){const{event:n}=t,r=Rl(n.target);super(t,b6,r)}}sC.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const S6={move:{name:"mousemove"},end:{name:"mouseup"}};var nv;(function(e){e[e.RightClick=2]="RightClick"})(nv||(nv={}));class Mg extends Lg{constructor(t){super(t,S6,Rl(t.event.target))}}Mg.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===nv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Rh={move:{name:"touchmove"},end:{name:"touchend"}};class jg extends Lg{constructor(t){super(t,Rh)}static setup(){return window.addEventListener(Rh.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Rh.move.name,t)};function t(){}}}jg.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Ns;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ns||(Ns={}));var Yf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Yf||(Yf={}));function _6(e){let{acceleration:t,activator:n=Ns.Pointer,canScroll:r,draggingRect:o,enabled:l,interval:s=5,order:c=Yf.TreeOrder,pointerCoordinates:f,scrollableAncestors:h,scrollableAncestorRects:p,delta:m,threshold:v}=e;const S=E6({delta:m,disabled:!l}),[E,N]=zj(),T=O.useRef({x:0,y:0}),_=O.useRef({x:0,y:0}),b=O.useMemo(()=>{switch(n){case Ns.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Ns.DraggableRect:return o}},[n,o,f]),C=O.useRef(null),I=O.useCallback(()=>{const G=C.current;if(!G)return;const k=T.current.x*_.current.x,B=T.current.y*_.current.y;G.scrollBy(k,B)},[]),M=O.useMemo(()=>c===Yf.TreeOrder?[...h].reverse():h,[c,h]);O.useEffect(()=>{if(!l||!h.length||!b){N();return}for(const G of M){if((r==null?void 0:r(G))===!1)continue;const k=h.indexOf(G),B=p[k];if(!B)continue;const{direction:U,speed:K}=p6(G,B,b,t,v);for(const Z of["x","y"])S[Z][U[Z]]||(K[Z]=0,U[Z]=0);if(K.x>0||K.y>0){N(),C.current=G,E(I,s),T.current=K,_.current=U;return}}T.current={x:0,y:0},_.current={x:0,y:0},N()},[t,I,r,N,l,s,JSON.stringify(b),JSON.stringify(S),E,h,M,p,JSON.stringify(v)])}const C6={x:{[Wt.Backward]:!1,[Wt.Forward]:!1},y:{[Wt.Backward]:!1,[Wt.Forward]:!1}};function E6(e){let{delta:t,disabled:n}=e;const r=Bf(t);return gu(o=>{if(n||!r||!o)return C6;const l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Wt.Backward]:o.x[Wt.Backward]||l.x===-1,[Wt.Forward]:o.x[Wt.Forward]||l.x===1},y:{[Wt.Backward]:o.y[Wt.Backward]||l.y===-1,[Wt.Forward]:o.y[Wt.Forward]||l.y===1}}},[n,t,r])}function N6(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return gu(o=>{var l;return t===null?null:(l=r??o)!=null?l:null},[r,t])}function k6(e,t){return O.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,l=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...l]},[]),[e,t])}var ru;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ru||(ru={}));var rv;(function(e){e.Optimized="optimized"})(rv||(rv={}));const $x=new Map;function R6(e,t){let{dragging:n,dependencies:r,config:o}=t;const[l,s]=O.useState(null),{frequency:c,measure:f,strategy:h}=o,p=O.useRef(e),m=T(),v=nu(m),S=O.useCallback(function(_){_===void 0&&(_=[]),!v.current&&s(b=>b===null?_:b.concat(_.filter(C=>!b.includes(C))))},[v]),E=O.useRef(null),N=gu(_=>{if(m&&!n)return $x;if(!_||_===$x||p.current!==e||l!=null){const b=new Map;for(let C of e){if(!C)continue;if(l&&l.length>0&&!l.includes(C.id)&&C.rect.current){b.set(C.id,C.rect.current);continue}const I=C.node.current,M=I?new Dg(f(I),I):null;C.rect.current=M,M&&b.set(C.id,M)}return b}return _},[e,l,n,m,f]);return O.useEffect(()=>{p.current=e},[e]),O.useEffect(()=>{m||S()},[n,m]),O.useEffect(()=>{l&&l.length>0&&s(null)},[JSON.stringify(l)]),O.useEffect(()=>{m||typeof c!="number"||E.current!==null||(E.current=setTimeout(()=>{S(),E.current=null},c))},[c,m,S,...r]),{droppableRects:N,measureDroppableContainers:S,measuringScheduled:l!=null};function T(){switch(h){case ru.Always:return!1;case ru.BeforeDragging:return n;default:return!n}}}function Fg(e,t){return gu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function O6(e,t){return Fg(e,t)}function P6(e){let{callback:t,disabled:n}=e;const r=Ed(t),o=O.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(r)},[r,n]);return O.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Rd(e){let{callback:t,disabled:n}=e;const r=Ed(t),o=O.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(r)},[n]);return O.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function T6(e){return new Dg(Ol(e),e)}function Bx(e,t,n){t===void 0&&(t=T6);const[r,o]=O.useReducer(c,null),l=P6({callback(f){if(e)for(const h of f){const{type:p,target:m}=h;if(p==="childList"&&m instanceof HTMLElement&&m.contains(e)){o();break}}}}),s=Rd({callback:o});return Ur(()=>{o(),e?(s==null||s.observe(e),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),l==null||l.disconnect())},[e]),r;function c(f){if(!e)return null;if(e.isConnected===!1){var h;return(h=f??n)!=null?h:null}const p=t(e);return JSON.stringify(f)===JSON.stringify(p)?f:p}}function I6(e){const t=Fg(e);return Q2(e,t)}const Wx=[];function A6(e){const t=O.useRef(e),n=gu(r=>e?r&&r!==Wx&&e&&t.current&&e.parentNode===t.current.parentNode?r:Ag(e):Wx,[e]);return O.useEffect(()=>{t.current=e},[e]),n}function D6(e){const[t,n]=O.useState(null),r=O.useRef(e),o=O.useCallback(l=>{const s=Nh(l.target);s&&n(c=>c?(c.set(s,tv(s)),new Map(c)):null)},[]);return O.useEffect(()=>{const l=r.current;if(e!==l){s(l);const c=e.map(f=>{const h=Nh(f);return h?(h.addEventListener("scroll",o,{passive:!0}),[h,tv(h)]):null}).filter(f=>f!=null);n(c.length?new Map(c):null),r.current=e}return()=>{s(e),s(l)};function s(c){c.forEach(f=>{const h=Nh(f);h==null||h.removeEventListener("scroll",o)})}},[o,e]),O.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,s)=>al(l,s),$r):iC(e):$r,[e,t])}function Hx(e,t){t===void 0&&(t=[]);const n=O.useRef(null);return O.useEffect(()=>{n.current=null},t),O.useEffect(()=>{const r=e!==$r;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Wf(e,n.current):$r}function L6(e){O.useEffect(()=>{if(!Cd)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function M6(e,t){return O.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:l}=r;return n[o]=s=>{l(s,t)},n},{}),[e,t])}function uC(e){return O.useMemo(()=>e?u6(e):null,[e])}const Oh=[];function j6(e,t){t===void 0&&(t=Ol);const[n]=e,r=uC(n?bn(n):null),[o,l]=O.useReducer(c,Oh),s=Rd({callback:l});return e.length>0&&o===Oh&&l(),Ur(()=>{e.length?e.forEach(f=>s==null?void 0:s.observe(f)):(s==null||s.disconnect(),l())},[e]),o;function c(){return e.length?e.map(f=>nC(f)?r:new Dg(t(f),f)):Oh}}function cC(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return vu(t)?t:e}function F6(e){let{measure:t}=e;const[n,r]=O.useState(null),o=O.useCallback(h=>{for(const{target:p}of h)if(vu(p)){r(m=>{const v=t(p);return m?{...m,width:v.width,height:v.height}:v});break}},[t]),l=Rd({callback:o}),s=O.useCallback(h=>{const p=cC(h);l==null||l.disconnect(),p&&(l==null||l.observe(p)),r(p?t(p):null)},[t,l]),[c,f]=$f(s);return O.useMemo(()=>({nodeRef:c,rect:n,setRef:f}),[n,c,f])}const z6=[{sensor:sC,options:{}},{sensor:lC,options:{}}],U6={current:{}},ef={draggable:{measure:jx},droppable:{measure:jx,strategy:ru.WhileDragging,frequency:rv.Optimized},dragOverlay:{measure:Ol}};class ks extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const $6={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ks,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Gf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ef,measureDroppableContainers:Gf,windowRect:null,measuringScheduled:!1},fC={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Gf,draggableNodes:new Map,over:null,measureDroppableContainers:Gf},yu=O.createContext(fC),dC=O.createContext($6);function B6(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ks}}}function W6(e,t){switch(t.type){case At.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case At.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case At.DragEnd:case At.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case At.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new ks(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case At.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;const s=new ks(e.droppable.containers);return s.set(n,{...l,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case At.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const l=new ks(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function H6(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=O.useContext(yu),l=Bf(r),s=Bf(n==null?void 0:n.id);return O.useEffect(()=>{if(!t&&!r&&l&&s!=null){if(!kd(l)||document.activeElement===l.target)return;const c=o.get(s);if(!c)return;const{activatorNode:f,node:h}=c;if(!f.current&&!h.current)return;requestAnimationFrame(()=>{for(const p of[f.current,h.current]){if(!p)continue;const m=Bj(p);if(m){m.focus();break}}})}},[r,t,o,s,l]),null}function pC(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,l)=>l({transform:o,...r}),n):n}function G6(e){return O.useMemo(()=>({draggable:{...ef.draggable,...e==null?void 0:e.draggable},droppable:{...ef.droppable,...e==null?void 0:e.droppable},dragOverlay:{...ef.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function K6(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const l=O.useRef(!1),{x:s,y:c}=typeof o=="boolean"?{x:o,y:o}:o;Ur(()=>{if(!s&&!c||!t){l.current=!1;return}if(l.current||!r)return;const h=t==null?void 0:t.node.current;if(!h||h.isConnected===!1)return;const p=n(h),m=Q2(p,r);if(s||(m.x=0),c||(m.y=0),l.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const v=J2(h);v&&v.scrollBy({top:m.y,left:m.x})}},[t,s,c,r,n])}const Od=O.createContext({...$r,scaleX:1,scaleY:1});var Zi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Zi||(Zi={}));const hC=O.memo(function(t){var n,r,o,l;let{id:s,accessibility:c,autoScroll:f=!0,children:h,sensors:p=z6,collisionDetection:m=n6,measuring:v,modifiers:S,...E}=t;const N=O.useReducer(W6,void 0,B6),[T,_]=N,[b,C]=Vj(),[I,M]=O.useState(Zi.Uninitialized),G=I===Zi.Initialized,{draggable:{active:k,nodes:B,translate:U},droppable:{containers:K}}=T,Z=k?B.get(k):null,he=O.useRef({initial:null,translated:null}),be=O.useMemo(()=>{var dt;return k!=null?{id:k,data:(dt=Z==null?void 0:Z.data)!=null?dt:U6,rect:he}:null},[k,Z]),J=O.useRef(null),[oe,Ne]=O.useState(null),[F,z]=O.useState(null),te=nu(E,Object.values(E)),ne=Nd("DndDescribedBy",s),ae=O.useMemo(()=>K.getEnabled(),[K]),pe=G6(v),{droppableRects:Fe,measureDroppableContainers:Ve,measuringScheduled:qe}=R6(ae,{dragging:G,dependencies:[U.x,U.y],config:pe.droppable}),Me=N6(B,k),bt=O.useMemo(()=>F?Hf(F):null,[F]),Mt=Pl(),Gt=O6(Me,pe.draggable.measure);K6({activeNode:k?B.get(k):null,config:Mt.layoutShiftCompensation,initialRect:Gt,measure:pe.draggable.measure});const Ue=Bx(Me,pe.draggable.measure,Gt),Jn=Bx(Me?Me.parentElement:null),Ge=O.useRef({activatorEvent:null,active:null,activeNode:Me,collisionRect:null,collisions:null,droppableRects:Fe,draggableNodes:B,draggingNode:null,draggingNodeRect:null,droppableContainers:K,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),dn=K.getNodeFor((n=Ge.current.over)==null?void 0:n.id),st=F6({measure:pe.dragOverlay.measure}),Sn=(r=st.nodeRef.current)!=null?r:Me,en=G?(o=st.rect)!=null?o:Ue:null,_n=!!(st.nodeRef.current&&st.rect),Eo=I6(_n?null:Ue),No=uC(Sn?bn(Sn):null),tn=A6(G?dn??Me:null),jt=j6(tn),nn=pC(S,{transform:{x:U.x-Eo.x,y:U.y-Eo.y,scaleX:1,scaleY:1},activatorEvent:F,active:be,activeNodeRect:Ue,containerNodeRect:Jn,draggingNodeRect:en,over:Ge.current.over,overlayNodeRect:st.rect,scrollableAncestors:tn,scrollableAncestorRects:jt,windowRect:No}),Mn=bt?al(bt,U):null,ko=D6(tn),br=Hx(ko),er=Hx(ko,[Ue]),Ft=al(nn,br),rn=en?a6(en,nn):null,Cn=be&&rn?m({active:be,collisionRect:rn,droppableRects:Fe,droppableContainers:ae,pointerCoordinates:Mn}):null,Ti=e6(Cn,"id"),[St,ni]=O.useState(null),Ii=_n?nn:al(nn,er),Ai=i6(Ii,(l=St==null?void 0:St.rect)!=null?l:null,Ue),Di=O.useCallback((dt,zt)=>{let{sensor:Ut,options:tr}=zt;if(J.current==null)return;const A=B.get(J.current);if(!A)return;const j=dt.nativeEvent,W=new Ut({active:J.current,activeNode:A,event:j,options:tr,context:Ge,onStart(ee){const ge=J.current;if(ge==null)return;const ce=B.get(ge);if(!ce)return;const{onDragStart:ie}=te.current,ye={active:{id:ge,data:ce.data,rect:he}};Zr.unstable_batchedUpdates(()=>{ie==null||ie(ye),M(Zi.Initializing),_({type:At.DragStart,initialCoordinates:ee,active:ge}),b({type:"onDragStart",event:ye})})},onMove(ee){_({type:At.DragMove,coordinates:ee})},onEnd:X(At.DragEnd),onCancel:X(At.DragCancel)});Zr.unstable_batchedUpdates(()=>{Ne(W),z(dt.nativeEvent)});function X(ee){return async function(){const{active:ce,collisions:ie,over:ye,scrollAdjustedTranslate:Se}=Ge.current;let tt=null;if(ce&&Se){const{cancelDrop:nt}=te.current;tt={activatorEvent:j,active:ce,collisions:ie,delta:Se,over:ye},ee===At.DragEnd&&typeof nt=="function"&&await Promise.resolve(nt(tt))&&(ee=At.DragCancel)}J.current=null,Zr.unstable_batchedUpdates(()=>{_({type:ee}),M(Zi.Uninitialized),ni(null),Ne(null),z(null);const nt=ee===At.DragEnd?"onDragEnd":"onDragCancel";if(tt){const me=te.current[nt];me==null||me(tt),b({type:nt,event:tt})}})}}},[B]),Li=O.useCallback((dt,zt)=>(Ut,tr)=>{const A=Ut.nativeEvent,j=B.get(tr);if(J.current!==null||!j||A.dndKit||A.defaultPrevented)return;const W={active:j};dt(Ut,zt.options,W)===!0&&(A.dndKit={capturedBy:zt.sensor},J.current=tr,Di(Ut,zt))},[B,Di]),Sr=k6(p,Li);L6(p),Ur(()=>{Ue&&I===Zi.Initializing&&M(Zi.Initialized)},[Ue,I]),O.useEffect(()=>{const{onDragMove:dt}=te.current,{active:zt,activatorEvent:Ut,collisions:tr,over:A}=Ge.current;if(!zt||!Ut)return;const j={active:zt,activatorEvent:Ut,collisions:tr,delta:{x:Ft.x,y:Ft.y},over:A};Zr.unstable_batchedUpdates(()=>{dt==null||dt(j),b({type:"onDragMove",event:j})})},[Ft.x,Ft.y]),O.useEffect(()=>{const{active:dt,activatorEvent:zt,collisions:Ut,droppableContainers:tr,scrollAdjustedTranslate:A}=Ge.current;if(!dt||J.current==null||!zt||!A)return;const{onDragOver:j}=te.current,W=tr.get(Ti),X=W&&W.rect.current?{id:W.id,rect:W.rect.current,data:W.data,disabled:W.disabled}:null,ee={active:dt,activatorEvent:zt,collisions:Ut,delta:{x:A.x,y:A.y},over:X};Zr.unstable_batchedUpdates(()=>{ni(X),j==null||j(ee),b({type:"onDragOver",event:ee})})},[Ti]),Ur(()=>{Ge.current={activatorEvent:F,active:be,activeNode:Me,collisionRect:rn,collisions:Cn,droppableRects:Fe,draggableNodes:B,draggingNode:Sn,draggingNodeRect:en,droppableContainers:K,over:St,scrollableAncestors:tn,scrollAdjustedTranslate:Ft},he.current={initial:en,translated:rn}},[be,Me,Cn,rn,B,Sn,en,Fe,K,St,tn,Ft]),_6({...Mt,delta:U,draggingRect:rn,pointerCoordinates:Mn,scrollableAncestors:tn,scrollableAncestorRects:jt});const va=O.useMemo(()=>({active:be,activeNode:Me,activeNodeRect:Ue,activatorEvent:F,collisions:Cn,containerNodeRect:Jn,dragOverlay:st,draggableNodes:B,droppableContainers:K,droppableRects:Fe,over:St,measureDroppableContainers:Ve,scrollableAncestors:tn,scrollableAncestorRects:jt,measuringConfiguration:pe,measuringScheduled:qe,windowRect:No}),[be,Me,Ue,F,Cn,Jn,st,B,K,Fe,St,Ve,tn,jt,pe,qe,No]),Ro=O.useMemo(()=>({activatorEvent:F,activators:Sr,active:be,activeNodeRect:Ue,ariaDescribedById:{draggable:ne},dispatch:_,draggableNodes:B,over:St,measureDroppableContainers:Ve}),[F,Sr,be,Ue,_,ne,B,St,Ve]);return Qe.createElement(G2.Provider,{value:C},Qe.createElement(yu.Provider,{value:Ro},Qe.createElement(dC.Provider,{value:va},Qe.createElement(Od.Provider,{value:Ai},h)),Qe.createElement(H6,{disabled:(c==null?void 0:c.restoreFocus)===!1})),Qe.createElement(Qj,{...c,hiddenTextDescribedById:ne}));function Pl(){const dt=(oe==null?void 0:oe.autoScrollEnabled)===!1,zt=typeof f=="object"?f.enabled===!1:f===!1,Ut=G&&!dt&&!zt;return typeof f=="object"?{...f,enabled:Ut}:{enabled:Ut}}}),Y6=O.createContext(null),Gx="button",V6="Droppable";function q6(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const l=Nd(V6),{activators:s,activatorEvent:c,active:f,activeNodeRect:h,ariaDescribedById:p,draggableNodes:m,over:v}=O.useContext(yu),{role:S=Gx,roleDescription:E="draggable",tabIndex:N=0}=o??{},T=(f==null?void 0:f.id)===t,_=O.useContext(T?Od:Y6),[b,C]=$f(),[I,M]=$f(),G=M6(s,t),k=nu(n);Ur(()=>(m.set(t,{id:t,key:l,node:b,activatorNode:I,data:k}),()=>{const U=m.get(t);U&&U.key===l&&m.delete(t)}),[m,t]);const B=O.useMemo(()=>({role:S,tabIndex:N,"aria-disabled":r,"aria-pressed":T&&S===Gx?!0:void 0,"aria-roledescription":E,"aria-describedby":p.draggable}),[r,S,N,T,E,p.draggable]);return{active:f,activatorEvent:c,activeNodeRect:h,attributes:B,isDragging:T,listeners:r?void 0:G,node:b,over:v,setNodeRef:C,setActivatorNodeRef:M,transform:_}}function X6(){return O.useContext(dC)}const Q6="Droppable",Z6={timeout:25};function Pd(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const l=Nd(Q6),{active:s,dispatch:c,over:f,measureDroppableContainers:h}=O.useContext(yu),p=O.useRef({disabled:n}),m=O.useRef(!1),v=O.useRef(null),S=O.useRef(null),{disabled:E,updateMeasurementsFor:N,timeout:T}={...Z6,...o},_=nu(N??r),b=O.useCallback(()=>{if(!m.current){m.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{h(Array.isArray(_.current)?_.current:[_.current]),S.current=null},T)},[T]),C=Rd({callback:b,disabled:E||!s}),I=O.useCallback((B,U)=>{C&&(U&&(C.unobserve(U),m.current=!1),B&&C.observe(B))},[C]),[M,G]=$f(I),k=nu(t);return O.useEffect(()=>{!C||!M.current||(C.disconnect(),m.current=!1,C.observe(M.current))},[M,C]),Ur(()=>(c({type:At.RegisterDroppable,element:{id:r,key:l,disabled:n,node:M,rect:v,data:k}}),()=>c({type:At.UnregisterDroppable,key:l,id:r})),[r]),O.useEffect(()=>{n!==p.current.disabled&&(c({type:At.SetDroppableDisabled,id:r,key:l,disabled:n}),p.current.disabled=n)},[r,l,n,c]),{active:s,rect:v,isOver:(f==null?void 0:f.id)===r,node:M,over:f,setNodeRef:G}}function J6(e){let{animation:t,children:n}=e;const[r,o]=O.useState(null),[l,s]=O.useState(null),c=Bf(n);return!n&&!r&&c&&o(c),Ur(()=>{if(!l)return;const f=r==null?void 0:r.key,h=r==null?void 0:r.props.id;if(f==null||h==null){o(null);return}Promise.resolve(t(h,l)).then(()=>{o(null)})},[t,r,l]),Qe.createElement(Qe.Fragment,null,n,r?O.cloneElement(r,{ref:s}):null)}const eF={x:0,y:0,scaleX:1,scaleY:1};function tF(e){let{children:t}=e;return Qe.createElement(yu.Provider,{value:fC},Qe.createElement(Od.Provider,{value:eF},t))}const nF={position:"fixed",touchAction:"none"},rF=e=>kd(e)?"transform 250ms ease":void 0,iF=O.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:l,className:s,rect:c,style:f,transform:h,transition:p=rF}=e;if(!c)return null;const m=o?h:{...h,scaleX:1,scaleY:1},v={...nF,width:c.width,height:c.height,top:c.top,left:c.left,transform:ki.Transform.toString(m),transformOrigin:o&&r?Zj(r,c):void 0,transition:typeof p=="function"?p(r):p,...f};return Qe.createElement(n,{className:s,style:v,ref:t},l)}),oF=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:l,className:s}=e;if(l!=null&&l.active)for(const[c,f]of Object.entries(l.active))f!==void 0&&(o[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,f));if(l!=null&&l.dragOverlay)for(const[c,f]of Object.entries(l.dragOverlay))f!==void 0&&r.node.style.setProperty(c,f);return s!=null&&s.active&&n.node.classList.add(s.active),s!=null&&s.dragOverlay&&r.node.classList.add(s.dragOverlay),function(){for(const[f,h]of Object.entries(o))n.node.style.setProperty(f,h);s!=null&&s.active&&n.node.classList.remove(s.active)}},aF=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:ki.Transform.toString(t)},{transform:ki.Transform.toString(n)}]},lF={duration:250,easing:"ease",keyframes:aF,sideEffects:oF({styles:{active:{opacity:"0"}}})};function sF(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return Ed((l,s)=>{if(t===null)return;const c=n.get(l);if(!c)return;const f=c.node.current;if(!f)return;const h=cC(s);if(!h)return;const{transform:p}=bn(s).getComputedStyle(s),m=Z2(p);if(!m)return;const v=typeof t=="function"?t:uF(t);return oC(f,o.draggable.measure),v({active:{id:l,data:c.data,node:f,rect:o.draggable.measure(f)},draggableNodes:n,dragOverlay:{node:s,rect:o.dragOverlay.measure(h)},droppableContainers:r,measuringConfiguration:o,transform:m})})}function uF(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...lF,...e};return l=>{let{active:s,dragOverlay:c,transform:f,...h}=l;if(!t)return;const p={x:c.rect.left-s.rect.left,y:c.rect.top-s.rect.top},m={scaleX:f.scaleX!==1?s.rect.width*f.scaleX/c.rect.width:1,scaleY:f.scaleY!==1?s.rect.height*f.scaleY/c.rect.height:1},v={x:f.x-p.x,y:f.y-p.y,...m},S=o({...h,active:s,dragOverlay:c,transform:{initial:f,final:v}}),[E]=S,N=S[S.length-1];if(JSON.stringify(E)===JSON.stringify(N))return;const T=r==null?void 0:r({active:s,dragOverlay:c,...h}),_=c.node.animate(S,{duration:t,easing:n,fill:"forwards"});return new Promise(b=>{_.onfinish=()=>{T==null||T(),b()}})}}let Kx=0;function cF(e){return O.useMemo(()=>{if(e!=null)return Kx++,Kx},[e])}const iv=Qe.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:l,modifiers:s,wrapperElement:c="div",className:f,zIndex:h=999}=e;const{activatorEvent:p,active:m,activeNodeRect:v,containerNodeRect:S,draggableNodes:E,droppableContainers:N,dragOverlay:T,over:_,measuringConfiguration:b,scrollableAncestors:C,scrollableAncestorRects:I,windowRect:M}=X6(),G=O.useContext(Od),k=cF(m==null?void 0:m.id),B=pC(s,{activatorEvent:p,active:m,activeNodeRect:v,containerNodeRect:S,draggingNodeRect:T.rect,over:_,overlayNodeRect:T.rect,scrollableAncestors:C,scrollableAncestorRects:I,transform:G,windowRect:M}),U=Fg(v),K=sF({config:r,draggableNodes:E,droppableContainers:N,measuringConfiguration:b}),Z=U?T.setRef:void 0;return Qe.createElement(tF,null,Qe.createElement(J6,{animation:K},m&&k?Qe.createElement(iF,{key:k,id:m.id,ref:Z,as:c,activatorEvent:p,adjustScale:t,className:f,transition:l,rect:U,style:{zIndex:h,...o},transform:B},n):null))});function mC(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const fF=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const o=r[0];return!t||!o?n:mC(n,t,o)},dF=e=>{let{transform:t,draggingNodeRect:n,windowRect:r}=e;return!n||!r?t:mC(t,n,r)};function vC(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Fc(e){return e!==null&&e>=0}const pF=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const l=vC(t,r,n),s=t[o],c=l[o];return!c||!s?null:{x:c.left-s.left,y:c.top-s.top,scaleX:c.width/s.width,scaleY:c.height/s.height}},hF="Sortable",mF=Qe.createContext({activeIndex:-1,containerId:hF,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:pF,disabled:{draggable:!1,droppable:!1}}),vF=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return vC(n,r,o).indexOf(t)},gF=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:l,newIndex:s,previousItems:c,previousContainerId:f,transition:h}=e;return!h||!r||c!==l&&o===s?!1:n?!0:s!==o&&t===f},yF={duration:200,easing:"ease"},gC="transform",wF=ki.Transition.toString({property:gC,duration:0,easing:"linear"}),xF={roleDescription:"sortable"};function bF(e){let{disabled:t,index:n,node:r,rect:o}=e;const[l,s]=O.useState(null),c=O.useRef(n);return Ur(()=>{if(!t&&n!==c.current&&r.current){const f=o.current;if(f){const h=Ol(r.current,{ignoreTransform:!0}),p={x:f.left-h.left,y:f.top-h.top,scaleX:f.width/h.width,scaleY:f.height/h.height};(p.x||p.y)&&s(p)}}n!==c.current&&(c.current=n)},[t,n,r,o]),O.useEffect(()=>{l&&s(null)},[l]),l}function yC(e){let{animateLayoutChanges:t=gF,attributes:n,disabled:r,data:o,getNewIndex:l=vF,id:s,strategy:c,resizeObserverConfig:f,transition:h=yF}=e;const{items:p,containerId:m,activeIndex:v,disabled:S,disableTransforms:E,sortedRects:N,overIndex:T,useDragOverlay:_,strategy:b}=O.useContext(mF),C=SF(r,S),I=p.indexOf(s),M=O.useMemo(()=>({sortable:{containerId:m,index:I,items:p},...o}),[m,o,I,p]),G=O.useMemo(()=>p.slice(p.indexOf(s)),[p,s]),{rect:k,node:B,isOver:U,setNodeRef:K}=Pd({id:s,data:M,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:G,...f}}),{active:Z,activatorEvent:he,activeNodeRect:be,attributes:J,setNodeRef:oe,listeners:Ne,isDragging:F,over:z,setActivatorNodeRef:te,transform:ne}=q6({id:s,data:M,attributes:{...xF,...n},disabled:C.draggable}),ae=Fj(K,oe),pe=!!Z,Fe=pe&&!E&&Fc(v)&&Fc(T),Ve=!_&&F,qe=Ve&&Fe?ne:null,bt=Fe?qe??(c??b)({rects:N,activeNodeRect:be,activeIndex:v,overIndex:T,index:I}):null,Mt=Fc(v)&&Fc(T)?l({id:s,items:p,activeIndex:v,overIndex:T}):I,Gt=Z==null?void 0:Z.id,Ue=O.useRef({activeId:Gt,items:p,newIndex:Mt,containerId:m}),Jn=p!==Ue.current.items,Ge=t({active:Z,containerId:m,isDragging:F,isSorting:pe,id:s,index:I,items:p,newIndex:Ue.current.newIndex,previousItems:Ue.current.items,previousContainerId:Ue.current.containerId,transition:h,wasDragging:Ue.current.activeId!=null}),dn=bF({disabled:!Ge,index:I,node:B,rect:k});return O.useEffect(()=>{pe&&Ue.current.newIndex!==Mt&&(Ue.current.newIndex=Mt),m!==Ue.current.containerId&&(Ue.current.containerId=m),p!==Ue.current.items&&(Ue.current.items=p)},[pe,Mt,m,p]),O.useEffect(()=>{if(Gt===Ue.current.activeId)return;if(Gt&&!Ue.current.activeId){Ue.current.activeId=Gt;return}const Sn=setTimeout(()=>{Ue.current.activeId=Gt},50);return()=>clearTimeout(Sn)},[Gt]),{active:Z,activeIndex:v,attributes:J,data:M,rect:k,index:I,newIndex:Mt,items:p,isOver:U,isSorting:pe,isDragging:F,listeners:Ne,node:B,overIndex:T,over:z,setNodeRef:ae,setActivatorNodeRef:te,setDroppableNodeRef:K,setDraggableNodeRef:oe,transform:dn??bt,transition:st()};function st(){if(dn||Jn&&Ue.current.newIndex===I)return wF;if(!(Ve&&!kd(he)||!h)&&(pe||Ge))return ki.Transition.toString({...h,property:gC})}}function SF(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}We.Down,We.Right,We.Up,We.Left;function Td({groupName:e,item:t,allowRemove:n,onRemove:r}){const{attributes:o,listeners:l,setNodeRef:s,transform:c,transition:f}=yC({id:`${e}_${t.itemName}`,data:{type:"Ingredient",item:t,parentGroup:e}}),h={transition:f,transform:ki.Translate.toString(c)};return x.jsxs("div",{ref:s,className:"relative print-rounded aspect-square w-clamp card-shadow center",style:h,...l,...o,children:[x.jsx("img",{src:`../src/assets/ingredients/${t.itemName.toLowerCase()}.webp`,alt:t.itemName,"data-testid":`${e}_${t.itemName}_selected`,className:"print-rounded"}),n&&x.jsx("div",{className:"flex center rounded-2xl",children:x.jsx(Ln,{icon:yd,size:"sm",onClick:()=>r==null?void 0:r(),className:"absolute pointer-events-auto top-0 right-0 -m-2 cursor-pointer text-white bg-black bg-opacity-80 rounded-full px-1 py-1"})})]},`${e}_${t.itemName}`)}function _F({group:e,item:t}){const n=wn(),r=(o,l)=>{n(X_({groupName:o,itemName:l}))};return x.jsx("div",{children:x.jsx("div",{className:"mx-2 hover:cursor-grabbing hover:scale-105",children:x.jsx(Td,{groupName:e.groupName,item:t,allowRemove:!0,onRemove:()=>r(e.groupName,t.itemName)})})})}function CF({group:e}){const{setNodeRef:t}=Pd({id:e.groupName,data:{type:"Group",group:e}});return x.jsx(x.Fragment,{children:x.jsx("div",{ref:t,className:"flex flex-wrap justify-center gap-y-4 mb-12 center",children:e.items.map((n,r)=>x.jsx("div",{children:x.jsx(_F,{group:e,item:n})},`${n}${r.toString()}`))})})}function EF(){const e=wn();return He(n=>n.groups.ingredientsGroups).map((n,r)=>x.jsxs("div",{className:"flex flex-col center",children:[x.jsx("p",{onKeyDown:Oi,"data-testid":"chosen_group",onClick:()=>e(Y_(n.groupName)),className:"group-chip text-fluidSubtitle",children:n.groupName}),x.jsx(CF,{group:n})]},`${n.groupName}_${r}`))}function NF(){const e=wn(),t=He(f=>f.groups.ingredientsGroups),[n,r]=O.useState(null),o=f=>{var h;r((h=f.active.data.current)==null?void 0:h.item)},l=f=>{var E,N,T,_;console.log("@ END");const{active:h,over:p}=f;if(!p)return;const m=((E=h.data.current)==null?void 0:E.type)==="Ingredient",v=((N=p.data.current)==null?void 0:N.type)==="Group",S=(T=h.data.current)==null?void 0:T.parentGroup;if(m&&v&&S!==p.id){const b=h.id.split("_")[1];if(t.filter(I=>I.groupName===p.id)[0].items.findIndex(I=>I.itemName===b)>-1)return;e(X_({groupName:S,itemName:b})),e(Dm({groupName:p.id,itemName:b,item:(_=h.data.current)==null?void 0:_.item}))}r(null)},s=f=>{const h=X2(f);return h.length>0?h.sort((m,v)=>{const S=f.droppableRects.get(m.id),E=f.droppableRects.get(v.id);if(S&&E){const N=S.width*S.height;return E.width*E.height-N}return 0}):q2(f)},c=K2(Kf(Mg,{activationConstraint:{distance:5}}),Kf(jg,{activationConstraint:{distance:4}}));return x.jsxs(hC,{collisionDetection:s,modifiers:[fF],sensors:c,onDragEnd:l,onDragStart:o,children:[x.jsxs("div",{className:"relative px-4 pb-4 overflow-auto center text-center no-scrollbar overflow-x-hidden",children:[x.jsx("h2",{className:"mb-8 text-fluidSubtitle",children:"Selected ingredient groups"}),x.jsx(EF,{})]}),n&&x.jsx(iv,{children:x.jsx(Td,{groupName:`${n.itemName}_${Math.random().toString()}`,item:n,allowRemove:!1})})]})}function kF(){const e=He(t=>t.groups.ingredientsGroups);return x.jsxs("div",{"data-testid":"homepage",className:"max-h-screen flex flex-col",children:[x.jsx(sa,{page:"/quantities",isNext:!0}),x.jsx(_L,{}),x.jsxs("div",{className:"flex flex-grow md:p-2 lg:p-2 sm:gap-4 md:gap-4 lg:gap-8 mx-4",children:[x.jsx("div",{className:"main-gallery sm:w-2/3 md:w-4/5 lg:w-3/5",children:x.jsx(jj,{})}),x.jsx("div",{className:`main-gallery sm:w-1/3 w-2/5 ${e.length===0&&"required-element-border"}`,children:x.jsx(NF,{})})]})]})}function RF(){const e=wn(),t=He(r=>r.actions.availableItems),n=r=>{e(pg(r))};return t.map((r,o)=>x.jsx("div",{"data-item-name":r.itemName,className:"mb-1 pb-2 lg:pb-4 print-rounded opacity-100 hover:scale-105",onKeyDown:Oi,children:x.jsx(Td,{groupName:o.toString(),item:r,allowRemove:!1,onRemove:()=>n(r)})},`${r.itemName}_shelf_${o}`))}function wC({action:e}){const{attributes:t,listeners:n,setNodeRef:r,transform:o,transition:l}=yC({id:e.actionName,data:{type:"Action",action:e}}),s={transition:l,transform:ki.Translate.toString(o)},{actionName:c}=e;return x.jsx("div",{ref:r,style:s,...n,...t,children:x.jsxs("div",{className:"bg-white card-shadow print-rounded w-clamp",children:[x.jsx("img",{draggable:"false",src:`../src/assets/chefActions/${c.toLowerCase()}.webp`,alt:c,"data-testid":`${c}_action`,className:"print-rounded-img rounded-t-lg w-clamp"}),x.jsx("p",{className:"text-fluidPrint py-2",children:c})]},c)})}function OF(){return dL.map(e=>x.jsx("div",{className:"bg-white mx-2 aspect-videoThin hover:scale-105",children:x.jsx(wC,{action:e})},`${e.actionName}`))}function Yx({icon:e,onCaretClick:t}){return x.jsx("div",{className:"flex center max-h-short cursor-pointer hover:border-y-2 hover:border-black",onClick:()=>t(),onKeyDown:Oi,children:x.jsx(Ln,{icon:e,size:"lg"})})}function PF({instruction:e}){const t=O.useRef(null),n=wn(),[r,o]=O.useState(e.note),[l,s]=O.useState(null),c=v=>{r?n(Nc({id:e.id,note:v})):(s(null),n(Nc({id:e.id,note:""})))},f=()=>{s(null),o(""),n(Nc({id:e.id,note:""}))},h=v=>{o(v.target.value)},p=l===e.id;O.useEffect(()=>{p&&t.current&&t.current.focus()},[p]);const m=(v,S)=>{if(v.key==="Enter"){const{id:E,note:N}=S;n(Nc({id:E,note:N})),v.target.blur()}};return p||e.note?x.jsxs("div",{className:"flex justify-end items-center md:w-60 lg:w-96",children:[x.jsx("input",{type:"text",ref:t,className:"input-border w-full text-fluidSubtitle text-center md:-m-2 lg:-m-4 text-ellipsis whitespace-nowrap overflow-hidden sm:p-0 md:p-1",placeholder:"Add a note to this instruction",value:r,onChange:h,onBlur:v=>c(v.target.value),onKeyDown:v=>m(v,e)}),x.jsx(Ln,{icon:yd,size:"1x",className:"bg-white -ml-2 cursor-pointer",onClick:()=>f()})]}):x.jsx("button",{type:"button",className:"sexy-button md:px-1 lg:px-3 md:py-1 lg:py-2 -m-4 min-w-16 card-shadow border border-transparent bg-yellow-100 text-neutral-800 font-semibold rounded-lg text-xs hover:bg-white hover:border-2 hover:border-yellow-200",onClick:()=>s(e.id),children:x.jsx("span",{children:"Add Note"})})}function TF({instruction:e}){const t=wn(),[n,r]=O.useState(e.action.time),o=f=>{f.target.select()},l=f=>{Number.isNaN(f)?r(0):r(f)},s=()=>{n>0&&r(f=>f-1)},c=()=>{r(f=>f+1)};return O.useEffect(()=>{t(lL({instruction:e,time:n}))},[t,e,n]),x.jsxs("div",{className:"flex flex-row rounded-md mx-2",children:[x.jsx("button",{type:"button",onClick:s,children:x.jsx(Ln,{icon:e2,className:"num-input-icons"})}),x.jsx("input",{className:`sm:w-8 md:w-8 lg:w-16 p-0 md:mx-2 lg:mx-4 focus:outline-none text-center rounded-2xl sm:text-2xl md:text-3xl lg:text-4xl bg-transparent ${n===0&&"required-element-fill"}`,type:"number",id:"units-number-input",value:n,required:!0,onChange:f=>l(Number.parseFloat(f.target.value)),onFocus:o,onWheel:f=>f.target.blur()}),x.jsx("button",{type:"button",onClick:c,children:x.jsx(Ln,{icon:t2,className:"num-input-icons"})})]})}function IF({action:e}){const{actionName:t}=e;return x.jsxs("div",{className:"bg-white card-shadow print-rounded w-clamp",children:[x.jsx("img",{draggable:"false",src:`../src/assets/chefActions/${t.toLowerCase()}.webp`,alt:t,"data-testid":`${t}_action`,className:"print-rounded-img md:w-clampSmall lg:w-clamp"}),x.jsx("p",{className:"text-fluidCard py-2",children:t})]},t)}function AF({groupName:e,item:t,onRemoveItem:n}){const r=()=>{n(t)};return x.jsxs("div",{className:"relative print-rounded aspect-square print-image card-shadow center",children:[x.jsx("img",{draggable:"false",src:`../src/assets/ingredients/${t.itemName.toLowerCase()}.webp`,alt:t.itemName,"data-testid":`${e}_${t.itemName}_shelf`,className:"print-rounded print-image"}),x.jsx("div",{className:"flex center rounded-2xl",children:x.jsx(Ln,{icon:yd,size:"sm",onClick:r,className:"absolute pointer-events-auto top-0 right-0 -m-2 cursor-pointer text-white bg-black bg-opacity-80 rounded-full px-1 py-1"})})]},`${e}_${t.itemName}`)}function DF({instruction:e,refClick:t}){const[n,r]=O.useState(""),{setNodeRef:o}=Pd({id:e.id,data:{type:"Instruction",instruction:e}}),l=wn(),s=(E,N)=>{const T=N.items.filter(_=>!Ho.isEqual(_,E));l(H_({id:N.id,items:T})),l(pg(E))},c=E=>{l(aL(E)),l(cL(E.items))},f=(E,N)=>{l(iL({id:N.id,customItem:E.target.value})),E.target.blur()},h=E=>{r(E.target.value)},p=E=>{E.key===" "&&(E.preventDefault(),r(N=>`${N} `))},{id:m,action:v,items:S}=e;return x.jsxs("div",{ref:o,className:"z-50 flex flex-col mb-12 border-l-2 border-r-2 border-l-neutral-400 border-r-neutral-400 rounded-3xl lg:scale-90",children:[x.jsxs("div",{className:"flex items-center justify-between pl-6",children:[x.jsxs("div",{className:"flex justify-start w-full py-2",children:[x.jsxs("div",{draggable:"false",className:"flex center",onClick:()=>{t(e)},onKeyDown:Oi,children:[x.jsx(IF,{action:v}),x.jsx("span",{className:"md:text-xs text-fluidSubtitle ml-4",children:"THE"}),x.jsx("div",{className:"flex flex-row",children:x.jsx("div",{className:"center sm:w-36 md:w-44 lg:w-52 xl:w-56 flex flex-row flex-wrap",children:!n&&S.length>0?S.map(E=>x.jsx("div",{className:"px-2 py-2",children:x.jsx(AF,{groupName:m.toString(),item:E,onRemoveItem:N=>s(N,e)})},`${m}_${E.itemName}`)):x.jsxs("div",{className:"flex flex-col justify-between items-center sm:min-h-16 md:min-h-24",children:[x.jsx("span",{className:"text-fluidPrint",children:n?x.jsxs("b",{className:"text-neutral-400",children:["Drop Item ",x.jsx("br",{})," or"]}):x.jsxs("b",{children:["Drop Item ",x.jsx("br",{})," or"]})},m),x.jsx("input",{type:"text",className:"input-border sm:w-24 md:w-36 text-sm text-center text-ellipsis whitespace-nowrap overflow-hidden p-1",placeholder:"Custom text",value:n,onChange:E=>h(E),onKeyDown:p,onBlur:E=>f(E,e)})]})})})]}),v.time!==-1&&x.jsxs("div",{className:"flex center",children:[x.jsx("span",{className:"text-fluidSubtitle mx-2",children:"FOR"}),x.jsx(TF,{instruction:e}),x.jsx("span",{className:"text-fluidSubtitle md:ml-2 lg:ml-4",children:v.unit})]})]}),x.jsx("button",{type:"button",className:"px-4 md:ml-2 lg:ml-8 h-fit",onClick:()=>c(e),children:x.jsx(Ln,{icon:kL,size:"lg",color:"red",className:"cursor-pointer hover:text-black"})})]}),x.jsx("div",{className:"flex center sm:mt-4 md:mt-6",children:x.jsx(PF,{instruction:e})})]},`${m}_${v}`)}const LF=O.memo(({onRefClick:e})=>[...He(r=>r.actions.chefInstructions)].sort((r,o)=>r.id-o.id).map(r=>x.jsx("div",{"data-instruction":r.id,className:"pt-4",children:x.jsx(DF,{instruction:r,refClick:o=>e(o)})},r.id)));function MF({onInstructionClick:e}){const{setNodeRef:t}=Pd({id:"steps_container",data:{type:"Steps"}}),n=He(s=>s.actions.chefInstructions),r=O.useRef(null),o=O.useRef(n.length),l=O.useCallback(()=>{const s=r.current;if(n.length===0)return;const c=n[n.length-1],f=s==null?void 0:s.querySelector(`[data-instruction="${c.id}"]`);f&&f.scrollIntoView({behavior:"smooth",inline:"center"})},[n]);return O.useEffect(()=>{n.length!==o.current&&(l(),o.current=n.length)},[n,l]),x.jsxs("div",{ref:s=>{t(s),r.current=s},className:`flex flex-col bg-slate-50 w-full md:ml-4 lg:ml-8 mb-1 max-h-semi overflow-scroll no-scrollbar ${n.length===0?"justify-center items-center":"justify-start items-center pt-2"} lg:overflow-x-auto`,children:[n.length===0&&x.jsxs("h2",{className:"text-fluidSubtitle text-gray-600",children:["Drag an action ",x.jsx("b",{children:"[ top ]"})," to this area ",x.jsx("br",{}),"and start adding ingredients ",x.jsx("b",{children:"[left ]"})," to it!",x.jsx("br",{}),x.jsx("br",{}),"To add more steps just",x.jsx("br",{}),"drag another action.",x.jsx("br",{}),x.jsx("br",{}),x.jsx("b",{children:"Replace an action by dragging a new one over it!"})]}),x.jsx(LF,{onRefClick:s=>e(s)})]})}function jF(){const e=O.useRef(null),t=O.useRef(null),[n,r]=O.useState(!1),[o,l]=O.useState(0),[s,c]=O.useState(0),[f,h]=O.useState(null),[p,m]=O.useState(null),[v,S]=O.useState(null),E=wn(),N=He(U=>U.actions.chefInstructions);O.useEffect(()=>{if(v){const U=v.current,K=Z=>{U&&(Z.preventDefault(),Z.deltaY<0?U.scrollLeft-=20:U.scrollLeft+=20)};return U&&U.addEventListener("wheel",K,{passive:!1}),()=>{U&&U.removeEventListener("wheel",K)}}},[v]);const T=U=>{if(v!=null&&v.current){const Z=v.current.firstChild.offsetWidth*4;v.current.scrollBy({left:U==="left"?-Z:Z,behavior:"smooth"})}},_=(U,K)=>{U.current&&(S(U),U.current&&(r(!0),l(K.pageX-U.current.offsetLeft),c(U.current.scrollLeft)))},b=(U,K)=>{if(!(!n||!U.current)&&(S(U),K.preventDefault(),U.current)){const he=K.pageX-U.current.offsetLeft-o;U.current.scrollLeft=s-he}},C=U=>{const K=e.current;let Z=null;Z=K==null?void 0:K.querySelector(`[data-action-name="${U.action.actionName}"]`),Z&&Z.scrollIntoView({behavior:"smooth",inline:"center"})},I=U=>{E(oL({id:N.length>0?Math.max(...N.map(K=>K.id))+1:0,note:"",action:U,items:[]}))},M=U=>{var K,Z,he,be;((K=U.active.data.current)==null?void 0:K.type)==="Action"?h((Z=U.active.data.current)==null?void 0:Z.action):h(null),((he=U.active.data.current)==null?void 0:he.type)==="Ingredient"?m((be=U.active.data.current)==null?void 0:be.item):m(null)},G=U=>{var J,oe,Ne,F,z,te;const{active:K,over:Z}=U;if(!Z)return;const he=(J=K.data.current)==null?void 0:J.type,be=(oe=Z.data.current)==null?void 0:oe.type;if(he==="Action"&&be==="Steps")I((Ne=K.data.current)==null?void 0:Ne.action);else if(be==="Instruction"){const ne=(F=Z.data.current)==null?void 0:F.instruction;if(he==="Action"){const ae=(z=K.data.current)==null?void 0:z.action;E(sL({id:ne.id,action:ae}))}else if(he==="Ingredient"){const ae=(te=K.data.current)==null?void 0:te.item;ne.items.find(Fe=>Ho.isEqual(Fe,ae))||(E(H_({id:ne.id,items:[...ne.items,ae]})),E(pg(ae)))}}},k=U=>{const K=X2(U);return K.length>0?K.sort((he,be)=>{const J=U.droppableRects.get(he.id),oe=U.droppableRects.get(be.id);if(J&&oe){const Ne=J.width*J.height,F=oe.width*oe.height;return Ne-F}return 0}):q2(U)},B=K2(Kf(Mg,{activationConstraint:{distance:0}}),Kf(jg,{activationConstraint:{distance:10}}));return x.jsx(hC,{collisionDetection:k,modifiers:[dF],sensors:B,onDragEnd:G,onDragStart:M,children:x.jsxs("div",{className:"mt-16 max-h-5/6 w-11/12 input-gallery-border p-4",children:[x.jsx("h2",{className:"text-fluidSubtitle mb-2",children:"Plan the instructions and steps for this recipe!"}),x.jsxs("div",{className:"flex flex-row gap-2",children:[x.jsx(Yx,{icon:IL,onCaretClick:()=>T("left")}),x.jsx("div",{id:"actions-scrollbar",className:"flex w-full overflow-x-scroll py-4 pt-4 overflow-y-auto",ref:e,onMouseDown:U=>_(e,U),onMouseLeave:()=>r(!1),onMouseUp:()=>r(!1),onMouseMove:U=>b(e,U),children:x.jsx(OF,{})}),x.jsx(Yx,{icon:RL,onCaretClick:()=>T("right")}),f&&x.jsx(iv,{children:x.jsx(wC,{action:f})})]}),x.jsxs("div",{className:"flex w-full justify-between mt-8",children:[x.jsx("div",{ref:t,className:"flex flex-col min-w-fit sm:p-2 md:p-4 sm:mr-4 md:mr-2 max-h-half overflow-y-scroll scroll-normal",children:x.jsx("div",{className:"scroll-mirror",children:x.jsx(RF,{})})}),p&&x.jsx(iv,{children:x.jsx(Td,{groupName:Math.random().toString(),item:p,allowRemove:!1})}),x.jsx(MF,{onInstructionClick:U=>C(U)})]})]})})}function FF(){const e=He(l=>l.warning.warning),t=He(l=>l.groups.ingredientsGroups),n=He(l=>l.actions.chefInstructions);let r="/print";return(t.flatMap(l=>l.items).length>18||n.length>3)&&(r="/doublePrint"),x.jsxs("div",{"data-testid":"instructions",className:"min-h-screen flex flex-col",children:[x.jsx(sa,{page:r,isNext:!0}),x.jsx(sa,{page:"/quantities",isNext:!1}),x.jsx("div",{className:"flex h-screen justify-center text-center",children:x.jsx(jF,{})}),e&&x.jsx(hg,{})]})}function zF(){return He(t=>t.groups.ingredientsGroups).map(t=>x.jsxs("div",{className:"flex flex-row center md:gap-x-3 lg:gap-x-4 mb-2",children:[x.jsx("p",{className:"text-fluidSubtitle leading-none md:mr-2 lg:mr-4",children:t.groupName}),t.items.map(n=>x.jsxs("div",{className:"flex flex-col h-fit center md:rounded-md lg:rounded-lg",children:[x.jsx("img",{src:`../src/assets/ingredients/${n.itemName.toLowerCase()}.webp`,alt:n.itemName,className:"card-shadow md:w-tinyImage lg:w-miniImage md:rounded-md lg:rounded-lg"}),x.jsxs("div",{className:"py-2 h-fit",children:[x.jsx("p",{className:"text-fluidPrintTitle leading-tight px-2",children:n.itemName}),x.jsx("p",{className:"text-fluidPrintTitle leading-tight",children:x.jsxs("b",{children:[n.amount,"  ",n.unit]})})]})]},`${t.groupName}_${n.itemName}`))]},t.groupName))}function UF(){return He(t=>t.actions.chefInstructions).map((t,n)=>x.jsxs("div",{className:"flex flex-col md:mb-2 lg:mb-6 md:w-5/6 lg:w-3/5 ",children:[x.jsxs("div",{className:"relative flex flex-row gap-4 pointer-events-none items-center justify-start ",children:[x.jsxs("span",{className:"md:text-xs lg:text-sm min-w-12",children:["Step ",n+1]}),x.jsx("div",{children:x.jsxs("div",{className:"bg-white card-shadow print-rounded w-tinyImage mr-2",children:[x.jsx("img",{draggable:"false",src:`../src/assets/chefActions/${t.action.actionName.toLowerCase()}.webp`,alt:t.action.actionName,"data-testid":`${t.action.actionName}_action`,className:"print-rounded-img w-tinyImage"}),x.jsx("p",{className:"md:text-xs lg:text-sm py-0.5",children:t.action.actionName})]})}),x.jsx("span",{className:" md:text-xs lg:text-sm",children:"THE"}),t.customItem?x.jsx("b",{className:"md:text-xs lg:text-sm",children:t.customItem}):x.jsx("div",{className:"center justify-start md:w-44 lg:min-w-48 flex flex-row flex-wrap",children:t.items.map(r=>x.jsxs("div",{className:"flex center py-1 px-2",children:[x.jsx("img",{src:`../src/assets/ingredients/${r.itemName.toLowerCase()}.webp`,alt:r.itemName,className:"card-shadow md:w-10 lg:w-12 print-rounded-img"})," "]},`${t.id}_${r.itemName}`))}),t.action.time!==-1&&x.jsxs("span",{className:"-bggreen-300 md:text-xs lg:text-sm min-w-12 md:-ml-4",children:["FOR ",x.jsx("br",{}),t.action.time," ",t.action.unit]})]}),x.jsx("div",{className:"flex w-full left-0",children:x.jsx("span",{className:"md:text-xs lg:text-sm md:pt-0.5 lg:pt-1",children:t.note})})]},`${t.id}`))}function $F(){const e=He(r=>r.recipe.title);let t=0;const n=document.querySelector("#a4");return n&&(t=n.getBoundingClientRect().width/n.getBoundingClientRect().height),x.jsxs("div",{"data-testid":"resultpage",className:"relative min-h-screen flex flex-col",children:[x.jsx(J_,{}),x.jsx("span",{className:`absolute top-1/3 left-0 ml-12 font-bold ${t>.709&&t<.7095?"text-green-600":"text-red-600"}`,children:t}),x.jsx(sa,{page:"/instructions",isNext:!1}),x.jsx("div",{className:"flex flex-col center mt-28 mb-16",children:x.jsxs("div",{id:"a4",className:"relative flex flex-col a4ratio w-2/3 text-center input-border justify-between",children:[x.jsxs("div",{className:"flex flex-col h-fit justify-between items-center",children:[x.jsx("h1",{className:"text-fluidTitle font-shadowsLight md:mt-2 lg:mt-4",children:e}),x.jsx("hr",{className:"w-1/2 border-gray-200 md:mb-2 lg:mb-4"}),x.jsx("h2",{className:"text-fluidSubtitle mb-2",children:"Ingredients:"})]}),x.jsx("div",{className:"grid grid-rows-3 h-2/5",children:x.jsx(zF,{})}),x.jsx("div",{className:"h-fit justify-between items-center",children:x.jsx("h2",{className:"text-fluidSubtitle md:mt-2 lg:mt-8",children:"Steps:"})}),x.jsx("div",{className:"flex flex-col items-center justify-start h-3/5 md:mt-1 lg:mt-2",children:x.jsx(UF,{})}),x.jsx("div",{className:"flex flex-col bg-yellow-200 h-fit justify-between items-center pb-2",children:x.jsx("h2",{className:"text-fluidSubtitle",children:"Enjoy !"})})]})}),x.jsx("div",{className:"fixed bottom-0 right-0 go-to-button-arrow mb-0",children:x.jsx(G_,{})})]})}function Vx({identifier:e,units:t}){var c;const n=He(f=>f.groups.ingredientsGroups),r=wn(),o=e.split("_")[0],l=e.split("_")[1],s=(c=n.find(f=>f.groupName===l))==null?void 0:c.items.filter(f=>f.itemName===o)[0];return s&&x.jsx("div",{className:"text-fluidCard",children:t.map(f=>x.jsx("button",{className:`unit-card my-1 md: text-xs lg:text-xl ${s.unit===f?"unit-card-chosen":null}`,type:"button",onClick:()=>r(Q_({groupName:l,itemName:o,unit:f})),children:f},`${e}_${f}`))})}function BF({item:e,groupName:t}){const n=wn(),[r,o]=O.useState(e.amount),l=p=>{p>=0&&o(p)},s=()=>{r>0&&(n(is({groupName:t,itemName:e.itemName,amount:r-1})),o(p=>p-1))},c=()=>{n(is({groupName:t,itemName:e.itemName,amount:r+1})),o(p=>p+1)},f=p=>{Number.isNaN(p)?o(0):p>=0&&o(p),n(is({groupName:t,itemName:e.itemName,amount:p}))},h=p=>{p.key==="Enter"?(f(r),n(is({groupName:t,itemName:e.itemName,amount:r}))):p.key==="Backspace"&&p.target.value.length===1&&(o(0),n(is({groupName:t,itemName:e.itemName,amount:0})))};return x.jsxs("div",{className:"flex flex-row rounded-md sm:mx-2 md:mx-4 lg:mx-6",children:[x.jsx("button",{type:"button",className:"lg:mx-2",onClick:s,children:x.jsx(Ln,{icon:e2,className:"num-input-icons"})}),x.jsx("input",{className:`sm:w-10 md:w-12 lg:w-16 p-0 py-1 focus:outline-none text-center font-roboto rounded-xl ${r===0&&"required-element-fill"}`,type:"number",id:"units-number-input",value:r,required:!0,onChange:p=>l(Number.parseFloat(p.target.value)),onFocus:Qc,onBlur:p=>f(Number.parseFloat(p.target.value)),onKeyDown:h,onWheel:p=>p.target.blur()}),x.jsx("button",{type:"button",className:"lg:mx-2",onClick:c,children:x.jsx(Ln,{icon:t2,className:"num-input-icons"})})]})}function WF({groupName:e,item:t}){const{itemName:n,unit:r}=t;return x.jsx("div",{"data-testid":"ingredientFullItem",className:"flex center",children:x.jsxs("div",{className:"aspect-videoWide flex flex-row h-clampSmall rounded-2xl card-shadow",children:[x.jsx("img",{src:`../src/assets/ingredients/${n.toLowerCase()}.webp`,alt:n,className:"rounded-l-2xl"}),x.jsxs("div",{className:"flex flex-col center w-1/2 p-2 m-auto lg:gap-1",children:[x.jsx("p",{className:"text-fluidSubtitle",children:n}),x.jsx("hr",{className:"w-full border-gray-400 lg:my-2"}),x.jsx(BF,{item:t,groupName:e}),x.jsx("p",{className:`text-fluidSubtitle rounded-xl px-3 ${r===ml&&"required-element-fill"}`,children:r})]})]},`${e}_${n}`)})}function HF({groupName:e,items:t}){const n=wn(),r=(o,l)=>{n(Q_({groupName:e,itemName:o.itemName,unit:l}))};return x.jsxs("div",{className:"flex flex-col items-start mx-8",children:[x.jsx("p",{className:"group-chip-dead",children:e}),t.map(o=>x.jsxs("div",{className:"flex flex-row center mb-8",children:[x.jsx(WF,{groupName:e,item:o},`${e}_${o.itemName}_${o.amount}_${o.unit}}`),x.jsxs("div",{"data-testid":"unitsButtonsArray",className:"flex flex-col justify-start md:gap-y-2 sm:mx-6 md:mx-12 lg:mx-8",children:[x.jsx(Vx,{identifier:`${o.itemName}_${e}_common1`,units:kc.slice(0,kc.length/2)}),x.jsx(Vx,{identifier:`${o.itemName}_${e}_common2`,units:kc.slice(kc.length/2)})]}),x.jsx("form",{children:x.jsx("select",{className:`text-base md:w-20 lg:w-28 input-border rounded-md px-2 py-1 ${Zw.includes(o.unit)?"border-blue-500 border-1 bg-blue-300":null}`,value:o.unit,onChange:l=>r(o,l.target.value),children:Zw.map(l=>x.jsx("option",{value:l,children:l},l))})})]},`${e}_${o.itemName}}`))]})}function GF(){const e=He(t=>t.groups.ingredientsGroups);return x.jsx("div",{className:"flex flex-col justify-center",children:x.jsxs("div",{className:"flex flex-col h-5/6 w-fit input-gallery-border overflow-auto p-4 items-center",children:[x.jsx("h2",{className:"text-fluidSubtitle mb-4",children:"Select the Units and Quantities for each ingredient"}),e.map(t=>x.jsx("div",{className:"sm:mb-2 md:mb-4",children:x.jsx(HF,{groupName:t.groupName,items:t.items},t.groupName)},t.groupName))]})})}function KF(){const e=He(t=>t.warning.warning);return x.jsxs("div",{"data-testid":"quantities",className:"max-h-screen flex flex-col",children:[x.jsx(sa,{page:"/instructions",isNext:!0}),x.jsx(sa,{page:"/",isNext:!1}),x.jsx("div",{className:"flex h-screen justify-center text-center mt-8",children:x.jsx(GF,{})}),e&&x.jsx(hg,{})]})}const YF=[{path:"/",element:x.jsx(kF,{}),errorElement:x.jsx(ZD,{})},{path:"/quantities",element:x.jsx(KF,{})},{path:"/instructions",element:x.jsx(FF,{})},{path:"/print",element:x.jsx($F,{})},{path:"/doublePrint",element:x.jsx(SL,{})}],VF=L4({reducer:{recipe:gL,groups:wL,actions:fL,warning:tL}}),qF=jD(YF);Th.createRoot(document.getElementById("root")).render(x.jsx(Qe.StrictMode,{children:x.jsx(dI,{store:VF,children:x.jsx(KD,{router:qF})})}));export{Ln as F,wn as a,Dm as b,ZF as f,Oi as h,x as j,Dr as s,He as u}; diff --git a/index.html b/index.html index e943393..723a5c6 100644 --- a/index.html +++ b/index.html @@ -2,11 +2,10 @@ - + - Vite + React + TS - - + a4recipe +