From faea6eee48154ebc2e2742a30205f6c239c7c169 Mon Sep 17 00:00:00 2001 From: yafimski Date: Tue, 9 Jul 2024 18:52:12 +0300 Subject: [PATCH] Updates --- ...N.js => IngredientGalleryItem-CqRfOQte.js} | 2 +- ...{index-D-vYZs4V.css => index-DESYoW96.css} | 2 +- .../{index-CfPL0Hl1.js => index-ZtM62RHq.js} | 60 +++++++++---------- index.html | 4 +- 4 files changed, 34 insertions(+), 34 deletions(-) rename assets/{IngredientGalleryItem-DBzJVy4N.js => IngredientGalleryItem-CqRfOQte.js} (94%) rename assets/{index-D-vYZs4V.css => index-DESYoW96.css} (64%) rename assets/{index-CfPL0Hl1.js => index-ZtM62RHq.js} (82%) diff --git a/assets/IngredientGalleryItem-DBzJVy4N.js b/assets/IngredientGalleryItem-CqRfOQte.js similarity index 94% rename from assets/IngredientGalleryItem-DBzJVy4N.js rename to assets/IngredientGalleryItem-CqRfOQte.js index 0f8c90b..303baa3 100644 --- a/assets/IngredientGalleryItem-DBzJVy4N.js +++ b/assets/IngredientGalleryItem-CqRfOQte.js @@ -1 +1 @@ -import{u as a,a as u,j as s,s as m,h as x,F as g,f,b as o,c as h}from"./index-CfPL0Hl1.js";function w({item:c}){const{itemName:e}=c,l=a(t=>t.groups.ingredientsGroups),r=a(t=>t.recipe.currentGroupName),n=u(),d=()=>{var t;if(!r)n(o("Ingredient group cannot be empty"));else{const p=(t=l.filter(i=>i.groupName===r)[0])==null?void 0:t.items.filter(i=>i.itemName===e)[0];n(p?o("Ingredient is already in the group!"):h({groupName:r,itemName:e}))}};return s.jsx("div",{className:"flex flex-row","data-testid":`${e}_gallery`,children:s.jsxs("div",{className:"relative flex flex-col print-rounded card-shadow w-cw aspect-videoReverse",children:[s.jsx("img",{src:`${m}/assets/ingredients/${e.toLowerCase()}.webp`,alt:e,className:"print-rounded-img"}),s.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:x,children:s.jsx(g,{icon:f,className:"cursor-pointer text-4xl text-green-600"})}),s.jsx("p",{className:"flex flex-grow rounded-b-2xl center px-4 text-center text-fluidPrintTitle",children:e})]})})}export{w as default}; +import{u as a,a as u,j as s,s as m,h as x,F as g,f,b as o,c as h}from"./index-ZtM62RHq.js";function w({item:c}){const{itemName:e}=c,l=a(t=>t.groups.ingredientsGroups),r=a(t=>t.recipe.currentGroupName),n=u(),d=()=>{var t;if(!r)n(o("Ingredient group cannot be empty"));else{const p=(t=l.filter(i=>i.groupName===r)[0])==null?void 0:t.items.filter(i=>i.itemName===e)[0];n(p?o("Ingredient is already in the group!"):h({groupName:r,itemName:e}))}};return s.jsx("div",{className:"flex flex-row","data-testid":`${e}_gallery`,children:s.jsxs("div",{className:"relative flex flex-col print-rounded card-shadow w-cw aspect-videoReverse",children:[s.jsx("img",{src:`${m}/assets/ingredients/${e.toLowerCase()}.webp`,alt:e,className:"print-rounded-img"}),s.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:x,children:s.jsx(g,{icon:f,className:"cursor-pointer text-4xl text-green-600"})}),s.jsx("p",{className:"flex flex-grow rounded-b-2xl center px-4 text-center text-fluidPrintTitle",children:e})]})})}export{w as default}; diff --git a/assets/index-D-vYZs4V.css b/assets/index-DESYoW96.css similarity index 64% rename from assets/index-D-vYZs4V.css rename to assets/index-DESYoW96.css index 627c806..f53b976 100644 --- a/assets/index-D-vYZs4V.css +++ b/assets/index-DESYoW96.css @@ -1 +1 @@ -@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}h2,h3,span,p,input,select{font-family:Indie Flower}div,img{touch-action:auto}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-6-16: clamp(.375rem, -.5717rem + 1.6vi, 1rem);--fluid-8-14: clamp(.5rem, -.068rem + .8876vi, .875rem);--fluid-10-20: clamp(.625rem, -.3217rem + 1.4793vi, 1.25rem);--fluid-6-10: clamp(.375rem, -.0037rem + .5917vi, .625rem);--w-clamp: clamp(3cqw, 6cqw, 8cqw);--w-clamp-small: clamp(12cqw, 20cqw, 28cqw);--w-clamp-input: clamp(24cqw, 36cqw, 44cqw);--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;display:flex;aspect-ratio:1 / 1;flex-direction:column;border-radius:1rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}@media (min-width: 768px){.modal-content{margin:3rem;width:50%}}@media (min-width: 1024px){.modal-content{margin:4rem;width:40%}}@media (min-width: 1280px){.modal-content{margin-top:5rem}}.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))}.group-borders-half{border-radius:1.5rem;border-right-width:2px;border-left-width:2px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));padding-left:.5rem;padding-right:.5rem}.print-title{margin-top:.75rem;margin-bottom:.5rem;font-family:Shadows Into Light;font-size:1.5rem;line-height:2rem}.print-subtitle{margin-top:1rem;margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem;font-weight:700}.print-small-text{font-family:Indie Flower;font-size:.875rem;line-height:1.25rem}.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}.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}}.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;width:var(--w-clamp);flex-direction:column;border-radius:1rem;--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.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;z-index:10;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-button{position:fixed;text-align:center;font-family:Shadows Into Light;font-weight:700;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-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.print-button{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.print-button{font-size:1.25rem;line-height:1.75rem}}.print-button{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));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.print-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-button{margin:1rem}}@media (min-width: 768px){.print-button{margin:1.5rem;font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.print-button{margin:2rem;font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.print-button{margin:2.5rem}}.save-button{position:fixed;text-align:center;font-family:Shadows Into Light;font-weight:700;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-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.save-button{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.save-button{font-size:1.25rem;line-height:1.75rem}}.save-button{bottom:0;left:0;--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.save-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: 640px){.save-button{margin:1rem}}@media (min-width: 768px){.save-button{margin:1.5rem;font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.save-button{margin:2rem;font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.save-button{margin:2.5rem}}@media (min-width: 640px){.print-image{width:1rem}}@media (min-width: 768px){.print-image{width:1.5rem}}@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)}}.hr-generic{width:100%;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}@media (min-width: 768px){.hr-generic{margin-top:.25rem;margin-bottom:.25rem}}@media (min-width: 1024px){.hr-generic{margin-top:.5rem;margin-bottom:.5rem}}@media (min-width: 1280px){.hr-generic{margin-top:.5rem;margin-bottom:.5rem}}.hr-long{position:absolute;top:50%;width:50%;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));scale:5 1}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-50{z-index:50}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.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-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-1{margin-left:.25rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-28{margin-top:7rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.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-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-10\/12{width:83.333333%}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-16{width:4rem}.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-fullImage{width:8cqw}.w-inputs{width:var(--w-clamp-input)}.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-52{max-width:13rem}.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}.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-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.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-2{border-width:2px}.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-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-300{--tw-bg-opacity: 1;background-color:rgb(252 165 165 / 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-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-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}.px-6{padding-left:1.5rem;padding-right:1.5rem}.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-1\.5{padding-top:.375rem;padding-bottom:.375rem}.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-xl{font-size:1.25rem;line-height:1.75rem}.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-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.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-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-neutral-500:hover{--tw-border-opacity: 1;border-color:rgb(115 115 115 / 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-red-300:hover{--tw-text-opacity: 1;color:rgb(252 165 165 / 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-red-300:focus{--tw-text-opacity: 1;color:rgb(252 165 165 / 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-6{width:1.5rem}.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\:py-0{padding-top:0;padding-bottom:0}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.md\:-m-2{margin:-.5rem}.md\:mx-1{margin-left:.25rem;margin-right:.25rem}.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\: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-0{margin-top:0}.md\:mt-1{margin-top:.25rem}.md\:mt-6{margin-top:1.5rem}.md\:min-h-24{min-height:6rem}.md\:w-12{width:3rem}.md\:w-16{width:4rem}.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-6{width:1.5rem}.md\:w-60{width:15rem}.md\:w-8{width:2rem}.md\:w-clampSmall{width:var(--w-clamp-small)}.md\:max-w-8{max-width:2rem}.md\:justify-between{justify-content:space-between}.md\:gap-0{gap:0px}.md\:gap-0\.5{gap:.125rem}.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-y-1{row-gap:.25rem}.md\:gap-y-2{row-gap:.5rem}.md\:gap-y-4{row-gap:1rem}.md\:p-0{padding:0}.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\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.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\:mb-3{margin-bottom:.75rem}.lg\:mb-6{margin-bottom:1.5rem}.lg\:ml-4{margin-left:1rem}.lg\:ml-8{margin-left:2rem}.lg\:mr-8{margin-right:2rem}.lg\:mt-1{margin-top:.25rem}.lg\:w-12{width:3rem}.lg\:w-16{width:4rem}.lg\:w-20{width:5rem}.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\:max-w-10{max-width:2.5rem}.lg\:max-w-80{max-width:20rem}.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-4{gap:1rem}.lg\:gap-8{gap:2rem}.lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.lg\:gap-y-2{row-gap:.5rem}.lg\:gap-y-8{row-gap:2rem}.lg\:overflow-x-auto{overflow-x:auto}.lg\:p-2{padding:.5rem}.lg\:px-3{padding-left:.75rem;padding-right:.75rem}.lg\:py-1{padding-top:.25rem;padding-bottom:.25rem}.lg\:py-2{padding-top:.5rem;padding-bottom:.5rem}.lg\:pb-4{padding-bottom:1rem}.lg\:pt-1{padding-top:.25rem}.lg\:text-3xl{font-size:1.875rem;line-height:2.25rem}.lg\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}.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\:mt-2{margin-top:.5rem}.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}} +@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}h2,h3,span,p,input,select{font-family:Indie Flower}div,img{touch-action:auto}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-6-16: clamp(.375rem, -.5717rem + 1.6vi, 1rem);--fluid-8-14: clamp(.5rem, -.068rem + .8876vi, .875rem);--fluid-10-20: clamp(.625rem, -.3217rem + 1.4793vi, 1.25rem);--fluid-6-10: clamp(.375rem, -.0037rem + .5917vi, .625rem);--w-clamp: clamp(3cqw, 6cqw, 8cqw);--w-clamp-small: clamp(12cqw, 20cqw, 28cqw);--w-clamp-input: clamp(24cqw, 36cqw, 44cqw);--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;display:flex;aspect-ratio:1 / 1;flex-direction:column;border-radius:1rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}@media (min-width: 768px){.modal-content{margin:3rem;width:50%}}@media (min-width: 1024px){.modal-content{margin:4rem;width:40%}}@media (min-width: 1280px){.modal-content{margin-top:5rem}}.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))}.group-borders-half{border-radius:1.5rem;border-right-width:2px;border-left-width:2px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));padding-left:.5rem;padding-right:.5rem}.print-title{margin-top:.75rem;margin-bottom:.5rem;font-family:Shadows Into Light;font-size:1.5rem;line-height:2rem}.print-subtitle{margin-top:1rem;margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem;font-weight:700}.print-small-text{font-family:Indie Flower;font-size:.875rem;line-height:1.25rem}.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}.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}}.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;width:var(--w-clamp);flex-direction:column;border-radius:1rem;--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.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;z-index:10;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-button{position:fixed;text-align:center;font-family:Shadows Into Light;font-weight:700;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-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.print-button{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.print-button{font-size:1.25rem;line-height:1.75rem}}.print-button{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));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.print-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-button{margin:1rem}}@media (min-width: 768px){.print-button{margin:1.5rem;font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.print-button{margin:2rem;font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.print-button{margin:2.5rem}}.save-button{position:fixed;text-align:center;font-family:Shadows Into Light;font-weight:700;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-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.save-button{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.save-button{font-size:1.25rem;line-height:1.75rem}}.save-button{bottom:0;left:0;--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.save-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: 640px){.save-button{margin:1rem}}@media (min-width: 768px){.save-button{margin:1.5rem;font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.save-button{margin:2rem;font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.save-button{margin:2.5rem}}@media (min-width: 640px){.print-image{width:1rem}}@media (min-width: 768px){.print-image{width:1.5rem}}@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)}}.hr-generic{width:100%;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}@media (min-width: 768px){.hr-generic{margin-top:.25rem;margin-bottom:.25rem}}@media (min-width: 1024px){.hr-generic{margin-top:.5rem;margin-bottom:.5rem}}@media (min-width: 1280px){.hr-generic{margin-top:.5rem;margin-bottom:.5rem}}.hr-long{position:absolute;top:50%;width:50%;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));scale:5 1}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-50{z-index:50}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.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-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-1{margin-left:.25rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-28{margin-top:7rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.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-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-10\/12{width:83.333333%}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-16{width:4rem}.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-fullImage{width:8cqw}.w-inputs{width:var(--w-clamp-input)}.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-52{max-width:13rem}.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}.resize{resize:both}.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-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.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-2{border-width:2px}.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-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-300{--tw-bg-opacity: 1;background-color:rgb(252 165 165 / 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-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-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}.px-6{padding-left:1.5rem;padding-right:1.5rem}.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-1\.5{padding-top:.375rem;padding-bottom:.375rem}.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-xl{font-size:1.25rem;line-height:1.75rem}.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-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.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-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-neutral-500:hover{--tw-border-opacity: 1;border-color:rgb(115 115 115 / 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-red-300:hover{--tw-text-opacity: 1;color:rgb(252 165 165 / 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-red-300:focus{--tw-text-opacity: 1;color:rgb(252 165 165 / 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-6{width:1.5rem}.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\:py-0{padding-top:0;padding-bottom:0}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.md\:-m-2{margin:-.5rem}.md\:mx-1{margin-left:.25rem;margin-right:.25rem}.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\: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-6{margin-top:1.5rem}.md\:min-h-24{min-height:6rem}.md\:w-12{width:3rem}.md\:w-16{width:4rem}.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-6{width:1.5rem}.md\:w-60{width:15rem}.md\:w-8{width:2rem}.md\:w-clampSmall{width:var(--w-clamp-small)}.md\:max-w-8{max-width:2rem}.md\:justify-between{justify-content:space-between}.md\:gap-0{gap:0px}.md\:gap-0\.5{gap:.125rem}.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-y-1{row-gap:.25rem}.md\:gap-y-2{row-gap:.5rem}.md\:gap-y-4{row-gap:1rem}.md\:p-0{padding:0}.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\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.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\:mb-3{margin-bottom:.75rem}.lg\:mb-6{margin-bottom:1.5rem}.lg\:ml-4{margin-left:1rem}.lg\:ml-8{margin-left:2rem}.lg\:mr-8{margin-right:2rem}.lg\:mt-0{margin-top:0}.lg\:mt-1{margin-top:.25rem}.lg\:w-12{width:3rem}.lg\:w-16{width:4rem}.lg\:w-20{width:5rem}.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\:max-w-10{max-width:2.5rem}.lg\:max-w-80{max-width:20rem}.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-0{gap:0px}.lg\:gap-0\.5{gap:.125rem}.lg\:gap-1{gap:.25rem}.lg\:gap-3{gap:.75rem}.lg\:gap-4{gap:1rem}.lg\:gap-8{gap:2rem}.lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.lg\:gap-y-2{row-gap:.5rem}.lg\:gap-y-8{row-gap:2rem}.lg\:overflow-x-auto{overflow-x:auto}.lg\:p-1{padding:.25rem}.lg\:p-2{padding:.5rem}.lg\:px-3{padding-left:.75rem;padding-right:.75rem}.lg\:py-1{padding-top:.25rem;padding-bottom:.25rem}.lg\:py-2{padding-top:.5rem;padding-bottom:.5rem}.lg\:pb-4{padding-bottom:1rem}.lg\:pt-1{padding-top:.25rem}.lg\:text-3xl{font-size:1.875rem;line-height:2.25rem}.lg\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}.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\:mt-2{margin-top:.5rem}.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}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}} diff --git a/assets/index-CfPL0Hl1.js b/assets/index-ZtM62RHq.js similarity index 82% rename from assets/index-CfPL0Hl1.js rename to assets/index-ZtM62RHq.js index 6936958..694df03 100644 --- a/assets/index-CfPL0Hl1.js +++ b/assets/index-ZtM62RHq.js @@ -6,7 +6,7 @@ function Jx(e,t){for(var n=0;n{throw new Error("uSES not initialized!")};function cv(e=xo){return function(){return rr.useContext(e)}}var db=cv(),pb=rT,iT=e=>{pb=e},oT=(e,t)=>e===t;function aT(e=xo){const t=e===xo?db:cv(e),n=(r,o={})=>{const{equalityFn:l=oT,devModeChecks:s={}}=typeof o=="function"?{equalityFn:o}:o,{store:c,subscription:f,getServerState:p,stabilityCheck:d,identityFunctionCheck:m}=t();rr.useRef(!0);const v=rr.useCallback({[r.name](E){return r(E)}}[r.name],[r,d,s.stabilityCheck]),S=pb(f.addNestedSub,c.getState,p||c.getState,v,l);return rr.useDebugValue(S),S};return Object.assign(n,{withTypes:()=>n}),n}var lt=aT();function lT(e){e()}function sT(){let e=null,t=null;return{clear(){e=null,t=null},notify(){lT(()=>{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 m1={notify(){},get:()=>[]};function uT(e,t){let n,r=m1,o=0,l=!1;function s(k){d();const A=r.subscribe(k);let _=!1;return()=>{_||(_=!0,A(),m())}}function c(){r.notify()}function f(){E.onStateChange&&E.onStateChange()}function p(){return l}function d(){o++,n||(n=e.subscribe(f),r=sT())}function m(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=m1)}function v(){l||(l=!0,d())}function S(){l&&(l=!1,m())}const E={addNestedSub:s,notifyNestedSubs:c,handleChangeWrapper:f,isSubscribed:p,trySubscribe:v,tryUnsubscribe:S,getListeners:()=>r};return E}var cT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fT=typeof navigator<"u"&&navigator.product==="ReactNative",dT=cT||fT?rr.useLayoutEffect:rr.useEffect;function pT({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:l="once"}){const s=rr.useMemo(()=>{const p=uT(e);return{store:e,subscription:p,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:l}},[e,r,o,l]),c=rr.useMemo(()=>e.getState(),[e]);dT(()=>{const{subscription:p}=s;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),c!==e.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[s,c]);const f=t||xo;return rr.createElement(f.Provider,{value:s},n)}var hT=pT;function hb(e=xo){const t=e===xo?db:cv(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var mT=hb();function vT(e=xo){const t=e===xo?mT:hb(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var wn=vT();iT(tT.useSyncExternalStoreWithSelector);var Ah={},mb={exports:{}},ur={},vb={exports:{}},gb={};/** + */var au=R;function qO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var VO=typeof Object.is=="function"?Object.is:qO,XO=au.useSyncExternalStore,QO=au.useRef,JO=au.useEffect,ZO=au.useMemo,eT=au.useDebugValue;fb.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var l=QO(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=ZO(function(){function f(S){if(!p){if(p=!0,d=S,S=r(S),o!==void 0&&s.hasValue){var C=s.value;if(o(C,S))return m=C}return m=S}if(C=m,VO(d,S))return C;var k=r(S);return o!==void 0&&o(C,k)?C:(d=S,m=k)}var p=!1,d,m,v=n===void 0?null:n;return[function(){return f(t())},v===null?void 0:function(){return f(v())}]},[t,n,r,o]);var c=XO(e,l[0],l[1]);return JO(function(){s.hasValue=!0,s.value=c},[c]),eT(c),c};cb.exports=fb;var tT=cb.exports,rr="default"in Th?pt:Th,p1=Symbol.for("react-redux-context"),h1=typeof globalThis<"u"?globalThis:{};function nT(){if(!rr.createContext)return{};const e=h1[p1]??(h1[p1]=new Map);let t=e.get(rr.createContext);return t||(t=rr.createContext(null),e.set(rr.createContext,t)),t}var xo=nT(),rT=()=>{throw new Error("uSES not initialized!")};function cv(e=xo){return function(){return rr.useContext(e)}}var db=cv(),pb=rT,iT=e=>{pb=e},oT=(e,t)=>e===t;function aT(e=xo){const t=e===xo?db:cv(e),n=(r,o={})=>{const{equalityFn:l=oT,devModeChecks:s={}}=typeof o=="function"?{equalityFn:o}:o,{store:c,subscription:f,getServerState:p,stabilityCheck:d,identityFunctionCheck:m}=t();rr.useRef(!0);const v=rr.useCallback({[r.name](C){return r(C)}}[r.name],[r,d,s.stabilityCheck]),S=pb(f.addNestedSub,c.getState,p||c.getState,v,l);return rr.useDebugValue(S),S};return Object.assign(n,{withTypes:()=>n}),n}var lt=aT();function lT(e){e()}function sT(){let e=null,t=null;return{clear(){e=null,t=null},notify(){lT(()=>{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 m1={notify(){},get:()=>[]};function uT(e,t){let n,r=m1,o=0,l=!1;function s(k){d();const A=r.subscribe(k);let _=!1;return()=>{_||(_=!0,A(),m())}}function c(){r.notify()}function f(){C.onStateChange&&C.onStateChange()}function p(){return l}function d(){o++,n||(n=e.subscribe(f),r=sT())}function m(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=m1)}function v(){l||(l=!0,d())}function S(){l&&(l=!1,m())}const C={addNestedSub:s,notifyNestedSubs:c,handleChangeWrapper:f,isSubscribed:p,trySubscribe:v,tryUnsubscribe:S,getListeners:()=>r};return C}var cT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fT=typeof navigator<"u"&&navigator.product==="ReactNative",dT=cT||fT?rr.useLayoutEffect:rr.useEffect;function pT({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:l="once"}){const s=rr.useMemo(()=>{const p=uT(e);return{store:e,subscription:p,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:l}},[e,r,o,l]),c=rr.useMemo(()=>e.getState(),[e]);dT(()=>{const{subscription:p}=s;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),c!==e.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[s,c]);const f=t||xo;return rr.createElement(f.Provider,{value:s},n)}var hT=pT;function hb(e=xo){const t=e===xo?db:cv(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var mT=hb();function vT(e=xo){const t=e===xo?mT:hb(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var wn=vT();iT(tT.useSyncExternalStoreWithSelector);var Ah={},mb={exports:{}},ur={},vb={exports:{}},gb={};/** * @license React * scheduler.production.min.js * @@ -30,7 +30,7 @@ function Jx(e,t){for(var n=0;n>>1,ye=W[oe];if(0>>1;oeo(Xe,se))Eeo(ft,Xe)?(W[oe]=ft,W[Ee]=se,oe=Ee):(W[oe]=Xe,W[Ve]=se,oe=Ve);else if(Eeo(ft,se))W[oe]=ft,W[Ee]=se,oe=Ee;else break e}}return ae}function o(W,ae){var se=W.sortIndex-ae.sortIndex;return se!==0?se:W.id-ae.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=[],p=[],d=1,m=null,v=3,S=!1,E=!1,k=!1,A=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 y(W){for(var ae=n(p);ae!==null;){if(ae.callback===null)r(p);else if(ae.startTime<=W)r(p),ae.sortIndex=ae.expirationTime,t(f,ae);else break;ae=n(p)}}function O(W){if(k=!1,y(W),!E)if(n(f)!==null)E=!0,Ae(I);else{var ae=n(p);ae!==null&&B(O,ae.startTime-W)}}function I(W,ae){E=!1,k&&(k=!1,_($),$=-1),S=!0;var se=v;try{for(y(ae),m=n(f);m!==null&&(!(m.expirationTime>ae)||W&&!te());){var oe=m.callback;if(typeof oe=="function"){m.callback=null,v=m.priorityLevel;var ye=oe(m.expirationTime<=ae);ae=e.unstable_now(),typeof ye=="function"?m.callback=ye:m===n(f)&&r(f),y(ae)}else r(f);m=n(f)}if(m!==null)var Fe=!0;else{var Ve=n(p);Ve!==null&&B(O,Ve.startTime-ae),Fe=!1}return Fe}finally{m=null,v=se,S=!1}}var G=!1,N=null,$=-1,F=5,q=-1;function te(){return!(e.unstable_now()-qW||125oe?(W.sortIndex=se,t(p,W),n(f)===null&&W===n(p)&&(k?(_($),$=-1):k=!0,B(O,se-oe))):(W.sortIndex=ye,t(f,W),E||S||(E=!0,Ae(I))),W},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(W){var ae=v;return function(){var se=v;v=ae;try{return W.apply(this,arguments)}finally{v=se}}}})(gb);vb.exports=gb;var gT=vb.exports;/** + */(function(e){function t(W,ae){var se=W.length;W.push(ae);e:for(;0>>1,ye=W[oe];if(0>>1;oeo(Xe,se))Eeo(ft,Xe)?(W[oe]=ft,W[Ee]=se,oe=Ee):(W[oe]=Xe,W[Ve]=se,oe=Ve);else if(Eeo(ft,se))W[oe]=ft,W[Ee]=se,oe=Ee;else break e}}return ae}function o(W,ae){var se=W.sortIndex-ae.sortIndex;return se!==0?se:W.id-ae.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=[],p=[],d=1,m=null,v=3,S=!1,C=!1,k=!1,A=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 y(W){for(var ae=n(p);ae!==null;){if(ae.callback===null)r(p);else if(ae.startTime<=W)r(p),ae.sortIndex=ae.expirationTime,t(f,ae);else break;ae=n(p)}}function O(W){if(k=!1,y(W),!C)if(n(f)!==null)C=!0,Ae(I);else{var ae=n(p);ae!==null&&B(O,ae.startTime-W)}}function I(W,ae){C=!1,k&&(k=!1,_($),$=-1),S=!0;var se=v;try{for(y(ae),m=n(f);m!==null&&(!(m.expirationTime>ae)||W&&!te());){var oe=m.callback;if(typeof oe=="function"){m.callback=null,v=m.priorityLevel;var ye=oe(m.expirationTime<=ae);ae=e.unstable_now(),typeof ye=="function"?m.callback=ye:m===n(f)&&r(f),y(ae)}else r(f);m=n(f)}if(m!==null)var Fe=!0;else{var Ve=n(p);Ve!==null&&B(O,Ve.startTime-ae),Fe=!1}return Fe}finally{m=null,v=se,S=!1}}var G=!1,N=null,$=-1,F=5,q=-1;function te(){return!(e.unstable_now()-qW||125oe?(W.sortIndex=se,t(p,W),n(f)===null&&W===n(p)&&(k?(_($),$=-1):k=!0,B(O,se-oe))):(W.sortIndex=ye,t(f,W),C||S||(C=!0,Ae(I))),W},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(W){var ae=v;return function(){var se=v;v=ae;try{return W.apply(this,arguments)}finally{v=se}}}})(gb);vb.exports=gb;var gT=vb.exports;/** * @license React * react-dom.production.min.js * @@ -38,14 +38,14 @@ function Jx(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ih=Object.prototype.hasOwnProperty,wT=/^[: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]*$/,v1={},g1={};function xT(e){return Ih.call(g1,e)?!0:Ih.call(v1,e)?!1:wT.test(e)?g1[e]=!0:(v1[e]=!0,!1)}function bT(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 _T(e,t,n,r){if(t===null||typeof t>"u"||bT(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 Mn(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 yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yn[e]=new Mn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yn[t]=new Mn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yn[e]=new Mn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yn[e]=new Mn(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){yn[e]=new Mn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yn[e]=new Mn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yn[e]=new Mn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yn[e]=new Mn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yn[e]=new Mn(e,5,!1,e.toLowerCase(),null,!1,!1)});var fv=/[\-:]([a-z])/g;function dv(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(fv,dv);yn[t]=new Mn(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(fv,dv);yn[t]=new Mn(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(fv,dv);yn[t]=new Mn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yn[e]=new Mn(e,1,!1,e.toLowerCase(),null,!1,!1)});yn.xlinkHref=new Mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yn[e]=new Mn(e,1,!1,e.toLowerCase(),null,!0,!0)});function pv(e,t,n,r){var o=yn.hasOwnProperty(t)?yn[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ih=Object.prototype.hasOwnProperty,wT=/^[: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]*$/,v1={},g1={};function xT(e){return Ih.call(g1,e)?!0:Ih.call(v1,e)?!1:wT.test(e)?g1[e]=!0:(v1[e]=!0,!1)}function bT(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 _T(e,t,n,r){if(t===null||typeof t>"u"||bT(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 Ln(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 yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yn[e]=new Ln(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yn[t]=new Ln(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yn[e]=new Ln(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yn[e]=new Ln(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){yn[e]=new Ln(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yn[e]=new Ln(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yn[e]=new Ln(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yn[e]=new Ln(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yn[e]=new Ln(e,5,!1,e.toLowerCase(),null,!1,!1)});var fv=/[\-:]([a-z])/g;function dv(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(fv,dv);yn[t]=new Ln(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(fv,dv);yn[t]=new Ln(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(fv,dv);yn[t]=new Ln(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yn[e]=new Ln(e,1,!1,e.toLowerCase(),null,!1,!1)});yn.xlinkHref=new Ln("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yn[e]=new Ln(e,1,!1,e.toLowerCase(),null,!0,!0)});function pv(e,t,n,r){var o=yn.hasOwnProperty(t)?yn[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{Gp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?as(e):""}function ST(e){switch(e.tag){case 5:return as(e.type);case 16:return as("Lazy");case 13:return as("Suspense");case 19:return as("SuspenseList");case 0:case 2:case 15:return e=Kp(e.type,!1),e;case 11:return e=Kp(e.type.render,!1),e;case 1:return e=Kp(e.type,!0),e;default:return""}}function jh(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 za:return"Fragment";case Fa:return"Portal";case Dh:return"Profiler";case hv:return"StrictMode";case Mh:return"Suspense";case Lh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xb:return(e.displayName||"Context")+".Consumer";case wb:return(e._context.displayName||"Context")+".Provider";case mv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vv:return t=e.displayName||null,t!==null?t:jh(e.type)||"Memo";case ro:t=e._payload,e=e._init;try{return jh(e(t))}catch{}}return null}function ET(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 jh(t);case 8:return t===hv?"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 bo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _b(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function CT(e){var t=_b(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 cc(e){e._valueTracker||(e._valueTracker=CT(e))}function Sb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_b(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function nf(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 Fh(e,t){var n=t.checked;return Lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function w1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bo(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 Eb(e,t){t=t.checked,t!=null&&pv(e,"checked",t,!1)}function zh(e,t){Eb(e,t);var n=bo(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")?Uh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Uh(e,t.type,bo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function x1(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 Uh(e,t,n){(t!=="number"||nf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ls=Array.isArray;function tl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=fc.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 ds={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},kT=["Webkit","ms","Moz","O"];Object.keys(ds).forEach(function(e){kT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ds[t]=ds[e]})});function Rb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ds.hasOwnProperty(e)&&ds[e]?(""+t).trim():t+"px"}function Pb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Rb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var NT=Lt({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 Wh(e,t){if(t){if(NT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function Hh(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 Gh=null;function gv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kh=null,nl=null,rl=null;function S1(e){if(e=uu(e)){if(typeof Kh!="function")throw Error(re(280));var t=e.stateNode;t&&(t=td(t),Kh(e.stateNode,e.type,t))}}function Ob(e){nl?rl?rl.push(e):rl=[e]:nl=e}function Tb(){if(nl){var e=nl,t=rl;if(rl=nl=null,S1(e),t)for(e=0;e>>=0,e===0?32:31-(FT(e)/zT|0)|0}var dc=64,pc=4194304;function ss(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 lf(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=ss(c):(l&=s,l!==0&&(r=ss(l)))}else s=n&~o,s!==0?r=ss(s):l!==0&&(r=ss(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 lu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kr(t),e[t]=n}function WT(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=hs),A1=" ",I1=!1;function Qb(e,t){switch(e){case"keyup":return gA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ua=!1;function wA(e,t){switch(e){case"compositionend":return Jb(t);case"keypress":return t.which!==32?null:(I1=!0,A1);case"textInput":return e=t.data,e===A1&&I1?null:e;default:return null}}function xA(e,t){if(Ua)return e==="compositionend"||!Cv&&Qb(e,t)?(e=Vb(),Wc=_v=so=null,Ua=!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=j1(n)}}function n_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?n_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function r_(){for(var e=window,t=nf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nf(e.document)}return t}function kv(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 PA(e){var t=r_(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&n_(n.ownerDocument.documentElement,n)){if(r!==null&&kv(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=F1(n,l);var s=F1(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,$a=null,Jh=null,vs=null,Zh=!1;function z1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zh||$a==null||$a!==nf(r)||(r=$a,"selectionStart"in r&&kv(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}),vs&&Ls(vs,r)||(vs=r,r=cf(Jh,"onSelect"),0Ha||(e.current=om[Ha],om[Ha]=null,Ha--)}function gt(e,t){Ha++,om[Ha]=e.current,e.current=t}var _o={},Nn=Ro(_o),Hn=Ro(!1),ra=_o;function cl(e,t){var n=e.type.contextTypes;if(!n)return _o;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 Gn(e){return e=e.childContextTypes,e!=null}function df(){Ct(Hn),Ct(Nn)}function K1(e,t,n){if(Nn.current!==_o)throw Error(re(168));gt(Nn,t),gt(Hn,n)}function d_(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(re(108,ET(e)||"Unknown",o));return Lt({},n,r)}function pf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_o,ra=Nn.current,gt(Nn,e),gt(Hn,Hn.current),!0}function Y1(e,t,n){var r=e.stateNode;if(!r)throw Error(re(169));n?(e=d_(e,t,ra),r.__reactInternalMemoizedMergedChildContext=e,Ct(Hn),Ct(Nn),gt(Nn,e)):Ct(Hn),gt(Hn,n)}var Ci=null,nd=!1,ah=!1;function p_(e){Ci===null?Ci=[e]:Ci.push(e)}function $A(e){nd=!0,p_(e)}function Po(){if(!ah&&Ci!==null){ah=!0;var e=0,t=ct;try{var n=Ci;for(ct=1;e>=s,o-=s,Ni=1<<32-Kr(t)+o|n<$?(F=N,N=null):F=N.sibling;var q=v(_,N,y[$],O);if(q===null){N===null&&(N=F);break}e&&N&&q.alternate===null&&t(_,N),b=l(q,b,$),G===null?I=q:G.sibling=q,G=q,N=F}if($===y.length)return n(_,N),Ot&&Bo(_,$),I;if(N===null){for(;$$?(F=N,N=null):F=N.sibling;var te=v(_,N,q.value,O);if(te===null){N===null&&(N=F);break}e&&N&&te.alternate===null&&t(_,N),b=l(te,b,$),G===null?I=te:G.sibling=te,G=te,N=F}if(q.done)return n(_,N),Ot&&Bo(_,$),I;if(N===null){for(;!q.done;$++,q=y.next())q=m(_,q.value,O),q!==null&&(b=l(q,b,$),G===null?I=q:G.sibling=q,G=q);return Ot&&Bo(_,$),I}for(N=r(_,N);!q.done;$++,q=y.next())q=S(N,_,$,q.value,O),q!==null&&(e&&q.alternate!==null&&N.delete(q.key===null?$:q.key),b=l(q,b,$),G===null?I=q:G.sibling=q,G=q);return e&&N.forEach(function(we){return t(_,we)}),Ot&&Bo(_,$),I}function A(_,b,y,O){if(typeof y=="object"&&y!==null&&y.type===za&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case uc:e:{for(var I=y.key,G=b;G!==null;){if(G.key===I){if(I=y.type,I===za){if(G.tag===7){n(_,G.sibling),b=o(G,y.props.children),b.return=_,_=b;break e}}else if(G.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ro&&X1(I)===G.type){n(_,G.sibling),b=o(G,y.props),b.ref=Zl(_,G,y),b.return=_,_=b;break e}n(_,G);break}else t(_,G);G=G.sibling}y.type===za?(b=ta(y.props.children,_.mode,O,y.key),b.return=_,_=b):(O=Qc(y.type,y.key,y.props,null,_.mode,O),O.ref=Zl(_,b,y),O.return=_,_=O)}return s(_);case Fa:e:{for(G=y.key;b!==null;){if(b.key===G)if(b.tag===4&&b.stateNode.containerInfo===y.containerInfo&&b.stateNode.implementation===y.implementation){n(_,b.sibling),b=o(b,y.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=hh(y,_.mode,O),b.return=_,_=b}return s(_);case ro:return G=y._init,A(_,b,G(y._payload),O)}if(ls(y))return E(_,b,y,O);if(ql(y))return k(_,b,y,O);xc(_,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,b!==null&&b.tag===6?(n(_,b.sibling),b=o(b,y),b.return=_,_=b):(n(_,b),b=ph(y,_.mode,O),b.return=_,_=b),s(_)):n(_,b)}return A}var dl=g_(!0),y_=g_(!1),vf=Ro(null),gf=null,Ya=null,Ov=null;function Tv(){Ov=Ya=gf=null}function Av(e){var t=vf.current;Ct(vf),e._currentValue=t}function sm(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 ol(e,t){gf=e,Ov=Ya=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wn=!0),e.firstContext=null)}function Or(e){var t=e._currentValue;if(Ov!==e)if(e={context:e,memoizedValue:t,next:null},Ya===null){if(gf===null)throw Error(re(308));Ya=e,gf.dependencies={lanes:0,firstContext:e}}else Ya=Ya.next=e;return t}var qo=null;function Iv(e){qo===null?qo=[e]:qo.push(e)}function w_(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,Ii(e,r)}function Ii(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 io=!1;function Dv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function x_(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 Pi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,et&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return o=r.interleaved,o===null?(t.next=t,Iv(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function Gc(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,wv(e,n)}}function Q1(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 yf(e,t,n,r){var o=e.updateQueue;io=!1;var l=o.firstBaseUpdate,s=o.lastBaseUpdate,c=o.shared.pending;if(c!==null){o.shared.pending=null;var f=c,p=f.next;f.next=null,s===null?l=p:s.next=p,s=f;var d=e.alternate;d!==null&&(d=d.updateQueue,c=d.lastBaseUpdate,c!==s&&(c===null?d.firstBaseUpdate=p:c.next=p,d.lastBaseUpdate=f))}if(l!==null){var m=o.baseState;s=0,d=p=f=null,c=l;do{var v=c.lane,S=c.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:S,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var E=e,k=c;switch(v=t,S=n,k.tag){case 1:if(E=k.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=k.payload,v=typeof E=="function"?E.call(S,m,v):E,v==null)break e;m=Lt({},m,v);break e;case 2:io=!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},d===null?(p=d=S,f=m):d=d.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(d===null&&(f=m),o.baseState=f,o.firstBaseUpdate=p,o.lastBaseUpdate=d,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);aa|=s,e.lanes=s,e.memoizedState=m}}function J1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=sh.transition;sh.transition={};try{e(!1),t()}finally{ct=n,sh.transition=r}}function j_(){return Tr().memoizedState}function GA(e,t,n){var r=yo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},F_(e))z_(t,n);else if(n=w_(e,t,n,r),n!==null){var o=An();Yr(n,e,r,o),U_(n,t,r)}}function KA(e,t,n){var r=yo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(F_(e))z_(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,Vr(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=w_(e,t,o,r),n!==null&&(o=An(),Yr(n,e,r,o),U_(n,t,r))}}function F_(e){var t=e.alternate;return e===Mt||t!==null&&t===Mt}function z_(e,t){gs=xf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function U_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wv(e,n)}}var bf={readContext:Or,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useInsertionEffect:Sn,useLayoutEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useMutableSource:Sn,useSyncExternalStore:Sn,useId:Sn,unstable_isNewReconciler:!1},YA={readContext:Or,useCallback:function(e,t){return li().memoizedState=[e,t===void 0?null:t],e},useContext:Or,useEffect:ew,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yc(4194308,4,A_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yc(4,2,e,t)},useMemo:function(e,t){var n=li();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=li();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=GA.bind(null,Mt,e),[r.memoizedState,e]},useRef:function(e){var t=li();return e={current:e},t.memoizedState=e},useState:Z1,useDebugValue:Bv,useDeferredValue:function(e){return li().memoizedState=e},useTransition:function(){var e=Z1(!1),t=e[0];return e=HA.bind(null,e[1]),li().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Mt,o=li();if(Ot){if(n===void 0)throw Error(re(407));n=n()}else{if(n=t(),un===null)throw Error(re(349));oa&30||E_(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,ew(k_.bind(null,r,l,e),[e]),r.flags|=2048,Hs(9,C_.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=li(),t=un.identifierPrefix;if(Ot){var n=Ri,r=Ni;n=(r&~(1<<32-Kr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bs++,0")&&(f=f.replace("",e.displayName)),f}while(1<=s&&0<=c);break}}}finally{Gp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?as(e):""}function ST(e){switch(e.tag){case 5:return as(e.type);case 16:return as("Lazy");case 13:return as("Suspense");case 19:return as("SuspenseList");case 0:case 2:case 15:return e=Kp(e.type,!1),e;case 11:return e=Kp(e.type.render,!1),e;case 1:return e=Kp(e.type,!0),e;default:return""}}function jh(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 za:return"Fragment";case Fa:return"Portal";case Dh:return"Profiler";case hv:return"StrictMode";case Lh:return"Suspense";case Mh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xb:return(e.displayName||"Context")+".Consumer";case wb:return(e._context.displayName||"Context")+".Provider";case mv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vv:return t=e.displayName||null,t!==null?t:jh(e.type)||"Memo";case ro:t=e._payload,e=e._init;try{return jh(e(t))}catch{}}return null}function ET(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 jh(t);case 8:return t===hv?"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 bo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _b(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function CT(e){var t=_b(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 cc(e){e._valueTracker||(e._valueTracker=CT(e))}function Sb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_b(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function nf(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 Fh(e,t){var n=t.checked;return Mt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function w1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bo(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 Eb(e,t){t=t.checked,t!=null&&pv(e,"checked",t,!1)}function zh(e,t){Eb(e,t);var n=bo(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")?Uh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Uh(e,t.type,bo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function x1(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 Uh(e,t,n){(t!=="number"||nf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ls=Array.isArray;function tl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=fc.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 ds={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},kT=["Webkit","ms","Moz","O"];Object.keys(ds).forEach(function(e){kT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ds[t]=ds[e]})});function Rb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ds.hasOwnProperty(e)&&ds[e]?(""+t).trim():t+"px"}function Pb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Rb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var NT=Mt({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 Wh(e,t){if(t){if(NT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function Hh(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 Gh=null;function gv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kh=null,nl=null,rl=null;function S1(e){if(e=uu(e)){if(typeof Kh!="function")throw Error(re(280));var t=e.stateNode;t&&(t=td(t),Kh(e.stateNode,e.type,t))}}function Ob(e){nl?rl?rl.push(e):rl=[e]:nl=e}function Tb(){if(nl){var e=nl,t=rl;if(rl=nl=null,S1(e),t)for(e=0;e>>=0,e===0?32:31-(FT(e)/zT|0)|0}var dc=64,pc=4194304;function ss(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 lf(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=ss(c):(l&=s,l!==0&&(r=ss(l)))}else s=n&~o,s!==0?r=ss(s):l!==0&&(r=ss(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 lu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kr(t),e[t]=n}function WT(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=hs),A1=" ",I1=!1;function Qb(e,t){switch(e){case"keyup":return gA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ua=!1;function wA(e,t){switch(e){case"compositionend":return Jb(t);case"keypress":return t.which!==32?null:(I1=!0,A1);case"textInput":return e=t.data,e===A1&&I1?null:e;default:return null}}function xA(e,t){if(Ua)return e==="compositionend"||!Cv&&Qb(e,t)?(e=Vb(),Wc=_v=so=null,Ua=!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=j1(n)}}function n_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?n_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function r_(){for(var e=window,t=nf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nf(e.document)}return t}function kv(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 PA(e){var t=r_(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&n_(n.ownerDocument.documentElement,n)){if(r!==null&&kv(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=F1(n,l);var s=F1(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,$a=null,Jh=null,vs=null,Zh=!1;function z1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zh||$a==null||$a!==nf(r)||(r=$a,"selectionStart"in r&&kv(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}),vs&&Ms(vs,r)||(vs=r,r=cf(Jh,"onSelect"),0Ha||(e.current=om[Ha],om[Ha]=null,Ha--)}function gt(e,t){Ha++,om[Ha]=e.current,e.current=t}var _o={},Nn=Ro(_o),Hn=Ro(!1),ra=_o;function cl(e,t){var n=e.type.contextTypes;if(!n)return _o;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 Gn(e){return e=e.childContextTypes,e!=null}function df(){Ct(Hn),Ct(Nn)}function K1(e,t,n){if(Nn.current!==_o)throw Error(re(168));gt(Nn,t),gt(Hn,n)}function d_(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(re(108,ET(e)||"Unknown",o));return Mt({},n,r)}function pf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_o,ra=Nn.current,gt(Nn,e),gt(Hn,Hn.current),!0}function Y1(e,t,n){var r=e.stateNode;if(!r)throw Error(re(169));n?(e=d_(e,t,ra),r.__reactInternalMemoizedMergedChildContext=e,Ct(Hn),Ct(Nn),gt(Nn,e)):Ct(Hn),gt(Hn,n)}var Ci=null,nd=!1,ah=!1;function p_(e){Ci===null?Ci=[e]:Ci.push(e)}function $A(e){nd=!0,p_(e)}function Po(){if(!ah&&Ci!==null){ah=!0;var e=0,t=ct;try{var n=Ci;for(ct=1;e>=s,o-=s,Ni=1<<32-Kr(t)+o|n<$?(F=N,N=null):F=N.sibling;var q=v(_,N,y[$],O);if(q===null){N===null&&(N=F);break}e&&N&&q.alternate===null&&t(_,N),b=l(q,b,$),G===null?I=q:G.sibling=q,G=q,N=F}if($===y.length)return n(_,N),Ot&&Bo(_,$),I;if(N===null){for(;$$?(F=N,N=null):F=N.sibling;var te=v(_,N,q.value,O);if(te===null){N===null&&(N=F);break}e&&N&&te.alternate===null&&t(_,N),b=l(te,b,$),G===null?I=te:G.sibling=te,G=te,N=F}if(q.done)return n(_,N),Ot&&Bo(_,$),I;if(N===null){for(;!q.done;$++,q=y.next())q=m(_,q.value,O),q!==null&&(b=l(q,b,$),G===null?I=q:G.sibling=q,G=q);return Ot&&Bo(_,$),I}for(N=r(_,N);!q.done;$++,q=y.next())q=S(N,_,$,q.value,O),q!==null&&(e&&q.alternate!==null&&N.delete(q.key===null?$:q.key),b=l(q,b,$),G===null?I=q:G.sibling=q,G=q);return e&&N.forEach(function(we){return t(_,we)}),Ot&&Bo(_,$),I}function A(_,b,y,O){if(typeof y=="object"&&y!==null&&y.type===za&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case uc:e:{for(var I=y.key,G=b;G!==null;){if(G.key===I){if(I=y.type,I===za){if(G.tag===7){n(_,G.sibling),b=o(G,y.props.children),b.return=_,_=b;break e}}else if(G.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ro&&X1(I)===G.type){n(_,G.sibling),b=o(G,y.props),b.ref=Zl(_,G,y),b.return=_,_=b;break e}n(_,G);break}else t(_,G);G=G.sibling}y.type===za?(b=ta(y.props.children,_.mode,O,y.key),b.return=_,_=b):(O=Qc(y.type,y.key,y.props,null,_.mode,O),O.ref=Zl(_,b,y),O.return=_,_=O)}return s(_);case Fa:e:{for(G=y.key;b!==null;){if(b.key===G)if(b.tag===4&&b.stateNode.containerInfo===y.containerInfo&&b.stateNode.implementation===y.implementation){n(_,b.sibling),b=o(b,y.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=hh(y,_.mode,O),b.return=_,_=b}return s(_);case ro:return G=y._init,A(_,b,G(y._payload),O)}if(ls(y))return C(_,b,y,O);if(ql(y))return k(_,b,y,O);xc(_,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,b!==null&&b.tag===6?(n(_,b.sibling),b=o(b,y),b.return=_,_=b):(n(_,b),b=ph(y,_.mode,O),b.return=_,_=b),s(_)):n(_,b)}return A}var dl=g_(!0),y_=g_(!1),vf=Ro(null),gf=null,Ya=null,Ov=null;function Tv(){Ov=Ya=gf=null}function Av(e){var t=vf.current;Ct(vf),e._currentValue=t}function sm(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 ol(e,t){gf=e,Ov=Ya=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wn=!0),e.firstContext=null)}function Or(e){var t=e._currentValue;if(Ov!==e)if(e={context:e,memoizedValue:t,next:null},Ya===null){if(gf===null)throw Error(re(308));Ya=e,gf.dependencies={lanes:0,firstContext:e}}else Ya=Ya.next=e;return t}var qo=null;function Iv(e){qo===null?qo=[e]:qo.push(e)}function w_(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,Ii(e,r)}function Ii(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 io=!1;function Dv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function x_(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 Pi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,et&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return o=r.interleaved,o===null?(t.next=t,Iv(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function Gc(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,wv(e,n)}}function Q1(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 yf(e,t,n,r){var o=e.updateQueue;io=!1;var l=o.firstBaseUpdate,s=o.lastBaseUpdate,c=o.shared.pending;if(c!==null){o.shared.pending=null;var f=c,p=f.next;f.next=null,s===null?l=p:s.next=p,s=f;var d=e.alternate;d!==null&&(d=d.updateQueue,c=d.lastBaseUpdate,c!==s&&(c===null?d.firstBaseUpdate=p:c.next=p,d.lastBaseUpdate=f))}if(l!==null){var m=o.baseState;s=0,d=p=f=null,c=l;do{var v=c.lane,S=c.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:S,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var C=e,k=c;switch(v=t,S=n,k.tag){case 1:if(C=k.payload,typeof C=="function"){m=C.call(S,m,v);break e}m=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=k.payload,v=typeof C=="function"?C.call(S,m,v):C,v==null)break e;m=Mt({},m,v);break e;case 2:io=!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},d===null?(p=d=S,f=m):d=d.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(d===null&&(f=m),o.baseState=f,o.firstBaseUpdate=p,o.lastBaseUpdate=d,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);aa|=s,e.lanes=s,e.memoizedState=m}}function J1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=sh.transition;sh.transition={};try{e(!1),t()}finally{ct=n,sh.transition=r}}function j_(){return Tr().memoizedState}function GA(e,t,n){var r=yo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},F_(e))z_(t,n);else if(n=w_(e,t,n,r),n!==null){var o=An();Yr(n,e,r,o),U_(n,t,r)}}function KA(e,t,n){var r=yo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(F_(e))z_(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,Vr(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=w_(e,t,o,r),n!==null&&(o=An(),Yr(n,e,r,o),U_(n,t,r))}}function F_(e){var t=e.alternate;return e===Lt||t!==null&&t===Lt}function z_(e,t){gs=xf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function U_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wv(e,n)}}var bf={readContext:Or,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useInsertionEffect:Sn,useLayoutEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useMutableSource:Sn,useSyncExternalStore:Sn,useId:Sn,unstable_isNewReconciler:!1},YA={readContext:Or,useCallback:function(e,t){return li().memoizedState=[e,t===void 0?null:t],e},useContext:Or,useEffect:ew,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yc(4194308,4,A_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yc(4,2,e,t)},useMemo:function(e,t){var n=li();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=li();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=GA.bind(null,Lt,e),[r.memoizedState,e]},useRef:function(e){var t=li();return e={current:e},t.memoizedState=e},useState:Z1,useDebugValue:Bv,useDeferredValue:function(e){return li().memoizedState=e},useTransition:function(){var e=Z1(!1),t=e[0];return e=HA.bind(null,e[1]),li().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Lt,o=li();if(Ot){if(n===void 0)throw Error(re(407));n=n()}else{if(n=t(),un===null)throw Error(re(349));oa&30||E_(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,ew(k_.bind(null,r,l,e),[e]),r.flags|=2048,Hs(9,C_.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=li(),t=un.identifierPrefix;if(Ot){var n=Ri,r=Ni;n=(r&~(1<<32-Kr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bs++,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[ui]=t,e[zs]=r,X_(e,t,!1,!1),t.stateNode=e;e:{switch(s=Hh(n,r),n){case"dialog":St("cancel",e),St("close",e),o=r;break;case"iframe":case"object":case"embed":St("load",e),o=r;break;case"video":case"audio":for(o=0;oml&&(t.flags|=128,r=!0,es(l,!1),t.lanes=4194304)}else{if(!r)if(e=wf(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),es(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Ot)return En(t),null}else 2*Wt()-l.renderingStartTime>ml&&n!==1073741824&&(t.flags|=128,r=!0,es(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=Wt(),t.sibling=null,n=Dt.current,gt(Dt,r?n&1|2:n&1),t):(En(t),null);case 22:case 23:return qv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nr&1073741824&&(En(t),t.subtreeFlags&6&&(t.flags|=8192)):En(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function tI(e,t){switch(Rv(t),t.tag){case 1:return Gn(t.type)&&df(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pl(),Ct(Hn),Ct(Nn),jv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lv(t),null;case 13:if(Ct(Dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ct(Dt),null;case 4:return pl(),null;case 10:return Av(t.type._context),null;case 22:case 23:return qv(),null;case 24:return null;default:return null}}var _c=!1,kn=!1,nI=typeof WeakSet=="function"?WeakSet:Set,ge=null;function qa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){zt(e,t,r)}else n.current=null}function gm(e,t,n){try{n()}catch(r){zt(e,t,r)}}var fw=!1;function rI(e,t){if(em=sf,e=r_(),kv(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,p=0,d=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&&++p===o&&(c=s),v===l&&++d===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(tm={focusedElem:e,selectionRange:n},sf=!1,ge=t;ge!==null;)if(t=ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ge=e;else for(;ge!==null;){t=ge;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 k=E.memoizedProps,A=E.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?k:jr(t.type,k),A);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(O){zt(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,ge=e;break}ge=t.return}return E=fw,fw=!1,E}function ys(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&&gm(t,n,l)}o=o.next}while(o!==r)}}function od(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 ym(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 Z_(e){var t=e.alternate;t!==null&&(e.alternate=null,Z_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ui],delete t[zs],delete t[im],delete t[zA],delete t[UA])),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 eS(e){return e.tag===5||e.tag===3||e.tag===4}function dw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eS(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 wm(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=ff));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}function xm(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(xm(e,t,n),e=e.sibling;e!==null;)xm(e,t,n),e=e.sibling}var vn=null,zr=!1;function eo(e,t,n){for(n=n.child;n!==null;)tS(e,t,n),n=n.sibling}function tS(e,t,n){if(fi&&typeof fi.onCommitFiberUnmount=="function")try{fi.onCommitFiberUnmount(Qf,n)}catch{}switch(n.tag){case 5:kn||qa(n,t);case 6:var r=vn,o=zr;vn=null,eo(e,t,n),vn=r,zr=o,vn!==null&&(zr?(e=vn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):vn.removeChild(n.stateNode));break;case 18:vn!==null&&(zr?(e=vn,n=n.stateNode,e.nodeType===8?oh(e.parentNode,n):e.nodeType===1&&oh(e,n),Ds(e)):oh(vn,n.stateNode));break;case 4:r=vn,o=zr,vn=n.stateNode.containerInfo,zr=!0,eo(e,t,n),vn=r,zr=o;break;case 0:case 11:case 14:case 15:if(!kn&&(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)&&gm(n,t,s),o=o.next}while(o!==r)}eo(e,t,n);break;case 1:if(!kn&&(qa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){zt(n,t,c)}eo(e,t,n);break;case 21:eo(e,t,n);break;case 22:n.mode&1?(kn=(r=kn)||n.memoizedState!==null,eo(e,t,n),kn=r):eo(e,t,n);break;default:eo(e,t,n)}}function pw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nI),t.forEach(function(r){var o=dI.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Lr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~l}if(r=o,r=Wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oI(r/1960))-r,10e?16:e,uo===null)var r=!1;else{if(e=uo,uo=null,Ef=0,et&6)throw Error(re(331));var o=et;for(et|=4,ge=e.current;ge!==null;){var l=ge,s=l.child;if(ge.flags&16){var c=l.deletions;if(c!==null){for(var f=0;fWt()-Kv?ea(e,0):Gv|=n),Kn(e,t)}function uS(e,t){t===0&&(e.mode&1?(t=pc,pc<<=1,!(pc&130023424)&&(pc=4194304)):t=1);var n=An();e=Ii(e,t),e!==null&&(lu(e,t,n),Kn(e,n))}function fI(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),uS(e,n)}function dI(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(re(314))}r!==null&&r.delete(t),uS(e,n)}var cS;cS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Hn.current)Wn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Wn=!1,ZA(e,t,n);Wn=!!(e.flags&131072)}else Wn=!1,Ot&&t.flags&1048576&&h_(t,mf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qc(e,t),e=t.pendingProps;var o=cl(t,Nn.current);ol(t,n),o=zv(null,t,r,e,o,n);var l=Uv();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,Gn(r)?(l=!0,pf(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Dv(t),o.updater=id,t.stateNode=o,o._reactInternals=t,cm(t,r,e,n),t=pm(null,t,r,!0,l,n)):(t.tag=0,Ot&&l&&Nv(t),Tn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=hI(r),e=jr(r,e),o){case 0:t=dm(null,t,r,e,n);break e;case 1:t=sw(null,t,r,e,n);break e;case 11:t=aw(null,t,r,e,n);break e;case 14:t=lw(null,t,r,jr(r.type,e),n);break e}throw Error(re(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jr(r,o),dm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jr(r,o),sw(e,t,r,o,n);case 3:e:{if(Y_(t),e===null)throw Error(re(387));r=t.pendingProps,l=t.memoizedState,o=l.element,x_(e,t),yf(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=hl(Error(re(423)),t),t=uw(e,t,r,n,o);break e}else if(r!==o){o=hl(Error(re(424)),t),t=uw(e,t,r,n,o);break e}else for(ir=mo(t.stateNode.containerInfo.firstChild),or=t,Ot=!0,$r=null,n=y_(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fl(),r===o){t=Di(e,t,n);break e}Tn(e,t,r,n)}t=t.child}return t;case 5:return b_(t),e===null&&lm(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,nm(r,o)?s=null:l!==null&&nm(r,l)&&(t.flags|=32),K_(e,t),Tn(e,t,s,n),t.child;case 6:return e===null&&lm(t),null;case 13:return q_(e,t,n);case 4:return Mv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dl(t,null,r,n):Tn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jr(r,o),aw(e,t,r,o,n);case 7:return Tn(e,t,t.pendingProps,n),t.child;case 8:return Tn(e,t,t.pendingProps.children,n),t.child;case 12:return Tn(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,gt(vf,r._currentValue),r._currentValue=s,l!==null)if(Vr(l.value,s)){if(l.children===o.children&&!Hn.current){t=Di(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=Pi(-1,n&-n),f.tag=2;var p=l.updateQueue;if(p!==null){p=p.shared;var d=p.pending;d===null?f.next=f:(f.next=d.next,d.next=f),p.pending=f}}l.lanes|=n,f=l.alternate,f!==null&&(f.lanes|=n),sm(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(re(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),sm(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}Tn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ol(t,n),o=Or(o),r=r(o),t.flags|=1,Tn(e,t,r,n),t.child;case 14:return r=t.type,o=jr(r,t.pendingProps),o=jr(r.type,o),lw(e,t,r,o,n);case 15:return H_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jr(r,o),qc(e,t),t.tag=1,Gn(r)?(e=!0,pf(t)):e=!1,ol(t,n),$_(t,r,o),cm(t,r,o,n),pm(null,t,r,!0,e,n);case 19:return V_(e,t,n);case 22:return G_(e,t,n)}throw Error(re(156,t.tag))};function fS(e,t){return Fb(e,t)}function pI(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 Rr(e,t,n,r){return new pI(e,t,n,r)}function Xv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hI(e){if(typeof e=="function")return Xv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mv)return 11;if(e===vv)return 14}return 2}function wo(e,t){var n=e.alternate;return n===null?(n=Rr(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 Qc(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")Xv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case za:return ta(n.children,o,l,t);case hv:s=8,o|=8;break;case Dh:return e=Rr(12,n,t,o|2),e.elementType=Dh,e.lanes=l,e;case Mh:return e=Rr(13,n,t,o),e.elementType=Mh,e.lanes=l,e;case Lh:return e=Rr(19,n,t,o),e.elementType=Lh,e.lanes=l,e;case bb:return ld(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wb:s=10;break e;case xb:s=9;break e;case mv:s=11;break e;case vv:s=14;break e;case ro:s=16,r=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=Rr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function ta(e,t,n,r){return e=Rr(7,e,r,t),e.lanes=n,e}function ld(e,t,n,r){return e=Rr(22,e,r,t),e.elementType=bb,e.lanes=n,e.stateNode={isHidden:!1},e}function ph(e,t,n){return e=Rr(6,e,null,t),e.lanes=n,e}function hh(e,t,n){return t=Rr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mI(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=qp(0),this.expirationTimes=qp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Qv(e,t,n,r,o,l,s,c,f){return e=new mI(e,t,n,c,f),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Rr(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dv(l),e}function vI(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mS)}catch(e){console.error(e)}}mS(),mb.exports=ur;var Br=mb.exports;const bI=Vf(Br),_I=Jx({__proto__:null,default:bI},[Br]);var bw=Br;Ah.createRoot=bw.createRoot,Ah.hydrateRoot=bw.hydrateRoot;/** +`+l.stack}return{value:e,source:t,stack:o,digest:null}}function fh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function fm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var XA=typeof WeakMap=="function"?WeakMap:Map;function B_(e,t,n){n=Pi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sf||(Sf=!0,bm=r),fm(e,t)},n}function W_(e,t,n){n=Pi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fm(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){fm(e,t),typeof r!="function"&&(go===null?go=new Set([this]):go.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function rw(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new XA;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=cI.bind(null,e,t,n),t.then(e,e))}function iw(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ow(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pi(-1,1),t.tag=2,vo(n,t,1))),n.lanes|=1),e)}var QA=Ui.ReactCurrentOwner,Wn=!1;function Tn(e,t,n,r){t.child=e===null?y_(t,null,n,r):dl(t,e.child,n,r)}function aw(e,t,n,r,o){n=n.render;var l=t.ref;return ol(t,o),r=zv(e,t,n,r,l,o),n=Uv(),e!==null&&!Wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Di(e,t,o)):(Ot&&n&&Nv(t),t.flags|=1,Tn(e,t,r,o),t.child)}function lw(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!Xv(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,H_(e,t,l,r,o)):(e=Qc(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:Ms,n(s,r)&&e.ref===t.ref)return Di(e,t,o)}return t.flags|=1,e=wo(l,r),e.ref=t.ref,e.return=t,t.child=e}function H_(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(Ms(l,r)&&e.ref===t.ref)if(Wn=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(Wn=!0);else return t.lanes=e.lanes,Di(e,t,o)}return dm(e,t,n,r,o)}function G_(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},gt(Va,nr),nr|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,gt(Va,nr),nr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,gt(Va,nr),nr|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,gt(Va,nr),nr|=r;return Tn(e,t,o,n),t.child}function K_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function dm(e,t,n,r,o){var l=Gn(n)?ra:Nn.current;return l=cl(t,l),ol(t,o),n=zv(e,t,n,r,l,o),r=Uv(),e!==null&&!Wn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Di(e,t,o)):(Ot&&r&&Nv(t),t.flags|=1,Tn(e,t,n,o),t.child)}function sw(e,t,n,r,o){if(Gn(n)){var l=!0;pf(t)}else l=!1;if(ol(t,o),t.stateNode===null)qc(e,t),$_(t,n,r),cm(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,c=t.memoizedProps;s.props=c;var f=s.context,p=n.contextType;typeof p=="object"&&p!==null?p=Or(p):(p=Gn(n)?ra:Nn.current,p=cl(t,p));var d=n.getDerivedStateFromProps,m=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==r||f!==p)&&nw(t,s,r,p),io=!1;var v=t.memoizedState;s.state=v,yf(t,r,s,o),f=t.memoizedState,c!==r||v!==f||Hn.current||io?(typeof d=="function"&&(um(t,n,d,r),f=t.memoizedState),(c=io||tw(t,n,c,r,v,f,p))?(m||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=p,r=c):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,x_(e,t),c=t.memoizedProps,p=t.type===t.elementType?c:jr(t.type,c),s.props=p,m=t.pendingProps,v=s.context,f=n.contextType,typeof f=="object"&&f!==null?f=Or(f):(f=Gn(n)?ra:Nn.current,f=cl(t,f));var S=n.getDerivedStateFromProps;(d=typeof S=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==m||v!==f)&&nw(t,s,r,f),io=!1,v=t.memoizedState,s.state=v,yf(t,r,s,o);var C=t.memoizedState;c!==m||v!==C||Hn.current||io?(typeof S=="function"&&(um(t,n,S,r),C=t.memoizedState),(p=io||tw(t,n,p,r,v,C,f)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,C,f),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,C,f)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=C),s.props=r,s.state=C,s.context=f,r=p):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return pm(e,t,n,r,l,o)}function pm(e,t,n,r,o,l){K_(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Y1(t,n,!1),Di(e,t,l);r=t.stateNode,QA.current=t;var c=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=dl(t,e.child,null,l),t.child=dl(t,null,c,l)):Tn(e,t,c,l),t.memoizedState=r.state,o&&Y1(t,n,!0),t.child}function Y_(e){var t=e.stateNode;t.pendingContext?K1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&K1(e,t.context,!1),Lv(e,t.containerInfo)}function uw(e,t,n,r,o){return fl(),Pv(o),t.flags|=256,Tn(e,t,n,r),t.child}var hm={dehydrated:null,treeContext:null,retryLane:0};function mm(e){return{baseLanes:e,cachePool:null,transitions:null}}function q_(e,t,n){var r=t.pendingProps,o=Dt.current,l=!1,s=(t.flags&128)!==0,c;if((c=s)||(c=e!==null&&e.memoizedState===null?!1:(o&2)!==0),c?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),gt(Dt,o&1),e===null)return lm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=ld(s,r,0,null),e=ta(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=mm(n),t.memoizedState=hm,e):Wv(t,s));if(o=e.memoizedState,o!==null&&(c=o.dehydrated,c!==null))return JA(e,t,s,r,c,o,n);if(l){l=r.fallback,s=t.mode,o=e.child,c=o.sibling;var f={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=f,t.deletions=null):(r=wo(o,f),r.subtreeFlags=o.subtreeFlags&14680064),c!==null?l=wo(c,l):(l=ta(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?mm(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=hm,r}return l=e.child,e=l.sibling,r=wo(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Wv(e,t){return t=ld({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bc(e,t,n,r){return r!==null&&Pv(r),dl(t,e.child,null,n),e=Wv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function JA(e,t,n,r,o,l,s){if(n)return t.flags&256?(t.flags&=-257,r=fh(Error(re(422))),bc(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=ld({mode:"visible",children:r.children},o,0,null),l=ta(l,o,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&dl(t,e.child,null,s),t.child.memoizedState=mm(s),t.memoizedState=hm,l);if(!(t.mode&1))return bc(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var c=r.dgst;return r=c,l=Error(re(419)),r=fh(l,r,void 0),bc(e,t,s,r)}if(c=(s&e.childLanes)!==0,Wn||c){if(r=un,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Ii(e,o),Yr(r,e,o,-1))}return Vv(),r=fh(Error(re(421))),bc(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=fI.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,ir=mo(o.nextSibling),or=t,Ot=!0,$r=null,e!==null&&(Cr[kr++]=Ni,Cr[kr++]=Ri,Cr[kr++]=ia,Ni=e.id,Ri=e.overflow,ia=t),t=Wv(t,r.children),t.flags|=4096,t)}function cw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sm(e.return,t,n)}function dh(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function V_(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Tn(e,t,r.children,n),r=Dt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cw(e,n,t);else if(e.tag===19)cw(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(gt(Dt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&wf(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),dh(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&wf(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}dh(t,!0,n,null,l);break;case"together":dh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Di(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),aa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(re(153));if(t.child!==null){for(e=t.child,n=wo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ZA(e,t,n){switch(t.tag){case 3:Y_(t),fl();break;case 5:b_(t);break;case 1:Gn(t.type)&&pf(t);break;case 4:Lv(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;gt(vf,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(gt(Dt,Dt.current&1),t.flags|=128,null):n&t.child.childLanes?q_(e,t,n):(gt(Dt,Dt.current&1),e=Di(e,t,n),e!==null?e.sibling:null);gt(Dt,Dt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return V_(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),gt(Dt,Dt.current),r)break;return null;case 22:case 23:return t.lanes=0,G_(e,t,n)}return Di(e,t,n)}var X_,vm,Q_,J_;X_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};vm=function(){};Q_=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Vo(di.current);var l=null;switch(n){case"input":o=Fh(e,o),r=Fh(e,r),l=[];break;case"select":o=Mt({},o,{value:void 0}),r=Mt({},r,{value:void 0}),l=[];break;case"textarea":o=$h(e,o),r=$h(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ff)}Wh(n,r);var s;n=null;for(p in o)if(!r.hasOwnProperty(p)&&o.hasOwnProperty(p)&&o[p]!=null)if(p==="style"){var c=o[p];for(s in c)c.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else p!=="dangerouslySetInnerHTML"&&p!=="children"&&p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(Ps.hasOwnProperty(p)?l||(l=[]):(l=l||[]).push(p,null));for(p in r){var f=r[p];if(c=o!=null?o[p]:void 0,r.hasOwnProperty(p)&&f!==c&&(f!=null||c!=null))if(p==="style")if(c){for(s in c)!c.hasOwnProperty(s)||f&&f.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in f)f.hasOwnProperty(s)&&c[s]!==f[s]&&(n||(n={}),n[s]=f[s])}else n||(l||(l=[]),l.push(p,n)),n=f;else p==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,c=c?c.__html:void 0,f!=null&&c!==f&&(l=l||[]).push(p,f)):p==="children"?typeof f!="string"&&typeof f!="number"||(l=l||[]).push(p,""+f):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&(Ps.hasOwnProperty(p)?(f!=null&&p==="onScroll"&&St("scroll",e),l||c===f||(l=[])):(l=l||[]).push(p,f))}n&&(l=l||[]).push("style",n);var p=l;(t.updateQueue=p)&&(t.flags|=4)}};J_=function(e,t,n,r){n!==r&&(t.flags|=4)};function es(e,t){if(!Ot)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function En(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function eI(e,t,n){var r=t.pendingProps;switch(Rv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(t),null;case 1:return Gn(t.type)&&df(),En(t),null;case 3:return r=t.stateNode,pl(),Ct(Hn),Ct(Nn),jv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$r!==null&&(Em($r),$r=null))),vm(e,t),En(t),null;case 5:Mv(t);var o=Vo($s.current);if(n=t.type,e!==null&&t.stateNode!=null)Q_(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(re(166));return En(t),null}if(e=Vo(di.current),wc(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ui]=t,r[zs]=l,e=(t.mode&1)!==0,n){case"dialog":St("cancel",r),St("close",r);break;case"iframe":case"object":case"embed":St("load",r);break;case"video":case"audio":for(o=0;o<\/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[ui]=t,e[zs]=r,X_(e,t,!1,!1),t.stateNode=e;e:{switch(s=Hh(n,r),n){case"dialog":St("cancel",e),St("close",e),o=r;break;case"iframe":case"object":case"embed":St("load",e),o=r;break;case"video":case"audio":for(o=0;oml&&(t.flags|=128,r=!0,es(l,!1),t.lanes=4194304)}else{if(!r)if(e=wf(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),es(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Ot)return En(t),null}else 2*Wt()-l.renderingStartTime>ml&&n!==1073741824&&(t.flags|=128,r=!0,es(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=Wt(),t.sibling=null,n=Dt.current,gt(Dt,r?n&1|2:n&1),t):(En(t),null);case 22:case 23:return qv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nr&1073741824&&(En(t),t.subtreeFlags&6&&(t.flags|=8192)):En(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function tI(e,t){switch(Rv(t),t.tag){case 1:return Gn(t.type)&&df(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pl(),Ct(Hn),Ct(Nn),jv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mv(t),null;case 13:if(Ct(Dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ct(Dt),null;case 4:return pl(),null;case 10:return Av(t.type._context),null;case 22:case 23:return qv(),null;case 24:return null;default:return null}}var _c=!1,kn=!1,nI=typeof WeakSet=="function"?WeakSet:Set,ge=null;function qa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){zt(e,t,r)}else n.current=null}function gm(e,t,n){try{n()}catch(r){zt(e,t,r)}}var fw=!1;function rI(e,t){if(em=sf,e=r_(),kv(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,p=0,d=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&&++p===o&&(c=s),v===l&&++d===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(tm={focusedElem:e,selectionRange:n},sf=!1,ge=t;ge!==null;)if(t=ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ge=e;else for(;ge!==null;){t=ge;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var k=C.memoizedProps,A=C.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?k:jr(t.type,k),A);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(O){zt(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,ge=e;break}ge=t.return}return C=fw,fw=!1,C}function ys(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&&gm(t,n,l)}o=o.next}while(o!==r)}}function od(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 ym(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 Z_(e){var t=e.alternate;t!==null&&(e.alternate=null,Z_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ui],delete t[zs],delete t[im],delete t[zA],delete t[UA])),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 eS(e){return e.tag===5||e.tag===3||e.tag===4}function dw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eS(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 wm(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=ff));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}function xm(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(xm(e,t,n),e=e.sibling;e!==null;)xm(e,t,n),e=e.sibling}var vn=null,zr=!1;function eo(e,t,n){for(n=n.child;n!==null;)tS(e,t,n),n=n.sibling}function tS(e,t,n){if(fi&&typeof fi.onCommitFiberUnmount=="function")try{fi.onCommitFiberUnmount(Qf,n)}catch{}switch(n.tag){case 5:kn||qa(n,t);case 6:var r=vn,o=zr;vn=null,eo(e,t,n),vn=r,zr=o,vn!==null&&(zr?(e=vn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):vn.removeChild(n.stateNode));break;case 18:vn!==null&&(zr?(e=vn,n=n.stateNode,e.nodeType===8?oh(e.parentNode,n):e.nodeType===1&&oh(e,n),Ds(e)):oh(vn,n.stateNode));break;case 4:r=vn,o=zr,vn=n.stateNode.containerInfo,zr=!0,eo(e,t,n),vn=r,zr=o;break;case 0:case 11:case 14:case 15:if(!kn&&(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)&&gm(n,t,s),o=o.next}while(o!==r)}eo(e,t,n);break;case 1:if(!kn&&(qa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){zt(n,t,c)}eo(e,t,n);break;case 21:eo(e,t,n);break;case 22:n.mode&1?(kn=(r=kn)||n.memoizedState!==null,eo(e,t,n),kn=r):eo(e,t,n);break;default:eo(e,t,n)}}function pw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nI),t.forEach(function(r){var o=dI.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Mr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~l}if(r=o,r=Wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oI(r/1960))-r,10e?16:e,uo===null)var r=!1;else{if(e=uo,uo=null,Ef=0,et&6)throw Error(re(331));var o=et;for(et|=4,ge=e.current;ge!==null;){var l=ge,s=l.child;if(ge.flags&16){var c=l.deletions;if(c!==null){for(var f=0;fWt()-Kv?ea(e,0):Gv|=n),Kn(e,t)}function uS(e,t){t===0&&(e.mode&1?(t=pc,pc<<=1,!(pc&130023424)&&(pc=4194304)):t=1);var n=An();e=Ii(e,t),e!==null&&(lu(e,t,n),Kn(e,n))}function fI(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),uS(e,n)}function dI(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(re(314))}r!==null&&r.delete(t),uS(e,n)}var cS;cS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Hn.current)Wn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Wn=!1,ZA(e,t,n);Wn=!!(e.flags&131072)}else Wn=!1,Ot&&t.flags&1048576&&h_(t,mf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qc(e,t),e=t.pendingProps;var o=cl(t,Nn.current);ol(t,n),o=zv(null,t,r,e,o,n);var l=Uv();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,Gn(r)?(l=!0,pf(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Dv(t),o.updater=id,t.stateNode=o,o._reactInternals=t,cm(t,r,e,n),t=pm(null,t,r,!0,l,n)):(t.tag=0,Ot&&l&&Nv(t),Tn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=hI(r),e=jr(r,e),o){case 0:t=dm(null,t,r,e,n);break e;case 1:t=sw(null,t,r,e,n);break e;case 11:t=aw(null,t,r,e,n);break e;case 14:t=lw(null,t,r,jr(r.type,e),n);break e}throw Error(re(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jr(r,o),dm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jr(r,o),sw(e,t,r,o,n);case 3:e:{if(Y_(t),e===null)throw Error(re(387));r=t.pendingProps,l=t.memoizedState,o=l.element,x_(e,t),yf(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=hl(Error(re(423)),t),t=uw(e,t,r,n,o);break e}else if(r!==o){o=hl(Error(re(424)),t),t=uw(e,t,r,n,o);break e}else for(ir=mo(t.stateNode.containerInfo.firstChild),or=t,Ot=!0,$r=null,n=y_(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fl(),r===o){t=Di(e,t,n);break e}Tn(e,t,r,n)}t=t.child}return t;case 5:return b_(t),e===null&&lm(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,nm(r,o)?s=null:l!==null&&nm(r,l)&&(t.flags|=32),K_(e,t),Tn(e,t,s,n),t.child;case 6:return e===null&&lm(t),null;case 13:return q_(e,t,n);case 4:return Lv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dl(t,null,r,n):Tn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jr(r,o),aw(e,t,r,o,n);case 7:return Tn(e,t,t.pendingProps,n),t.child;case 8:return Tn(e,t,t.pendingProps.children,n),t.child;case 12:return Tn(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,gt(vf,r._currentValue),r._currentValue=s,l!==null)if(Vr(l.value,s)){if(l.children===o.children&&!Hn.current){t=Di(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=Pi(-1,n&-n),f.tag=2;var p=l.updateQueue;if(p!==null){p=p.shared;var d=p.pending;d===null?f.next=f:(f.next=d.next,d.next=f),p.pending=f}}l.lanes|=n,f=l.alternate,f!==null&&(f.lanes|=n),sm(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(re(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),sm(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}Tn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ol(t,n),o=Or(o),r=r(o),t.flags|=1,Tn(e,t,r,n),t.child;case 14:return r=t.type,o=jr(r,t.pendingProps),o=jr(r.type,o),lw(e,t,r,o,n);case 15:return H_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jr(r,o),qc(e,t),t.tag=1,Gn(r)?(e=!0,pf(t)):e=!1,ol(t,n),$_(t,r,o),cm(t,r,o,n),pm(null,t,r,!0,e,n);case 19:return V_(e,t,n);case 22:return G_(e,t,n)}throw Error(re(156,t.tag))};function fS(e,t){return Fb(e,t)}function pI(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 Rr(e,t,n,r){return new pI(e,t,n,r)}function Xv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hI(e){if(typeof e=="function")return Xv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mv)return 11;if(e===vv)return 14}return 2}function wo(e,t){var n=e.alternate;return n===null?(n=Rr(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 Qc(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")Xv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case za:return ta(n.children,o,l,t);case hv:s=8,o|=8;break;case Dh:return e=Rr(12,n,t,o|2),e.elementType=Dh,e.lanes=l,e;case Lh:return e=Rr(13,n,t,o),e.elementType=Lh,e.lanes=l,e;case Mh:return e=Rr(19,n,t,o),e.elementType=Mh,e.lanes=l,e;case bb:return ld(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wb:s=10;break e;case xb:s=9;break e;case mv:s=11;break e;case vv:s=14;break e;case ro:s=16,r=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=Rr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function ta(e,t,n,r){return e=Rr(7,e,r,t),e.lanes=n,e}function ld(e,t,n,r){return e=Rr(22,e,r,t),e.elementType=bb,e.lanes=n,e.stateNode={isHidden:!1},e}function ph(e,t,n){return e=Rr(6,e,null,t),e.lanes=n,e}function hh(e,t,n){return t=Rr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mI(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=qp(0),this.expirationTimes=qp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Qv(e,t,n,r,o,l,s,c,f){return e=new mI(e,t,n,c,f),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Rr(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dv(l),e}function vI(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mS)}catch(e){console.error(e)}}mS(),mb.exports=ur;var Br=mb.exports;const bI=Vf(Br),_I=Jx({__proto__:null,default:bI},[Br]);var bw=Br;Ah.createRoot=bw.createRoot,Ah.hydrateRoot=bw.hydrateRoot;/** * @remix-run/router v1.16.1 * * Copyright (c) Remix Software Inc. @@ -54,8 +54,8 @@ Error generating stack: `+l.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function vl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function EI(){return Math.random().toString(36).substr(2,8)}function Sw(e,t){return{usr:e.state,key:e.key,idx:t}}function Ks(e,t,n,r){return n===void 0&&(n=null),It({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Oo(t):t,{state:n,key:t&&t.key||r||EI()})}function sa(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 Oo(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 CI(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,s=o.history,c=Vt.Pop,f=null,p=d();p==null&&(p=0,s.replaceState(It({},s.state,{idx:p}),""));function d(){return(s.state||{idx:null}).idx}function m(){c=Vt.Pop;let A=d(),_=A==null?null:A-p;p=A,f&&f({action:c,location:k.location,delta:_})}function v(A,_){c=Vt.Push;let b=Ks(k.location,A,_);p=d()+1;let y=Sw(b,p),O=k.createHref(b);try{s.pushState(y,"",O)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(O)}l&&f&&f({action:c,location:k.location,delta:1})}function S(A,_){c=Vt.Replace;let b=Ks(k.location,A,_);p=d();let y=Sw(b,p),O=k.createHref(b);s.replaceState(y,"",O),l&&f&&f({action:c,location:k.location,delta:0})}function E(A){let _=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof A=="string"?A:sa(A);return b=b.replace(/ $/,"%20"),Ke(_,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,_)}let k={get action(){return c},get location(){return e(o,s)},listen(A){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(_w,m),f=A,()=>{o.removeEventListener(_w,m),f=null}},createHref(A){return t(o,A)},createURL:E,encodeLocation(A){let _=E(A);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:v,replace:S,go(A){return s.go(A)}};return k}var Pt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pt||(Pt={}));const kI=new Set(["lazy","caseSensitive","path","id","index","children"]);function NI(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(Ke(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ke(!r[c],'Found a route id collision on id "'+c+`". Route id's must be globally unique within Data Router usages`),NI(o)){let f=It({},o,t(o),{id:c});return r[c]=f,f}else{let f=It({},o,t(o),{id:c,children:void 0});return r[c]=f,o.children&&(f.children=Cm(o.children,t,s,r)),f}})}function Xa(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Oo(t):t,o=kl(r.pathname||"/",n);if(o==null)return null;let l=vS(e);PI(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("/")&&(Ke(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 p=Oi([r,f.relativePath]),d=n.concat(f);l.children&&l.children.length>0&&(Ke(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),vS(l.children,t,d,p)),!(l.path==null&&!l.index)&&t.push({path:p,score:LI(p,l.index),routesMeta:d})};return e.forEach((l,s)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))o(l,s);else for(let f of gS(l.path))o(l,s,f)}),t}function gS(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=gS(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 PI(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:jI(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const OI=/^:[\w-]+$/,TI=3,AI=2,II=1,DI=10,MI=-2,Ew=e=>e==="*";function LI(e,t){let n=e.split("/"),r=n.length;return n.some(Ew)&&(r+=MI),t&&(r+=AI),n.filter(o=>!Ew(o)).reduce((o,l)=>o+(OI.test(l)?TI:l===""?II:DI),r)}function jI(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 FI(e,t){let{routesMeta:n}=e,r={},o="/",l=[];for(let s=0;s{let{paramName:v,isOptional:S}=d;if(v==="*"){let k=c[m]||"";s=l.slice(0,l.length-k.length).replace(/(.)\/+$/,"$1")}const E=c[m];return S&&!E?p[v]=void 0:p[v]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:s,pattern:e}}function UI(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),vl(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 $I(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vl(!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 kl(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 BI(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Oo(e):e;return{pathname:n?n.startsWith("/")?n:WI(n,t):t,search:GI(r),hash:KI(o)}}function WI(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 mh(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 yS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function tg(e,t){let n=yS(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ng(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Oo(e):(o=It({},e),Ke(!o.pathname||!o.pathname.includes("?"),mh("?","pathname","search",o)),Ke(!o.pathname||!o.pathname.includes("#"),mh("#","pathname","hash",o)),Ke(!o.search||!o.search.includes("#"),mh("#","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=BI(o,c),p=s&&s!=="/"&&s.endsWith("/"),d=(l||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||d)&&(f.pathname+="/"),f}const Oi=e=>e.join("/").replace(/\/\/+/g,"/"),HI=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),GI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,KI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class rg{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 ig(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wS=["post","put","patch","delete"],YI=new Set(wS),qI=["get",...wS],VI=new Set(qI),XI=new Set([301,302,303,307,308]),QI=new Set([307,308]),vh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},JI={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ns={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},og=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ZI=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),xS="remix-router-transitions";function e4(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;Ke(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 D=e.detectErrorBoundary;o=U=>({hasErrorBoundary:D(U)})}else o=ZI;let l={},s=Cm(e.routes,o,void 0,l),c,f=e.basename||"/",p=e.unstable_dataStrategy||i4,d=It({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,k=null,A=e.hydrationData!=null,_=Xa(s,e.history.location,f),b=null;if(_==null){let D=_r(404,{pathname:e.history.location.pathname}),{matches:U,route:V}=Dw(s);_=U,b={[V.id]:D}}let y,O=_.some(D=>D.route.lazy),I=_.some(D=>D.route.loader);if(O)y=!1;else if(!I)y=!0;else if(d.v7_partialHydration){let D=e.hydrationData?e.hydrationData.loaderData:null,U=e.hydrationData?e.hydrationData.errors:null,V=ne=>ne.route.loader?typeof ne.route.loader=="function"&&ne.route.loader.hydrate===!0?!1:D&&D[ne.route.id]!==void 0||U&&U[ne.route.id]!==void 0:!0;if(U){let ne=_.findIndex(ue=>U[ue.route.id]!==void 0);y=_.slice(0,ne+1).every(V)}else y=_.every(V)}else y=e.hydrationData!=null;let G,N={historyAction:e.history.action,location:e.history.location,matches:_,initialized:y,navigation:vh,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},$=Vt.Pop,F=!1,q,te=!1,we=new Map,fe=null,ie=!1,le=!1,Ae=[],B=[],W=new Map,ae=0,se=-1,oe=new Map,ye=new Set,Fe=new Map,Ve=new Map,Xe=new Set,Ee=new Map,ft=new Map,yt=!1;function z(){if(m=e.history.listen(D=>{let{action:U,location:V,delta:ne}=D;if(yt){yt=!1;return}vl(ft.size===0||ne!=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 ue=ti({currentLocation:N.location,nextLocation:V,historyAction:U});if(ue&&ne!=null){yt=!0,e.history.go(ne*-1),Vn(ue,{state:"blocked",location:V,proceed(){Vn(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),e.history.go(ne)},reset(){let Re=new Map(N.blockers);Re.set(ue,ns),H({blockers:Re})}});return}return Ne(U,V)}),n){v4(t,we);let D=()=>g4(t,we);t.addEventListener("pagehide",D),fe=()=>t.removeEventListener("pagehide",D)}return N.initialized||Ne(Vt.Pop,N.location,{initialHydration:!0}),G}function j(){m&&m(),fe&&fe(),v.clear(),q&&q.abort(),N.fetchers.forEach((D,U)=>Me(U)),N.blockers.forEach((D,U)=>Tt(U))}function K(D){return v.add(D),()=>v.delete(D)}function H(D,U){U===void 0&&(U={}),N=It({},N,D);let V=[],ne=[];d.v7_fetcherPersist&&N.fetchers.forEach((ue,Re)=>{ue.state==="idle"&&(Xe.has(Re)?ne.push(Re):V.push(Re))}),[...v].forEach(ue=>ue(N,{deletedFetchers:ne,unstable_viewTransitionOpts:U.viewTransitionOpts,unstable_flushSync:U.flushSync===!0})),d.v7_fetcherPersist&&(V.forEach(ue=>N.fetchers.delete(ue)),ne.forEach(ue=>Me(ue)))}function Q(D,U,V){var ne,ue;let{flushSync:Re}=V===void 0?{}:V,xe=N.actionData!=null&&N.navigation.formMethod!=null&&Ur(N.navigation.formMethod)&&N.navigation.state==="loading"&&((ne=D.state)==null?void 0:ne._isRedirect)!==!0,pe;U.actionData?Object.keys(U.actionData).length>0?pe=U.actionData:pe=null:xe?pe=N.actionData:pe=null;let Pe=U.loaderData?Aw(N.loaderData,U.loaderData,U.matches||[],U.errors):N.loaderData,Ie=N.blockers;Ie.size>0&&(Ie=new Map(Ie),Ie.forEach((Ce,mt)=>Ie.set(mt,ns)));let xt=F===!0||N.navigation.formMethod!=null&&Ur(N.navigation.formMethod)&&((ue=D.state)==null?void 0:ue._isRedirect)!==!0;c&&(s=c,c=void 0),ie||$===Vt.Pop||($===Vt.Push?e.history.push(D,D.state):$===Vt.Replace&&e.history.replace(D,D.state));let bt;if($===Vt.Pop){let Ce=we.get(N.location.pathname);Ce&&Ce.has(D.pathname)?bt={currentLocation:N.location,nextLocation:D}:we.has(D.pathname)&&(bt={currentLocation:D,nextLocation:N.location})}else if(te){let Ce=we.get(N.location.pathname);Ce?Ce.add(D.pathname):(Ce=new Set([D.pathname]),we.set(N.location.pathname,Ce)),bt={currentLocation:N.location,nextLocation:D}}H(It({},U,{actionData:pe,loaderData:Pe,historyAction:$,location:D,initialized:!0,navigation:vh,revalidation:"idle",restoreScrollPosition:Yt(D,U.matches||N.matches),preventScrollReset:xt,blockers:Ie}),{viewTransitionOpts:bt,flushSync:Re===!0}),$=Vt.Pop,F=!1,te=!1,ie=!1,le=!1,Ae=[],B=[]}async function de(D,U){if(typeof D=="number"){e.history.go(D);return}let V=km(N.location,N.matches,f,d.v7_prependBasename,D,d.v7_relativeSplatPath,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:ne,submission:ue,error:Re}=Cw(d.v7_normalizeFormMethod,!1,V,U),xe=N.location,pe=Ks(N.location,ne,U&&U.state);pe=It({},pe,e.history.encodeLocation(pe));let Pe=U&&U.replace!=null?U.replace:void 0,Ie=Vt.Push;Pe===!0?Ie=Vt.Replace:Pe===!1||ue!=null&&Ur(ue.formMethod)&&ue.formAction===N.location.pathname+N.location.search&&(Ie=Vt.Replace);let xt=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,bt=(U&&U.unstable_flushSync)===!0,Ce=ti({currentLocation:xe,nextLocation:pe,historyAction:Ie});if(Ce){Vn(Ce,{state:"blocked",location:pe,proceed(){Vn(Ce,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),de(D,U)},reset(){let mt=new Map(N.blockers);mt.set(Ce,ns),H({blockers:mt})}});return}return await Ne(Ie,pe,{submission:ue,pendingError:Re,preventScrollReset:xt,replace:U&&U.replace,enableViewTransition:U&&U.unstable_viewTransition,flushSync:bt})}function he(){if(jt(),H({revalidation:"loading"}),N.navigation.state!=="submitting"){if(N.navigation.state==="idle"){Ne(N.historyAction,N.location,{startUninterruptedRevalidation:!0});return}Ne($||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation})}}async function Ne(D,U,V){q&&q.abort(),q=null,$=D,ie=(V&&V.startUninterruptedRevalidation)===!0,Qt(N.location,N.matches),F=(V&&V.preventScrollReset)===!0,te=(V&&V.enableViewTransition)===!0;let ne=c||s,ue=V&&V.overrideNavigation,Re=Xa(ne,U,f),xe=(V&&V.flushSync)===!0;if(!Re){let Ce=_r(404,{pathname:U.pathname}),{matches:mt,route:qt}=Dw(ne);pi(),Q(U,{matches:mt,loaderData:{},errors:{[qt.id]:Ce}},{flushSync:xe});return}if(N.initialized&&!le&&c4(N.location,U)&&!(V&&V.submission&&Ur(V.submission.formMethod))){Q(U,{matches:Re},{flushSync:xe});return}q=new AbortController;let pe=La(e.history,U,q.signal,V&&V.submission),Pe;if(V&&V.pendingError)Pe=[bs(Re).route.id,{type:Pt.error,error:V.pendingError}];else if(V&&V.submission&&Ur(V.submission.formMethod)){let Ce=await Ze(pe,U,V.submission,Re,{replace:V.replace,flushSync:xe});if(Ce.shortCircuited)return;Pe=Ce.pendingActionResult,ue=gh(U,V.submission),xe=!1,pe=La(e.history,pe.url,pe.signal)}let{shortCircuited:Ie,loaderData:xt,errors:bt}=await ht(pe,U,Re,ue,V&&V.submission,V&&V.fetcherSubmission,V&&V.replace,V&&V.initialHydration===!0,xe,Pe);Ie||(q=null,Q(U,It({matches:Re},Iw(Pe),{loaderData:xt,errors:bt})))}async function Ze(D,U,V,ne,ue){ue===void 0&&(ue={}),jt();let Re=h4(U,V);H({navigation:Re},{flushSync:ue.flushSync===!0});let xe,pe=Rm(ne,U);if(!pe.route.action&&!pe.route.lazy)xe={type:Pt.error,error:_r(405,{method:D.method,pathname:U.pathname,routeId:pe.route.id})};else if(xe=(await wt("action",D,[pe],ne))[0],D.signal.aborted)return{shortCircuited:!0};if(Qo(xe)){let Pe;return ue&&ue.replace!=null?Pe=ue.replace:Pe=Pw(xe.response.headers.get("Location"),new URL(D.url),f)===N.location.pathname+N.location.search,await st(D,xe,{submission:V,replace:Pe}),{shortCircuited:!0}}if(Xo(xe))throw _r(400,{type:"defer-action"});if(Nr(xe)){let Pe=bs(ne,pe.route.id);return(ue&&ue.replace)!==!0&&($=Vt.Push),{pendingActionResult:[Pe.route.id,xe]}}return{pendingActionResult:[pe.route.id,xe]}}async function ht(D,U,V,ne,ue,Re,xe,pe,Pe,Ie){let xt=ne||gh(U,ue),bt=ue||Re||jw(xt),Ce=c||s,[mt,qt]=kw(e.history,N,V,bt,U,d.v7_partialHydration&&pe===!0,d.unstable_skipActionErrorRevalidation,le,Ae,B,Xe,Fe,ye,Ce,f,Ie);if(pi(Be=>!(V&&V.some(fn=>fn.route.id===Be))||mt&&mt.some(fn=>fn.route.id===Be)),se=++ae,mt.length===0&&qt.length===0){let Be=jn();return Q(U,It({matches:V,loaderData:{},errors:Ie&&Nr(Ie[1])?{[Ie[0]]:Ie[1].error}:null},Iw(Ie),Be?{fetchers:new Map(N.fetchers)}:{}),{flushSync:Pe}),{shortCircuited:!0}}if(!ie&&(!d.v7_partialHydration||!pe)){qt.forEach(fn=>{let dn=N.fetchers.get(fn.key),Jt=rs(void 0,dn?dn.data:void 0);N.fetchers.set(fn.key,Jt)});let Be;Ie&&!Nr(Ie[1])?Be={[Ie[0]]:Ie[1].data}:N.actionData&&(Object.keys(N.actionData).length===0?Be=null:Be=N.actionData),H(It({navigation:xt},Be!==void 0?{actionData:Be}:{},qt.length>0?{fetchers:new Map(N.fetchers)}:{}),{flushSync:Pe})}qt.forEach(Be=>{W.has(Be.key)&&Je(Be.key),Be.controller&&W.set(Be.key,Be.controller)});let To=()=>qt.forEach(Be=>Je(Be.key));q&&q.signal.addEventListener("abort",To);let{loaderResults:ni,fetcherResults:hi}=await xn(N.matches,V,mt,qt,D);if(D.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",To),qt.forEach(Be=>W.delete(Be.key));let Wi=Mw([...ni,...hi]);if(Wi){if(Wi.idx>=mt.length){let Be=qt[Wi.idx-mt.length].key;ye.add(Be)}return await st(D,Wi.result,{replace:xe}),{shortCircuited:!0}}let{loaderData:Hi,errors:pr}=Tw(N,V,mt,ni,Ie,qt,hi,Ee);Ee.forEach((Be,fn)=>{Be.subscribe(dn=>{(dn||Be.done)&&Ee.delete(fn)})}),d.v7_partialHydration&&pe&&N.errors&&Object.entries(N.errors).filter(Be=>{let[fn]=Be;return!mt.some(dn=>dn.route.id===fn)}).forEach(Be=>{let[fn,dn]=Be;pr=Object.assign(pr||{},{[fn]:dn})});let ya=jn(),wa=qn(se),xa=ya||wa||qt.length>0;return It({loaderData:Hi,errors:pr},xa?{fetchers:new Map(N.fetchers)}:{})}function Se(D,U,V,ne){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.");W.has(D)&&Je(D);let ue=(ne&&ne.unstable_flushSync)===!0,Re=c||s,xe=km(N.location,N.matches,f,d.v7_prependBasename,V,d.v7_relativeSplatPath,U,ne==null?void 0:ne.relative),pe=Xa(Re,xe,f);if(!pe){Gt(D,U,_r(404,{pathname:xe}),{flushSync:ue});return}let{path:Pe,submission:Ie,error:xt}=Cw(d.v7_normalizeFormMethod,!0,xe,ne);if(xt){Gt(D,U,xt,{flushSync:ue});return}let bt=Rm(pe,Pe);if(F=(ne&&ne.preventScrollReset)===!0,Ie&&Ur(Ie.formMethod)){De(D,U,Pe,bt,pe,ue,Ie);return}Fe.set(D,{routeId:U,path:Pe}),tt(D,U,Pe,bt,pe,ue,Ie)}async function De(D,U,V,ne,ue,Re,xe){if(jt(),Fe.delete(D),!ne.route.action&&!ne.route.lazy){let Jt=_r(405,{method:xe.formMethod,pathname:V,routeId:U});Gt(D,U,Jt,{flushSync:Re});return}let pe=N.fetchers.get(D);Ht(D,m4(xe,pe),{flushSync:Re});let Pe=new AbortController,Ie=La(e.history,V,Pe.signal,xe);W.set(D,Pe);let xt=ae,Ce=(await wt("action",Ie,[ne],ue))[0];if(Ie.signal.aborted){W.get(D)===Pe&&W.delete(D);return}if(d.v7_fetcherPersist&&Xe.has(D)){if(Qo(Ce)||Nr(Ce)){Ht(D,no(void 0));return}}else{if(Qo(Ce))if(W.delete(D),se>xt){Ht(D,no(void 0));return}else return ye.add(D),Ht(D,rs(xe)),st(Ie,Ce,{fetcherSubmission:xe});if(Nr(Ce)){Gt(D,U,Ce.error);return}}if(Xo(Ce))throw _r(400,{type:"defer-action"});let mt=N.navigation.location||N.location,qt=La(e.history,mt,Pe.signal),To=c||s,ni=N.navigation.state!=="idle"?Xa(To,N.navigation.location,f):N.matches;Ke(ni,"Didn't find any matches after fetcher action");let hi=++ae;oe.set(D,hi);let Wi=rs(xe,Ce.data);N.fetchers.set(D,Wi);let[Hi,pr]=kw(e.history,N,ni,xe,mt,!1,d.unstable_skipActionErrorRevalidation,le,Ae,B,Xe,Fe,ye,To,f,[ne.route.id,Ce]);pr.filter(Jt=>Jt.key!==D).forEach(Jt=>{let Ao=Jt.key,xu=N.fetchers.get(Ao),bu=rs(void 0,xu?xu.data:void 0);N.fetchers.set(Ao,bu),W.has(Ao)&&Je(Ao),Jt.controller&&W.set(Ao,Jt.controller)}),H({fetchers:new Map(N.fetchers)});let ya=()=>pr.forEach(Jt=>Je(Jt.key));Pe.signal.addEventListener("abort",ya);let{loaderResults:wa,fetcherResults:xa}=await xn(N.matches,ni,Hi,pr,qt);if(Pe.signal.aborted)return;Pe.signal.removeEventListener("abort",ya),oe.delete(D),W.delete(D),pr.forEach(Jt=>W.delete(Jt.key));let Be=Mw([...wa,...xa]);if(Be){if(Be.idx>=Hi.length){let Jt=pr[Be.idx-Hi.length].key;ye.add(Jt)}return st(qt,Be.result)}let{loaderData:fn,errors:dn}=Tw(N,N.matches,Hi,wa,void 0,pr,xa,Ee);if(N.fetchers.has(D)){let Jt=no(Ce.data);N.fetchers.set(D,Jt)}qn(hi),N.navigation.state==="loading"&&hi>se?(Ke($,"Expected pending action"),q&&q.abort(),Q(N.navigation.location,{matches:ni,loaderData:fn,errors:dn,fetchers:new Map(N.fetchers)})):(H({errors:dn,loaderData:Aw(N.loaderData,fn,ni,dn),fetchers:new Map(N.fetchers)}),le=!1)}async function tt(D,U,V,ne,ue,Re,xe){let pe=N.fetchers.get(D);Ht(D,rs(xe,pe?pe.data:void 0),{flushSync:Re});let Pe=new AbortController,Ie=La(e.history,V,Pe.signal);W.set(D,Pe);let xt=ae,Ce=(await wt("loader",Ie,[ne],ue))[0];if(Xo(Ce)&&(Ce=await ES(Ce,Ie.signal,!0)||Ce),W.get(D)===Pe&&W.delete(D),!Ie.signal.aborted){if(Xe.has(D)){Ht(D,no(void 0));return}if(Qo(Ce))if(se>xt){Ht(D,no(void 0));return}else{ye.add(D),await st(Ie,Ce);return}if(Nr(Ce)){Gt(D,U,Ce.error);return}Ke(!Xo(Ce),"Unhandled fetcher deferred data"),Ht(D,no(Ce.data))}}async function st(D,U,V){let{submission:ne,fetcherSubmission:ue,replace:Re}=V===void 0?{}:V;U.response.headers.has("X-Remix-Revalidate")&&(le=!0);let xe=U.response.headers.get("Location");Ke(xe,"Expected a Location header on the redirect Response"),xe=Pw(xe,new URL(D.url),f);let pe=Ks(N.location,xe,{_isRedirect:!0});if(n){let mt=!1;if(U.response.headers.has("X-Remix-Reload-Document"))mt=!0;else if(og.test(xe)){const qt=e.history.createURL(xe);mt=qt.origin!==t.location.origin||kl(qt.pathname,f)==null}if(mt){Re?t.location.replace(xe):t.location.assign(xe);return}}q=null;let Pe=Re===!0?Vt.Replace:Vt.Push,{formMethod:Ie,formAction:xt,formEncType:bt}=N.navigation;!ne&&!ue&&Ie&&xt&&bt&&(ne=jw(N.navigation));let Ce=ne||ue;if(QI.has(U.response.status)&&Ce&&Ur(Ce.formMethod))await Ne(Pe,pe,{submission:It({},Ce,{formAction:xe}),preventScrollReset:F});else{let mt=gh(pe,ne);await Ne(Pe,pe,{overrideNavigation:mt,fetcherSubmission:ue,preventScrollReset:F})}}async function wt(D,U,V,ne){try{let ue=await o4(p,D,U,V,ne,l,o);return await Promise.all(ue.map((Re,xe)=>{if(f4(Re)){let pe=Re.result;return{type:Pt.redirect,response:s4(pe,U,V[xe].route.id,ne,f,d.v7_relativeSplatPath)}}return l4(Re)}))}catch(ue){return V.map(()=>({type:Pt.error,error:ue}))}}async function xn(D,U,V,ne,ue){let[Re,...xe]=await Promise.all([V.length?wt("loader",ue,V,U):[],...ne.map(pe=>{if(pe.matches&&pe.match&&pe.controller){let Pe=La(e.history,pe.path,pe.controller.signal);return wt("loader",Pe,[pe.match],pe.matches).then(Ie=>Ie[0])}else return Promise.resolve({type:Pt.error,error:_r(404,{pathname:pe.path})})})]);return await Promise.all([Lw(D,V,Re,Re.map(()=>ue.signal),!1,N.loaderData),Lw(D,ne.map(pe=>pe.match),xe,ne.map(pe=>pe.controller?pe.controller.signal:null),!0)]),{loaderResults:Re,fetcherResults:xe}}function jt(){le=!0,Ae.push(...pi()),Fe.forEach((D,U)=>{W.has(U)&&(B.push(U),Je(U))})}function Ht(D,U,V){V===void 0&&(V={}),N.fetchers.set(D,U),H({fetchers:new Map(N.fetchers)},{flushSync:(V&&V.flushSync)===!0})}function Gt(D,U,V,ne){ne===void 0&&(ne={});let ue=bs(N.matches,U);Me(D),H({errors:{[ue.route.id]:V},fetchers:new Map(N.fetchers)},{flushSync:(ne&&ne.flushSync)===!0})}function it(D){return d.v7_fetcherPersist&&(Ve.set(D,(Ve.get(D)||0)+1),Xe.has(D)&&Xe.delete(D)),N.fetchers.get(D)||JI}function Me(D){let U=N.fetchers.get(D);W.has(D)&&!(U&&U.state==="loading"&&oe.has(D))&&Je(D),Fe.delete(D),oe.delete(D),ye.delete(D),Xe.delete(D),N.fetchers.delete(D)}function nt(D){if(d.v7_fetcherPersist){let U=(Ve.get(D)||0)-1;U<=0?(Ve.delete(D),Xe.add(D)):Ve.set(D,U)}else Me(D);H({fetchers:new Map(N.fetchers)})}function Je(D){let U=W.get(D);Ke(U,"Expected fetch controller: "+D),U.abort(),W.delete(D)}function cn(D){for(let U of D){let V=it(U),ne=no(V.data);N.fetchers.set(U,ne)}}function jn(){let D=[],U=!1;for(let V of ye){let ne=N.fetchers.get(V);Ke(ne,"Expected fetcher: "+V),ne.state==="loading"&&(ye.delete(V),D.push(V),U=!0)}return cn(D),U}function qn(D){let U=[];for(let[V,ne]of oe)if(ne0}function Kt(D,U){let V=N.blockers.get(D)||ns;return ft.get(D)!==U&&ft.set(D,U),V}function Tt(D){N.blockers.delete(D),ft.delete(D)}function Vn(D,U){let V=N.blockers.get(D)||ns;Ke(V.state==="unblocked"&&U.state==="blocked"||V.state==="blocked"&&U.state==="blocked"||V.state==="blocked"&&U.state==="proceeding"||V.state==="blocked"&&U.state==="unblocked"||V.state==="proceeding"&&U.state==="unblocked","Invalid blocker state transition: "+V.state+" -> "+U.state);let ne=new Map(N.blockers);ne.set(D,U),H({blockers:ne})}function ti(D){let{currentLocation:U,nextLocation:V,historyAction:ne}=D;if(ft.size===0)return;ft.size>1&&vl(!1,"A router only supports one blocker at a time");let ue=Array.from(ft.entries()),[Re,xe]=ue[ue.length-1],pe=N.blockers.get(Re);if(!(pe&&pe.state==="proceeding")&&xe({currentLocation:U,nextLocation:V,historyAction:ne}))return Re}function pi(D){let U=[];return Ee.forEach((V,ne)=>{(!D||D(ne))&&(V.cancel(),U.push(ne),Ee.delete(ne))}),U}function ga(D,U,V){if(S=D,k=U,E=V||null,!A&&N.navigation===vh){A=!0;let ne=Yt(N.location,N.matches);ne!=null&&H({restoreScrollPosition:ne})}return()=>{S=null,k=null,E=null}}function Nt(D,U){return E&&E(D,U.map(ne=>RI(ne,N.loaderData)))||D.key}function Qt(D,U){if(S&&k){let V=Nt(D,U);S[V]=k()}}function Yt(D,U){if(S){let V=Nt(D,U),ne=S[V];if(typeof ne=="number")return ne}return null}function dr(D){l={},c=Cm(D,o,void 0,l)}return G={get basename(){return f},get future(){return d},get state(){return N},get routes(){return s},get window(){return t},initialize:z,subscribe:K,enableScrollRestoration:ga,navigate:de,fetch:Se,revalidate:he,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:it,deleteFetcher:nt,dispose:j,getBlocker:Kt,deleteBlocker:Tt,_internalFetchControllers:W,_internalActiveDeferreds:Ee,_internalSetRoutes:dr},G}function t4(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function km(e,t,n,r,o,l,s,c){let f,p;if(s){f=[];for(let m of t)if(f.push(m),m.route.id===s){p=m;break}}else f=t,p=t[t.length-1];let d=ng(o||".",tg(f,l),kl(e.pathname,n)||e.pathname,c==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&p&&p.route.index&&!ag(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:Oi([n,d.pathname])),sa(d)}function Cw(e,t,n,r){if(!r||!t4(r))return{path:n};if(r.formMethod&&!p4(r.formMethod))return{path:n,error:_r(405,{method:r.formMethod})};let o=()=>({path:n,error:_r(400,{type:"invalid-body"})}),l=r.formMethod||"get",s=e?l.toUpperCase():l.toLowerCase(),c=_S(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ur(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[k,A]=E;return""+S+k+"="+A+` -`},""):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(!Ur(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()}}}Ke(typeof FormData=="function","FormData is not available in this environment");let f,p;if(r.formData)f=Nm(r.formData),p=r.formData;else if(r.body instanceof FormData)f=Nm(r.body),p=r.body;else if(r.body instanceof URLSearchParams)f=r.body,p=Ow(f);else if(r.body==null)f=new URLSearchParams,p=new FormData;else try{f=new URLSearchParams(r.body),p=Ow(f)}catch{return o()}let d={formMethod:s,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(Ur(d.formMethod))return{path:n,submission:d};let m=Oo(n);return t&&m.search&&ag(m.search)&&f.append("index",""),m.search="?"+f,{path:sa(m),submission:d}}function n4(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 kw(e,t,n,r,o,l,s,c,f,p,d,m,v,S,E,k){let A=k?Nr(k[1])?k[1].error:k[1].data:void 0,_=e.createURL(t.location),b=e.createURL(o),y=k&&Nr(k[1])?k[0]:void 0,O=y?n4(n,y):n,I=k?k[1].statusCode:void 0,G=s&&I&&I>=400,N=O.filter((F,q)=>{let{route:te}=F;if(te.lazy)return!0;if(te.loader==null)return!1;if(l)return typeof te.loader!="function"||te.loader.hydrate?!0:t.loaderData[te.id]===void 0&&(!t.errors||t.errors[te.id]===void 0);if(r4(t.loaderData,t.matches[q],F)||f.some(ie=>ie===F.route.id))return!0;let we=t.matches[q],fe=F;return Nw(F,It({currentUrl:_,currentParams:we.params,nextUrl:b,nextParams:fe.params},r,{actionResult:A,unstable_actionStatus:I,defaultShouldRevalidate:G?!1:c||_.pathname+_.search===b.pathname+b.search||_.search!==b.search||bS(we,fe)}))}),$=[];return m.forEach((F,q)=>{if(l||!n.some(le=>le.route.id===F.routeId)||d.has(q))return;let te=Xa(S,F.path,E);if(!te){$.push({key:q,routeId:F.routeId,path:F.path,matches:null,match:null,controller:null});return}let we=t.fetchers.get(q),fe=Rm(te,F.path),ie=!1;v.has(q)?ie=!1:p.includes(q)?ie=!0:we&&we.state!=="idle"&&we.data===void 0?ie=c:ie=Nw(fe,It({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:A,unstable_actionStatus:I,defaultShouldRevalidate:G?!1:c})),ie&&$.push({key:q,routeId:F.routeId,path:F.path,matches:te,match:fe,controller:new AbortController})}),[N,$]}function r4(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function bS(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 Rw(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ke(o,"No route found in manifest");let l={};for(let s in r){let f=o[s]!==void 0&&s!=="hasErrorBoundary";vl(!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&&!kI.has(s)&&(l[s]=r[s])}Object.assign(o,l),Object.assign(o,It({},t(o),{lazy:void 0}))}function i4(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function o4(e,t,n,r,o,l,s,c){let f=r.reduce((m,v)=>m.add(v.route.id),new Set),p=new Set,d=await e({matches:o.map(m=>{let v=f.has(m.route.id);return It({},m,{shouldLoad:v,resolve:E=>(p.add(m.route.id),v?a4(t,n,m,l,s,E,c):Promise.resolve({type:Pt.data,result:void 0}))})}),request:n,params:o[0].params,context:c});return o.forEach(m=>Ke(p.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.')),d.filter((m,v)=>f.has(o[v].route.id))}async function a4(e,t,n,r,o,l,s){let c,f,p=d=>{let m,v=new Promise((k,A)=>m=A);f=()=>m(),t.signal.addEventListener("abort",f);let S=k=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:s},...k!==void 0?[k]:[]),E;return l?E=l(k=>S(k)):E=(async()=>{try{return{type:"data",result:await S()}}catch(k){return{type:"error",result:k}}})(),Promise.race([E,v])};try{let d=n.route[e];if(n.route.lazy)if(d){let m,[v]=await Promise.all([p(d).catch(S=>{m=S}),Rw(n.route,o,r)]);if(m!==void 0)throw m;c=v}else if(await Rw(n.route,o,r),d=n.route[e],d)c=await p(d);else if(e==="action"){let m=new URL(t.url),v=m.pathname+m.search;throw _r(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:Pt.data,result:void 0};else if(d)c=await p(d);else{let m=new URL(t.url),v=m.pathname+m.search;throw _r(404,{pathname:v})}Ke(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(d){return{type:Pt.error,result:d}}finally{f&&t.signal.removeEventListener("abort",f)}return c}async function l4(e){let{result:t,type:n,status:r}=e;if(SS(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:Pt.error,error:c}}return n===Pt.error?{type:Pt.error,error:new rg(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:Pt.data,data:s,statusCode:t.status,headers:t.headers}}if(n===Pt.error)return{type:Pt.error,error:t,statusCode:ig(t)?t.status:r};if(d4(t)){var o,l;return{type:Pt.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:Pt.data,data:t,statusCode:r}}function s4(e,t,n,r,o,l){let s=e.headers.get("Location");if(Ke(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!og.test(s)){let c=r.slice(0,r.findIndex(f=>f.route.id===n)+1);s=km(new URL(t.url),c,o,!0,s,l),e.headers.set("Location",s)}return e}function Pw(e,t,n){if(og.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),l=kl(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(_S(t)).toString(),l={signal:n};if(r&&Ur(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 u4(e,t,n,r,o,l){let s={},c=null,f,p=!1,d={},m=r&&Nr(r[1])?r[1].error:void 0;return n.forEach((v,S)=>{let E=t[S].route.id;if(Ke(!Qo(v),"Cannot handle redirect results in processLoaderData"),Nr(v)){let k=v.error;m!==void 0&&(k=m,m=void 0),c=c||{};{let A=bs(e,E);c[A.route.id]==null&&(c[A.route.id]=k)}s[E]=void 0,p||(p=!0,f=ig(v.error)?v.error.status:500),v.headers&&(d[E]=v.headers)}else Xo(v)?(o.set(E,v.deferredData),s[E]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!p&&(f=v.statusCode),v.headers&&(d[E]=v.headers)):(s[E]=v.data,v.statusCode&&v.statusCode!==200&&!p&&(f=v.statusCode),v.headers&&(d[E]=v.headers))}),m!==void 0&&r&&(c={[r[0]]:m},s[r[0]]=void 0),{loaderData:s,errors:c,statusCode:f||200,loaderHeaders:d}}function Tw(e,t,n,r,o,l,s,c){let{loaderData:f,errors:p}=u4(t,n,r,o,c);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Dw(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 _r(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 rg(e||500,s,new Error(c),!0)}function Mw(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Qo(n))return{result:n,idx:t}}}function _S(e){let t=typeof e=="string"?Oo(e):e;return sa(It({},t,{hash:""}))}function c4(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function f4(e){return SS(e.result)&&XI.has(e.result.status)}function Xo(e){return e.type===Pt.deferred}function Nr(e){return e.type===Pt.error}function Qo(e){return(e&&e.type)===Pt.redirect}function d4(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 SS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function p4(e){return VI.has(e.toLowerCase())}function Ur(e){return YI.has(e.toLowerCase())}async function Lw(e,t,n,r,o,l){for(let s=0;sm.route.id===f.route.id),d=p!=null&&!bS(p,f)&&(l&&l[f.route.id])!==void 0;if(Xo(c)&&(o||d)){let m=r[s];Ke(m,"Expected an AbortSignal for revalidating fetcher deferred result"),await ES(c,m,o).then(v=>{v&&(n[s]=v||n[s])})}}}async function ES(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Pt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Pt.error,error:o}}return{type:Pt.data,data:e.deferredData.data}}}function ag(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Rm(e,t){let n=typeof t=="string"?Oo(t).search:t.search;if(e[e.length-1].route.index&&ag(n||""))return e[e.length-1];let r=yS(e);return r[r.length-1]}function jw(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 gh(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 h4(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 rs(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 m4(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 no(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 v4(e,t){try{let n=e.sessionStorage.getItem(xS);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 g4(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(xS,JSON.stringify(n))}catch(r){vl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function vl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function EI(){return Math.random().toString(36).substr(2,8)}function Sw(e,t){return{usr:e.state,key:e.key,idx:t}}function Ks(e,t,n,r){return n===void 0&&(n=null),It({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Oo(t):t,{state:n,key:t&&t.key||r||EI()})}function sa(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 Oo(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 CI(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,s=o.history,c=Vt.Pop,f=null,p=d();p==null&&(p=0,s.replaceState(It({},s.state,{idx:p}),""));function d(){return(s.state||{idx:null}).idx}function m(){c=Vt.Pop;let A=d(),_=A==null?null:A-p;p=A,f&&f({action:c,location:k.location,delta:_})}function v(A,_){c=Vt.Push;let b=Ks(k.location,A,_);p=d()+1;let y=Sw(b,p),O=k.createHref(b);try{s.pushState(y,"",O)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(O)}l&&f&&f({action:c,location:k.location,delta:1})}function S(A,_){c=Vt.Replace;let b=Ks(k.location,A,_);p=d();let y=Sw(b,p),O=k.createHref(b);s.replaceState(y,"",O),l&&f&&f({action:c,location:k.location,delta:0})}function C(A){let _=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof A=="string"?A:sa(A);return b=b.replace(/ $/,"%20"),Ke(_,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,_)}let k={get action(){return c},get location(){return e(o,s)},listen(A){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(_w,m),f=A,()=>{o.removeEventListener(_w,m),f=null}},createHref(A){return t(o,A)},createURL:C,encodeLocation(A){let _=C(A);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:v,replace:S,go(A){return s.go(A)}};return k}var Pt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pt||(Pt={}));const kI=new Set(["lazy","caseSensitive","path","id","index","children"]);function NI(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(Ke(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ke(!r[c],'Found a route id collision on id "'+c+`". Route id's must be globally unique within Data Router usages`),NI(o)){let f=It({},o,t(o),{id:c});return r[c]=f,f}else{let f=It({},o,t(o),{id:c,children:void 0});return r[c]=f,o.children&&(f.children=Cm(o.children,t,s,r)),f}})}function Xa(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Oo(t):t,o=kl(r.pathname||"/",n);if(o==null)return null;let l=vS(e);PI(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("/")&&(Ke(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 p=Oi([r,f.relativePath]),d=n.concat(f);l.children&&l.children.length>0&&(Ke(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),vS(l.children,t,d,p)),!(l.path==null&&!l.index)&&t.push({path:p,score:MI(p,l.index),routesMeta:d})};return e.forEach((l,s)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))o(l,s);else for(let f of gS(l.path))o(l,s,f)}),t}function gS(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=gS(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 PI(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:jI(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const OI=/^:[\w-]+$/,TI=3,AI=2,II=1,DI=10,LI=-2,Ew=e=>e==="*";function MI(e,t){let n=e.split("/"),r=n.length;return n.some(Ew)&&(r+=LI),t&&(r+=AI),n.filter(o=>!Ew(o)).reduce((o,l)=>o+(OI.test(l)?TI:l===""?II:DI),r)}function jI(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 FI(e,t){let{routesMeta:n}=e,r={},o="/",l=[];for(let s=0;s{let{paramName:v,isOptional:S}=d;if(v==="*"){let k=c[m]||"";s=l.slice(0,l.length-k.length).replace(/(.)\/+$/,"$1")}const C=c[m];return S&&!C?p[v]=void 0:p[v]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:s,pattern:e}}function UI(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),vl(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 $I(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vl(!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 kl(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 BI(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Oo(e):e;return{pathname:n?n.startsWith("/")?n:WI(n,t):t,search:GI(r),hash:KI(o)}}function WI(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 mh(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 yS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function tg(e,t){let n=yS(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ng(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Oo(e):(o=It({},e),Ke(!o.pathname||!o.pathname.includes("?"),mh("?","pathname","search",o)),Ke(!o.pathname||!o.pathname.includes("#"),mh("#","pathname","hash",o)),Ke(!o.search||!o.search.includes("#"),mh("#","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=BI(o,c),p=s&&s!=="/"&&s.endsWith("/"),d=(l||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||d)&&(f.pathname+="/"),f}const Oi=e=>e.join("/").replace(/\/\/+/g,"/"),HI=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),GI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,KI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class rg{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 ig(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wS=["post","put","patch","delete"],YI=new Set(wS),qI=["get",...wS],VI=new Set(qI),XI=new Set([301,302,303,307,308]),QI=new Set([307,308]),vh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},JI={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ns={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},og=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ZI=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),xS="remix-router-transitions";function e4(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;Ke(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 D=e.detectErrorBoundary;o=U=>({hasErrorBoundary:D(U)})}else o=ZI;let l={},s=Cm(e.routes,o,void 0,l),c,f=e.basename||"/",p=e.unstable_dataStrategy||i4,d=It({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,C=null,k=null,A=e.hydrationData!=null,_=Xa(s,e.history.location,f),b=null;if(_==null){let D=_r(404,{pathname:e.history.location.pathname}),{matches:U,route:V}=Dw(s);_=U,b={[V.id]:D}}let y,O=_.some(D=>D.route.lazy),I=_.some(D=>D.route.loader);if(O)y=!1;else if(!I)y=!0;else if(d.v7_partialHydration){let D=e.hydrationData?e.hydrationData.loaderData:null,U=e.hydrationData?e.hydrationData.errors:null,V=ne=>ne.route.loader?typeof ne.route.loader=="function"&&ne.route.loader.hydrate===!0?!1:D&&D[ne.route.id]!==void 0||U&&U[ne.route.id]!==void 0:!0;if(U){let ne=_.findIndex(ue=>U[ue.route.id]!==void 0);y=_.slice(0,ne+1).every(V)}else y=_.every(V)}else y=e.hydrationData!=null;let G,N={historyAction:e.history.action,location:e.history.location,matches:_,initialized:y,navigation:vh,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},$=Vt.Pop,F=!1,q,te=!1,we=new Map,fe=null,ie=!1,le=!1,Ae=[],B=[],W=new Map,ae=0,se=-1,oe=new Map,ye=new Set,Fe=new Map,Ve=new Map,Xe=new Set,Ee=new Map,ft=new Map,yt=!1;function z(){if(m=e.history.listen(D=>{let{action:U,location:V,delta:ne}=D;if(yt){yt=!1;return}vl(ft.size===0||ne!=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 ue=ti({currentLocation:N.location,nextLocation:V,historyAction:U});if(ue&&ne!=null){yt=!0,e.history.go(ne*-1),Vn(ue,{state:"blocked",location:V,proceed(){Vn(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),e.history.go(ne)},reset(){let Re=new Map(N.blockers);Re.set(ue,ns),H({blockers:Re})}});return}return Ne(U,V)}),n){v4(t,we);let D=()=>g4(t,we);t.addEventListener("pagehide",D),fe=()=>t.removeEventListener("pagehide",D)}return N.initialized||Ne(Vt.Pop,N.location,{initialHydration:!0}),G}function j(){m&&m(),fe&&fe(),v.clear(),q&&q.abort(),N.fetchers.forEach((D,U)=>Le(U)),N.blockers.forEach((D,U)=>Tt(U))}function K(D){return v.add(D),()=>v.delete(D)}function H(D,U){U===void 0&&(U={}),N=It({},N,D);let V=[],ne=[];d.v7_fetcherPersist&&N.fetchers.forEach((ue,Re)=>{ue.state==="idle"&&(Xe.has(Re)?ne.push(Re):V.push(Re))}),[...v].forEach(ue=>ue(N,{deletedFetchers:ne,unstable_viewTransitionOpts:U.viewTransitionOpts,unstable_flushSync:U.flushSync===!0})),d.v7_fetcherPersist&&(V.forEach(ue=>N.fetchers.delete(ue)),ne.forEach(ue=>Le(ue)))}function Q(D,U,V){var ne,ue;let{flushSync:Re}=V===void 0?{}:V,xe=N.actionData!=null&&N.navigation.formMethod!=null&&Ur(N.navigation.formMethod)&&N.navigation.state==="loading"&&((ne=D.state)==null?void 0:ne._isRedirect)!==!0,pe;U.actionData?Object.keys(U.actionData).length>0?pe=U.actionData:pe=null:xe?pe=N.actionData:pe=null;let Pe=U.loaderData?Aw(N.loaderData,U.loaderData,U.matches||[],U.errors):N.loaderData,Ie=N.blockers;Ie.size>0&&(Ie=new Map(Ie),Ie.forEach((Ce,mt)=>Ie.set(mt,ns)));let xt=F===!0||N.navigation.formMethod!=null&&Ur(N.navigation.formMethod)&&((ue=D.state)==null?void 0:ue._isRedirect)!==!0;c&&(s=c,c=void 0),ie||$===Vt.Pop||($===Vt.Push?e.history.push(D,D.state):$===Vt.Replace&&e.history.replace(D,D.state));let bt;if($===Vt.Pop){let Ce=we.get(N.location.pathname);Ce&&Ce.has(D.pathname)?bt={currentLocation:N.location,nextLocation:D}:we.has(D.pathname)&&(bt={currentLocation:D,nextLocation:N.location})}else if(te){let Ce=we.get(N.location.pathname);Ce?Ce.add(D.pathname):(Ce=new Set([D.pathname]),we.set(N.location.pathname,Ce)),bt={currentLocation:N.location,nextLocation:D}}H(It({},U,{actionData:pe,loaderData:Pe,historyAction:$,location:D,initialized:!0,navigation:vh,revalidation:"idle",restoreScrollPosition:Yt(D,U.matches||N.matches),preventScrollReset:xt,blockers:Ie}),{viewTransitionOpts:bt,flushSync:Re===!0}),$=Vt.Pop,F=!1,te=!1,ie=!1,le=!1,Ae=[],B=[]}async function de(D,U){if(typeof D=="number"){e.history.go(D);return}let V=km(N.location,N.matches,f,d.v7_prependBasename,D,d.v7_relativeSplatPath,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:ne,submission:ue,error:Re}=Cw(d.v7_normalizeFormMethod,!1,V,U),xe=N.location,pe=Ks(N.location,ne,U&&U.state);pe=It({},pe,e.history.encodeLocation(pe));let Pe=U&&U.replace!=null?U.replace:void 0,Ie=Vt.Push;Pe===!0?Ie=Vt.Replace:Pe===!1||ue!=null&&Ur(ue.formMethod)&&ue.formAction===N.location.pathname+N.location.search&&(Ie=Vt.Replace);let xt=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,bt=(U&&U.unstable_flushSync)===!0,Ce=ti({currentLocation:xe,nextLocation:pe,historyAction:Ie});if(Ce){Vn(Ce,{state:"blocked",location:pe,proceed(){Vn(Ce,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),de(D,U)},reset(){let mt=new Map(N.blockers);mt.set(Ce,ns),H({blockers:mt})}});return}return await Ne(Ie,pe,{submission:ue,pendingError:Re,preventScrollReset:xt,replace:U&&U.replace,enableViewTransition:U&&U.unstable_viewTransition,flushSync:bt})}function he(){if(jt(),H({revalidation:"loading"}),N.navigation.state!=="submitting"){if(N.navigation.state==="idle"){Ne(N.historyAction,N.location,{startUninterruptedRevalidation:!0});return}Ne($||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation})}}async function Ne(D,U,V){q&&q.abort(),q=null,$=D,ie=(V&&V.startUninterruptedRevalidation)===!0,Qt(N.location,N.matches),F=(V&&V.preventScrollReset)===!0,te=(V&&V.enableViewTransition)===!0;let ne=c||s,ue=V&&V.overrideNavigation,Re=Xa(ne,U,f),xe=(V&&V.flushSync)===!0;if(!Re){let Ce=_r(404,{pathname:U.pathname}),{matches:mt,route:qt}=Dw(ne);pi(),Q(U,{matches:mt,loaderData:{},errors:{[qt.id]:Ce}},{flushSync:xe});return}if(N.initialized&&!le&&c4(N.location,U)&&!(V&&V.submission&&Ur(V.submission.formMethod))){Q(U,{matches:Re},{flushSync:xe});return}q=new AbortController;let pe=Ma(e.history,U,q.signal,V&&V.submission),Pe;if(V&&V.pendingError)Pe=[bs(Re).route.id,{type:Pt.error,error:V.pendingError}];else if(V&&V.submission&&Ur(V.submission.formMethod)){let Ce=await Ze(pe,U,V.submission,Re,{replace:V.replace,flushSync:xe});if(Ce.shortCircuited)return;Pe=Ce.pendingActionResult,ue=gh(U,V.submission),xe=!1,pe=Ma(e.history,pe.url,pe.signal)}let{shortCircuited:Ie,loaderData:xt,errors:bt}=await ht(pe,U,Re,ue,V&&V.submission,V&&V.fetcherSubmission,V&&V.replace,V&&V.initialHydration===!0,xe,Pe);Ie||(q=null,Q(U,It({matches:Re},Iw(Pe),{loaderData:xt,errors:bt})))}async function Ze(D,U,V,ne,ue){ue===void 0&&(ue={}),jt();let Re=h4(U,V);H({navigation:Re},{flushSync:ue.flushSync===!0});let xe,pe=Rm(ne,U);if(!pe.route.action&&!pe.route.lazy)xe={type:Pt.error,error:_r(405,{method:D.method,pathname:U.pathname,routeId:pe.route.id})};else if(xe=(await wt("action",D,[pe],ne))[0],D.signal.aborted)return{shortCircuited:!0};if(Qo(xe)){let Pe;return ue&&ue.replace!=null?Pe=ue.replace:Pe=Pw(xe.response.headers.get("Location"),new URL(D.url),f)===N.location.pathname+N.location.search,await st(D,xe,{submission:V,replace:Pe}),{shortCircuited:!0}}if(Xo(xe))throw _r(400,{type:"defer-action"});if(Nr(xe)){let Pe=bs(ne,pe.route.id);return(ue&&ue.replace)!==!0&&($=Vt.Push),{pendingActionResult:[Pe.route.id,xe]}}return{pendingActionResult:[pe.route.id,xe]}}async function ht(D,U,V,ne,ue,Re,xe,pe,Pe,Ie){let xt=ne||gh(U,ue),bt=ue||Re||jw(xt),Ce=c||s,[mt,qt]=kw(e.history,N,V,bt,U,d.v7_partialHydration&&pe===!0,d.unstable_skipActionErrorRevalidation,le,Ae,B,Xe,Fe,ye,Ce,f,Ie);if(pi(Be=>!(V&&V.some(fn=>fn.route.id===Be))||mt&&mt.some(fn=>fn.route.id===Be)),se=++ae,mt.length===0&&qt.length===0){let Be=jn();return Q(U,It({matches:V,loaderData:{},errors:Ie&&Nr(Ie[1])?{[Ie[0]]:Ie[1].error}:null},Iw(Ie),Be?{fetchers:new Map(N.fetchers)}:{}),{flushSync:Pe}),{shortCircuited:!0}}if(!ie&&(!d.v7_partialHydration||!pe)){qt.forEach(fn=>{let dn=N.fetchers.get(fn.key),Jt=rs(void 0,dn?dn.data:void 0);N.fetchers.set(fn.key,Jt)});let Be;Ie&&!Nr(Ie[1])?Be={[Ie[0]]:Ie[1].data}:N.actionData&&(Object.keys(N.actionData).length===0?Be=null:Be=N.actionData),H(It({navigation:xt},Be!==void 0?{actionData:Be}:{},qt.length>0?{fetchers:new Map(N.fetchers)}:{}),{flushSync:Pe})}qt.forEach(Be=>{W.has(Be.key)&&Je(Be.key),Be.controller&&W.set(Be.key,Be.controller)});let To=()=>qt.forEach(Be=>Je(Be.key));q&&q.signal.addEventListener("abort",To);let{loaderResults:ni,fetcherResults:hi}=await xn(N.matches,V,mt,qt,D);if(D.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",To),qt.forEach(Be=>W.delete(Be.key));let Wi=Lw([...ni,...hi]);if(Wi){if(Wi.idx>=mt.length){let Be=qt[Wi.idx-mt.length].key;ye.add(Be)}return await st(D,Wi.result,{replace:xe}),{shortCircuited:!0}}let{loaderData:Hi,errors:pr}=Tw(N,V,mt,ni,Ie,qt,hi,Ee);Ee.forEach((Be,fn)=>{Be.subscribe(dn=>{(dn||Be.done)&&Ee.delete(fn)})}),d.v7_partialHydration&&pe&&N.errors&&Object.entries(N.errors).filter(Be=>{let[fn]=Be;return!mt.some(dn=>dn.route.id===fn)}).forEach(Be=>{let[fn,dn]=Be;pr=Object.assign(pr||{},{[fn]:dn})});let ya=jn(),wa=qn(se),xa=ya||wa||qt.length>0;return It({loaderData:Hi,errors:pr},xa?{fetchers:new Map(N.fetchers)}:{})}function Se(D,U,V,ne){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.");W.has(D)&&Je(D);let ue=(ne&&ne.unstable_flushSync)===!0,Re=c||s,xe=km(N.location,N.matches,f,d.v7_prependBasename,V,d.v7_relativeSplatPath,U,ne==null?void 0:ne.relative),pe=Xa(Re,xe,f);if(!pe){Gt(D,U,_r(404,{pathname:xe}),{flushSync:ue});return}let{path:Pe,submission:Ie,error:xt}=Cw(d.v7_normalizeFormMethod,!0,xe,ne);if(xt){Gt(D,U,xt,{flushSync:ue});return}let bt=Rm(pe,Pe);if(F=(ne&&ne.preventScrollReset)===!0,Ie&&Ur(Ie.formMethod)){De(D,U,Pe,bt,pe,ue,Ie);return}Fe.set(D,{routeId:U,path:Pe}),tt(D,U,Pe,bt,pe,ue,Ie)}async function De(D,U,V,ne,ue,Re,xe){if(jt(),Fe.delete(D),!ne.route.action&&!ne.route.lazy){let Jt=_r(405,{method:xe.formMethod,pathname:V,routeId:U});Gt(D,U,Jt,{flushSync:Re});return}let pe=N.fetchers.get(D);Ht(D,m4(xe,pe),{flushSync:Re});let Pe=new AbortController,Ie=Ma(e.history,V,Pe.signal,xe);W.set(D,Pe);let xt=ae,Ce=(await wt("action",Ie,[ne],ue))[0];if(Ie.signal.aborted){W.get(D)===Pe&&W.delete(D);return}if(d.v7_fetcherPersist&&Xe.has(D)){if(Qo(Ce)||Nr(Ce)){Ht(D,no(void 0));return}}else{if(Qo(Ce))if(W.delete(D),se>xt){Ht(D,no(void 0));return}else return ye.add(D),Ht(D,rs(xe)),st(Ie,Ce,{fetcherSubmission:xe});if(Nr(Ce)){Gt(D,U,Ce.error);return}}if(Xo(Ce))throw _r(400,{type:"defer-action"});let mt=N.navigation.location||N.location,qt=Ma(e.history,mt,Pe.signal),To=c||s,ni=N.navigation.state!=="idle"?Xa(To,N.navigation.location,f):N.matches;Ke(ni,"Didn't find any matches after fetcher action");let hi=++ae;oe.set(D,hi);let Wi=rs(xe,Ce.data);N.fetchers.set(D,Wi);let[Hi,pr]=kw(e.history,N,ni,xe,mt,!1,d.unstable_skipActionErrorRevalidation,le,Ae,B,Xe,Fe,ye,To,f,[ne.route.id,Ce]);pr.filter(Jt=>Jt.key!==D).forEach(Jt=>{let Ao=Jt.key,xu=N.fetchers.get(Ao),bu=rs(void 0,xu?xu.data:void 0);N.fetchers.set(Ao,bu),W.has(Ao)&&Je(Ao),Jt.controller&&W.set(Ao,Jt.controller)}),H({fetchers:new Map(N.fetchers)});let ya=()=>pr.forEach(Jt=>Je(Jt.key));Pe.signal.addEventListener("abort",ya);let{loaderResults:wa,fetcherResults:xa}=await xn(N.matches,ni,Hi,pr,qt);if(Pe.signal.aborted)return;Pe.signal.removeEventListener("abort",ya),oe.delete(D),W.delete(D),pr.forEach(Jt=>W.delete(Jt.key));let Be=Lw([...wa,...xa]);if(Be){if(Be.idx>=Hi.length){let Jt=pr[Be.idx-Hi.length].key;ye.add(Jt)}return st(qt,Be.result)}let{loaderData:fn,errors:dn}=Tw(N,N.matches,Hi,wa,void 0,pr,xa,Ee);if(N.fetchers.has(D)){let Jt=no(Ce.data);N.fetchers.set(D,Jt)}qn(hi),N.navigation.state==="loading"&&hi>se?(Ke($,"Expected pending action"),q&&q.abort(),Q(N.navigation.location,{matches:ni,loaderData:fn,errors:dn,fetchers:new Map(N.fetchers)})):(H({errors:dn,loaderData:Aw(N.loaderData,fn,ni,dn),fetchers:new Map(N.fetchers)}),le=!1)}async function tt(D,U,V,ne,ue,Re,xe){let pe=N.fetchers.get(D);Ht(D,rs(xe,pe?pe.data:void 0),{flushSync:Re});let Pe=new AbortController,Ie=Ma(e.history,V,Pe.signal);W.set(D,Pe);let xt=ae,Ce=(await wt("loader",Ie,[ne],ue))[0];if(Xo(Ce)&&(Ce=await ES(Ce,Ie.signal,!0)||Ce),W.get(D)===Pe&&W.delete(D),!Ie.signal.aborted){if(Xe.has(D)){Ht(D,no(void 0));return}if(Qo(Ce))if(se>xt){Ht(D,no(void 0));return}else{ye.add(D),await st(Ie,Ce);return}if(Nr(Ce)){Gt(D,U,Ce.error);return}Ke(!Xo(Ce),"Unhandled fetcher deferred data"),Ht(D,no(Ce.data))}}async function st(D,U,V){let{submission:ne,fetcherSubmission:ue,replace:Re}=V===void 0?{}:V;U.response.headers.has("X-Remix-Revalidate")&&(le=!0);let xe=U.response.headers.get("Location");Ke(xe,"Expected a Location header on the redirect Response"),xe=Pw(xe,new URL(D.url),f);let pe=Ks(N.location,xe,{_isRedirect:!0});if(n){let mt=!1;if(U.response.headers.has("X-Remix-Reload-Document"))mt=!0;else if(og.test(xe)){const qt=e.history.createURL(xe);mt=qt.origin!==t.location.origin||kl(qt.pathname,f)==null}if(mt){Re?t.location.replace(xe):t.location.assign(xe);return}}q=null;let Pe=Re===!0?Vt.Replace:Vt.Push,{formMethod:Ie,formAction:xt,formEncType:bt}=N.navigation;!ne&&!ue&&Ie&&xt&&bt&&(ne=jw(N.navigation));let Ce=ne||ue;if(QI.has(U.response.status)&&Ce&&Ur(Ce.formMethod))await Ne(Pe,pe,{submission:It({},Ce,{formAction:xe}),preventScrollReset:F});else{let mt=gh(pe,ne);await Ne(Pe,pe,{overrideNavigation:mt,fetcherSubmission:ue,preventScrollReset:F})}}async function wt(D,U,V,ne){try{let ue=await o4(p,D,U,V,ne,l,o);return await Promise.all(ue.map((Re,xe)=>{if(f4(Re)){let pe=Re.result;return{type:Pt.redirect,response:s4(pe,U,V[xe].route.id,ne,f,d.v7_relativeSplatPath)}}return l4(Re)}))}catch(ue){return V.map(()=>({type:Pt.error,error:ue}))}}async function xn(D,U,V,ne,ue){let[Re,...xe]=await Promise.all([V.length?wt("loader",ue,V,U):[],...ne.map(pe=>{if(pe.matches&&pe.match&&pe.controller){let Pe=Ma(e.history,pe.path,pe.controller.signal);return wt("loader",Pe,[pe.match],pe.matches).then(Ie=>Ie[0])}else return Promise.resolve({type:Pt.error,error:_r(404,{pathname:pe.path})})})]);return await Promise.all([Mw(D,V,Re,Re.map(()=>ue.signal),!1,N.loaderData),Mw(D,ne.map(pe=>pe.match),xe,ne.map(pe=>pe.controller?pe.controller.signal:null),!0)]),{loaderResults:Re,fetcherResults:xe}}function jt(){le=!0,Ae.push(...pi()),Fe.forEach((D,U)=>{W.has(U)&&(B.push(U),Je(U))})}function Ht(D,U,V){V===void 0&&(V={}),N.fetchers.set(D,U),H({fetchers:new Map(N.fetchers)},{flushSync:(V&&V.flushSync)===!0})}function Gt(D,U,V,ne){ne===void 0&&(ne={});let ue=bs(N.matches,U);Le(D),H({errors:{[ue.route.id]:V},fetchers:new Map(N.fetchers)},{flushSync:(ne&&ne.flushSync)===!0})}function it(D){return d.v7_fetcherPersist&&(Ve.set(D,(Ve.get(D)||0)+1),Xe.has(D)&&Xe.delete(D)),N.fetchers.get(D)||JI}function Le(D){let U=N.fetchers.get(D);W.has(D)&&!(U&&U.state==="loading"&&oe.has(D))&&Je(D),Fe.delete(D),oe.delete(D),ye.delete(D),Xe.delete(D),N.fetchers.delete(D)}function nt(D){if(d.v7_fetcherPersist){let U=(Ve.get(D)||0)-1;U<=0?(Ve.delete(D),Xe.add(D)):Ve.set(D,U)}else Le(D);H({fetchers:new Map(N.fetchers)})}function Je(D){let U=W.get(D);Ke(U,"Expected fetch controller: "+D),U.abort(),W.delete(D)}function cn(D){for(let U of D){let V=it(U),ne=no(V.data);N.fetchers.set(U,ne)}}function jn(){let D=[],U=!1;for(let V of ye){let ne=N.fetchers.get(V);Ke(ne,"Expected fetcher: "+V),ne.state==="loading"&&(ye.delete(V),D.push(V),U=!0)}return cn(D),U}function qn(D){let U=[];for(let[V,ne]of oe)if(ne0}function Kt(D,U){let V=N.blockers.get(D)||ns;return ft.get(D)!==U&&ft.set(D,U),V}function Tt(D){N.blockers.delete(D),ft.delete(D)}function Vn(D,U){let V=N.blockers.get(D)||ns;Ke(V.state==="unblocked"&&U.state==="blocked"||V.state==="blocked"&&U.state==="blocked"||V.state==="blocked"&&U.state==="proceeding"||V.state==="blocked"&&U.state==="unblocked"||V.state==="proceeding"&&U.state==="unblocked","Invalid blocker state transition: "+V.state+" -> "+U.state);let ne=new Map(N.blockers);ne.set(D,U),H({blockers:ne})}function ti(D){let{currentLocation:U,nextLocation:V,historyAction:ne}=D;if(ft.size===0)return;ft.size>1&&vl(!1,"A router only supports one blocker at a time");let ue=Array.from(ft.entries()),[Re,xe]=ue[ue.length-1],pe=N.blockers.get(Re);if(!(pe&&pe.state==="proceeding")&&xe({currentLocation:U,nextLocation:V,historyAction:ne}))return Re}function pi(D){let U=[];return Ee.forEach((V,ne)=>{(!D||D(ne))&&(V.cancel(),U.push(ne),Ee.delete(ne))}),U}function ga(D,U,V){if(S=D,k=U,C=V||null,!A&&N.navigation===vh){A=!0;let ne=Yt(N.location,N.matches);ne!=null&&H({restoreScrollPosition:ne})}return()=>{S=null,k=null,C=null}}function Nt(D,U){return C&&C(D,U.map(ne=>RI(ne,N.loaderData)))||D.key}function Qt(D,U){if(S&&k){let V=Nt(D,U);S[V]=k()}}function Yt(D,U){if(S){let V=Nt(D,U),ne=S[V];if(typeof ne=="number")return ne}return null}function dr(D){l={},c=Cm(D,o,void 0,l)}return G={get basename(){return f},get future(){return d},get state(){return N},get routes(){return s},get window(){return t},initialize:z,subscribe:K,enableScrollRestoration:ga,navigate:de,fetch:Se,revalidate:he,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:it,deleteFetcher:nt,dispose:j,getBlocker:Kt,deleteBlocker:Tt,_internalFetchControllers:W,_internalActiveDeferreds:Ee,_internalSetRoutes:dr},G}function t4(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function km(e,t,n,r,o,l,s,c){let f,p;if(s){f=[];for(let m of t)if(f.push(m),m.route.id===s){p=m;break}}else f=t,p=t[t.length-1];let d=ng(o||".",tg(f,l),kl(e.pathname,n)||e.pathname,c==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&p&&p.route.index&&!ag(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:Oi([n,d.pathname])),sa(d)}function Cw(e,t,n,r){if(!r||!t4(r))return{path:n};if(r.formMethod&&!p4(r.formMethod))return{path:n,error:_r(405,{method:r.formMethod})};let o=()=>({path:n,error:_r(400,{type:"invalid-body"})}),l=r.formMethod||"get",s=e?l.toUpperCase():l.toLowerCase(),c=_S(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ur(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,C)=>{let[k,A]=C;return""+S+k+"="+A+` +`},""):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(!Ur(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()}}}Ke(typeof FormData=="function","FormData is not available in this environment");let f,p;if(r.formData)f=Nm(r.formData),p=r.formData;else if(r.body instanceof FormData)f=Nm(r.body),p=r.body;else if(r.body instanceof URLSearchParams)f=r.body,p=Ow(f);else if(r.body==null)f=new URLSearchParams,p=new FormData;else try{f=new URLSearchParams(r.body),p=Ow(f)}catch{return o()}let d={formMethod:s,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(Ur(d.formMethod))return{path:n,submission:d};let m=Oo(n);return t&&m.search&&ag(m.search)&&f.append("index",""),m.search="?"+f,{path:sa(m),submission:d}}function n4(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 kw(e,t,n,r,o,l,s,c,f,p,d,m,v,S,C,k){let A=k?Nr(k[1])?k[1].error:k[1].data:void 0,_=e.createURL(t.location),b=e.createURL(o),y=k&&Nr(k[1])?k[0]:void 0,O=y?n4(n,y):n,I=k?k[1].statusCode:void 0,G=s&&I&&I>=400,N=O.filter((F,q)=>{let{route:te}=F;if(te.lazy)return!0;if(te.loader==null)return!1;if(l)return typeof te.loader!="function"||te.loader.hydrate?!0:t.loaderData[te.id]===void 0&&(!t.errors||t.errors[te.id]===void 0);if(r4(t.loaderData,t.matches[q],F)||f.some(ie=>ie===F.route.id))return!0;let we=t.matches[q],fe=F;return Nw(F,It({currentUrl:_,currentParams:we.params,nextUrl:b,nextParams:fe.params},r,{actionResult:A,unstable_actionStatus:I,defaultShouldRevalidate:G?!1:c||_.pathname+_.search===b.pathname+b.search||_.search!==b.search||bS(we,fe)}))}),$=[];return m.forEach((F,q)=>{if(l||!n.some(le=>le.route.id===F.routeId)||d.has(q))return;let te=Xa(S,F.path,C);if(!te){$.push({key:q,routeId:F.routeId,path:F.path,matches:null,match:null,controller:null});return}let we=t.fetchers.get(q),fe=Rm(te,F.path),ie=!1;v.has(q)?ie=!1:p.includes(q)?ie=!0:we&&we.state!=="idle"&&we.data===void 0?ie=c:ie=Nw(fe,It({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:A,unstable_actionStatus:I,defaultShouldRevalidate:G?!1:c})),ie&&$.push({key:q,routeId:F.routeId,path:F.path,matches:te,match:fe,controller:new AbortController})}),[N,$]}function r4(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function bS(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 Rw(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ke(o,"No route found in manifest");let l={};for(let s in r){let f=o[s]!==void 0&&s!=="hasErrorBoundary";vl(!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&&!kI.has(s)&&(l[s]=r[s])}Object.assign(o,l),Object.assign(o,It({},t(o),{lazy:void 0}))}function i4(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function o4(e,t,n,r,o,l,s,c){let f=r.reduce((m,v)=>m.add(v.route.id),new Set),p=new Set,d=await e({matches:o.map(m=>{let v=f.has(m.route.id);return It({},m,{shouldLoad:v,resolve:C=>(p.add(m.route.id),v?a4(t,n,m,l,s,C,c):Promise.resolve({type:Pt.data,result:void 0}))})}),request:n,params:o[0].params,context:c});return o.forEach(m=>Ke(p.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.')),d.filter((m,v)=>f.has(o[v].route.id))}async function a4(e,t,n,r,o,l,s){let c,f,p=d=>{let m,v=new Promise((k,A)=>m=A);f=()=>m(),t.signal.addEventListener("abort",f);let S=k=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:s},...k!==void 0?[k]:[]),C;return l?C=l(k=>S(k)):C=(async()=>{try{return{type:"data",result:await S()}}catch(k){return{type:"error",result:k}}})(),Promise.race([C,v])};try{let d=n.route[e];if(n.route.lazy)if(d){let m,[v]=await Promise.all([p(d).catch(S=>{m=S}),Rw(n.route,o,r)]);if(m!==void 0)throw m;c=v}else if(await Rw(n.route,o,r),d=n.route[e],d)c=await p(d);else if(e==="action"){let m=new URL(t.url),v=m.pathname+m.search;throw _r(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:Pt.data,result:void 0};else if(d)c=await p(d);else{let m=new URL(t.url),v=m.pathname+m.search;throw _r(404,{pathname:v})}Ke(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(d){return{type:Pt.error,result:d}}finally{f&&t.signal.removeEventListener("abort",f)}return c}async function l4(e){let{result:t,type:n,status:r}=e;if(SS(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:Pt.error,error:c}}return n===Pt.error?{type:Pt.error,error:new rg(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:Pt.data,data:s,statusCode:t.status,headers:t.headers}}if(n===Pt.error)return{type:Pt.error,error:t,statusCode:ig(t)?t.status:r};if(d4(t)){var o,l;return{type:Pt.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:Pt.data,data:t,statusCode:r}}function s4(e,t,n,r,o,l){let s=e.headers.get("Location");if(Ke(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!og.test(s)){let c=r.slice(0,r.findIndex(f=>f.route.id===n)+1);s=km(new URL(t.url),c,o,!0,s,l),e.headers.set("Location",s)}return e}function Pw(e,t,n){if(og.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),l=kl(o.pathname,n)!=null;if(o.origin===t.origin&&l)return o.pathname+o.search+o.hash}return e}function Ma(e,t,n,r){let o=e.createURL(_S(t)).toString(),l={signal:n};if(r&&Ur(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 u4(e,t,n,r,o,l){let s={},c=null,f,p=!1,d={},m=r&&Nr(r[1])?r[1].error:void 0;return n.forEach((v,S)=>{let C=t[S].route.id;if(Ke(!Qo(v),"Cannot handle redirect results in processLoaderData"),Nr(v)){let k=v.error;m!==void 0&&(k=m,m=void 0),c=c||{};{let A=bs(e,C);c[A.route.id]==null&&(c[A.route.id]=k)}s[C]=void 0,p||(p=!0,f=ig(v.error)?v.error.status:500),v.headers&&(d[C]=v.headers)}else Xo(v)?(o.set(C,v.deferredData),s[C]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!p&&(f=v.statusCode),v.headers&&(d[C]=v.headers)):(s[C]=v.data,v.statusCode&&v.statusCode!==200&&!p&&(f=v.statusCode),v.headers&&(d[C]=v.headers))}),m!==void 0&&r&&(c={[r[0]]:m},s[r[0]]=void 0),{loaderData:s,errors:c,statusCode:f||200,loaderHeaders:d}}function Tw(e,t,n,r,o,l,s,c){let{loaderData:f,errors:p}=u4(t,n,r,o,c);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Dw(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 _r(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 rg(e||500,s,new Error(c),!0)}function Lw(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Qo(n))return{result:n,idx:t}}}function _S(e){let t=typeof e=="string"?Oo(e):e;return sa(It({},t,{hash:""}))}function c4(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function f4(e){return SS(e.result)&&XI.has(e.result.status)}function Xo(e){return e.type===Pt.deferred}function Nr(e){return e.type===Pt.error}function Qo(e){return(e&&e.type)===Pt.redirect}function d4(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 SS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function p4(e){return VI.has(e.toLowerCase())}function Ur(e){return YI.has(e.toLowerCase())}async function Mw(e,t,n,r,o,l){for(let s=0;sm.route.id===f.route.id),d=p!=null&&!bS(p,f)&&(l&&l[f.route.id])!==void 0;if(Xo(c)&&(o||d)){let m=r[s];Ke(m,"Expected an AbortSignal for revalidating fetcher deferred result"),await ES(c,m,o).then(v=>{v&&(n[s]=v||n[s])})}}}async function ES(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Pt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Pt.error,error:o}}return{type:Pt.data,data:e.deferredData.data}}}function ag(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Rm(e,t){let n=typeof t=="string"?Oo(t).search:t.search;if(e[e.length-1].route.index&&ag(n||""))return e[e.length-1];let r=yS(e);return r[r.length-1]}function jw(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 gh(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 h4(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 rs(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 m4(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 no(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 v4(e,t){try{let n=e.sessionStorage.getItem(xS);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 g4(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(xS,JSON.stringify(n))}catch(r){vl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.23.1 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+l.message+` * 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}),R.useCallback(function(p,d){if(d===void 0&&(d={}),!c.current)return;if(typeof p=="number"){r.go(p);return}let m=ng(p,JSON.parse(s),l,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Oi([t,m.pathname])),(d.replace?r.replace:r.push)(m,d.state,d)},[t,r,s,l,e])}function RS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(ma),{matches:o}=R.useContext(va),{pathname:l}=pd(),s=JSON.stringify(tg(o,r.v7_relativeSplatPath));return R.useMemo(()=>ng(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function x4(e,t,n,r){fu()||Ke(!1);let{navigator:o}=R.useContext(ma),{matches:l}=R.useContext(va),s=l[l.length-1],c=s?s.params:{};s&&s.pathname;let f=s?s.pathnameBase:"/";s&&s.route;let p=pd(),d;d=p;let m=d.pathname||"/",v=m;if(f!=="/"){let k=f.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(k.length).join("/")}let S=Xa(e,{pathname:v});return C4(S&&S.map(k=>Object.assign({},k,{params:Object.assign({},c,k.params),pathname:Oi([f,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?f:Oi([f,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),l,n,r)}function b4(){let e=P4(),t=ig(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 R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:o},n):null,null)}const _4=R.createElement(b4,null);class S4 extends R.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?R.createElement(va.Provider,{value:this.props.routeContext},R.createElement(kS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E4(e){let{routeContext:t,match:n,children:r}=e,o=R.useContext(dd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(va.Provider,{value:t},r)}function C4(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 d=s.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);d>=0||Ke(!1),s=s.slice(0,Math.min(s.length,d+1))}let f=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,p+1):s=[s[0]];break}}}return s.reduceRight((d,m,v)=>{let S,E=!1,k=null,A=null;n&&(S=c&&m.route.id?c[m.route.id]:void 0,k=m.route.errorElement||_4,f&&(p<0&&v===0?(T4("route-fallback"),E=!0,A=null):p===v&&(E=!0,A=m.route.hydrateFallbackElement||null)));let _=t.concat(s.slice(0,v+1)),b=()=>{let y;return S?y=k:E?y=A:m.route.Component?y=R.createElement(m.route.Component,null):m.route.element?y=m.route.element:y=d,R.createElement(E4,{match:m,routeContext:{outlet:d,matches:_,isDataRoute:n!=null},children:y})};return n&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?R.createElement(S4,{location:n.location,revalidation:n.revalidation,component:k,error:S,children:b(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):b()},null)}var PS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(PS||{}),Rf=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}(Rf||{});function k4(e){let t=R.useContext(dd);return t||Ke(!1),t}function N4(e){let t=R.useContext(CS);return t||Ke(!1),t}function R4(e){let t=R.useContext(va);return t||Ke(!1),t}function OS(e){let t=R4(),n=t.matches[t.matches.length-1];return n.route.id||Ke(!1),n.route.id}function P4(){var e;let t=R.useContext(kS),n=N4(Rf.UseRouteError),r=OS(Rf.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function O4(){let{router:e}=k4(PS.UseNavigateStable),t=OS(Rf.UseNavigateStable),n=R.useRef(!1);return NS(()=>{n.current=!0}),R.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 Fw={};function T4(e,t,n){Fw[e]||(Fw[e]=!0)}function A4(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Vt.Pop,navigator:l,static:s=!1,future:c}=e;fu()&&Ke(!1);let f=t.replace(/^\/*/,"/"),p=R.useMemo(()=>({basename:f,navigator:l,static:s,future:Nf({v7_relativeSplatPath:!1},c)}),[f,c,l,s]);typeof r=="string"&&(r=Oo(r));let{pathname:d="/",search:m="",hash:v="",state:S=null,key:E="default"}=r,k=R.useMemo(()=>{let A=kl(d,f);return A==null?null:{location:{pathname:A,search:m,hash:v,state:S,key:E},navigationType:o}},[f,d,m,v,S,E,o]);return k==null?null:R.createElement(ma.Provider,{value:p},R.createElement(lg.Provider,{children:n,value:k}))}new Promise(()=>{});function I4(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:R.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:R.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:R.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Nf(){return Nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c.current=!0}),R.useCallback(function(p,d){if(d===void 0&&(d={}),!c.current)return;if(typeof p=="number"){r.go(p);return}let m=ng(p,JSON.parse(s),l,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Oi([t,m.pathname])),(d.replace?r.replace:r.push)(m,d.state,d)},[t,r,s,l,e])}function RS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(ma),{matches:o}=R.useContext(va),{pathname:l}=pd(),s=JSON.stringify(tg(o,r.v7_relativeSplatPath));return R.useMemo(()=>ng(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function x4(e,t,n,r){fu()||Ke(!1);let{navigator:o}=R.useContext(ma),{matches:l}=R.useContext(va),s=l[l.length-1],c=s?s.params:{};s&&s.pathname;let f=s?s.pathnameBase:"/";s&&s.route;let p=pd(),d;d=p;let m=d.pathname||"/",v=m;if(f!=="/"){let k=f.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(k.length).join("/")}let S=Xa(e,{pathname:v});return C4(S&&S.map(k=>Object.assign({},k,{params:Object.assign({},c,k.params),pathname:Oi([f,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?f:Oi([f,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),l,n,r)}function b4(){let e=P4(),t=ig(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 R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:o},n):null,null)}const _4=R.createElement(b4,null);class S4 extends R.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?R.createElement(va.Provider,{value:this.props.routeContext},R.createElement(kS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E4(e){let{routeContext:t,match:n,children:r}=e,o=R.useContext(dd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(va.Provider,{value:t},r)}function C4(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 d=s.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);d>=0||Ke(!1),s=s.slice(0,Math.min(s.length,d+1))}let f=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,p+1):s=[s[0]];break}}}return s.reduceRight((d,m,v)=>{let S,C=!1,k=null,A=null;n&&(S=c&&m.route.id?c[m.route.id]:void 0,k=m.route.errorElement||_4,f&&(p<0&&v===0?(T4("route-fallback"),C=!0,A=null):p===v&&(C=!0,A=m.route.hydrateFallbackElement||null)));let _=t.concat(s.slice(0,v+1)),b=()=>{let y;return S?y=k:C?y=A:m.route.Component?y=R.createElement(m.route.Component,null):m.route.element?y=m.route.element:y=d,R.createElement(E4,{match:m,routeContext:{outlet:d,matches:_,isDataRoute:n!=null},children:y})};return n&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?R.createElement(S4,{location:n.location,revalidation:n.revalidation,component:k,error:S,children:b(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):b()},null)}var PS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(PS||{}),Rf=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}(Rf||{});function k4(e){let t=R.useContext(dd);return t||Ke(!1),t}function N4(e){let t=R.useContext(CS);return t||Ke(!1),t}function R4(e){let t=R.useContext(va);return t||Ke(!1),t}function OS(e){let t=R4(),n=t.matches[t.matches.length-1];return n.route.id||Ke(!1),n.route.id}function P4(){var e;let t=R.useContext(kS),n=N4(Rf.UseRouteError),r=OS(Rf.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function O4(){let{router:e}=k4(PS.UseNavigateStable),t=OS(Rf.UseNavigateStable),n=R.useRef(!1);return NS(()=>{n.current=!0}),R.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 Fw={};function T4(e,t,n){Fw[e]||(Fw[e]=!0)}function A4(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Vt.Pop,navigator:l,static:s=!1,future:c}=e;fu()&&Ke(!1);let f=t.replace(/^\/*/,"/"),p=R.useMemo(()=>({basename:f,navigator:l,static:s,future:Nf({v7_relativeSplatPath:!1},c)}),[f,c,l,s]);typeof r=="string"&&(r=Oo(r));let{pathname:d="/",search:m="",hash:v="",state:S=null,key:C="default"}=r,k=R.useMemo(()=>{let A=kl(d,f);return A==null?null:{location:{pathname:A,search:m,hash:v,state:S,key:C},navigationType:o}},[f,d,m,v,S,C,o]);return k==null?null:R.createElement(ma.Provider,{value:p},R.createElement(lg.Provider,{children:n,value:k}))}new Promise(()=>{});function I4(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:R.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:R.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:R.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.23.1 * * Copyright (c) Remix Software Inc. @@ -73,19 +73,19 @@ Error generating stack: `+l.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function M4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function L4(e,t){return e.button===0&&(!t||t==="_self")&&!M4(e)}const j4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],F4="6";try{window.__reactRouterVersion=F4}catch{}function z4(e,t){return e4({basename:void 0,future:Ys({},void 0,{v7_prependBasename:!0}),history:SI({window:void 0}),hydrationData:U4(),routes:e,mapRouteProperties:I4,unstable_dataStrategy:void 0,window:void 0}).initialize()}function U4(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ys({},t,{errors:$4(t.errors)})),t}function $4(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 rg(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 B4=R.createContext({isTransitioning:!1}),W4=R.createContext(new Map),H4="startTransition",zw=Th[H4],G4="flushSync",Uw=_I[G4];function K4(e){zw?zw(e):e()}function is(e){Uw?Uw(e):e()}class Y4{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 q4(e){let{fallbackElement:t,router:n,future:r}=e,[o,l]=R.useState(n.state),[s,c]=R.useState(),[f,p]=R.useState({isTransitioning:!1}),[d,m]=R.useState(),[v,S]=R.useState(),[E,k]=R.useState(),A=R.useRef(new Map),{v7_startTransition:_}=r||{},b=R.useCallback(N=>{_?K4(N):N()},[_]),y=R.useCallback((N,$)=>{let{deletedFetchers:F,unstable_flushSync:q,unstable_viewTransitionOpts:te}=$;F.forEach(fe=>A.current.delete(fe)),N.fetchers.forEach((fe,ie)=>{fe.data!==void 0&&A.current.set(ie,fe.data)});let we=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!te||we){q?is(()=>l(N)):b(()=>l(N));return}if(q){is(()=>{v&&(d&&d.resolve(),v.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:te.currentLocation,nextLocation:te.nextLocation})});let fe=n.window.document.startViewTransition(()=>{is(()=>l(N))});fe.finished.finally(()=>{is(()=>{m(void 0),S(void 0),c(void 0),p({isTransitioning:!1})})}),is(()=>S(fe));return}v?(d&&d.resolve(),v.skipTransition(),k({state:N,currentLocation:te.currentLocation,nextLocation:te.nextLocation})):(c(N),p({isTransitioning:!0,flushSync:!1,currentLocation:te.currentLocation,nextLocation:te.nextLocation}))},[n.window,v,d,A,b]);R.useLayoutEffect(()=>n.subscribe(y),[n,y]),R.useEffect(()=>{f.isTransitioning&&!f.flushSync&&m(new Y4)},[f]),R.useEffect(()=>{if(d&&s&&n.window){let N=s,$=d.promise,F=n.window.document.startViewTransition(async()=>{b(()=>l(N)),await $});F.finished.finally(()=>{m(void 0),S(void 0),c(void 0),p({isTransitioning:!1})}),S(F)}},[b,s,d,n.window]),R.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,v,o.location,s]),R.useEffect(()=>{!f.isTransitioning&&E&&(c(E.state),p({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),k(void 0))},[f.isTransitioning,E]),R.useEffect(()=>{},[]);let O=R.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:N=>n.navigate(N),push:(N,$,F)=>n.navigate(N,{state:$,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(N,$,F)=>n.navigate(N,{replace:!0,state:$,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[n]),I=n.basename||"/",G=R.useMemo(()=>({router:n,navigator:O,static:!1,basename:I}),[n,O,I]);return R.createElement(R.Fragment,null,R.createElement(dd.Provider,{value:G},R.createElement(CS.Provider,{value:o},R.createElement(W4.Provider,{value:A.current},R.createElement(B4.Provider,{value:f},R.createElement(A4,{basename:I,location:o.location,navigationType:o.historyAction,navigator:O,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?R.createElement(V4,{routes:n.routes,future:n.future,state:o}):t))))),null)}function V4(e){let{routes:t,future:n,state:r}=e;return x4(t,void 0,r,n)}const X4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Q4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,J4=R.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:l,replace:s,state:c,target:f,to:p,preventScrollReset:d,unstable_viewTransition:m}=t,v=D4(t,j4),{basename:S}=R.useContext(ma),E,k=!1;if(typeof p=="string"&&Q4.test(p)&&(E=p,X4))try{let y=new URL(window.location.href),O=p.startsWith("//")?new URL(y.protocol+p):new URL(p),I=kl(O.pathname,S);O.origin===y.origin&&I!=null?p=I+O.search+O.hash:k=!0}catch{}let A=y4(p,{relative:o}),_=Z4(p,{replace:s,state:c,target:f,preventScrollReset:d,relative:o,unstable_viewTransition:m});function b(y){r&&r(y),y.defaultPrevented||_(y)}return R.createElement("a",Ys({},v,{href:E||A,onClick:k||l?r:b,ref:n,target:f}))});var $w;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($w||($w={}));var Bw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bw||(Bw={}));function Z4(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:s,unstable_viewTransition:c}=t===void 0?{}:t,f=sg(),p=pd(),d=RS(e,{relative:s});return R.useCallback(m=>{if(L4(m,n)){m.preventDefault();let v=r!==void 0?r:sa(p)===sa(d);f(e,{replace:v,state:o,preventScrollReset:l,relative:s,unstable_viewTransition:c})}},[p,f,d,r,o,n,e,l,s,c])}function eD(){return C.jsxs("div",{className:"flex flex-col center h-screen",children:[C.jsx("h1",{className:"text-fluidTitle mb-4",children:"404 Page Not Found"}),C.jsx(J4,{to:"/",style:{fontSize:20,textDecoration:"none",color:"blue"},children:"Back to a4recipe Home"})]})}function mn(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 tD=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ww=tD,yh=()=>Math.random().toString(36).substring(7).split("").join("."),nD={INIT:`@@redux/INIT${yh()}`,REPLACE:`@@redux/REPLACE${yh()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${yh()}`},Pf=nD;function ug(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 TS(e,t,n){if(typeof e!="function")throw new Error(mn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(mn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(mn(1));return n(TS)(e,t)}let r=e,o=t,l=new Map,s=l,c=0,f=!1;function p(){s===l&&(s=new Map,l.forEach((A,_)=>{s.set(_,A)}))}function d(){if(f)throw new Error(mn(3));return o}function m(A){if(typeof A!="function")throw new Error(mn(4));if(f)throw new Error(mn(5));let _=!0;p();const b=c++;return s.set(b,A),function(){if(_){if(f)throw new Error(mn(6));_=!1,p(),s.delete(b),l=null}}}function v(A){if(!ug(A))throw new Error(mn(7));if(typeof A.type>"u")throw new Error(mn(8));if(typeof A.type!="string")throw new Error(mn(17));if(f)throw new Error(mn(9));try{f=!0,o=r(o,A)}finally{f=!1}return(l=s).forEach(b=>{b()}),A}function S(A){if(typeof A!="function")throw new Error(mn(10));r=A,v({type:Pf.REPLACE})}function E(){const A=m;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(mn(11));function b(){const O=_;O.next&&O.next(d())}return b(),{unsubscribe:A(b)}},[Ww](){return this}}}return v({type:Pf.INIT}),{dispatch:v,subscribe:m,getState:d,replaceReducer:S,[Ww]:E}}function rD(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Pf.INIT})>"u")throw new Error(mn(12));if(typeof n(void 0,{type:Pf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(mn(13))})}function iD(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw c&&c.type,new Error(mn(14));p[m]=E,f=f||E!==S}return f=f||r.length!==Object.keys(s).length,f?p:s}}function Of(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function oD(...e){return t=>(n,r)=>{const o=t(n,r);let l=()=>{throw new Error(mn(15))};const s={getState:o.getState,dispatch:(f,...p)=>l(f,...p)},c=e.map(f=>f(s));return l=Of(...c)(o.dispatch),{...o,dispatch:l}}}function aD(e){return ug(e)&&"type"in e&&typeof e.type=="string"}var AS=Symbol.for("immer-nothing"),Hw=Symbol.for("immer-draftable"),lr=Symbol.for("immer-state");function Wr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gl=Object.getPrototypeOf;function So(e){return!!e&&!!e[lr]}function Mi(e){var t;return e?IS(e)||Array.isArray(e)||!!e[Hw]||!!((t=e.constructor)!=null&&t[Hw])||md(e)||vd(e):!1}var lD=Object.prototype.constructor.toString();function IS(e){if(!e||typeof e!="object")return!1;const t=gl(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)===lD}function Tf(e,t){hd(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function hd(e){const t=e[lr];return t?t.type_:Array.isArray(e)?1:md(e)?2:vd(e)?3:0}function Pm(e,t){return hd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function DS(e,t,n){const r=hd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function sD(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function md(e){return e instanceof Map}function vd(e){return e instanceof Set}function Ho(e){return e.copy_||e.base_}function Om(e,t){if(md(e))return new Map(e);if(vd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=IS(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[lr];let o=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=uD),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>cg(r,!0))),e}function uD(){Wr(2)}function gd(e){return Object.isFrozen(e)}var cD={};function ua(e){const t=cD[e];return t||Wr(0,e),t}var qs;function MS(){return qs}function fD(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Gw(e,t){t&&(ua("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Tm(e){Am(e),e.drafts_.forEach(dD),e.drafts_=null}function Am(e){e===qs&&(qs=e.parent_)}function Kw(e){return qs=fD(qs,e)}function dD(e){const t=e[lr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Yw(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[lr].modified_&&(Tm(t),Wr(4)),Mi(e)&&(e=Af(t,e),t.parent_||If(t,e)),t.patches_&&ua("Patches").generateReplacementPatches_(n[lr].base_,e,t.patches_,t.inversePatches_)):e=Af(t,n,[]),Tm(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AS?e:void 0}function Af(e,t,n){if(gd(t))return t;const r=t[lr];if(!r)return Tf(t,(o,l)=>qw(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),Tf(l,(c,f)=>qw(e,r,o,c,f,n,s)),If(e,o,!1),n&&e.patches_&&ua("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function qw(e,t,n,r,o,l,s){if(So(o)){const c=l&&t&&t.type_!==3&&!Pm(t.assigned_,r)?l.concat(r):void 0,f=Af(e,o,c);if(DS(n,r,f),So(f))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Mi(o)&&!gd(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Af(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_&&cg(t,n)}function pD(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:MS(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,l=fg;n&&(o=[r],l=Vs);const{revoke:s,proxy:c}=Proxy.revocable(o,l);return r.draft_=c,r.revoke_=s,c}var fg={get(e,t){if(t===lr)return e;const n=Ho(e);if(!Pm(n,t))return hD(e,n,t);const r=n[t];return e.finalized_||!Mi(r)?r:r===wh(e.base_,t)?(xh(e),e.copy_[t]=Dm(r,e)):r},has(e,t){return t in Ho(e)},ownKeys(e){return Reflect.ownKeys(Ho(e))},set(e,t,n){const r=LS(Ho(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=wh(Ho(e),t),l=o==null?void 0:o[lr];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(sD(n,o)&&(n!==void 0||Pm(e.base_,t)))return!0;xh(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 wh(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,xh(e),Im(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ho(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Wr(11)},getPrototypeOf(e){return gl(e.base_)},setPrototypeOf(){Wr(12)}},Vs={};Tf(fg,(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 fg.set.call(this,e[0],t,n,e[0])};function wh(e,t){const n=e[lr];return(n?Ho(n):e)[t]}function hD(e,t,n){var o;const r=LS(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function LS(e,t){if(!(t in e))return;let n=gl(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=gl(n)}}function Im(e){e.modified_||(e.modified_=!0,e.parent_&&Im(e.parent_))}function xh(e){e.copy_||(e.copy_=Om(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var mD=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,...p){return s.produce(f,d=>n.call(this,d,...p))}}typeof n!="function"&&Wr(6),r!==void 0&&typeof r!="function"&&Wr(7);let o;if(Mi(t)){const l=Kw(this),s=Dm(t,void 0);let c=!0;try{o=n(s),c=!1}finally{c?Tm(l):Am(l)}return Gw(l,r),Yw(o,l)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===AS&&(o=void 0),this.autoFreeze_&&cg(o,!0),r){const l=[],s=[];ua("Patches").generateReplacementPatches_(t,o,l,s),r(l,s)}return o}else Wr(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){Mi(e)||Wr(8),So(e)&&(e=jS(e));const t=Kw(this),n=Dm(e,void 0);return n[lr].isManual_=!0,Am(t),n}finishDraft(e,t){const n=e&&e[lr];(!n||!n.isManual_)&&Wr(9);const{scope_:r}=n;return Gw(r,t),Yw(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=ua("Patches").applyPatches_;return So(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Dm(e,t){const n=md(e)?ua("MapSet").proxyMap_(e,t):vd(e)?ua("MapSet").proxySet_(e,t):pD(e,t);return(t?t.scope_:MS()).drafts_.push(n),n}function jS(e){return So(e)||Wr(10,e),FS(e)}function FS(e){if(!Mi(e)||gd(e))return e;const t=e[lr];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 Tf(n,(r,o)=>{DS(n,r,FS(o))}),t&&(t.finalized_=!1),n}var sr=new mD,zS=sr.produce;sr.produceWithPatches.bind(sr);sr.setAutoFreeze.bind(sr);sr.setUseStrictShallowCopy.bind(sr);sr.applyPatches.bind(sr);sr.createDraft.bind(sr);sr.finishDraft.bind(sr);function vD(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function gD(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function yD(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 wD(e){const t=Array.isArray(e[0])?e[0]:e;return yD(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function xD(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 US(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let l=0,s=0,c,f={},p=o.pop();typeof p=="object"&&(f=p,p=o.pop()),vD(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const d={...n,...f},{memoize:m,memoizeOptions:v=[],argsMemoize:S=dg,argsMemoizeOptions:E=[],devModeChecks:k={}}=d,A=Vw(v),_=Vw(E),b=wD(o),y=m(function(){return l++,p.apply(null,arguments)},...A),O=S(function(){s++;const G=xD(b,arguments);return c=y.apply(null,G),c},..._);return Object.assign(O,{resultFunc:p,memoizedResultFunc:y,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 ED=US(dg),CD=Object.assign((e,t=ED)=>{gD(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:()=>CD});function $S(e){return({dispatch:n,getState:r})=>o=>l=>typeof l=="function"?l(n,r,e):o(l)}var kD=$S(),ND=$S,RD=(...e)=>{const t=US(...e),n=Object.assign((...r)=>{const o=t(...r),l=(s,...c)=>o(So(s)?jS(s):s,...c);return Object.assign(l,o),l},{withTypes:()=>n});return n};RD(dg);var PD=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 yl(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(Yn(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=>aD(r)&&r.type===e,n}var BS=class cs extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,cs.prototype)}static get[Symbol.species](){return cs}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new cs(...t[0].concat(this)):new cs(...t.concat(this))}};function Qw(e){return Mi(e)?zS(e,()=>{}):e}function Jw(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(Yn(10));const r=n.insert(t,e);return e.set(t,r),r}function OD(e){return typeof e=="boolean"}var TD=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:l=!0}=t??{};let s=new BS;return n&&(OD(n)?s.push(kD):s.push(ND(n.extraArgument))),s},AD="RTK_autoBatch",WS=e=>t=>{setTimeout(t,e)},ID=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:WS(10),DD=(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"?ID:e.type==="callback"?e.queueNotification:WS(e.timeout),p=()=>{s=!1,l&&(l=!1,c.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const m=()=>o&&d(),v=r.subscribe(m);return c.add(d),()=>{v(),c.delete(d)}},dispatch(d){var m;try{return o=!((m=d==null?void 0:d.meta)!=null&&m[AD]),l=!o,l&&(s||(s=!0,f(p))),r.dispatch(d)}finally{o=!0}}})},MD=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new BS(e);return r&&o.push(DD(typeof r=="object"?r:void 0)),o},LD=!0;function jD(e){const t=TD(),{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(ug(n))c=iD(n);else throw new Error(Yn(1));let f;typeof r=="function"?f=r(t):f=t();let p=Of;o&&(p=PD({trace:!LD,...typeof o=="object"&&o}));const d=oD(...f),m=MD(d);let v=typeof s=="function"?s(m):m();const S=p(...v);return TS(c,l,S)}function HS(e){const t={},n=[];let r;const o={addCase(l,s){const c=typeof l=="string"?l:l.type;if(!c)throw new Error(Yn(28));if(c in t)throw new Error(Yn(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 FD(e){return typeof e=="function"}function zD(e,t){let[n,r,o]=HS(t),l;if(FD(e))l=()=>Qw(e());else{const c=Qw(e);l=()=>c}function s(c=l(),f){let p=[n[f.type],...r.filter(({matcher:d})=>d(f)).map(({reducer:d})=>d)];return p.filter(d=>!!d).length===0&&(p=[o]),p.reduce((d,m)=>{if(m)if(So(d)){const S=m(d,f);return S===void 0?d:S}else{if(Mi(d))return zS(d,v=>m(v,f));{const v=m(d,f);if(v===void 0){if(d===null)return d;throw new Error(Yn(9))}return v}}return d},c)}return s.getInitialState=l,s}var UD="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$D=(e=21)=>{let t="",n=e;for(;n--;)t+=UD[Math.random()*64|0];return t},BD=Symbol.for("rtk-slice-createasyncthunk");function WD(e,t){return`${e}/${t}`}function HD({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[BD];return function(o){const{name:l,reducerPath:s=l}=o;if(!l)throw new Error(Yn(11));typeof process<"u";const c=(typeof o.reducers=="function"?o.reducers(KD()):o.reducers)||{},f=Object.keys(c),p={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(y,O){const I=typeof y=="string"?y:y.type;if(!I)throw new Error(Yn(12));if(I in p.sliceCaseReducersByType)throw new Error(Yn(13));return p.sliceCaseReducersByType[I]=O,d},addMatcher(y,O){return p.sliceMatchers.push({matcher:y,reducer:O}),d},exposeAction(y,O){return p.actionCreators[y]=O,d},exposeCaseReducer(y,O){return p.sliceCaseReducersByName[y]=O,d}};f.forEach(y=>{const O=c[y],I={reducerName:y,type:WD(l,y),createNotation:typeof o.reducers=="function"};qD(O)?XD(I,O,d,t):YD(I,O,d)});function m(){const[y={},O=[],I=void 0]=typeof o.extraReducers=="function"?HS(o.extraReducers):[o.extraReducers],G={...y,...p.sliceCaseReducersByType};return zD(o.initialState,N=>{for(let $ in G)N.addCase($,G[$]);for(let $ of p.sliceMatchers)N.addMatcher($.matcher,$.reducer);for(let $ of O)N.addMatcher($.matcher,$.reducer);I&&N.addDefaultCase(I)})}const v=y=>y,S=new Map;let E;function k(y,O){return E||(E=m()),E(y,O)}function A(){return E||(E=m()),E.getInitialState()}function _(y,O=!1){function I(N){let $=N[y];return typeof $>"u"&&O&&($=A()),$}function G(N=v){const $=Jw(S,O,{insert:()=>new WeakMap});return Jw($,N,{insert:()=>{const F={};for(const[q,te]of Object.entries(o.selectors??{}))F[q]=GD(te,N,A,O);return F}})}return{reducerPath:y,getSelectors:G,get selectors(){return G(I)},selectSlice:I}}const b={name:l,reducer:k,actions:p.actionCreators,caseReducers:p.sliceCaseReducersByName,getInitialState:A,..._(s),injectInto(y,{reducerPath:O,...I}={}){const G=O??s;return y.inject({reducerPath:G,reducer:k},I),{...b,..._(G,!0)}}};return b}}function GD(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 yd=HD();function KD(){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 YD({type:e,reducerName:t,createNotation:n},r,o){let l,s;if("reducer"in r){if(n&&!VD(r))throw new Error(Yn(17));l=r.reducer,s=r.prepare}else l=r;o.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,s?yl(e,s):yl(e))}function qD(e){return e._reducerDefinitionType==="asyncThunk"}function VD(e){return e._reducerDefinitionType==="reducerWithPrepare"}function XD({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Yn(18));const{payloadCreator:l,fulfilled:s,pending:c,rejected:f,settled:p,options:d}=n,m=o(e,l,d);r.exposeAction(t,m),s&&r.addCase(m.fulfilled,s),c&&r.addCase(m.pending,c),f&&r.addCase(m.rejected,f),p&&r.addMatcher(m.settled,p),r.exposeCaseReducer(t,{fulfilled:s||kc,pending:c||kc,rejected:f||kc,settled:p||kc})}function kc(){}var QD=(e,t)=>{if(typeof e!="function")throw new Error(Yn(32))},pg="listenerMiddleware",JD=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:l}=e;if(t)o=yl(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Yn(21));return QD(l),{predicate:o,type:t,effect:l}},ZD=Object.assign(e=>{const{type:t,predicate:n,effect:r}=JD(e);return{id:$D(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Yn(22))}}},{withTypes:()=>ZD}),e5=Object.assign(yl(`${pg}/add`),{withTypes:()=>e5});yl(`${pg}/removeAll`);var t5=Object.assign(yl(`${pg}/remove`),{withTypes:()=>t5});function Yn(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 $i=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation())},Jc=e=>{e.target.select()},wl="None",Xr="/a4recipe/",n5={ingredientsGroups:[]},GS=yd({name:"groups",initialState:n5,reducers:{setIngredientsGroups:(e,t)=>t.payload,resetIngredientsGroups: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:wl};l.items.push(s)}else e.ingredientsGroups.push({groupName:n,items:[{itemName:r,amount:0,unit:wl}]})},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)},updateAllmounts:(e,t)=>{for(const n of e.ingredientsGroups)for(const r of n.items)r.amount/=t.payload.divider,r.amount*=t.payload.batch},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)}}}),{setIngredientsGroups:r5,resetIngredientsGroups:KS,addItemToIngredientGroup:Mm,removeItemFromIngredientGroup:YS,updateAmount:os,updateAllmounts:Zw,updateUnit:qS}=GS.actions,i5=GS.reducer,ki=["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"],Nc=["mg","g","kg","ml","liter","whole","quart","pint","lbs","oz","tsp","tbsp","cup","can"],ex=[wl,"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"],o5=[{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"}],a5={title:"",currentItem:"",currentGroupName:"",possibleItems:ki,batches:1,invalidState:!1},VS=yd({name:"recipe",initialState:a5,reducers:{setRecipe:(e,t)=>({...t.payload,possibleItems:ki}),resetRecipe:e=>{e.title="",e.currentItem="",e.currentGroupName="",e.possibleItems=ki,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=ki.filter(n=>n.toLowerCase().includes(t.payload.toLowerCase()))},setBatches:(e,t)=>{e.batches=t.payload}}}),{setRecipe:l5,resetRecipe:XS,toggleInvalidState:a8,nameRecipe:s5,nameGroup:QS,setItem:u5,updatePossibleItems:c5,setBatches:f5}=VS.actions,d5=VS.reducer,p5={warning:""},JS=yd({name:"warning",initialState:p5,reducers:{setWarning:(e,t)=>{e.warning=t.payload}}}),{setWarning:Hr}=JS.actions,h5=JS.reducer;function hg(){const e=lt(r=>r.warning.warning),t=wn();R.useEffect(()=>{const r=setTimeout(()=>{t(Hr(""))},4e3);return()=>clearTimeout(r)},[t]);const n=()=>{t(Hr(""))};return C.jsx("div",{className:"toast font-indie",onClick:n,onKeyDown:$i,"data-testid":"snack",children:e})}var Df={exports:{}};/** + */function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function L4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function M4(e,t){return e.button===0&&(!t||t==="_self")&&!L4(e)}const j4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],F4="6";try{window.__reactRouterVersion=F4}catch{}function z4(e,t){return e4({basename:void 0,future:Ys({},void 0,{v7_prependBasename:!0}),history:SI({window:void 0}),hydrationData:U4(),routes:e,mapRouteProperties:I4,unstable_dataStrategy:void 0,window:void 0}).initialize()}function U4(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ys({},t,{errors:$4(t.errors)})),t}function $4(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 rg(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 B4=R.createContext({isTransitioning:!1}),W4=R.createContext(new Map),H4="startTransition",zw=Th[H4],G4="flushSync",Uw=_I[G4];function K4(e){zw?zw(e):e()}function is(e){Uw?Uw(e):e()}class Y4{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 q4(e){let{fallbackElement:t,router:n,future:r}=e,[o,l]=R.useState(n.state),[s,c]=R.useState(),[f,p]=R.useState({isTransitioning:!1}),[d,m]=R.useState(),[v,S]=R.useState(),[C,k]=R.useState(),A=R.useRef(new Map),{v7_startTransition:_}=r||{},b=R.useCallback(N=>{_?K4(N):N()},[_]),y=R.useCallback((N,$)=>{let{deletedFetchers:F,unstable_flushSync:q,unstable_viewTransitionOpts:te}=$;F.forEach(fe=>A.current.delete(fe)),N.fetchers.forEach((fe,ie)=>{fe.data!==void 0&&A.current.set(ie,fe.data)});let we=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!te||we){q?is(()=>l(N)):b(()=>l(N));return}if(q){is(()=>{v&&(d&&d.resolve(),v.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:te.currentLocation,nextLocation:te.nextLocation})});let fe=n.window.document.startViewTransition(()=>{is(()=>l(N))});fe.finished.finally(()=>{is(()=>{m(void 0),S(void 0),c(void 0),p({isTransitioning:!1})})}),is(()=>S(fe));return}v?(d&&d.resolve(),v.skipTransition(),k({state:N,currentLocation:te.currentLocation,nextLocation:te.nextLocation})):(c(N),p({isTransitioning:!0,flushSync:!1,currentLocation:te.currentLocation,nextLocation:te.nextLocation}))},[n.window,v,d,A,b]);R.useLayoutEffect(()=>n.subscribe(y),[n,y]),R.useEffect(()=>{f.isTransitioning&&!f.flushSync&&m(new Y4)},[f]),R.useEffect(()=>{if(d&&s&&n.window){let N=s,$=d.promise,F=n.window.document.startViewTransition(async()=>{b(()=>l(N)),await $});F.finished.finally(()=>{m(void 0),S(void 0),c(void 0),p({isTransitioning:!1})}),S(F)}},[b,s,d,n.window]),R.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,v,o.location,s]),R.useEffect(()=>{!f.isTransitioning&&C&&(c(C.state),p({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),k(void 0))},[f.isTransitioning,C]),R.useEffect(()=>{},[]);let O=R.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:N=>n.navigate(N),push:(N,$,F)=>n.navigate(N,{state:$,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(N,$,F)=>n.navigate(N,{replace:!0,state:$,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[n]),I=n.basename||"/",G=R.useMemo(()=>({router:n,navigator:O,static:!1,basename:I}),[n,O,I]);return R.createElement(R.Fragment,null,R.createElement(dd.Provider,{value:G},R.createElement(CS.Provider,{value:o},R.createElement(W4.Provider,{value:A.current},R.createElement(B4.Provider,{value:f},R.createElement(A4,{basename:I,location:o.location,navigationType:o.historyAction,navigator:O,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?R.createElement(V4,{routes:n.routes,future:n.future,state:o}):t))))),null)}function V4(e){let{routes:t,future:n,state:r}=e;return x4(t,void 0,r,n)}const X4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Q4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,J4=R.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:l,replace:s,state:c,target:f,to:p,preventScrollReset:d,unstable_viewTransition:m}=t,v=D4(t,j4),{basename:S}=R.useContext(ma),C,k=!1;if(typeof p=="string"&&Q4.test(p)&&(C=p,X4))try{let y=new URL(window.location.href),O=p.startsWith("//")?new URL(y.protocol+p):new URL(p),I=kl(O.pathname,S);O.origin===y.origin&&I!=null?p=I+O.search+O.hash:k=!0}catch{}let A=y4(p,{relative:o}),_=Z4(p,{replace:s,state:c,target:f,preventScrollReset:d,relative:o,unstable_viewTransition:m});function b(y){r&&r(y),y.defaultPrevented||_(y)}return R.createElement("a",Ys({},v,{href:C||A,onClick:k||l?r:b,ref:n,target:f}))});var $w;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($w||($w={}));var Bw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bw||(Bw={}));function Z4(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:s,unstable_viewTransition:c}=t===void 0?{}:t,f=sg(),p=pd(),d=RS(e,{relative:s});return R.useCallback(m=>{if(M4(m,n)){m.preventDefault();let v=r!==void 0?r:sa(p)===sa(d);f(e,{replace:v,state:o,preventScrollReset:l,relative:s,unstable_viewTransition:c})}},[p,f,d,r,o,n,e,l,s,c])}function e5(){return E.jsxs("div",{className:"flex flex-col center h-screen",children:[E.jsx("h1",{className:"text-fluidTitle mb-4",children:"404 Page Not Found"}),E.jsx(J4,{to:"/",style:{fontSize:20,textDecoration:"none",color:"blue"},children:"Back to a4recipe Home"})]})}function mn(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 t5=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ww=t5,yh=()=>Math.random().toString(36).substring(7).split("").join("."),n5={INIT:`@@redux/INIT${yh()}`,REPLACE:`@@redux/REPLACE${yh()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${yh()}`},Pf=n5;function ug(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 TS(e,t,n){if(typeof e!="function")throw new Error(mn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(mn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(mn(1));return n(TS)(e,t)}let r=e,o=t,l=new Map,s=l,c=0,f=!1;function p(){s===l&&(s=new Map,l.forEach((A,_)=>{s.set(_,A)}))}function d(){if(f)throw new Error(mn(3));return o}function m(A){if(typeof A!="function")throw new Error(mn(4));if(f)throw new Error(mn(5));let _=!0;p();const b=c++;return s.set(b,A),function(){if(_){if(f)throw new Error(mn(6));_=!1,p(),s.delete(b),l=null}}}function v(A){if(!ug(A))throw new Error(mn(7));if(typeof A.type>"u")throw new Error(mn(8));if(typeof A.type!="string")throw new Error(mn(17));if(f)throw new Error(mn(9));try{f=!0,o=r(o,A)}finally{f=!1}return(l=s).forEach(b=>{b()}),A}function S(A){if(typeof A!="function")throw new Error(mn(10));r=A,v({type:Pf.REPLACE})}function C(){const A=m;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(mn(11));function b(){const O=_;O.next&&O.next(d())}return b(),{unsubscribe:A(b)}},[Ww](){return this}}}return v({type:Pf.INIT}),{dispatch:v,subscribe:m,getState:d,replaceReducer:S,[Ww]:C}}function r5(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Pf.INIT})>"u")throw new Error(mn(12));if(typeof n(void 0,{type:Pf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(mn(13))})}function i5(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw c&&c.type,new Error(mn(14));p[m]=C,f=f||C!==S}return f=f||r.length!==Object.keys(s).length,f?p:s}}function Of(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function o5(...e){return t=>(n,r)=>{const o=t(n,r);let l=()=>{throw new Error(mn(15))};const s={getState:o.getState,dispatch:(f,...p)=>l(f,...p)},c=e.map(f=>f(s));return l=Of(...c)(o.dispatch),{...o,dispatch:l}}}function a5(e){return ug(e)&&"type"in e&&typeof e.type=="string"}var AS=Symbol.for("immer-nothing"),Hw=Symbol.for("immer-draftable"),lr=Symbol.for("immer-state");function Wr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gl=Object.getPrototypeOf;function So(e){return!!e&&!!e[lr]}function Li(e){var t;return e?IS(e)||Array.isArray(e)||!!e[Hw]||!!((t=e.constructor)!=null&&t[Hw])||md(e)||vd(e):!1}var l5=Object.prototype.constructor.toString();function IS(e){if(!e||typeof e!="object")return!1;const t=gl(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)===l5}function Tf(e,t){hd(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function hd(e){const t=e[lr];return t?t.type_:Array.isArray(e)?1:md(e)?2:vd(e)?3:0}function Pm(e,t){return hd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function DS(e,t,n){const r=hd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function s5(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function md(e){return e instanceof Map}function vd(e){return e instanceof Set}function Ho(e){return e.copy_||e.base_}function Om(e,t){if(md(e))return new Map(e);if(vd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=IS(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[lr];let o=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=u5),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>cg(r,!0))),e}function u5(){Wr(2)}function gd(e){return Object.isFrozen(e)}var c5={};function ua(e){const t=c5[e];return t||Wr(0,e),t}var qs;function LS(){return qs}function f5(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Gw(e,t){t&&(ua("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Tm(e){Am(e),e.drafts_.forEach(d5),e.drafts_=null}function Am(e){e===qs&&(qs=e.parent_)}function Kw(e){return qs=f5(qs,e)}function d5(e){const t=e[lr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Yw(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[lr].modified_&&(Tm(t),Wr(4)),Li(e)&&(e=Af(t,e),t.parent_||If(t,e)),t.patches_&&ua("Patches").generateReplacementPatches_(n[lr].base_,e,t.patches_,t.inversePatches_)):e=Af(t,n,[]),Tm(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AS?e:void 0}function Af(e,t,n){if(gd(t))return t;const r=t[lr];if(!r)return Tf(t,(o,l)=>qw(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),Tf(l,(c,f)=>qw(e,r,o,c,f,n,s)),If(e,o,!1),n&&e.patches_&&ua("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function qw(e,t,n,r,o,l,s){if(So(o)){const c=l&&t&&t.type_!==3&&!Pm(t.assigned_,r)?l.concat(r):void 0,f=Af(e,o,c);if(DS(n,r,f),So(f))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Li(o)&&!gd(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Af(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_&&cg(t,n)}function p5(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:LS(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,l=fg;n&&(o=[r],l=Vs);const{revoke:s,proxy:c}=Proxy.revocable(o,l);return r.draft_=c,r.revoke_=s,c}var fg={get(e,t){if(t===lr)return e;const n=Ho(e);if(!Pm(n,t))return h5(e,n,t);const r=n[t];return e.finalized_||!Li(r)?r:r===wh(e.base_,t)?(xh(e),e.copy_[t]=Dm(r,e)):r},has(e,t){return t in Ho(e)},ownKeys(e){return Reflect.ownKeys(Ho(e))},set(e,t,n){const r=MS(Ho(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=wh(Ho(e),t),l=o==null?void 0:o[lr];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(s5(n,o)&&(n!==void 0||Pm(e.base_,t)))return!0;xh(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 wh(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,xh(e),Im(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ho(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Wr(11)},getPrototypeOf(e){return gl(e.base_)},setPrototypeOf(){Wr(12)}},Vs={};Tf(fg,(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 fg.set.call(this,e[0],t,n,e[0])};function wh(e,t){const n=e[lr];return(n?Ho(n):e)[t]}function h5(e,t,n){var o;const r=MS(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function MS(e,t){if(!(t in e))return;let n=gl(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=gl(n)}}function Im(e){e.modified_||(e.modified_=!0,e.parent_&&Im(e.parent_))}function xh(e){e.copy_||(e.copy_=Om(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var m5=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,...p){return s.produce(f,d=>n.call(this,d,...p))}}typeof n!="function"&&Wr(6),r!==void 0&&typeof r!="function"&&Wr(7);let o;if(Li(t)){const l=Kw(this),s=Dm(t,void 0);let c=!0;try{o=n(s),c=!1}finally{c?Tm(l):Am(l)}return Gw(l,r),Yw(o,l)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===AS&&(o=void 0),this.autoFreeze_&&cg(o,!0),r){const l=[],s=[];ua("Patches").generateReplacementPatches_(t,o,l,s),r(l,s)}return o}else Wr(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){Li(e)||Wr(8),So(e)&&(e=jS(e));const t=Kw(this),n=Dm(e,void 0);return n[lr].isManual_=!0,Am(t),n}finishDraft(e,t){const n=e&&e[lr];(!n||!n.isManual_)&&Wr(9);const{scope_:r}=n;return Gw(r,t),Yw(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=ua("Patches").applyPatches_;return So(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Dm(e,t){const n=md(e)?ua("MapSet").proxyMap_(e,t):vd(e)?ua("MapSet").proxySet_(e,t):p5(e,t);return(t?t.scope_:LS()).drafts_.push(n),n}function jS(e){return So(e)||Wr(10,e),FS(e)}function FS(e){if(!Li(e)||gd(e))return e;const t=e[lr];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 Tf(n,(r,o)=>{DS(n,r,FS(o))}),t&&(t.finalized_=!1),n}var sr=new m5,zS=sr.produce;sr.produceWithPatches.bind(sr);sr.setAutoFreeze.bind(sr);sr.setUseStrictShallowCopy.bind(sr);sr.applyPatches.bind(sr);sr.createDraft.bind(sr);sr.finishDraft.bind(sr);function v5(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function g5(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function y5(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 w5(e){const t=Array.isArray(e[0])?e[0]:e;return y5(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function x5(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 US(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let l=0,s=0,c,f={},p=o.pop();typeof p=="object"&&(f=p,p=o.pop()),v5(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const d={...n,...f},{memoize:m,memoizeOptions:v=[],argsMemoize:S=dg,argsMemoizeOptions:C=[],devModeChecks:k={}}=d,A=Vw(v),_=Vw(C),b=w5(o),y=m(function(){return l++,p.apply(null,arguments)},...A),O=S(function(){s++;const G=x5(b,arguments);return c=y.apply(null,G),c},..._);return Object.assign(O,{resultFunc:p,memoizedResultFunc:y,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 E5=US(dg),C5=Object.assign((e,t=E5)=>{g5(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:()=>C5});function $S(e){return({dispatch:n,getState:r})=>o=>l=>typeof l=="function"?l(n,r,e):o(l)}var k5=$S(),N5=$S,R5=(...e)=>{const t=US(...e),n=Object.assign((...r)=>{const o=t(...r),l=(s,...c)=>o(So(s)?jS(s):s,...c);return Object.assign(l,o),l},{withTypes:()=>n});return n};R5(dg);var P5=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 yl(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(Yn(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=>a5(r)&&r.type===e,n}var BS=class cs extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,cs.prototype)}static get[Symbol.species](){return cs}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new cs(...t[0].concat(this)):new cs(...t.concat(this))}};function Qw(e){return Li(e)?zS(e,()=>{}):e}function Jw(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(Yn(10));const r=n.insert(t,e);return e.set(t,r),r}function O5(e){return typeof e=="boolean"}var T5=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:l=!0}=t??{};let s=new BS;return n&&(O5(n)?s.push(k5):s.push(N5(n.extraArgument))),s},A5="RTK_autoBatch",WS=e=>t=>{setTimeout(t,e)},I5=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:WS(10),D5=(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"?I5:e.type==="callback"?e.queueNotification:WS(e.timeout),p=()=>{s=!1,l&&(l=!1,c.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const m=()=>o&&d(),v=r.subscribe(m);return c.add(d),()=>{v(),c.delete(d)}},dispatch(d){var m;try{return o=!((m=d==null?void 0:d.meta)!=null&&m[A5]),l=!o,l&&(s||(s=!0,f(p))),r.dispatch(d)}finally{o=!0}}})},L5=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new BS(e);return r&&o.push(D5(typeof r=="object"?r:void 0)),o},M5=!0;function j5(e){const t=T5(),{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(ug(n))c=i5(n);else throw new Error(Yn(1));let f;typeof r=="function"?f=r(t):f=t();let p=Of;o&&(p=P5({trace:!M5,...typeof o=="object"&&o}));const d=o5(...f),m=L5(d);let v=typeof s=="function"?s(m):m();const S=p(...v);return TS(c,l,S)}function HS(e){const t={},n=[];let r;const o={addCase(l,s){const c=typeof l=="string"?l:l.type;if(!c)throw new Error(Yn(28));if(c in t)throw new Error(Yn(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 F5(e){return typeof e=="function"}function z5(e,t){let[n,r,o]=HS(t),l;if(F5(e))l=()=>Qw(e());else{const c=Qw(e);l=()=>c}function s(c=l(),f){let p=[n[f.type],...r.filter(({matcher:d})=>d(f)).map(({reducer:d})=>d)];return p.filter(d=>!!d).length===0&&(p=[o]),p.reduce((d,m)=>{if(m)if(So(d)){const S=m(d,f);return S===void 0?d:S}else{if(Li(d))return zS(d,v=>m(v,f));{const v=m(d,f);if(v===void 0){if(d===null)return d;throw new Error(Yn(9))}return v}}return d},c)}return s.getInitialState=l,s}var U5="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$5=(e=21)=>{let t="",n=e;for(;n--;)t+=U5[Math.random()*64|0];return t},B5=Symbol.for("rtk-slice-createasyncthunk");function W5(e,t){return`${e}/${t}`}function H5({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[B5];return function(o){const{name:l,reducerPath:s=l}=o;if(!l)throw new Error(Yn(11));typeof process<"u";const c=(typeof o.reducers=="function"?o.reducers(K5()):o.reducers)||{},f=Object.keys(c),p={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(y,O){const I=typeof y=="string"?y:y.type;if(!I)throw new Error(Yn(12));if(I in p.sliceCaseReducersByType)throw new Error(Yn(13));return p.sliceCaseReducersByType[I]=O,d},addMatcher(y,O){return p.sliceMatchers.push({matcher:y,reducer:O}),d},exposeAction(y,O){return p.actionCreators[y]=O,d},exposeCaseReducer(y,O){return p.sliceCaseReducersByName[y]=O,d}};f.forEach(y=>{const O=c[y],I={reducerName:y,type:W5(l,y),createNotation:typeof o.reducers=="function"};q5(O)?X5(I,O,d,t):Y5(I,O,d)});function m(){const[y={},O=[],I=void 0]=typeof o.extraReducers=="function"?HS(o.extraReducers):[o.extraReducers],G={...y,...p.sliceCaseReducersByType};return z5(o.initialState,N=>{for(let $ in G)N.addCase($,G[$]);for(let $ of p.sliceMatchers)N.addMatcher($.matcher,$.reducer);for(let $ of O)N.addMatcher($.matcher,$.reducer);I&&N.addDefaultCase(I)})}const v=y=>y,S=new Map;let C;function k(y,O){return C||(C=m()),C(y,O)}function A(){return C||(C=m()),C.getInitialState()}function _(y,O=!1){function I(N){let $=N[y];return typeof $>"u"&&O&&($=A()),$}function G(N=v){const $=Jw(S,O,{insert:()=>new WeakMap});return Jw($,N,{insert:()=>{const F={};for(const[q,te]of Object.entries(o.selectors??{}))F[q]=G5(te,N,A,O);return F}})}return{reducerPath:y,getSelectors:G,get selectors(){return G(I)},selectSlice:I}}const b={name:l,reducer:k,actions:p.actionCreators,caseReducers:p.sliceCaseReducersByName,getInitialState:A,..._(s),injectInto(y,{reducerPath:O,...I}={}){const G=O??s;return y.inject({reducerPath:G,reducer:k},I),{...b,..._(G,!0)}}};return b}}function G5(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 yd=H5();function K5(){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 Y5({type:e,reducerName:t,createNotation:n},r,o){let l,s;if("reducer"in r){if(n&&!V5(r))throw new Error(Yn(17));l=r.reducer,s=r.prepare}else l=r;o.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,s?yl(e,s):yl(e))}function q5(e){return e._reducerDefinitionType==="asyncThunk"}function V5(e){return e._reducerDefinitionType==="reducerWithPrepare"}function X5({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Yn(18));const{payloadCreator:l,fulfilled:s,pending:c,rejected:f,settled:p,options:d}=n,m=o(e,l,d);r.exposeAction(t,m),s&&r.addCase(m.fulfilled,s),c&&r.addCase(m.pending,c),f&&r.addCase(m.rejected,f),p&&r.addMatcher(m.settled,p),r.exposeCaseReducer(t,{fulfilled:s||kc,pending:c||kc,rejected:f||kc,settled:p||kc})}function kc(){}var Q5=(e,t)=>{if(typeof e!="function")throw new Error(Yn(32))},pg="listenerMiddleware",J5=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:l}=e;if(t)o=yl(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Yn(21));return Q5(l),{predicate:o,type:t,effect:l}},Z5=Object.assign(e=>{const{type:t,predicate:n,effect:r}=J5(e);return{id:$5(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Yn(22))}}},{withTypes:()=>Z5}),eD=Object.assign(yl(`${pg}/add`),{withTypes:()=>eD});yl(`${pg}/removeAll`);var tD=Object.assign(yl(`${pg}/remove`),{withTypes:()=>tD});function Yn(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 $i=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation())},Jc=e=>{e.target.select()},wl="None",Xr="/a4recipe/",nD={ingredientsGroups:[]},GS=yd({name:"groups",initialState:nD,reducers:{setIngredientsGroups:(e,t)=>t.payload,resetIngredientsGroups: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:wl};l.items.push(s)}else e.ingredientsGroups.push({groupName:n,items:[{itemName:r,amount:0,unit:wl}]})},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)},updateAllmounts:(e,t)=>{for(const n of e.ingredientsGroups)for(const r of n.items)r.amount/=t.payload.divider,r.amount*=t.payload.batch},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)}}}),{setIngredientsGroups:rD,resetIngredientsGroups:KS,addItemToIngredientGroup:Lm,removeItemFromIngredientGroup:YS,updateAmount:os,updateAllmounts:Zw,updateUnit:qS}=GS.actions,iD=GS.reducer,ki=["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"],Nc=["mg","g","kg","ml","liter","whole","quart","pint","lbs","oz","tsp","tbsp","cup","can"],ex=[wl,"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"],oD=[{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"}],aD={title:"",currentItem:"",currentGroupName:"",possibleItems:ki,batches:1,invalidState:!1},VS=yd({name:"recipe",initialState:aD,reducers:{setRecipe:(e,t)=>({...t.payload,possibleItems:ki}),resetRecipe:e=>{e.title="",e.currentItem="",e.currentGroupName="",e.possibleItems=ki,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=ki.filter(n=>n.toLowerCase().includes(t.payload.toLowerCase()))},setBatches:(e,t)=>{e.batches=t.payload}}}),{setRecipe:lD,resetRecipe:XS,toggleInvalidState:a8,nameRecipe:sD,nameGroup:QS,setItem:uD,updatePossibleItems:cD,setBatches:fD}=VS.actions,dD=VS.reducer,pD={warning:""},JS=yd({name:"warning",initialState:pD,reducers:{setWarning:(e,t)=>{e.warning=t.payload}}}),{setWarning:Hr}=JS.actions,hD=JS.reducer;function hg(){const e=lt(r=>r.warning.warning),t=wn();R.useEffect(()=>{const r=setTimeout(()=>{t(Hr(""))},4e3);return()=>clearTimeout(r)},[t]);const n=()=>{t(Hr(""))};return E.jsx("div",{className:"toast font-indie",onClick:n,onKeyDown:$i,"data-testid":"snack",children:e})}var Df={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 - */Df.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__",p=500,d="__lodash_placeholder__",m=1,v=2,S=4,E=1,k=2,A=1,_=2,b=4,y=8,O=16,I=32,G=64,N=128,$=256,F=512,q=30,te="...",we=800,fe=16,ie=1,le=2,Ae=3,B=1/0,W=9007199254740991,ae=17976931348623157e292,se=NaN,oe=4294967295,ye=oe-1,Fe=oe>>>1,Ve=[["ary",N],["bind",A],["bindKey",_],["curry",y],["curryRight",O],["flip",F],["partial",I],["partialRight",G],["rearg",$]],Xe="[object Arguments]",Ee="[object Array]",ft="[object AsyncFunction]",yt="[object Boolean]",z="[object Date]",j="[object DOMException]",K="[object Error]",H="[object Function]",Q="[object GeneratorFunction]",de="[object Map]",he="[object Number]",Ne="[object Null]",Ze="[object Object]",ht="[object Promise]",Se="[object Proxy]",De="[object RegExp]",tt="[object Set]",st="[object String]",wt="[object Symbol]",xn="[object Undefined]",jt="[object WeakMap]",Ht="[object WeakSet]",Gt="[object ArrayBuffer]",it="[object DataView]",Me="[object Float32Array]",nt="[object Float64Array]",Je="[object Int8Array]",cn="[object Int16Array]",jn="[object Int32Array]",qn="[object Uint8Array]",Kt="[object Uint8ClampedArray]",Tt="[object Uint16Array]",Vn="[object Uint32Array]",ti=/\b__p \+= '';/g,pi=/\b(__p \+=) '' \+/g,ga=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nt=/&(?:amp|lt|gt|quot|#39);/g,Qt=/[&<>"']/g,Yt=RegExp(Nt.source),dr=RegExp(Qt.source),D=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ue=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xe=/[\\^$.*+?()[\]{}|]/g,pe=RegExp(xe.source),Pe=/^\s+/,Ie=/\s/,xt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ce=/,? & /,mt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qt=/[()=,{}\[\]\/\s]/,To=/\\(\\)?/g,ni=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hi=/\w*$/,Wi=/^[-+]0x[0-9a-f]+$/i,Hi=/^0b[01]+$/i,pr=/^\[object .+?Constructor\]$/,ya=/^0o[0-7]+$/i,wa=/^(?:0|[1-9]\d*)$/,xa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Be=/($^)/,fn=/['\n\r\u2028\u2029\\]/g,dn="\\ud800-\\udfff",Jt="\\u0300-\\u036f",Ao="\\ufe20-\\ufe2f",xu="\\u20d0-\\u20ff",bu=Jt+Ao+xu,Ug="\\u2700-\\u27bf",$g="a-z\\xdf-\\xf6\\xf8-\\xff",_E="\\xac\\xb1\\xd7\\xf7",SE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",EE="\\u2000-\\u206f",CE=" \\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",Bg="A-Z\\xc0-\\xd6\\xd8-\\xde",Wg="\\ufe0e\\ufe0f",Hg=_E+SE+EE+CE,Id="['’]",kE="["+dn+"]",Gg="["+Hg+"]",_u="["+bu+"]",Kg="\\d+",NE="["+Ug+"]",Yg="["+$g+"]",qg="[^"+dn+Hg+Kg+Ug+$g+Bg+"]",Dd="\\ud83c[\\udffb-\\udfff]",RE="(?:"+_u+"|"+Dd+")",Vg="[^"+dn+"]",Md="(?:\\ud83c[\\udde6-\\uddff]){2}",Ld="[\\ud800-\\udbff][\\udc00-\\udfff]",ba="["+Bg+"]",Xg="\\u200d",Qg="(?:"+Yg+"|"+qg+")",PE="(?:"+ba+"|"+qg+")",Jg="(?:"+Id+"(?:d|ll|m|re|s|t|ve))?",Zg="(?:"+Id+"(?:D|LL|M|RE|S|T|VE))?",ey=RE+"?",ty="["+Wg+"]?",OE="(?:"+Xg+"(?:"+[Vg,Md,Ld].join("|")+")"+ty+ey+")*",TE="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",AE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ny=ty+ey+OE,IE="(?:"+[NE,Md,Ld].join("|")+")"+ny,DE="(?:"+[Vg+_u+"?",_u,Md,Ld,kE].join("|")+")",ME=RegExp(Id,"g"),LE=RegExp(_u,"g"),jd=RegExp(Dd+"(?="+Dd+")|"+DE+ny,"g"),jE=RegExp([ba+"?"+Yg+"+"+Jg+"(?="+[Gg,ba,"$"].join("|")+")",PE+"+"+Zg+"(?="+[Gg,ba+Qg,"$"].join("|")+")",ba+"?"+Qg+"+"+Jg,ba+"+"+Zg,AE,TE,Kg,IE].join("|"),"g"),FE=RegExp("["+Xg+dn+bu+Wg+"]"),zE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,UE=["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"],$E=-1,_t={};_t[Me]=_t[nt]=_t[Je]=_t[cn]=_t[jn]=_t[qn]=_t[Kt]=_t[Tt]=_t[Vn]=!0,_t[Xe]=_t[Ee]=_t[Gt]=_t[yt]=_t[it]=_t[z]=_t[K]=_t[H]=_t[de]=_t[he]=_t[Ze]=_t[De]=_t[tt]=_t[st]=_t[jt]=!1;var vt={};vt[Xe]=vt[Ee]=vt[Gt]=vt[it]=vt[yt]=vt[z]=vt[Me]=vt[nt]=vt[Je]=vt[cn]=vt[jn]=vt[de]=vt[he]=vt[Ze]=vt[De]=vt[tt]=vt[st]=vt[wt]=vt[qn]=vt[Kt]=vt[Tt]=vt[Vn]=!0,vt[K]=vt[H]=vt[jt]=!1;var BE={À:"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"},WE={"&":"&","<":"<",">":">",'"':""","'":"'"},HE={"&":"&","<":"<",">":">",""":'"',"'":"'"},GE={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},KE=parseFloat,YE=parseInt,ry=typeof ja=="object"&&ja&&ja.Object===Object&&ja,qE=typeof self=="object"&&self&&self.Object===Object&&self,pn=ry||qE||Function("return this")(),Fd=t&&!t.nodeType&&t,Io=Fd&&!0&&e&&!e.nodeType&&e,iy=Io&&Io.exports===Fd,zd=iy&&ry.process,hr=function(){try{var M=Io&&Io.require&&Io.require("util").types;return M||zd&&zd.binding&&zd.binding("util")}catch{}}(),oy=hr&&hr.isArrayBuffer,ay=hr&&hr.isDate,ly=hr&&hr.isMap,sy=hr&&hr.isRegExp,uy=hr&&hr.isSet,cy=hr&&hr.isTypedArray;function Xn(M,X,Y){switch(Y.length){case 0:return M.call(X);case 1:return M.call(X,Y[0]);case 2:return M.call(X,Y[0],Y[1]);case 3:return M.call(X,Y[0],Y[1],Y[2])}return M.apply(X,Y)}function VE(M,X,Y,me){for(var Le=-1,rt=M==null?0:M.length;++Le-1}function Ud(M,X,Y){for(var me=-1,Le=M==null?0:M.length;++me-1;);return Y}function yy(M,X){for(var Y=M.length;Y--&&_a(X,M[Y],0)>-1;);return Y}function iC(M,X){for(var Y=M.length,me=0;Y--;)M[Y]===X&&++me;return me}var oC=Hd(BE),aC=Hd(WE);function lC(M){return"\\"+GE[M]}function sC(M,X){return M==null?n:M[X]}function Sa(M){return FE.test(M)}function uC(M){return zE.test(M)}function cC(M){for(var X,Y=[];!(X=M.next()).done;)Y.push(X.value);return Y}function qd(M){var X=-1,Y=Array(M.size);return M.forEach(function(me,Le){Y[++X]=[Le,me]}),Y}function wy(M,X){return function(Y){return M(X(Y))}}function Yi(M,X){for(var Y=-1,me=M.length,Le=0,rt=[];++Y-1}function QC(i,a){var u=this.__data__,h=Uu(u,i);return h<0?(++this.size,u.push([i,a])):u[h][1]=a,this}mi.prototype.clear=YC,mi.prototype.delete=qC,mi.prototype.get=VC,mi.prototype.has=XC,mi.prototype.set=QC;function vi(i){var a=-1,u=i==null?0:i.length;for(this.clear();++a=a?i:a)),i}function yr(i,a,u,h,g,x){var P,T=a&m,L=a&v,J=a&S;if(u&&(P=g?u(i,h,g,x):u(i)),P!==n)return P;if(!At(i))return i;var Z=ze(i);if(Z){if(P=tN(i),!T)return Fn(i,P)}else{var ee=_n(i),ce=ee==H||ee==Q;if(Zi(i))return t0(i,T);if(ee==Ze||ee==Xe||ce&&!g){if(P=L||ce?{}:x0(i),!T)return L?Hk(i,pk(P,i)):Wk(i,Ty(P,i))}else{if(!vt[ee])return g?i:{};P=nN(i,ee,T)}}x||(x=new Ir);var be=x.get(i);if(be)return be;x.set(i,P),V0(i)?i.forEach(function(Te){P.add(yr(Te,a,u,Te,i,x))}):Y0(i)&&i.forEach(function(Te,He){P.set(He,yr(Te,a,u,He,i,x))});var Oe=J?L?xp:wp:L?Un:an,$e=Z?n:Oe(i);return mr($e||i,function(Te,He){$e&&(He=Te,Te=i[He]),zl(P,He,yr(Te,a,u,He,i,x))}),P}function hk(i){var a=an(i);return function(u){return Ay(u,i,a)}}function Ay(i,a,u){var h=u.length;if(i==null)return!h;for(i=dt(i);h--;){var g=u[h],x=a[g],P=i[g];if(P===n&&!(g in i)||!x(P))return!1}return!0}function Iy(i,a,u){if(typeof i!="function")throw new vr(s);return Kl(function(){i.apply(n,u)},a)}function Ul(i,a,u,h){var g=-1,x=Su,P=!0,T=i.length,L=[],J=a.length;if(!T)return L;u&&(a=Rt(a,Qn(u))),h?(x=Ud,P=!1):a.length>=o&&(x=Il,P=!1,a=new Lo(a));e:for(;++gg?0:g+u),h=h===n||h>g?g:Ue(h),h<0&&(h+=g),h=u>h?0:Q0(h);u0&&u(T)?a>1?hn(T,a-1,u,h,g):Ki(g,T):h||(g[g.length]=T)}return g}var tp=l0(),Ly=l0(!0);function ri(i,a){return i&&tp(i,a,an)}function np(i,a){return i&&Ly(i,a,an)}function Bu(i,a){return Gi(a,function(u){return bi(i[u])})}function Fo(i,a){a=Qi(a,i);for(var u=0,h=a.length;i!=null&&ua}function gk(i,a){return i!=null&&ut.call(i,a)}function yk(i,a){return i!=null&&a in dt(i)}function wk(i,a,u){return i>=bn(a,u)&&i=120&&Z.length>=120)?new Lo(P&&Z):n}Z=i[0];var ee=-1,ce=T[0];e:for(;++ee-1;)T!==i&&Iu.call(T,L,1),Iu.call(i,L,1);return i}function Yy(i,a){for(var u=i?a.length:0,h=u-1;u--;){var g=a[u];if(u==h||g!==x){var x=g;xi(g)?Iu.call(i,g,1):dp(i,g)}}return i}function up(i,a){return i+Lu(Ny()*(a-i+1))}function Ak(i,a,u,h){for(var g=-1,x=en(Mu((a-i)/(u||1)),0),P=Y(x);x--;)P[h?x:++g]=i,i+=u;return P}function cp(i,a){var u="";if(!i||a<1||a>W)return u;do a%2&&(u+=i),a=Lu(a/2),a&&(i+=i);while(a);return u}function We(i,a){return Np(S0(i,a,$n),i+"")}function Ik(i){return Oy(Da(i))}function Dk(i,a){var u=Da(i);return Zu(u,jo(a,0,u.length))}function Wl(i,a,u,h){if(!At(i))return i;a=Qi(a,i);for(var g=-1,x=a.length,P=x-1,T=i;T!=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 x=Y(g);++h>>1,P=i[x];P!==null&&!Zn(P)&&(u?P<=a:P=o){var J=a?null:qk(i);if(J)return Cu(J);P=!1,g=Il,L=new Lo}else L=a?[]:T;e:for(;++h=h?i:wr(i,a,u)}var e0=CC||function(i){return pn.clearTimeout(i)};function t0(i,a){if(a)return i.slice();var u=i.length,h=_y?_y(u):new i.constructor(u);return i.copy(h),h}function vp(i){var a=new i.constructor(i.byteLength);return new Tu(a).set(new Tu(i)),a}function zk(i,a){var u=a?vp(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}function Uk(i){var a=new i.constructor(i.source,hi.exec(i));return a.lastIndex=i.lastIndex,a}function $k(i){return Fl?dt(Fl.call(i)):{}}function n0(i,a){var u=a?vp(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}function r0(i,a){if(i!==a){var u=i!==n,h=i===null,g=i===i,x=Zn(i),P=a!==n,T=a===null,L=a===a,J=Zn(a);if(!T&&!J&&!x&&i>a||x&&P&&L&&!T&&!J||h&&P&&L||!u&&L||!g)return 1;if(!h&&!x&&!J&&i=T)return L;var J=u[h];return L*(J=="desc"?-1:1)}}return i.index-a.index}function i0(i,a,u,h){for(var g=-1,x=i.length,P=u.length,T=-1,L=a.length,J=en(x-P,0),Z=Y(L+J),ee=!h;++T1?u[g-1]:n,P=g>2?u[2]:n;for(x=i.length>3&&typeof x=="function"?(g--,x):n,P&&Pn(u[0],u[1],P)&&(x=g<3?n:x,g=1),a=dt(a);++h-1?g[x?a[P]:P]:n}}function c0(i){return wi(function(a){var u=a.length,h=u,g=gr.prototype.thru;for(i&&a.reverse();h--;){var x=a[h];if(typeof x!="function")throw new vr(s);if(g&&!P&&Qu(x)=="wrapper")var P=new gr([],!0)}for(h=P?h:u;++h1&&Qe.reverse(),Z&&LT))return!1;var J=x.get(i),Z=x.get(a);if(J&&Z)return J==a&&Z==i;var ee=-1,ce=!0,be=u&k?new Lo:n;for(x.set(i,a),x.set(a,i);++ee1?"& ":"")+a[h],a=a.join(u>2?", ":" "),i.replace(xt,`{ + */Df.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__",p=500,d="__lodash_placeholder__",m=1,v=2,S=4,C=1,k=2,A=1,_=2,b=4,y=8,O=16,I=32,G=64,N=128,$=256,F=512,q=30,te="...",we=800,fe=16,ie=1,le=2,Ae=3,B=1/0,W=9007199254740991,ae=17976931348623157e292,se=NaN,oe=4294967295,ye=oe-1,Fe=oe>>>1,Ve=[["ary",N],["bind",A],["bindKey",_],["curry",y],["curryRight",O],["flip",F],["partial",I],["partialRight",G],["rearg",$]],Xe="[object Arguments]",Ee="[object Array]",ft="[object AsyncFunction]",yt="[object Boolean]",z="[object Date]",j="[object DOMException]",K="[object Error]",H="[object Function]",Q="[object GeneratorFunction]",de="[object Map]",he="[object Number]",Ne="[object Null]",Ze="[object Object]",ht="[object Promise]",Se="[object Proxy]",De="[object RegExp]",tt="[object Set]",st="[object String]",wt="[object Symbol]",xn="[object Undefined]",jt="[object WeakMap]",Ht="[object WeakSet]",Gt="[object ArrayBuffer]",it="[object DataView]",Le="[object Float32Array]",nt="[object Float64Array]",Je="[object Int8Array]",cn="[object Int16Array]",jn="[object Int32Array]",qn="[object Uint8Array]",Kt="[object Uint8ClampedArray]",Tt="[object Uint16Array]",Vn="[object Uint32Array]",ti=/\b__p \+= '';/g,pi=/\b(__p \+=) '' \+/g,ga=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nt=/&(?:amp|lt|gt|quot|#39);/g,Qt=/[&<>"']/g,Yt=RegExp(Nt.source),dr=RegExp(Qt.source),D=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ue=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xe=/[\\^$.*+?()[\]{}|]/g,pe=RegExp(xe.source),Pe=/^\s+/,Ie=/\s/,xt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ce=/,? & /,mt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qt=/[()=,{}\[\]\/\s]/,To=/\\(\\)?/g,ni=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hi=/\w*$/,Wi=/^[-+]0x[0-9a-f]+$/i,Hi=/^0b[01]+$/i,pr=/^\[object .+?Constructor\]$/,ya=/^0o[0-7]+$/i,wa=/^(?:0|[1-9]\d*)$/,xa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Be=/($^)/,fn=/['\n\r\u2028\u2029\\]/g,dn="\\ud800-\\udfff",Jt="\\u0300-\\u036f",Ao="\\ufe20-\\ufe2f",xu="\\u20d0-\\u20ff",bu=Jt+Ao+xu,Ug="\\u2700-\\u27bf",$g="a-z\\xdf-\\xf6\\xf8-\\xff",_E="\\xac\\xb1\\xd7\\xf7",SE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",EE="\\u2000-\\u206f",CE=" \\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",Bg="A-Z\\xc0-\\xd6\\xd8-\\xde",Wg="\\ufe0e\\ufe0f",Hg=_E+SE+EE+CE,Id="['’]",kE="["+dn+"]",Gg="["+Hg+"]",_u="["+bu+"]",Kg="\\d+",NE="["+Ug+"]",Yg="["+$g+"]",qg="[^"+dn+Hg+Kg+Ug+$g+Bg+"]",Dd="\\ud83c[\\udffb-\\udfff]",RE="(?:"+_u+"|"+Dd+")",Vg="[^"+dn+"]",Ld="(?:\\ud83c[\\udde6-\\uddff]){2}",Md="[\\ud800-\\udbff][\\udc00-\\udfff]",ba="["+Bg+"]",Xg="\\u200d",Qg="(?:"+Yg+"|"+qg+")",PE="(?:"+ba+"|"+qg+")",Jg="(?:"+Id+"(?:d|ll|m|re|s|t|ve))?",Zg="(?:"+Id+"(?:D|LL|M|RE|S|T|VE))?",ey=RE+"?",ty="["+Wg+"]?",OE="(?:"+Xg+"(?:"+[Vg,Ld,Md].join("|")+")"+ty+ey+")*",TE="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",AE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ny=ty+ey+OE,IE="(?:"+[NE,Ld,Md].join("|")+")"+ny,DE="(?:"+[Vg+_u+"?",_u,Ld,Md,kE].join("|")+")",LE=RegExp(Id,"g"),ME=RegExp(_u,"g"),jd=RegExp(Dd+"(?="+Dd+")|"+DE+ny,"g"),jE=RegExp([ba+"?"+Yg+"+"+Jg+"(?="+[Gg,ba,"$"].join("|")+")",PE+"+"+Zg+"(?="+[Gg,ba+Qg,"$"].join("|")+")",ba+"?"+Qg+"+"+Jg,ba+"+"+Zg,AE,TE,Kg,IE].join("|"),"g"),FE=RegExp("["+Xg+dn+bu+Wg+"]"),zE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,UE=["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"],$E=-1,_t={};_t[Le]=_t[nt]=_t[Je]=_t[cn]=_t[jn]=_t[qn]=_t[Kt]=_t[Tt]=_t[Vn]=!0,_t[Xe]=_t[Ee]=_t[Gt]=_t[yt]=_t[it]=_t[z]=_t[K]=_t[H]=_t[de]=_t[he]=_t[Ze]=_t[De]=_t[tt]=_t[st]=_t[jt]=!1;var vt={};vt[Xe]=vt[Ee]=vt[Gt]=vt[it]=vt[yt]=vt[z]=vt[Le]=vt[nt]=vt[Je]=vt[cn]=vt[jn]=vt[de]=vt[he]=vt[Ze]=vt[De]=vt[tt]=vt[st]=vt[wt]=vt[qn]=vt[Kt]=vt[Tt]=vt[Vn]=!0,vt[K]=vt[H]=vt[jt]=!1;var BE={À:"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"},WE={"&":"&","<":"<",">":">",'"':""","'":"'"},HE={"&":"&","<":"<",">":">",""":'"',"'":"'"},GE={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},KE=parseFloat,YE=parseInt,ry=typeof ja=="object"&&ja&&ja.Object===Object&&ja,qE=typeof self=="object"&&self&&self.Object===Object&&self,pn=ry||qE||Function("return this")(),Fd=t&&!t.nodeType&&t,Io=Fd&&!0&&e&&!e.nodeType&&e,iy=Io&&Io.exports===Fd,zd=iy&&ry.process,hr=function(){try{var L=Io&&Io.require&&Io.require("util").types;return L||zd&&zd.binding&&zd.binding("util")}catch{}}(),oy=hr&&hr.isArrayBuffer,ay=hr&&hr.isDate,ly=hr&&hr.isMap,sy=hr&&hr.isRegExp,uy=hr&&hr.isSet,cy=hr&&hr.isTypedArray;function Xn(L,X,Y){switch(Y.length){case 0:return L.call(X);case 1:return L.call(X,Y[0]);case 2:return L.call(X,Y[0],Y[1]);case 3:return L.call(X,Y[0],Y[1],Y[2])}return L.apply(X,Y)}function VE(L,X,Y,me){for(var Me=-1,rt=L==null?0:L.length;++Me-1}function Ud(L,X,Y){for(var me=-1,Me=L==null?0:L.length;++me-1;);return Y}function yy(L,X){for(var Y=L.length;Y--&&_a(X,L[Y],0)>-1;);return Y}function iC(L,X){for(var Y=L.length,me=0;Y--;)L[Y]===X&&++me;return me}var oC=Hd(BE),aC=Hd(WE);function lC(L){return"\\"+GE[L]}function sC(L,X){return L==null?n:L[X]}function Sa(L){return FE.test(L)}function uC(L){return zE.test(L)}function cC(L){for(var X,Y=[];!(X=L.next()).done;)Y.push(X.value);return Y}function qd(L){var X=-1,Y=Array(L.size);return L.forEach(function(me,Me){Y[++X]=[Me,me]}),Y}function wy(L,X){return function(Y){return L(X(Y))}}function Yi(L,X){for(var Y=-1,me=L.length,Me=0,rt=[];++Y-1}function QC(i,a){var u=this.__data__,h=Uu(u,i);return h<0?(++this.size,u.push([i,a])):u[h][1]=a,this}mi.prototype.clear=YC,mi.prototype.delete=qC,mi.prototype.get=VC,mi.prototype.has=XC,mi.prototype.set=QC;function vi(i){var a=-1,u=i==null?0:i.length;for(this.clear();++a=a?i:a)),i}function yr(i,a,u,h,g,x){var P,T=a&m,M=a&v,J=a&S;if(u&&(P=g?u(i,h,g,x):u(i)),P!==n)return P;if(!At(i))return i;var Z=ze(i);if(Z){if(P=tN(i),!T)return Fn(i,P)}else{var ee=_n(i),ce=ee==H||ee==Q;if(Zi(i))return t0(i,T);if(ee==Ze||ee==Xe||ce&&!g){if(P=M||ce?{}:x0(i),!T)return M?Hk(i,pk(P,i)):Wk(i,Ty(P,i))}else{if(!vt[ee])return g?i:{};P=nN(i,ee,T)}}x||(x=new Ir);var be=x.get(i);if(be)return be;x.set(i,P),V0(i)?i.forEach(function(Te){P.add(yr(Te,a,u,Te,i,x))}):Y0(i)&&i.forEach(function(Te,He){P.set(He,yr(Te,a,u,He,i,x))});var Oe=J?M?xp:wp:M?Un:an,$e=Z?n:Oe(i);return mr($e||i,function(Te,He){$e&&(He=Te,Te=i[He]),zl(P,He,yr(Te,a,u,He,i,x))}),P}function hk(i){var a=an(i);return function(u){return Ay(u,i,a)}}function Ay(i,a,u){var h=u.length;if(i==null)return!h;for(i=dt(i);h--;){var g=u[h],x=a[g],P=i[g];if(P===n&&!(g in i)||!x(P))return!1}return!0}function Iy(i,a,u){if(typeof i!="function")throw new vr(s);return Kl(function(){i.apply(n,u)},a)}function Ul(i,a,u,h){var g=-1,x=Su,P=!0,T=i.length,M=[],J=a.length;if(!T)return M;u&&(a=Rt(a,Qn(u))),h?(x=Ud,P=!1):a.length>=o&&(x=Il,P=!1,a=new Mo(a));e:for(;++gg?0:g+u),h=h===n||h>g?g:Ue(h),h<0&&(h+=g),h=u>h?0:Q0(h);u0&&u(T)?a>1?hn(T,a-1,u,h,g):Ki(g,T):h||(g[g.length]=T)}return g}var tp=l0(),My=l0(!0);function ri(i,a){return i&&tp(i,a,an)}function np(i,a){return i&&My(i,a,an)}function Bu(i,a){return Gi(a,function(u){return bi(i[u])})}function Fo(i,a){a=Qi(a,i);for(var u=0,h=a.length;i!=null&&ua}function gk(i,a){return i!=null&&ut.call(i,a)}function yk(i,a){return i!=null&&a in dt(i)}function wk(i,a,u){return i>=bn(a,u)&&i=120&&Z.length>=120)?new Mo(P&&Z):n}Z=i[0];var ee=-1,ce=T[0];e:for(;++ee-1;)T!==i&&Iu.call(T,M,1),Iu.call(i,M,1);return i}function Yy(i,a){for(var u=i?a.length:0,h=u-1;u--;){var g=a[u];if(u==h||g!==x){var x=g;xi(g)?Iu.call(i,g,1):dp(i,g)}}return i}function up(i,a){return i+Mu(Ny()*(a-i+1))}function Ak(i,a,u,h){for(var g=-1,x=en(Lu((a-i)/(u||1)),0),P=Y(x);x--;)P[h?x:++g]=i,i+=u;return P}function cp(i,a){var u="";if(!i||a<1||a>W)return u;do a%2&&(u+=i),a=Mu(a/2),a&&(i+=i);while(a);return u}function We(i,a){return Np(S0(i,a,$n),i+"")}function Ik(i){return Oy(Da(i))}function Dk(i,a){var u=Da(i);return Zu(u,jo(a,0,u.length))}function Wl(i,a,u,h){if(!At(i))return i;a=Qi(a,i);for(var g=-1,x=a.length,P=x-1,T=i;T!=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 x=Y(g);++h>>1,P=i[x];P!==null&&!Zn(P)&&(u?P<=a:P=o){var J=a?null:qk(i);if(J)return Cu(J);P=!1,g=Il,M=new Mo}else M=a?[]:T;e:for(;++h=h?i:wr(i,a,u)}var e0=CC||function(i){return pn.clearTimeout(i)};function t0(i,a){if(a)return i.slice();var u=i.length,h=_y?_y(u):new i.constructor(u);return i.copy(h),h}function vp(i){var a=new i.constructor(i.byteLength);return new Tu(a).set(new Tu(i)),a}function zk(i,a){var u=a?vp(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}function Uk(i){var a=new i.constructor(i.source,hi.exec(i));return a.lastIndex=i.lastIndex,a}function $k(i){return Fl?dt(Fl.call(i)):{}}function n0(i,a){var u=a?vp(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}function r0(i,a){if(i!==a){var u=i!==n,h=i===null,g=i===i,x=Zn(i),P=a!==n,T=a===null,M=a===a,J=Zn(a);if(!T&&!J&&!x&&i>a||x&&P&&M&&!T&&!J||h&&P&&M||!u&&M||!g)return 1;if(!h&&!x&&!J&&i=T)return M;var J=u[h];return M*(J=="desc"?-1:1)}}return i.index-a.index}function i0(i,a,u,h){for(var g=-1,x=i.length,P=u.length,T=-1,M=a.length,J=en(x-P,0),Z=Y(M+J),ee=!h;++T1?u[g-1]:n,P=g>2?u[2]:n;for(x=i.length>3&&typeof x=="function"?(g--,x):n,P&&Pn(u[0],u[1],P)&&(x=g<3?n:x,g=1),a=dt(a);++h-1?g[x?a[P]:P]:n}}function c0(i){return wi(function(a){var u=a.length,h=u,g=gr.prototype.thru;for(i&&a.reverse();h--;){var x=a[h];if(typeof x!="function")throw new vr(s);if(g&&!P&&Qu(x)=="wrapper")var P=new gr([],!0)}for(h=P?h:u;++h1&&Qe.reverse(),Z&&MT))return!1;var J=x.get(i),Z=x.get(a);if(J&&Z)return J==a&&Z==i;var ee=-1,ce=!0,be=u&k?new Mo:n;for(x.set(i,a),x.set(a,i);++ee1?"& ":"")+a[h],a=a.join(u>2?", ":" "),i.replace(xt,`{ /* [wrapped with `+a+`] */ -`)}function iN(i){return ze(i)||$o(i)||!!(Cy&&i&&i[Cy])}function xi(i,a){var u=typeof i;return a=a??W,!!a&&(u=="number"||u!="symbol"&&wa.test(i))&&i>-1&&i%1==0&&i0){if(++a>=we)return arguments[0]}else a=0;return i.apply(n,arguments)}}function Zu(i,a){var u=-1,h=i.length,g=h-1;for(a=a===n?h:a;++u1?i[a-1]:n;return u=typeof u=="function"?(i.pop(),u):n,M0(i,u)});function L0(i){var a=w(i);return a.__chain__=!0,a}function mR(i,a){return a(i),i}function ec(i,a){return a(i)}var vR=wi(function(i){var a=i.length,u=a?i[0]:0,h=this.__wrapped__,g=function(x){return ep(x,i)};return a>1||this.__actions__.length||!(h instanceof qe)||!xi(u)?this.thru(g):(h=h.slice(u,+u+(a?1:0)),h.__actions__.push({func:ec,args:[g],thisArg:n}),new gr(h,this.__chain__).thru(function(x){return a&&!x.length&&x.push(n),x}))});function gR(){return L0(this)}function yR(){return new gr(this.value(),this.__chain__)}function wR(){this.__values__===n&&(this.__values__=X0(this.value()));var i=this.__index__>=this.__values__.length,a=i?n:this.__values__[this.__index__++];return{done:i,value:a}}function xR(){return this}function bR(i){for(var a,u=this;u instanceof zu;){var h=P0(u);h.__index__=0,h.__values__=n,a?g.__wrapped__=h:a=h;var g=h;u=u.__wrapped__}return g.__wrapped__=i,a}function _R(){var i=this.__wrapped__;if(i instanceof qe){var a=i;return this.__actions__.length&&(a=new qe(this)),a=a.reverse(),a.__actions__.push({func:ec,args:[Rp],thisArg:n}),new gr(a,this.__chain__)}return this.thru(Rp)}function SR(){return Jy(this.__wrapped__,this.__actions__)}var ER=Ku(function(i,a,u){ut.call(i,u)?++i[u]:gi(i,u,1)});function CR(i,a,u){var h=ze(i)?fy:mk;return u&&Pn(i,a,u)&&(a=n),h(i,ke(a,3))}function kR(i,a){var u=ze(i)?Gi:My;return u(i,ke(a,3))}var NR=u0(O0),RR=u0(T0);function PR(i,a){return hn(tc(i,a),1)}function OR(i,a){return hn(tc(i,a),B)}function TR(i,a,u){return u=u===n?1:Ue(u),hn(tc(i,a),u)}function j0(i,a){var u=ze(i)?mr:Vi;return u(i,ke(a,3))}function F0(i,a){var u=ze(i)?XE:Dy;return u(i,ke(a,3))}var AR=Ku(function(i,a,u){ut.call(i,u)?i[u].push(a):gi(i,u,[a])});function IR(i,a,u,h){i=zn(i)?i:Da(i),u=u&&!h?Ue(u):0;var g=i.length;return u<0&&(u=en(g+u,0)),ac(i)?u<=g&&i.indexOf(a,u)>-1:!!g&&_a(i,a,u)>-1}var DR=We(function(i,a,u){var h=-1,g=typeof a=="function",x=zn(i)?Y(i.length):[];return Vi(i,function(P){x[++h]=g?Xn(a,P,u):$l(P,a,u)}),x}),MR=Ku(function(i,a,u){gi(i,u,a)});function tc(i,a){var u=ze(i)?Rt:$y;return u(i,ke(a,3))}function LR(i,a,u,h){return i==null?[]:(ze(a)||(a=a==null?[]:[a]),u=h?n:u,ze(u)||(u=u==null?[]:[u]),Gy(i,a,u))}var jR=Ku(function(i,a,u){i[u?0:1].push(a)},function(){return[[],[]]});function FR(i,a,u){var h=ze(i)?$d:my,g=arguments.length<3;return h(i,ke(a,4),u,g,Vi)}function zR(i,a,u){var h=ze(i)?QE:my,g=arguments.length<3;return h(i,ke(a,4),u,g,Dy)}function UR(i,a){var u=ze(i)?Gi:My;return u(i,ic(ke(a,3)))}function $R(i){var a=ze(i)?Oy:Ik;return a(i)}function BR(i,a,u){(u?Pn(i,a,u):a===n)?a=1:a=Ue(a);var h=ze(i)?ck:Dk;return h(i,a)}function WR(i){var a=ze(i)?fk:Lk;return a(i)}function HR(i){if(i==null)return 0;if(zn(i))return ac(i)?Ea(i):i.length;var a=_n(i);return a==de||a==tt?i.size:ap(i).length}function GR(i,a,u){var h=ze(i)?Bd:jk;return u&&Pn(i,a,u)&&(a=n),h(i,ke(a,3))}var KR=We(function(i,a){if(i==null)return[];var u=a.length;return u>1&&Pn(i,a[0],a[1])?a=[]:u>2&&Pn(a[0],a[1],a[2])&&(a=[a[0]]),Gy(i,hn(a,1),[])}),nc=kC||function(){return pn.Date.now()};function YR(i,a){if(typeof a!="function")throw new vr(s);return i=Ue(i),function(){if(--i<1)return a.apply(this,arguments)}}function z0(i,a,u){return a=u?n:a,a=i&&a==null?i.length:a,yi(i,N,n,n,n,n,a)}function U0(i,a){var u;if(typeof a!="function")throw new vr(s);return i=Ue(i),function(){return--i>0&&(u=a.apply(this,arguments)),i<=1&&(a=n),u}}var Op=We(function(i,a,u){var h=A;if(u.length){var g=Yi(u,Aa(Op));h|=I}return yi(i,h,a,u,g)}),$0=We(function(i,a,u){var h=A|_;if(u.length){var g=Yi(u,Aa($0));h|=I}return yi(a,h,i,u,g)});function B0(i,a,u){a=u?n:a;var h=yi(i,y,n,n,n,n,n,a);return h.placeholder=B0.placeholder,h}function W0(i,a,u){a=u?n:a;var h=yi(i,O,n,n,n,n,n,a);return h.placeholder=W0.placeholder,h}function H0(i,a,u){var h,g,x,P,T,L,J=0,Z=!1,ee=!1,ce=!0;if(typeof i!="function")throw new vr(s);a=br(a)||0,At(u)&&(Z=!!u.leading,ee="maxWait"in u,x=ee?en(br(u.maxWait)||0,a):x,ce="trailing"in u?!!u.trailing:ce);function be(Bt){var Mr=h,Si=g;return h=g=n,J=Bt,P=i.apply(Si,Mr),P}function Oe(Bt){return J=Bt,T=Kl(He,a),Z?be(Bt):P}function $e(Bt){var Mr=Bt-L,Si=Bt-J,u1=a-Mr;return ee?bn(u1,x-Si):u1}function Te(Bt){var Mr=Bt-L,Si=Bt-J;return L===n||Mr>=a||Mr<0||ee&&Si>=x}function He(){var Bt=nc();if(Te(Bt))return Qe(Bt);T=Kl(He,$e(Bt))}function Qe(Bt){return T=n,ce&&h?be(Bt):(h=g=n,P)}function er(){T!==n&&e0(T),J=0,h=L=g=T=n}function On(){return T===n?P:Qe(nc())}function tr(){var Bt=nc(),Mr=Te(Bt);if(h=arguments,g=this,L=Bt,Mr){if(T===n)return Oe(L);if(ee)return e0(T),T=Kl(He,a),be(L)}return T===n&&(T=Kl(He,a)),P}return tr.cancel=er,tr.flush=On,tr}var qR=We(function(i,a){return Iy(i,1,a)}),VR=We(function(i,a,u){return Iy(i,br(a)||0,u)});function XR(i){return yi(i,F)}function rc(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new vr(s);var u=function(){var h=arguments,g=a?a.apply(this,h):h[0],x=u.cache;if(x.has(g))return x.get(g);var P=i.apply(this,h);return u.cache=x.set(g,P)||x,P};return u.cache=new(rc.Cache||vi),u}rc.Cache=vi;function ic(i){if(typeof i!="function")throw new vr(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 U0(2,i)}var JR=Fk(function(i,a){a=a.length==1&&ze(a[0])?Rt(a[0],Qn(ke())):Rt(hn(a,1),Qn(ke()));var u=a.length;return We(function(h){for(var g=-1,x=bn(h.length,u);++g=a}),$o=Fy(function(){return arguments}())?Fy:function(i){return Ft(i)&&ut.call(i,"callee")&&!Ey.call(i,"callee")},ze=Y.isArray,pP=oy?Qn(oy):bk;function zn(i){return i!=null&&oc(i.length)&&!bi(i)}function $t(i){return Ft(i)&&zn(i)}function hP(i){return i===!0||i===!1||Ft(i)&&Rn(i)==yt}var Zi=RC||Bp,mP=ay?Qn(ay):_k;function vP(i){return Ft(i)&&i.nodeType===1&&!Yl(i)}function gP(i){if(i==null)return!0;if(zn(i)&&(ze(i)||typeof i=="string"||typeof i.splice=="function"||Zi(i)||Ia(i)||$o(i)))return!i.length;var a=_n(i);if(a==de||a==tt)return!i.size;if(Gl(i))return!ap(i).length;for(var u in i)if(ut.call(i,u))return!1;return!0}function yP(i,a){return Bl(i,a)}function wP(i,a,u){u=typeof u=="function"?u:n;var h=u?u(i,a):n;return h===n?Bl(i,a,n,u):!!h}function Ap(i){if(!Ft(i))return!1;var a=Rn(i);return a==K||a==j||typeof i.message=="string"&&typeof i.name=="string"&&!Yl(i)}function xP(i){return typeof i=="number"&&ky(i)}function bi(i){if(!At(i))return!1;var a=Rn(i);return a==H||a==Q||a==ft||a==Se}function K0(i){return typeof i=="number"&&i==Ue(i)}function oc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=W}function At(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function Ft(i){return i!=null&&typeof i=="object"}var Y0=ly?Qn(ly):Ek;function bP(i,a){return i===a||op(i,a,_p(a))}function _P(i,a,u){return u=typeof u=="function"?u:n,op(i,a,_p(a),u)}function SP(i){return q0(i)&&i!=+i}function EP(i){if(lN(i))throw new Le(l);return zy(i)}function CP(i){return i===null}function kP(i){return i==null}function q0(i){return typeof i=="number"||Ft(i)&&Rn(i)==he}function Yl(i){if(!Ft(i)||Rn(i)!=Ze)return!1;var a=Au(i);if(a===null)return!0;var u=ut.call(a,"constructor")&&a.constructor;return typeof u=="function"&&u instanceof u&&Ru.call(u)==_C}var Ip=sy?Qn(sy):Ck;function NP(i){return K0(i)&&i>=-W&&i<=W}var V0=uy?Qn(uy):kk;function ac(i){return typeof i=="string"||!ze(i)&&Ft(i)&&Rn(i)==st}function Zn(i){return typeof i=="symbol"||Ft(i)&&Rn(i)==wt}var Ia=cy?Qn(cy):Nk;function RP(i){return i===n}function PP(i){return Ft(i)&&_n(i)==jt}function OP(i){return Ft(i)&&Rn(i)==Ht}var TP=Xu(lp),AP=Xu(function(i,a){return i<=a});function X0(i){if(!i)return[];if(zn(i))return ac(i)?Ar(i):Fn(i);if(Dl&&i[Dl])return cC(i[Dl]());var a=_n(i),u=a==de?qd:a==tt?Cu:Da;return u(i)}function _i(i){if(!i)return i===0?i:0;if(i=br(i),i===B||i===-B){var a=i<0?-1:1;return a*ae}return i===i?i:0}function Ue(i){var a=_i(i),u=a%1;return a===a?u?a-u:a:0}function Q0(i){return i?jo(Ue(i),0,oe):0}function br(i){if(typeof i=="number")return i;if(Zn(i))return se;if(At(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=At(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=vy(i);var u=Hi.test(i);return u||ya.test(i)?YE(i.slice(2),u?2:8):Wi.test(i)?se:+i}function J0(i){return ii(i,Un(i))}function IP(i){return i?jo(Ue(i),-W,W):i===0?i:0}function ot(i){return i==null?"":Jn(i)}var DP=Oa(function(i,a){if(Gl(a)||zn(a)){ii(a,an(a),i);return}for(var u in a)ut.call(a,u)&&zl(i,u,a[u])}),Z0=Oa(function(i,a){ii(a,Un(a),i)}),lc=Oa(function(i,a,u,h){ii(a,Un(a),i,h)}),MP=Oa(function(i,a,u,h){ii(a,an(a),i,h)}),LP=wi(ep);function jP(i,a){var u=Pa(i);return a==null?u:Ty(u,a)}var FP=We(function(i,a){i=dt(i);var u=-1,h=a.length,g=h>2?a[2]:n;for(g&&Pn(a[0],a[1],g)&&(h=1);++u1),x}),ii(i,xp(i),u),h&&(u=yr(u,m|v|S,Vk));for(var g=a.length;g--;)dp(u,a[g]);return u});function n3(i,a){return t1(i,ic(ke(a)))}var r3=wi(function(i,a){return i==null?{}:Ok(i,a)});function t1(i,a){if(i==null)return{};var u=Rt(xp(i),function(h){return[h]});return a=ke(a),Ky(i,u,function(h,g){return a(h,g[0])})}function i3(i,a,u){a=Qi(a,i);var h=-1,g=a.length;for(g||(g=1,i=n);++ha){var h=i;i=a,a=h}if(u||i%1||a%1){var g=Ny();return bn(i+g*(a-i+KE("1e-"+((g+"").length-1))),a)}return up(i,a)}var m3=Ta(function(i,a,u){return a=a.toLowerCase(),i+(u?i1(a):a)});function i1(i){return Lp(ot(i).toLowerCase())}function o1(i){return i=ot(i),i&&i.replace(xa,oC).replace(LE,"")}function v3(i,a,u){i=ot(i),a=Jn(a);var h=i.length;u=u===n?h:jo(Ue(u),0,h);var g=u;return u-=a.length,u>=0&&i.slice(u,g)==a}function g3(i){return i=ot(i),i&&dr.test(i)?i.replace(Qt,aC):i}function y3(i){return i=ot(i),i&&pe.test(i)?i.replace(xe,"\\$&"):i}var w3=Ta(function(i,a,u){return i+(u?"-":"")+a.toLowerCase()}),x3=Ta(function(i,a,u){return i+(u?" ":"")+a.toLowerCase()}),b3=s0("toLowerCase");function _3(i,a,u){i=ot(i),a=Ue(a);var h=a?Ea(i):0;if(!a||h>=a)return i;var g=(a-h)/2;return Vu(Lu(g),u)+i+Vu(Mu(g),u)}function S3(i,a,u){i=ot(i),a=Ue(a);var h=a?Ea(i):0;return a&&h>>0,u?(i=ot(i),i&&(typeof a=="string"||a!=null&&!Ip(a))&&(a=Jn(a),!a&&Sa(i))?Ji(Ar(i),0,u):i.split(a,u)):[]}var O3=Ta(function(i,a,u){return i+(u?" ":"")+Lp(a)});function T3(i,a,u){return i=ot(i),u=u==null?0:jo(Ue(u),0,i.length),a=Jn(a),i.slice(u,u+a.length)==a}function A3(i,a,u){var h=w.templateSettings;u&&Pn(i,a,u)&&(a=n),i=ot(i),a=lc({},a,h,m0);var g=lc({},a.imports,h.imports,m0),x=an(g),P=Yd(g,x),T,L,J=0,Z=a.interpolate||Be,ee="__p += '",ce=Vd((a.escape||Be).source+"|"+Z.source+"|"+(Z===V?ni:Be).source+"|"+(a.evaluate||Be).source+"|$","g"),be="//# sourceURL="+(ut.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$E+"]")+` +`)}function iN(i){return ze(i)||$o(i)||!!(Cy&&i&&i[Cy])}function xi(i,a){var u=typeof i;return a=a??W,!!a&&(u=="number"||u!="symbol"&&wa.test(i))&&i>-1&&i%1==0&&i0){if(++a>=we)return arguments[0]}else a=0;return i.apply(n,arguments)}}function Zu(i,a){var u=-1,h=i.length,g=h-1;for(a=a===n?h:a;++u1?i[a-1]:n;return u=typeof u=="function"?(i.pop(),u):n,L0(i,u)});function M0(i){var a=w(i);return a.__chain__=!0,a}function mR(i,a){return a(i),i}function ec(i,a){return a(i)}var vR=wi(function(i){var a=i.length,u=a?i[0]:0,h=this.__wrapped__,g=function(x){return ep(x,i)};return a>1||this.__actions__.length||!(h instanceof qe)||!xi(u)?this.thru(g):(h=h.slice(u,+u+(a?1:0)),h.__actions__.push({func:ec,args:[g],thisArg:n}),new gr(h,this.__chain__).thru(function(x){return a&&!x.length&&x.push(n),x}))});function gR(){return M0(this)}function yR(){return new gr(this.value(),this.__chain__)}function wR(){this.__values__===n&&(this.__values__=X0(this.value()));var i=this.__index__>=this.__values__.length,a=i?n:this.__values__[this.__index__++];return{done:i,value:a}}function xR(){return this}function bR(i){for(var a,u=this;u instanceof zu;){var h=P0(u);h.__index__=0,h.__values__=n,a?g.__wrapped__=h:a=h;var g=h;u=u.__wrapped__}return g.__wrapped__=i,a}function _R(){var i=this.__wrapped__;if(i instanceof qe){var a=i;return this.__actions__.length&&(a=new qe(this)),a=a.reverse(),a.__actions__.push({func:ec,args:[Rp],thisArg:n}),new gr(a,this.__chain__)}return this.thru(Rp)}function SR(){return Jy(this.__wrapped__,this.__actions__)}var ER=Ku(function(i,a,u){ut.call(i,u)?++i[u]:gi(i,u,1)});function CR(i,a,u){var h=ze(i)?fy:mk;return u&&Pn(i,a,u)&&(a=n),h(i,ke(a,3))}function kR(i,a){var u=ze(i)?Gi:Ly;return u(i,ke(a,3))}var NR=u0(O0),RR=u0(T0);function PR(i,a){return hn(tc(i,a),1)}function OR(i,a){return hn(tc(i,a),B)}function TR(i,a,u){return u=u===n?1:Ue(u),hn(tc(i,a),u)}function j0(i,a){var u=ze(i)?mr:Vi;return u(i,ke(a,3))}function F0(i,a){var u=ze(i)?XE:Dy;return u(i,ke(a,3))}var AR=Ku(function(i,a,u){ut.call(i,u)?i[u].push(a):gi(i,u,[a])});function IR(i,a,u,h){i=zn(i)?i:Da(i),u=u&&!h?Ue(u):0;var g=i.length;return u<0&&(u=en(g+u,0)),ac(i)?u<=g&&i.indexOf(a,u)>-1:!!g&&_a(i,a,u)>-1}var DR=We(function(i,a,u){var h=-1,g=typeof a=="function",x=zn(i)?Y(i.length):[];return Vi(i,function(P){x[++h]=g?Xn(a,P,u):$l(P,a,u)}),x}),LR=Ku(function(i,a,u){gi(i,u,a)});function tc(i,a){var u=ze(i)?Rt:$y;return u(i,ke(a,3))}function MR(i,a,u,h){return i==null?[]:(ze(a)||(a=a==null?[]:[a]),u=h?n:u,ze(u)||(u=u==null?[]:[u]),Gy(i,a,u))}var jR=Ku(function(i,a,u){i[u?0:1].push(a)},function(){return[[],[]]});function FR(i,a,u){var h=ze(i)?$d:my,g=arguments.length<3;return h(i,ke(a,4),u,g,Vi)}function zR(i,a,u){var h=ze(i)?QE:my,g=arguments.length<3;return h(i,ke(a,4),u,g,Dy)}function UR(i,a){var u=ze(i)?Gi:Ly;return u(i,ic(ke(a,3)))}function $R(i){var a=ze(i)?Oy:Ik;return a(i)}function BR(i,a,u){(u?Pn(i,a,u):a===n)?a=1:a=Ue(a);var h=ze(i)?ck:Dk;return h(i,a)}function WR(i){var a=ze(i)?fk:Mk;return a(i)}function HR(i){if(i==null)return 0;if(zn(i))return ac(i)?Ea(i):i.length;var a=_n(i);return a==de||a==tt?i.size:ap(i).length}function GR(i,a,u){var h=ze(i)?Bd:jk;return u&&Pn(i,a,u)&&(a=n),h(i,ke(a,3))}var KR=We(function(i,a){if(i==null)return[];var u=a.length;return u>1&&Pn(i,a[0],a[1])?a=[]:u>2&&Pn(a[0],a[1],a[2])&&(a=[a[0]]),Gy(i,hn(a,1),[])}),nc=kC||function(){return pn.Date.now()};function YR(i,a){if(typeof a!="function")throw new vr(s);return i=Ue(i),function(){if(--i<1)return a.apply(this,arguments)}}function z0(i,a,u){return a=u?n:a,a=i&&a==null?i.length:a,yi(i,N,n,n,n,n,a)}function U0(i,a){var u;if(typeof a!="function")throw new vr(s);return i=Ue(i),function(){return--i>0&&(u=a.apply(this,arguments)),i<=1&&(a=n),u}}var Op=We(function(i,a,u){var h=A;if(u.length){var g=Yi(u,Aa(Op));h|=I}return yi(i,h,a,u,g)}),$0=We(function(i,a,u){var h=A|_;if(u.length){var g=Yi(u,Aa($0));h|=I}return yi(a,h,i,u,g)});function B0(i,a,u){a=u?n:a;var h=yi(i,y,n,n,n,n,n,a);return h.placeholder=B0.placeholder,h}function W0(i,a,u){a=u?n:a;var h=yi(i,O,n,n,n,n,n,a);return h.placeholder=W0.placeholder,h}function H0(i,a,u){var h,g,x,P,T,M,J=0,Z=!1,ee=!1,ce=!0;if(typeof i!="function")throw new vr(s);a=br(a)||0,At(u)&&(Z=!!u.leading,ee="maxWait"in u,x=ee?en(br(u.maxWait)||0,a):x,ce="trailing"in u?!!u.trailing:ce);function be(Bt){var Lr=h,Si=g;return h=g=n,J=Bt,P=i.apply(Si,Lr),P}function Oe(Bt){return J=Bt,T=Kl(He,a),Z?be(Bt):P}function $e(Bt){var Lr=Bt-M,Si=Bt-J,u1=a-Lr;return ee?bn(u1,x-Si):u1}function Te(Bt){var Lr=Bt-M,Si=Bt-J;return M===n||Lr>=a||Lr<0||ee&&Si>=x}function He(){var Bt=nc();if(Te(Bt))return Qe(Bt);T=Kl(He,$e(Bt))}function Qe(Bt){return T=n,ce&&h?be(Bt):(h=g=n,P)}function er(){T!==n&&e0(T),J=0,h=M=g=T=n}function On(){return T===n?P:Qe(nc())}function tr(){var Bt=nc(),Lr=Te(Bt);if(h=arguments,g=this,M=Bt,Lr){if(T===n)return Oe(M);if(ee)return e0(T),T=Kl(He,a),be(M)}return T===n&&(T=Kl(He,a)),P}return tr.cancel=er,tr.flush=On,tr}var qR=We(function(i,a){return Iy(i,1,a)}),VR=We(function(i,a,u){return Iy(i,br(a)||0,u)});function XR(i){return yi(i,F)}function rc(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new vr(s);var u=function(){var h=arguments,g=a?a.apply(this,h):h[0],x=u.cache;if(x.has(g))return x.get(g);var P=i.apply(this,h);return u.cache=x.set(g,P)||x,P};return u.cache=new(rc.Cache||vi),u}rc.Cache=vi;function ic(i){if(typeof i!="function")throw new vr(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 U0(2,i)}var JR=Fk(function(i,a){a=a.length==1&&ze(a[0])?Rt(a[0],Qn(ke())):Rt(hn(a,1),Qn(ke()));var u=a.length;return We(function(h){for(var g=-1,x=bn(h.length,u);++g=a}),$o=Fy(function(){return arguments}())?Fy:function(i){return Ft(i)&&ut.call(i,"callee")&&!Ey.call(i,"callee")},ze=Y.isArray,pP=oy?Qn(oy):bk;function zn(i){return i!=null&&oc(i.length)&&!bi(i)}function $t(i){return Ft(i)&&zn(i)}function hP(i){return i===!0||i===!1||Ft(i)&&Rn(i)==yt}var Zi=RC||Bp,mP=ay?Qn(ay):_k;function vP(i){return Ft(i)&&i.nodeType===1&&!Yl(i)}function gP(i){if(i==null)return!0;if(zn(i)&&(ze(i)||typeof i=="string"||typeof i.splice=="function"||Zi(i)||Ia(i)||$o(i)))return!i.length;var a=_n(i);if(a==de||a==tt)return!i.size;if(Gl(i))return!ap(i).length;for(var u in i)if(ut.call(i,u))return!1;return!0}function yP(i,a){return Bl(i,a)}function wP(i,a,u){u=typeof u=="function"?u:n;var h=u?u(i,a):n;return h===n?Bl(i,a,n,u):!!h}function Ap(i){if(!Ft(i))return!1;var a=Rn(i);return a==K||a==j||typeof i.message=="string"&&typeof i.name=="string"&&!Yl(i)}function xP(i){return typeof i=="number"&&ky(i)}function bi(i){if(!At(i))return!1;var a=Rn(i);return a==H||a==Q||a==ft||a==Se}function K0(i){return typeof i=="number"&&i==Ue(i)}function oc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=W}function At(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function Ft(i){return i!=null&&typeof i=="object"}var Y0=ly?Qn(ly):Ek;function bP(i,a){return i===a||op(i,a,_p(a))}function _P(i,a,u){return u=typeof u=="function"?u:n,op(i,a,_p(a),u)}function SP(i){return q0(i)&&i!=+i}function EP(i){if(lN(i))throw new Me(l);return zy(i)}function CP(i){return i===null}function kP(i){return i==null}function q0(i){return typeof i=="number"||Ft(i)&&Rn(i)==he}function Yl(i){if(!Ft(i)||Rn(i)!=Ze)return!1;var a=Au(i);if(a===null)return!0;var u=ut.call(a,"constructor")&&a.constructor;return typeof u=="function"&&u instanceof u&&Ru.call(u)==_C}var Ip=sy?Qn(sy):Ck;function NP(i){return K0(i)&&i>=-W&&i<=W}var V0=uy?Qn(uy):kk;function ac(i){return typeof i=="string"||!ze(i)&&Ft(i)&&Rn(i)==st}function Zn(i){return typeof i=="symbol"||Ft(i)&&Rn(i)==wt}var Ia=cy?Qn(cy):Nk;function RP(i){return i===n}function PP(i){return Ft(i)&&_n(i)==jt}function OP(i){return Ft(i)&&Rn(i)==Ht}var TP=Xu(lp),AP=Xu(function(i,a){return i<=a});function X0(i){if(!i)return[];if(zn(i))return ac(i)?Ar(i):Fn(i);if(Dl&&i[Dl])return cC(i[Dl]());var a=_n(i),u=a==de?qd:a==tt?Cu:Da;return u(i)}function _i(i){if(!i)return i===0?i:0;if(i=br(i),i===B||i===-B){var a=i<0?-1:1;return a*ae}return i===i?i:0}function Ue(i){var a=_i(i),u=a%1;return a===a?u?a-u:a:0}function Q0(i){return i?jo(Ue(i),0,oe):0}function br(i){if(typeof i=="number")return i;if(Zn(i))return se;if(At(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=At(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=vy(i);var u=Hi.test(i);return u||ya.test(i)?YE(i.slice(2),u?2:8):Wi.test(i)?se:+i}function J0(i){return ii(i,Un(i))}function IP(i){return i?jo(Ue(i),-W,W):i===0?i:0}function ot(i){return i==null?"":Jn(i)}var DP=Oa(function(i,a){if(Gl(a)||zn(a)){ii(a,an(a),i);return}for(var u in a)ut.call(a,u)&&zl(i,u,a[u])}),Z0=Oa(function(i,a){ii(a,Un(a),i)}),lc=Oa(function(i,a,u,h){ii(a,Un(a),i,h)}),LP=Oa(function(i,a,u,h){ii(a,an(a),i,h)}),MP=wi(ep);function jP(i,a){var u=Pa(i);return a==null?u:Ty(u,a)}var FP=We(function(i,a){i=dt(i);var u=-1,h=a.length,g=h>2?a[2]:n;for(g&&Pn(a[0],a[1],g)&&(h=1);++u1),x}),ii(i,xp(i),u),h&&(u=yr(u,m|v|S,Vk));for(var g=a.length;g--;)dp(u,a[g]);return u});function n3(i,a){return t1(i,ic(ke(a)))}var r3=wi(function(i,a){return i==null?{}:Ok(i,a)});function t1(i,a){if(i==null)return{};var u=Rt(xp(i),function(h){return[h]});return a=ke(a),Ky(i,u,function(h,g){return a(h,g[0])})}function i3(i,a,u){a=Qi(a,i);var h=-1,g=a.length;for(g||(g=1,i=n);++ha){var h=i;i=a,a=h}if(u||i%1||a%1){var g=Ny();return bn(i+g*(a-i+KE("1e-"+((g+"").length-1))),a)}return up(i,a)}var m3=Ta(function(i,a,u){return a=a.toLowerCase(),i+(u?i1(a):a)});function i1(i){return Mp(ot(i).toLowerCase())}function o1(i){return i=ot(i),i&&i.replace(xa,oC).replace(ME,"")}function v3(i,a,u){i=ot(i),a=Jn(a);var h=i.length;u=u===n?h:jo(Ue(u),0,h);var g=u;return u-=a.length,u>=0&&i.slice(u,g)==a}function g3(i){return i=ot(i),i&&dr.test(i)?i.replace(Qt,aC):i}function y3(i){return i=ot(i),i&&pe.test(i)?i.replace(xe,"\\$&"):i}var w3=Ta(function(i,a,u){return i+(u?"-":"")+a.toLowerCase()}),x3=Ta(function(i,a,u){return i+(u?" ":"")+a.toLowerCase()}),b3=s0("toLowerCase");function _3(i,a,u){i=ot(i),a=Ue(a);var h=a?Ea(i):0;if(!a||h>=a)return i;var g=(a-h)/2;return Vu(Mu(g),u)+i+Vu(Lu(g),u)}function S3(i,a,u){i=ot(i),a=Ue(a);var h=a?Ea(i):0;return a&&h>>0,u?(i=ot(i),i&&(typeof a=="string"||a!=null&&!Ip(a))&&(a=Jn(a),!a&&Sa(i))?Ji(Ar(i),0,u):i.split(a,u)):[]}var O3=Ta(function(i,a,u){return i+(u?" ":"")+Mp(a)});function T3(i,a,u){return i=ot(i),u=u==null?0:jo(Ue(u),0,i.length),a=Jn(a),i.slice(u,u+a.length)==a}function A3(i,a,u){var h=w.templateSettings;u&&Pn(i,a,u)&&(a=n),i=ot(i),a=lc({},a,h,m0);var g=lc({},a.imports,h.imports,m0),x=an(g),P=Yd(g,x),T,M,J=0,Z=a.interpolate||Be,ee="__p += '",ce=Vd((a.escape||Be).source+"|"+Z.source+"|"+(Z===V?ni:Be).source+"|"+(a.evaluate||Be).source+"|$","g"),be="//# sourceURL="+(ut.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$E+"]")+` `;i.replace(ce,function(Te,He,Qe,er,On,tr){return Qe||(Qe=er),ee+=i.slice(J,tr).replace(fn,lC),He&&(T=!0,ee+=`' + __e(`+He+`) + -'`),On&&(L=!0,ee+=`'; +'`),On&&(M=!0,ee+=`'; `+On+`; __p += '`),Qe&&(ee+=`' + ((__t = (`+Qe+`)) == null ? '' : __t) + @@ -93,15 +93,15 @@ __p += '`),Qe&&(ee+=`' + `;var Oe=ut.call(a,"variable")&&a.variable;if(!Oe)ee=`with (obj) { `+ee+` } -`;else if(qt.test(Oe))throw new Le(c);ee=(L?ee.replace(ti,""):ee).replace(pi,"$1").replace(ga,"$1;"),ee="function("+(Oe||"obj")+`) { +`;else if(qt.test(Oe))throw new Me(c);ee=(M?ee.replace(ti,""):ee).replace(pi,"$1").replace(ga,"$1;"),ee="function("+(Oe||"obj")+`) { `+(Oe?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(L?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(M?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+ee+`return __p -}`;var $e=l1(function(){return rt(x,be+"return "+ee).apply(n,P)});if($e.source=ee,Ap($e))throw $e;return $e}function I3(i){return ot(i).toLowerCase()}function D3(i){return ot(i).toUpperCase()}function M3(i,a,u){if(i=ot(i),i&&(u||a===n))return vy(i);if(!i||!(a=Jn(a)))return i;var h=Ar(i),g=Ar(a),x=gy(h,g),P=yy(h,g)+1;return Ji(h,x,P).join("")}function L3(i,a,u){if(i=ot(i),i&&(u||a===n))return i.slice(0,xy(i)+1);if(!i||!(a=Jn(a)))return i;var h=Ar(i),g=yy(h,Ar(a))+1;return Ji(h,0,g).join("")}function j3(i,a,u){if(i=ot(i),i&&(u||a===n))return i.replace(Pe,"");if(!i||!(a=Jn(a)))return i;var h=Ar(i),g=gy(h,Ar(a));return Ji(h,g).join("")}function F3(i,a){var u=q,h=te;if(At(a)){var g="separator"in a?a.separator:g;u="length"in a?Ue(a.length):u,h="omission"in a?Jn(a.omission):h}i=ot(i);var x=i.length;if(Sa(i)){var P=Ar(i);x=P.length}if(u>=x)return i;var T=u-Ea(h);if(T<1)return h;var L=P?Ji(P,0,T).join(""):i.slice(0,T);if(g===n)return L+h;if(P&&(T+=L.length-T),Ip(g)){if(i.slice(T).search(g)){var J,Z=L;for(g.global||(g=Vd(g.source,ot(hi.exec(g))+"g")),g.lastIndex=0;J=g.exec(Z);)var ee=J.index;L=L.slice(0,ee===n?T:ee)}}else if(i.indexOf(Jn(g),T)!=T){var ce=L.lastIndexOf(g);ce>-1&&(L=L.slice(0,ce))}return L+h}function z3(i){return i=ot(i),i&&Yt.test(i)?i.replace(Nt,hC):i}var U3=Ta(function(i,a,u){return i+(u?" ":"")+a.toUpperCase()}),Lp=s0("toUpperCase");function a1(i,a,u){return i=ot(i),a=u?n:a,a===n?uC(i)?gC(i):eC(i):i.match(a)||[]}var l1=We(function(i,a){try{return Xn(i,n,a)}catch(u){return Ap(u)?u:new Le(u)}}),$3=wi(function(i,a){return mr(a,function(u){u=oi(u),gi(i,u,Op(i[u],i))}),i});function B3(i){var a=i==null?0:i.length,u=ke();return i=a?Rt(i,function(h){if(typeof h[1]!="function")throw new vr(s);return[u(h[0]),h[1]]}):[],We(function(h){for(var g=-1;++gW)return[];var u=oe,h=bn(i,oe);a=ke(a),i-=oe;for(var g=Kd(h,a);++u0||a<0)?new qe(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),a!==n&&(a=Ue(a),u=a<0?u.dropRight(-a):u.take(a-i)),u)},qe.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},qe.prototype.toArray=function(){return this.take(oe)},ri(qe.prototype,function(i,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),g=w[h?"take"+(a=="last"?"Right":""):a],x=h||/^find/.test(a);g&&(w.prototype[a]=function(){var P=this.__wrapped__,T=h?[1]:arguments,L=P instanceof qe,J=T[0],Z=L||ze(P),ee=function(He){var Qe=g.apply(w,Ki([He],T));return h&&ce?Qe[0]:Qe};Z&&u&&typeof J=="function"&&J.length!=1&&(L=Z=!1);var ce=this.__chain__,be=!!this.__actions__.length,Oe=x&&!ce,$e=L&&!be;if(!x&&Z){P=$e?P:new qe(this);var Te=i.apply(P,T);return Te.__actions__.push({func:ec,args:[ee],thisArg:n}),new gr(Te,ce)}return Oe&&$e?i.apply(this,T):(Te=this.thru(ee),Oe?h?Te.value()[0]:Te.value():Te)})}),mr(["pop","push","shift","sort","splice","unshift"],function(i){var a=ku[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",h=/^(?:pop|shift)$/.test(i);w.prototype[i]=function(){var g=arguments;if(h&&!this.__chain__){var x=this.value();return a.apply(ze(x)?x:[],g)}return this[u](function(P){return a.apply(ze(P)?P:[],g)})}}),ri(qe.prototype,function(i,a){var u=w[a];if(u){var h=u.name+"";ut.call(Ra,h)||(Ra[h]=[]),Ra[h].push({name:a,func:u})}}),Ra[Yu(n,_).name]=[{name:"wrapper",func:n}],qe.prototype.clone=zC,qe.prototype.reverse=UC,qe.prototype.value=$C,w.prototype.at=vR,w.prototype.chain=gR,w.prototype.commit=yR,w.prototype.next=wR,w.prototype.plant=bR,w.prototype.reverse=_R,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=SR,w.prototype.first=w.prototype.head,Dl&&(w.prototype[Dl]=xR),w},Ca=yC();Io?((Io.exports=Ca)._=Ca,Fd._=Ca):pn._=Ca}).call(ja)})(Df,Df.exports);var Ko=Df.exports;const m5={chefInstructions:[],currentInstruction:null,availableItems:[]},ZS=yd({name:"chefActions",initialState:m5,reducers:{setChefInstructions:(e,t)=>t.payload,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=>Ko.isEqual(r,t.payload))&&(e.chefInstructions=e.chefInstructions.filter(r=>!Ko.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=>!Ko.isEqual(o,n)),e.chefInstructions.push(r)}},updateInstructionTime:(e,t)=>{const{instruction:n,time:r}=t.payload,o=e.chefInstructions.find(l=>Ko.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=>Ko.isEqual(r,t.payload));n===-1?e.availableItems.push(t.payload):e.availableItems.splice(n,1)},updateAvailableItems:(e,t)=>{e.availableItems.push(...t.payload)}}}),{setChefInstructions:v5,resetChefInstructions:g5,setCustomInstructionItem:y5,addChefInstruction:w5,removeChefInstruction:x5,updateChefInstructionItems:e2,updateInstructionTime:b5,updateInstructionAction:_5,updateInstructionNote:Rc,setAvailableItems:S5,updateAvailableItem:mg,updateAvailableItems:E5}=ZS.actions,C5=ZS.reducer;function k5(){const e=wn(),t=n=>{var o;const r=(o=n.target.files)==null?void 0:o[0];if(r){const l=new FileReader;l.onload=s=>{var p;const c=(p=s.target)==null?void 0:p.result,f=JSON.parse(c);e(l5(f.recipe)),e(r5(f.groups)),e(v5(f.actions))},l.onerror=s=>{console.error("FileReader error",s)},l.readAsText(r)}n.target.value=""};return C.jsx("div",{className:"relative",children:C.jsxs("button",{type:"button",className:"card-shadow rounded-xl text-black bg-red-300 hover:bg-white hover:text-red-300 focus:text-red-300 focus:bg-gray-200 px-4 py-1.5 font-indie",children:["Load file",C.jsx("input",{id:"load-state-input",type:"file",accept:"application/json",onChange:t,className:"absolute inset-0 opacity-0 m-0 p-0"})]})})}function N5(){const e=wn(),t=lt(d=>d.recipe.possibleItems),n=lt(d=>d.recipe.currentGroupName),r=lt(d=>d.recipe.currentItem),o=lt(d=>d.recipe.title),l=lt(d=>d.warning.warning),s=lt(d=>d.groups.ingredientsGroups),c=(d,m,v)=>{if(d.preventDefault(),!m)e(Hr("Enter a group name!"));else if(!v)e(Hr("Search an ingredient!"));else if(t.length===0)e(Hr("No items found!"));else if(t.length===1){const S=s.filter(E=>E.groupName===m)[0];if(S)if(S.items.filter(k=>k.itemName===t[0])[0])e(Hr("Ingredient is already in the group!"));else{const k={groupName:m,itemName:t[0]};e(Mm(k))}else{const E={groupName:m,itemName:t[0]};e(Mm(E))}}else e(Hr("Too many ingredients at once!"))},f=d=>{const m=d.currentTarget.value;e(u5(m)),e(c5(m))},p=()=>{e(XS()),e(KS())};return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"relative flex flex-col w-full h-1/4 center text-center",children:[C.jsx("h1",{className:"mt-4 text-fluidTitle font-shadowsLight",children:"Welcome to a4recipe"}),C.jsx("h3",{className:"pt-2 pb-2 text-fluidSubtitle",children:"Name your recipe and start adding ingredients!"}),C.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:d=>e(s5(d.target.value)),onKeyDown:d=>{d.key==="Enter"&&d.target.blur()},onFocus:Jc}),C.jsx("div",{className:"md:justify-between lg:justify-center gap-y-4",children:C.jsxs("form",{className:"pt-4 pb-2",children:[C.jsxs("div",{className:"flex flex-row center w-full mb-4 gap-4",children:[C.jsx("input",{type:"text",className:"input-border text-center w-96 lg:mr-8",placeholder:"Search ingredients",value:r,onInput:f,onFocus:Jc}),C.jsx("input",{type:"text",className:"input-border w-60",placeholder:"Give them a group name",value:n,onChange:d=>e(QS(d.target.value)),onFocus:Jc})]}),C.jsxs("div",{className:"flex flex-row justify-between",children:[C.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:p,children:"RESET"}),C.jsx(k5,{}),C.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:d=>c(d,n,r),children:"ADD"})]})]})})]}),l&&C.jsx(hg,{})]})}const R5="modulepreload",P5=function(e){return"/a4recipe/"+e},tx={},O5=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=P5(c),c in tx)return;tx[c]=!0;const f=c.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${p}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":R5,f||(d.as="script",d.crossOrigin=""),d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),f)return new Promise((m,v)=>{d.addEventListener("load",m),d.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 T5={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"]},A5={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"]},t2={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"]},n2={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"]},I5={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"]},wd=I5,D5={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"]},M5={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"]},L5={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"]},l8={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 nx(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 ve(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 kt.head.insertBefore(t,r),e}}var sM="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function eu(){for(var e=12,t="";e-- >0;)t+=sM[Math.random()*62|0];return t}function Nl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function bg(e){return e.classList?Nl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function h2(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function uM(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(h2(e[n]),'" ')},"").trim()}function xd(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function _g(e){return e.size!==ci.size||e.x!==ci.x||e.y!==ci.y||e.rotate!==ci.rotate||e.flipX||e.flipY}function cM(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)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:f,path:p}}function fM(e){var t=e.transform,n=e.width,r=n===void 0?jm:n,o=e.height,l=o===void 0?jm:o,s=e.startCentered,c=s===void 0?!1:s,f="";return c&&l2?f+="translate(".concat(t.x/to-r/2,"em, ").concat(t.y/to-l/2,"em) "):c?f+="translate(calc(-50% + ".concat(t.x/to,"em), calc(-50% + ").concat(t.y/to,"em)) "):f+="translate(".concat(t.x/to,"em, ").concat(t.y/to,"em) "),f+="scale(".concat(t.size/to*(t.flipX?-1:1),", ").concat(t.size/to*(t.flipY?-1:1),") "),f+="rotate(".concat(t.rotate,"deg) "),f}var dM=`:root, :host { +}`;var $e=l1(function(){return rt(x,be+"return "+ee).apply(n,P)});if($e.source=ee,Ap($e))throw $e;return $e}function I3(i){return ot(i).toLowerCase()}function D3(i){return ot(i).toUpperCase()}function L3(i,a,u){if(i=ot(i),i&&(u||a===n))return vy(i);if(!i||!(a=Jn(a)))return i;var h=Ar(i),g=Ar(a),x=gy(h,g),P=yy(h,g)+1;return Ji(h,x,P).join("")}function M3(i,a,u){if(i=ot(i),i&&(u||a===n))return i.slice(0,xy(i)+1);if(!i||!(a=Jn(a)))return i;var h=Ar(i),g=yy(h,Ar(a))+1;return Ji(h,0,g).join("")}function j3(i,a,u){if(i=ot(i),i&&(u||a===n))return i.replace(Pe,"");if(!i||!(a=Jn(a)))return i;var h=Ar(i),g=gy(h,Ar(a));return Ji(h,g).join("")}function F3(i,a){var u=q,h=te;if(At(a)){var g="separator"in a?a.separator:g;u="length"in a?Ue(a.length):u,h="omission"in a?Jn(a.omission):h}i=ot(i);var x=i.length;if(Sa(i)){var P=Ar(i);x=P.length}if(u>=x)return i;var T=u-Ea(h);if(T<1)return h;var M=P?Ji(P,0,T).join(""):i.slice(0,T);if(g===n)return M+h;if(P&&(T+=M.length-T),Ip(g)){if(i.slice(T).search(g)){var J,Z=M;for(g.global||(g=Vd(g.source,ot(hi.exec(g))+"g")),g.lastIndex=0;J=g.exec(Z);)var ee=J.index;M=M.slice(0,ee===n?T:ee)}}else if(i.indexOf(Jn(g),T)!=T){var ce=M.lastIndexOf(g);ce>-1&&(M=M.slice(0,ce))}return M+h}function z3(i){return i=ot(i),i&&Yt.test(i)?i.replace(Nt,hC):i}var U3=Ta(function(i,a,u){return i+(u?" ":"")+a.toUpperCase()}),Mp=s0("toUpperCase");function a1(i,a,u){return i=ot(i),a=u?n:a,a===n?uC(i)?gC(i):eC(i):i.match(a)||[]}var l1=We(function(i,a){try{return Xn(i,n,a)}catch(u){return Ap(u)?u:new Me(u)}}),$3=wi(function(i,a){return mr(a,function(u){u=oi(u),gi(i,u,Op(i[u],i))}),i});function B3(i){var a=i==null?0:i.length,u=ke();return i=a?Rt(i,function(h){if(typeof h[1]!="function")throw new vr(s);return[u(h[0]),h[1]]}):[],We(function(h){for(var g=-1;++gW)return[];var u=oe,h=bn(i,oe);a=ke(a),i-=oe;for(var g=Kd(h,a);++u0||a<0)?new qe(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),a!==n&&(a=Ue(a),u=a<0?u.dropRight(-a):u.take(a-i)),u)},qe.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},qe.prototype.toArray=function(){return this.take(oe)},ri(qe.prototype,function(i,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),g=w[h?"take"+(a=="last"?"Right":""):a],x=h||/^find/.test(a);g&&(w.prototype[a]=function(){var P=this.__wrapped__,T=h?[1]:arguments,M=P instanceof qe,J=T[0],Z=M||ze(P),ee=function(He){var Qe=g.apply(w,Ki([He],T));return h&&ce?Qe[0]:Qe};Z&&u&&typeof J=="function"&&J.length!=1&&(M=Z=!1);var ce=this.__chain__,be=!!this.__actions__.length,Oe=x&&!ce,$e=M&&!be;if(!x&&Z){P=$e?P:new qe(this);var Te=i.apply(P,T);return Te.__actions__.push({func:ec,args:[ee],thisArg:n}),new gr(Te,ce)}return Oe&&$e?i.apply(this,T):(Te=this.thru(ee),Oe?h?Te.value()[0]:Te.value():Te)})}),mr(["pop","push","shift","sort","splice","unshift"],function(i){var a=ku[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",h=/^(?:pop|shift)$/.test(i);w.prototype[i]=function(){var g=arguments;if(h&&!this.__chain__){var x=this.value();return a.apply(ze(x)?x:[],g)}return this[u](function(P){return a.apply(ze(P)?P:[],g)})}}),ri(qe.prototype,function(i,a){var u=w[a];if(u){var h=u.name+"";ut.call(Ra,h)||(Ra[h]=[]),Ra[h].push({name:a,func:u})}}),Ra[Yu(n,_).name]=[{name:"wrapper",func:n}],qe.prototype.clone=zC,qe.prototype.reverse=UC,qe.prototype.value=$C,w.prototype.at=vR,w.prototype.chain=gR,w.prototype.commit=yR,w.prototype.next=wR,w.prototype.plant=bR,w.prototype.reverse=_R,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=SR,w.prototype.first=w.prototype.head,Dl&&(w.prototype[Dl]=xR),w},Ca=yC();Io?((Io.exports=Ca)._=Ca,Fd._=Ca):pn._=Ca}).call(ja)})(Df,Df.exports);var Ko=Df.exports;const mD={chefInstructions:[],currentInstruction:null,availableItems:[]},ZS=yd({name:"chefActions",initialState:mD,reducers:{setChefInstructions:(e,t)=>t.payload,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=>Ko.isEqual(r,t.payload))&&(e.chefInstructions=e.chefInstructions.filter(r=>!Ko.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=>!Ko.isEqual(o,n)),e.chefInstructions.push(r)}},updateInstructionTime:(e,t)=>{const{instruction:n,time:r}=t.payload,o=e.chefInstructions.find(l=>Ko.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=>Ko.isEqual(r,t.payload));n===-1?e.availableItems.push(t.payload):e.availableItems.splice(n,1)},updateAvailableItems:(e,t)=>{e.availableItems.push(...t.payload)}}}),{setChefInstructions:vD,resetChefInstructions:gD,setCustomInstructionItem:yD,addChefInstruction:wD,removeChefInstruction:xD,updateChefInstructionItems:e2,updateInstructionTime:bD,updateInstructionAction:_D,updateInstructionNote:Rc,setAvailableItems:SD,updateAvailableItem:mg,updateAvailableItems:ED}=ZS.actions,CD=ZS.reducer;function kD(){const e=wn(),t=n=>{var o;const r=(o=n.target.files)==null?void 0:o[0];if(r){const l=new FileReader;l.onload=s=>{var p;const c=(p=s.target)==null?void 0:p.result,f=JSON.parse(c);e(lD(f.recipe)),e(rD(f.groups)),e(vD(f.actions))},l.onerror=s=>{console.error("FileReader error",s)},l.readAsText(r)}n.target.value=""};return E.jsx("div",{className:"relative",children:E.jsxs("button",{type:"button",className:"card-shadow rounded-xl text-black bg-red-300 hover:bg-white hover:text-red-300 focus:text-red-300 focus:bg-gray-200 px-4 py-1.5 font-indie",children:["Load file",E.jsx("input",{id:"load-state-input",type:"file",accept:"application/json",onChange:t,className:"absolute inset-0 opacity-0 m-0 p-0"})]})})}function ND(){const e=wn(),t=lt(d=>d.recipe.possibleItems),n=lt(d=>d.recipe.currentGroupName),r=lt(d=>d.recipe.currentItem),o=lt(d=>d.recipe.title),l=lt(d=>d.warning.warning),s=lt(d=>d.groups.ingredientsGroups),c=(d,m,v)=>{if(d.preventDefault(),!m)e(Hr("Enter a group name!"));else if(!v)e(Hr("Search an ingredient!"));else if(t.length===0)e(Hr("No items found!"));else if(t.length===1){const S=s.filter(C=>C.groupName===m)[0];if(S)if(S.items.filter(k=>k.itemName===t[0])[0])e(Hr("Ingredient is already in the group!"));else{const k={groupName:m,itemName:t[0]};e(Lm(k))}else{const C={groupName:m,itemName:t[0]};e(Lm(C))}}else e(Hr("Too many ingredients at once!"))},f=d=>{const m=d.currentTarget.value;e(uD(m)),e(cD(m))},p=()=>{e(XS()),e(KS())};return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"relative flex flex-col w-full h-1/4 center text-center",children:[E.jsx("h1",{className:"mt-4 text-fluidTitle font-shadowsLight",children:"Welcome to a4recipe"}),E.jsx("h3",{className:"pt-2 pb-2 text-fluidSubtitle",children:"Name your recipe and start adding ingredients!"}),E.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:d=>e(sD(d.target.value)),onKeyDown:d=>{d.key==="Enter"&&d.target.blur()},onFocus:Jc}),E.jsx("div",{className:"md:justify-between lg:justify-center gap-y-4",children:E.jsxs("form",{className:"pt-4 pb-2",children:[E.jsxs("div",{className:"flex flex-row center w-full mb-4 gap-4",children:[E.jsx("input",{type:"text",className:"input-border text-center w-96 lg:mr-8",placeholder:"Search ingredients",value:r,onInput:f,onFocus:Jc}),E.jsx("input",{type:"text",className:"input-border w-60",placeholder:"Give them a group name",value:n,onChange:d=>e(QS(d.target.value)),onFocus:Jc})]}),E.jsxs("div",{className:"flex flex-row justify-between",children:[E.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:p,children:"RESET"}),E.jsx(kD,{}),E.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:d=>c(d,n,r),children:"ADD"})]})]})})]}),l&&E.jsx(hg,{})]})}const RD="modulepreload",PD=function(e){return"/a4recipe/"+e},tx={},OD=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=PD(c),c in tx)return;tx[c]=!0;const f=c.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${p}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":RD,f||(d.as="script",d.crossOrigin=""),d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),f)return new Promise((m,v)=>{d.addEventListener("load",m),d.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 TD={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"]},AD={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"]},t2={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"]},n2={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"]},ID={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"]},wd=ID,DD={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"]},LD={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"]},MD={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"]},l8={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 nx(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 ve(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 kt.head.insertBefore(t,r),e}}var sL="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function eu(){for(var e=12,t="";e-- >0;)t+=sL[Math.random()*62|0];return t}function Nl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function bg(e){return e.classList?Nl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function h2(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function uL(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(h2(e[n]),'" ')},"").trim()}function xd(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function _g(e){return e.size!==ci.size||e.x!==ci.x||e.y!==ci.y||e.rotate!==ci.rotate||e.flipX||e.flipY}function cL(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)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:f,path:p}}function fL(e){var t=e.transform,n=e.width,r=n===void 0?jm:n,o=e.height,l=o===void 0?jm:o,s=e.startCentered,c=s===void 0?!1:s,f="";return c&&l2?f+="translate(".concat(t.x/to-r/2,"em, ").concat(t.y/to-l/2,"em) "):c?f+="translate(calc(-50% + ".concat(t.x/to,"em), calc(-50% + ").concat(t.y/to,"em)) "):f+="translate(".concat(t.x/to,"em, ").concat(t.y/to,"em) "),f+="scale(".concat(t.size/to*(t.flipX?-1:1),", ").concat(t.size/to*(t.flipY?-1:1),") "),f+="rotate(".concat(t.rotate,"deg) "),f}var dL=`: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"; @@ -858,10 +858,10 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); -}`;function m2(){var e=s2,t=u2,n=_e.cssPrefix,r=_e.replacementClass,o=dM;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 sx=!1;function bh(){_e.autoAddCss&&!sx&&(lM(m2()),sx=!0)}var pM={mixout:function(){return{dom:{css:m2,insertCss:bh}}},hooks:function(){return{beforeDOMElementCreation:function(){bh()},beforeI2svg:function(){bh()}}}},ji=Eo||{};ji[Li]||(ji[Li]={});ji[Li].styles||(ji[Li].styles={});ji[Li].hooks||(ji[Li].hooks={});ji[Li].shims||(ji[Li].shims=[]);var Gr=ji[Li],v2=[],hM=function e(){kt.removeEventListener("DOMContentLoaded",e),Lf=1,v2.map(function(t){return t()})},Lf=!1;Bi&&(Lf=(kt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(kt.readyState),Lf||kt.addEventListener("DOMContentLoaded",hM));function mM(e){Bi&&(Lf?setTimeout(e,0):v2.push(e))}function hu(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"?h2(e):"<".concat(t," ").concat(uM(r),">").concat(l.map(hu).join(""),"")}function ux(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var _h=function(t,n,r,o){var l=Object.keys(t),s=l.length,c=n,f,p,d;for(r===void 0?(f=1,d=t[l[0]]):(f=0,d=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 cx(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 Um(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,l=cx(t);typeof Gr.hooks.addPack=="function"&&!o?Gr.hooks.addPack(e,cx(t)):Gr.styles[e]=ve(ve({},Gr.styles[e]||{}),l),e==="fas"&&Um("fa",t)}var Mc,Lc,jc,Qa=Gr.styles,yM=Gr.shims,wM=(Mc={},on(Mc,Et,Object.values(Js[Et])),on(Mc,Ut,Object.values(Js[Ut])),Mc),Sg=null,g2={},y2={},w2={},x2={},b2={},xM=(Lc={},on(Lc,Et,Object.keys(Xs[Et])),on(Lc,Ut,Object.keys(Xs[Ut])),Lc);function bM(e){return~nM.indexOf(e)}function _M(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!bM(o)?o:null}var _2=function(){var t=function(l){return _h(Qa,function(s,c,f){return s[f]=_h(c,l,{}),s},{})};g2=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}),y2=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}),b2=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||_e.autoFetchSvg,r=_h(yM,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:{}});w2=r.names,x2=r.unicodes,Sg=bd(_e.styleDefault,{family:_e.familyDefault})};aM(function(e){Sg=bd(e.styleDefault,{family:_e.familyDefault})});_2();function Eg(e,t){return(g2[e]||{})[t]}function SM(e,t){return(y2[e]||{})[t]}function Zo(e,t){return(b2[e]||{})[t]}function S2(e){return w2[e]||{prefix:null,iconName:null}}function EM(e){var t=x2[e],n=Eg("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Co(){return Sg}var Cg=function(){return{prefix:null,iconName:null,rest:[]}};function bd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Et:n,o=Xs[r][e],l=Qs[r][e]||Qs[r][o],s=e in Gr.styles?e:null;return l||s||null}var fx=(jc={},on(jc,Et,Object.keys(Js[Et])),on(jc,Ut,Object.keys(Js[Ut])),jc);function _d(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,o=r===void 0?!1:r,l=(t={},on(t,Et,"".concat(_e.cssPrefix,"-").concat(Et)),on(t,Ut,"".concat(_e.cssPrefix,"-").concat(Ut)),t),s=null,c=Et;(e.includes(l[Et])||e.some(function(p){return fx[Et].includes(p)}))&&(c=Et),(e.includes(l[Ut])||e.some(function(p){return fx[Ut].includes(p)}))&&(c=Ut);var f=e.reduce(function(p,d){var m=_M(_e.cssPrefix,d);if(Qa[d]?(d=wM[c].includes(d)?X5[c][d]:d,s=d,p.prefix=d):xM[c].indexOf(d)>-1?(s=d,p.prefix=bd(d,{family:c})):m?p.iconName=m:d!==_e.replacementClass&&d!==l[Et]&&d!==l[Ut]&&p.rest.push(d),!o&&p.prefix&&p.iconName){var v=s==="fa"?S2(p.iconName):{},S=Zo(p.prefix,p.iconName);v.prefix&&(s=null),p.iconName=v.iconName||S||p.iconName,p.prefix=v.prefix||p.prefix,p.prefix==="far"&&!Qa.far&&Qa.fas&&!_e.autoFetchSvg&&(p.prefix="fas")}return p},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===Ut&&(Qa.fass||_e.autoFetchSvg)&&(f.prefix="fass",f.iconName=Zo(f.prefix,f.iconName)||f.iconName),(f.prefix==="fa"||s==="fa")&&(f.prefix=Co()||"fas"),f}var CM=function(){function e(){j5(this,e),this.definitions={}}return z5(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),l=0;l0&&d.forEach(function(m){typeof m=="string"&&(n[c][m]=p)}),n[c][f]=p}),n}}]),e}(),dx=[],Ja={},ll={},kM=Object.keys(ll);function NM(e,t){var n=t.mixoutsTo;return dx=e,Ja={},Object.keys(ll).forEach(function(r){kM.indexOf(r)===-1&&delete ll[r]}),dx.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(s){typeof o[s]=="function"&&(n[s]=o[s]),Mf(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){Ja[s]||(Ja[s]=[]),Ja[s].push(l[s])})}r.provides&&r.provides(ll)}),n}function $m(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 Bi?(fa("beforeI2svg",t),Fi("pseudoElements2svg",t),Fi("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;_e.autoReplaceSvg===!1&&(_e.autoReplaceSvg=!0),_e.observeMutations=!0,mM(function(){TM({autoReplaceSvgRoot:n}),fa("watch",t)})}},OM={icon:function(t){if(t===null)return null;if(Mf(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Zo(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=bd(t[0]);return{prefix:r,iconName:Zo(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(_e.cssPrefix,"-"))>-1||t.match(Q5))){var o=_d(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||Co(),iconName:Zo(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var l=Co();return{prefix:l,iconName:Zo(l,t)||t}}}},fr={noAuto:RM,config:_e,dom:PM,parse:OM,library:E2,findIconDefinition:Bm,toHtml:hu},TM=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?kt:n;(Object.keys(Gr.styles).length>0||_e.autoFetchSvg)&&Bi&&_e.autoReplaceSvg&&fr.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 hu(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Bi){var r=kt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function AM(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,l=e.styles,s=e.transform;if(_g(s)&&n.found&&!r.found){var c=n.width,f=n.height,p={x:c/f/2,y:.5};o.style=xd(ve(ve({},l),{},{"transform-origin":"".concat(p.x+s.x/16,"em ").concat(p.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function IM(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,l=e.symbol,s=l===!0?"".concat(t,"-").concat(_e.cssPrefix,"-").concat(n):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ve(ve({},o),{},{id:s}),children:r}]}]}function kg(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,p=e.maskId,d=e.titleId,m=e.extra,v=e.watchable,S=v===void 0?!1:v,E=r.found?r:n,k=E.width,A=E.height,_=o==="fak",b=[_e.replacementClass,l?"".concat(_e.cssPrefix,"-").concat(l):""].filter(function(F){return m.classes.indexOf(F)===-1}).filter(function(F){return F!==""||!!F}).concat(m.classes).join(" "),y={children:[],attributes:ve(ve({},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(k," ").concat(A)})},O=_&&!~m.classes.indexOf("fa-fw")?{width:"".concat(k/A*16*.0625,"em")}:{};S&&(y.attributes[ca]=""),f&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(d||eu())},children:[f]}),delete y.attributes.title);var I=ve(ve({},y),{},{prefix:o,iconName:l,main:n,mask:r,maskId:p,transform:s,symbol:c,styles:ve(ve({},O),m.styles)}),G=r.found&&n.found?Fi("generateAbstractMask",I)||{children:[],attributes:{}}:Fi("generateAbstractIcon",I)||{children:[],attributes:{}},N=G.children,$=G.attributes;return I.children=N,I.attributes=$,c?IM(I):AM(I)}function px(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,p=ve(ve(ve({},s.attributes),l?{title:l}:{}),{},{class:s.classes.join(" ")});f&&(p[ca]="");var d=ve({},s.styles);_g(o)&&(d.transform=fM({transform:o,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var m=xd(d);m.length>0&&(p.style=m);var v=[];return v.push({tag:"span",attributes:p,children:[t]}),l&&v.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),v}function DM(e){var t=e.content,n=e.title,r=e.extra,o=ve(ve(ve({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),l=xd(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=Gr.styles;function Wm(e){var t=e[0],n=e[1],r=e.slice(4),o=vg(r,1),l=o[0],s=null;return Array.isArray(l)?s={tag:"g",attributes:{class:"".concat(_e.cssPrefix,"-").concat(Jo.GROUP)},children:[{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(Jo.SECONDARY),fill:"currentColor",d:l[0]}},{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(Jo.PRIMARY),fill:"currentColor",d:l[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:l}},{found:!0,width:t,height:n,icon:s}}var MM={found:!1,width:512,height:512};function LM(e,t){!c2&&!_e.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Hm(e,t){var n=t;return t==="fa"&&_e.styleDefault!==null&&(t=Co()),new Promise(function(r,o){if(Fi("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(Wm(s))}LM(e,t),r(ve(ve({},MM),{},{icon:_e.showMissingIcons&&e?Fi("missingIconAbstract")||{}:{}}))})}var hx=function(){},Gm=_e.measurePerformance&&Pc&&Pc.mark&&Pc.measure?Pc:{mark:hx,measure:hx},fs='FA "6.5.2"',jM=function(t){return Gm.mark("".concat(fs," ").concat(t," begins")),function(){return C2(t)}},C2=function(t){Gm.mark("".concat(fs," ").concat(t," ends")),Gm.measure("".concat(fs," ").concat(t),"".concat(fs," ").concat(t," begins"),"".concat(fs," ").concat(t," ends"))},Ng={begin:jM,end:C2},Zc=function(){};function mx(e){var t=e.getAttribute?e.getAttribute(ca):null;return typeof t=="string"}function FM(e){var t=e.getAttribute?e.getAttribute(yg):null,n=e.getAttribute?e.getAttribute(wg):null;return t&&n}function zM(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(_e.replacementClass)}function UM(){if(_e.autoReplaceSvg===!0)return ef.replace;var e=ef[_e.autoReplaceSvg];return e||ef.replace}function $M(e){return kt.createElementNS("http://www.w3.org/2000/svg",e)}function BM(e){return kt.createElement(e)}function k2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?$M:BM:n;if(typeof e=="string")return kt.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(k2(s,{ceFn:r}))}),o}function WM(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var ef={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(k2(o),n)}),n.getAttribute(ca)===null&&_e.keepOriginalSource){var r=kt.createComment(WM(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~bg(n).indexOf(_e.replacementClass))return ef.replace(t);var o=new RegExp("".concat(_e.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var l=r[0].attributes.class.split(" ").reduce(function(c,f){return f===_e.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 hu(c)}).join(` -`);n.setAttribute(ca,""),n.innerHTML=s}};function vx(e){e()}function N2(e,t){var n=typeof t=="function"?t:Zc;if(e.length===0)n();else{var r=vx;_e.mutateApproach===q5&&(r=Eo.requestAnimationFrame||vx),r(function(){var o=UM(),l=Ng.begin("mutate");e.map(o),l(),n()})}}var Rg=!1;function R2(){Rg=!0}function Km(){Rg=!1}var jf=null;function gx(e){if(ax&&_e.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?kt:c;jf=new ax(function(p){if(!Rg){var d=Co();Nl(p).forEach(function(m){if(m.type==="childList"&&m.addedNodes.length>0&&!mx(m.addedNodes[0])&&(_e.searchPseudoElements&&s(m.target),n(m.target)),m.type==="attributes"&&m.target.parentNode&&_e.searchPseudoElements&&s(m.target.parentNode),m.type==="attributes"&&mx(m.target)&&~tM.indexOf(m.attributeName))if(m.attributeName==="class"&&FM(m.target)){var v=_d(bg(m.target)),S=v.prefix,E=v.iconName;m.target.setAttribute(yg,S||d),E&&m.target.setAttribute(wg,E)}else zM(m.target)&&o(m.target)})}}),Bi&&jf.observe(f,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function HM(){jf&&jf.disconnect()}function GM(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 KM(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=_d(bg(e));return o.prefix||(o.prefix=Co()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=SM(o.prefix,e.innerText)||Eg(o.prefix,zm(e.innerText))),!o.iconName&&_e.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function YM(e){var t=Nl(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 _e.autoA11y&&(n?t["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(r||eu()):(t["aria-hidden"]="true",t.focusable="false")),t}function qM(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ci,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function yx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=KM(e),r=n.iconName,o=n.prefix,l=n.rest,s=YM(e),c=$m("parseNodeAttributes",{},e),f=t.styleParser?GM(e):[];return ve({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:ci,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:l,styles:f,attributes:s}},c)}var VM=Gr.styles;function P2(e){var t=_e.autoReplaceSvg==="nest"?yx(e,{styleParser:!1}):yx(e);return~t.extra.classes.indexOf(f2)?Fi("generateLayersText",e,t):Fi("generateSvgReplacementMutation",e,t)}var ko=new Set;xg.map(function(e){ko.add("fa-".concat(e))});Object.keys(Xs[Et]).map(ko.add.bind(ko));Object.keys(Xs[Ut]).map(ko.add.bind(ko));ko=du(ko);function wx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Bi)return Promise.resolve();var n=kt.documentElement.classList,r=function(m){return n.add("".concat(lx,"-").concat(m))},o=function(m){return n.remove("".concat(lx,"-").concat(m))},l=_e.autoFetchSvg?ko:xg.map(function(d){return"fa-".concat(d)}).concat(Object.keys(VM));l.includes("fa")||l.push("fa");var s=[".".concat(f2,":not([").concat(ca,"])")].concat(l.map(function(d){return".".concat(d,":not([").concat(ca,"])")})).join(", ");if(s.length===0)return Promise.resolve();var c=[];try{c=Nl(e.querySelectorAll(s))}catch{}if(c.length>0)r("pending"),o("complete");else return Promise.resolve();var f=Ng.begin("onTree"),p=c.reduce(function(d,m){try{var v=P2(m);v&&d.push(v)}catch(S){c2||S.name==="MissingIcon"&&console.error(S)}return d},[]);return new Promise(function(d,m){Promise.all(p).then(function(v){N2(v,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),f(),d()})}).catch(function(v){f(),m(v)})})}function XM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;P2(e).then(function(n){n&&N2([n],t)})}function QM(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Bm(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:Bm(o||{})),e(r,ve(ve({},n),{},{mask:o}))}}var JM=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?ci:r,l=n.symbol,s=l===void 0?!1:l,c=n.mask,f=c===void 0?null:c,p=n.maskId,d=p===void 0?null:p,m=n.title,v=m===void 0?null:m,S=n.titleId,E=S===void 0?null:S,k=n.classes,A=k===void 0?[]:k,_=n.attributes,b=_===void 0?{}:_,y=n.styles,O=y===void 0?{}:y;if(t){var I=t.prefix,G=t.iconName,N=t.icon;return Sd(ve({type:"icon"},t),function(){return fa("beforeDOMElementCreation",{iconDefinition:t,params:n}),_e.autoA11y&&(v?b["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(E||eu()):(b["aria-hidden"]="true",b.focusable="false")),kg({icons:{main:Wm(N),mask:f?Wm(f.icon):{found:!1,width:null,height:null,icon:{}}},prefix:I,iconName:G,transform:ve(ve({},ci),o),symbol:s,title:v,maskId:d,titleId:E,extra:{attributes:b,styles:O,classes:A}})})}},ZM={mixout:function(){return{icon:QM(JM)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=wx,n.nodeCallback=XM,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?kt:r,l=n.callback,s=l===void 0?function(){}:l;return wx(o,s)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,l=r.title,s=r.titleId,c=r.prefix,f=r.transform,p=r.symbol,d=r.mask,m=r.maskId,v=r.extra;return new Promise(function(S,E){Promise.all([Hm(o,c),d.iconName?Hm(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(k){var A=vg(k,2),_=A[0],b=A[1];S([n,kg({icons:{main:_,mask:b},prefix:c,iconName:o,transform:f,symbol:p,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=xd(c);f.length>0&&(o.style=f);var p;return _g(s)&&(p=Fi("generateAbstractTransformGrouping",{main:l,transform:s,containerWidth:l.width,iconWidth:l.width})),r.push(p||l.icon),{children:r,attributes:o}}}},eL={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(){fa("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(_e.cssPrefix,"-layers")].concat(du(l)).join(" ")},children:s}]})}}}},tL={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,p=f===void 0?{}:f,d=r.styles,m=d===void 0?{}:d;return Sd({type:"counter",content:n},function(){return fa("beforeDOMElementCreation",{content:n,params:r}),DM({content:n.toString(),title:l,extra:{attributes:p,styles:m,classes:["".concat(_e.cssPrefix,"-layers-counter")].concat(du(c))}})})}}}},nL={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,l=o===void 0?ci:o,s=r.title,c=s===void 0?null:s,f=r.classes,p=f===void 0?[]:f,d=r.attributes,m=d===void 0?{}:d,v=r.styles,S=v===void 0?{}:v;return Sd({type:"text",content:n},function(){return fa("beforeDOMElementCreation",{content:n,params:r}),px({content:n,transform:ve(ve({},ci),l),title:c,extra:{attributes:m,styles:S,classes:["".concat(_e.cssPrefix,"-layers-text")].concat(du(p))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.title,l=r.transform,s=r.extra,c=null,f=null;if(l2){var p=parseInt(getComputedStyle(n).fontSize,10),d=n.getBoundingClientRect();c=d.width/p,f=d.height/p}return _e.autoA11y&&!o&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,px({content:n.innerHTML,width:c,height:f,transform:l,title:o,extra:s,watchable:!0})])}}},rL=new RegExp('"',"ug"),xx=[1105920,1112319];function iL(e){var t=e.replace(rL,""),n=gM(t,0),r=n>=xx[0]&&n<=xx[1],o=t.length===2?t[0]===t[1]:!1;return{value:zm(o?t[0]:t),isSecondary:r||o}}function bx(e,t){var n="".concat(Y5).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var l=Nl(e.children),s=l.filter(function(N){return N.getAttribute(Fm)===t})[0],c=Eo.getComputedStyle(e,t),f=c.getPropertyValue("font-family").match(J5),p=c.getPropertyValue("font-weight"),d=c.getPropertyValue("content");if(s&&!f)return e.removeChild(s),r();if(f&&d!=="none"&&d!==""){var m=c.getPropertyValue("content"),v=~["Sharp"].indexOf(f[2])?Ut:Et,S=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(f[2])?Qs[v][f[2].toLowerCase()]:Z5[v][p],E=iL(m),k=E.value,A=E.isSecondary,_=f[0].startsWith("FontAwesome"),b=Eg(S,k),y=b;if(_){var O=EM(k);O.iconName&&O.prefix&&(b=O.iconName,S=O.prefix)}if(b&&!A&&(!s||s.getAttribute(yg)!==S||s.getAttribute(wg)!==y)){e.setAttribute(n,y),s&&e.removeChild(s);var I=qM(),G=I.extra;G.attributes[Fm]=t,Hm(b,S).then(function(N){var $=kg(ve(ve({},I),{},{icons:{main:N,mask:Cg()},prefix:S,iconName:y,extra:G,watchable:!0})),F=kt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(F,e.firstChild):e.appendChild(F),F.outerHTML=$.map(function(q){return hu(q)}).join(` -`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function oL(e){return Promise.all([bx(e,"::before"),bx(e,"::after")])}function aL(e){return e.parentNode!==document.head&&!~V5.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Fm)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function _x(e){if(Bi)return new Promise(function(t,n){var r=Nl(e.querySelectorAll("*")).filter(aL).map(oL),o=Ng.begin("searchPseudoElements");R2(),Promise.all(r).then(function(){o(),Km(),t()}).catch(function(){o(),Km(),n()})})}var lL={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=_x,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?kt:r;_e.searchPseudoElements&&_x(o)}}},Sx=!1,sL={mixout:function(){return{dom:{unwatch:function(){R2(),Sx=!0}}}},hooks:function(){return{bootstrap:function(){gx($m("mutationObserverCallbacks",{}))},noAuto:function(){HM()},watch:function(n){var r=n.observeMutationsRoot;Sx?Km():gx($m("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Ex=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)},uL={mixout:function(){return{parse:{transform:function(n){return Ex(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=Ex(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,") "),p="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),d="rotate(".concat(o.rotate," 0 0)"),m={transform:"".concat(f," ").concat(p," ").concat(d)},v={transform:"translate(".concat(s/2*-1," -256)")},S={outer:c,inner:m,path:v};return{tag:"g",attributes:ve({},S.outer),children:[{tag:"g",attributes:ve({},S.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ve(ve({},r.icon.attributes),S.path)}]}]}}}},Eh={x:0,y:0,width:"100%",height:"100%"};function Cx(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 cL(e){return e.tag==="g"?e.children:[e]}var fL={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),l=o?_d(o.split(" ").map(function(s){return s.trim()})):Cg();return l.prefix||(l.prefix=Co()),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,p=l.width,d=l.icon,m=s.width,v=s.icon,S=cM({transform:f,containerWidth:m,iconWidth:p}),E={tag:"rect",attributes:ve(ve({},Eh),{},{fill:"white"})},k=d.children?{children:d.children.map(Cx)}:{},A={tag:"g",attributes:ve({},S.inner),children:[Cx(ve({tag:d.tag,attributes:ve(ve({},d.attributes),S.path)},k))]},_={tag:"g",attributes:ve({},S.outer),children:[A]},b="mask-".concat(c||eu()),y="clip-".concat(c||eu()),O={tag:"mask",attributes:ve(ve({},Eh),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,_]},I={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:cL(v)},O]};return r.push(I,{tag:"rect",attributes:ve({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},Eh)}),{children:r,attributes:o}}}},dL={provides:function(t){var n=!1;Eo.matchMedia&&(n=Eo.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:ve(ve({},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=ve(ve({},l),{},{attributeName:"opacity"}),c={tag:"circle",attributes:ve(ve({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||c.children.push({tag:"animate",attributes:ve(ve({},l),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ve(ve({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(c),r.push({tag:"path",attributes:ve(ve({},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:ve(ve({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ve(ve({},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:ve(ve({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},pL={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}}}},hL=[pM,ZM,eL,tL,nL,lL,sL,uL,fL,dL,pL];NM(hL,{mixoutsTo:fr});fr.noAuto;fr.config;fr.library;fr.dom;var Ym=fr.parse;fr.findIconDefinition;fr.toHtml;var mL=fr.icon;fr.layer;fr.text;fr.counter;var O2={exports:{}},vL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gL=vL,yL=gL;function T2(){}function A2(){}A2.resetWarningCache=T2;var wL=function(){function e(r,o,l,s,c,f){if(f!==yL){var p=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 p.name="Invariant Violation",p}}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:A2,resetWarningCache:T2};return n.PropTypes=n,n};O2.exports=wL();var Pg=O2.exports;const Ge=Vf(Pg);function kx(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 si(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function bL(e,t){if(e==null)return{};var n=xL(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 qm(e){return _L(e)||SL(e)||EL(e)||CL()}function _L(e){if(Array.isArray(e))return Vm(e)}function SL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EL(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 D2(e,f)}),o=Object.keys(t.attributes||{}).reduce(function(f,p){var d=t.attributes[p];switch(p){case"class":f.attrs.className=d,delete t.attributes.class;break;case"style":f.attrs.style=OL(d);break;default:p.indexOf("aria-")===0||p.indexOf("data-")===0?f.attrs[p.toLowerCase()]=d:f.attrs[I2(p)]=d}return f},{attrs:{}}),l=n.style,s=l===void 0?{}:l,c=bL(n,RL);return o.attrs.style=si(si({},o.attrs.style),s),e.apply(void 0,[t.tag,si(si({},o.attrs),c)].concat(qm(r)))}var M2=!1;try{M2=!0}catch{}function TL(){if(!M2&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Nx(e){if(e&&Ff(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Ym.icon)return Ym.icon(e);if(e===null)return null;if(e&&Ff(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?Za({},e,t):{}}var Rx={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},In=pt.forwardRef(function(e,t){var n=si(si({},Rx),e),r=n.icon,o=n.mask,l=n.symbol,s=n.className,c=n.title,f=n.titleId,p=n.maskId,d=Nx(r),m=Ch("classes",[].concat(qm(kL(n)),qm((s||"").split(" ")))),v=Ch("transform",typeof n.transform=="string"?Ym.transform(n.transform):n.transform),S=Ch("mask",Nx(o)),E=mL(d,si(si(si(si({},m),v),S),{},{symbol:l,title:c,titleId:f,maskId:p}));if(!E)return TL("Could not find icon",d),null;var k=E.abstract,A={ref:t};return Object.keys(n).forEach(function(_){Rx.hasOwnProperty(_)||(A[_]=n[_])}),AL(k[0],A)});In.displayName="FontAwesomeIcon";In.propTypes={beat:Ge.bool,border:Ge.bool,beatFade:Ge.bool,bounce:Ge.bool,className:Ge.string,fade:Ge.bool,flash:Ge.bool,mask:Ge.oneOfType([Ge.object,Ge.array,Ge.string]),maskId:Ge.string,fixedWidth:Ge.bool,inverse:Ge.bool,flip:Ge.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ge.oneOfType([Ge.object,Ge.array,Ge.string]),listItem:Ge.bool,pull:Ge.oneOf(["right","left"]),pulse:Ge.bool,rotation:Ge.oneOf([0,90,180,270]),shake:Ge.bool,size:Ge.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ge.bool,spinPulse:Ge.bool,spinReverse:Ge.bool,symbol:Ge.oneOfType([Ge.bool,Ge.string]),title:Ge.string,titleId:Ge.string,transform:Ge.oneOfType([Ge.string,Ge.object]),swapOpacity:Ge.bool};var AL=D2.bind(null,pt.createElement),Xm={exports:{}},da={},Qm={exports:{}},Zr={},Jm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;/*! +}`;function m2(){var e=s2,t=u2,n=_e.cssPrefix,r=_e.replacementClass,o=dL;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 sx=!1;function bh(){_e.autoAddCss&&!sx&&(lL(m2()),sx=!0)}var pL={mixout:function(){return{dom:{css:m2,insertCss:bh}}},hooks:function(){return{beforeDOMElementCreation:function(){bh()},beforeI2svg:function(){bh()}}}},ji=Eo||{};ji[Mi]||(ji[Mi]={});ji[Mi].styles||(ji[Mi].styles={});ji[Mi].hooks||(ji[Mi].hooks={});ji[Mi].shims||(ji[Mi].shims=[]);var Gr=ji[Mi],v2=[],hL=function e(){kt.removeEventListener("DOMContentLoaded",e),Mf=1,v2.map(function(t){return t()})},Mf=!1;Bi&&(Mf=(kt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(kt.readyState),Mf||kt.addEventListener("DOMContentLoaded",hL));function mL(e){Bi&&(Mf?setTimeout(e,0):v2.push(e))}function hu(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"?h2(e):"<".concat(t," ").concat(uL(r),">").concat(l.map(hu).join(""),"")}function ux(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var _h=function(t,n,r,o){var l=Object.keys(t),s=l.length,c=n,f,p,d;for(r===void 0?(f=1,d=t[l[0]]):(f=0,d=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 cx(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 Um(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,l=cx(t);typeof Gr.hooks.addPack=="function"&&!o?Gr.hooks.addPack(e,cx(t)):Gr.styles[e]=ve(ve({},Gr.styles[e]||{}),l),e==="fas"&&Um("fa",t)}var Lc,Mc,jc,Qa=Gr.styles,yL=Gr.shims,wL=(Lc={},on(Lc,Et,Object.values(Js[Et])),on(Lc,Ut,Object.values(Js[Ut])),Lc),Sg=null,g2={},y2={},w2={},x2={},b2={},xL=(Mc={},on(Mc,Et,Object.keys(Xs[Et])),on(Mc,Ut,Object.keys(Xs[Ut])),Mc);function bL(e){return~nL.indexOf(e)}function _L(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!bL(o)?o:null}var _2=function(){var t=function(l){return _h(Qa,function(s,c,f){return s[f]=_h(c,l,{}),s},{})};g2=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}),y2=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}),b2=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||_e.autoFetchSvg,r=_h(yL,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:{}});w2=r.names,x2=r.unicodes,Sg=bd(_e.styleDefault,{family:_e.familyDefault})};aL(function(e){Sg=bd(e.styleDefault,{family:_e.familyDefault})});_2();function Eg(e,t){return(g2[e]||{})[t]}function SL(e,t){return(y2[e]||{})[t]}function Zo(e,t){return(b2[e]||{})[t]}function S2(e){return w2[e]||{prefix:null,iconName:null}}function EL(e){var t=x2[e],n=Eg("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Co(){return Sg}var Cg=function(){return{prefix:null,iconName:null,rest:[]}};function bd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Et:n,o=Xs[r][e],l=Qs[r][e]||Qs[r][o],s=e in Gr.styles?e:null;return l||s||null}var fx=(jc={},on(jc,Et,Object.keys(Js[Et])),on(jc,Ut,Object.keys(Js[Ut])),jc);function _d(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,o=r===void 0?!1:r,l=(t={},on(t,Et,"".concat(_e.cssPrefix,"-").concat(Et)),on(t,Ut,"".concat(_e.cssPrefix,"-").concat(Ut)),t),s=null,c=Et;(e.includes(l[Et])||e.some(function(p){return fx[Et].includes(p)}))&&(c=Et),(e.includes(l[Ut])||e.some(function(p){return fx[Ut].includes(p)}))&&(c=Ut);var f=e.reduce(function(p,d){var m=_L(_e.cssPrefix,d);if(Qa[d]?(d=wL[c].includes(d)?XD[c][d]:d,s=d,p.prefix=d):xL[c].indexOf(d)>-1?(s=d,p.prefix=bd(d,{family:c})):m?p.iconName=m:d!==_e.replacementClass&&d!==l[Et]&&d!==l[Ut]&&p.rest.push(d),!o&&p.prefix&&p.iconName){var v=s==="fa"?S2(p.iconName):{},S=Zo(p.prefix,p.iconName);v.prefix&&(s=null),p.iconName=v.iconName||S||p.iconName,p.prefix=v.prefix||p.prefix,p.prefix==="far"&&!Qa.far&&Qa.fas&&!_e.autoFetchSvg&&(p.prefix="fas")}return p},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===Ut&&(Qa.fass||_e.autoFetchSvg)&&(f.prefix="fass",f.iconName=Zo(f.prefix,f.iconName)||f.iconName),(f.prefix==="fa"||s==="fa")&&(f.prefix=Co()||"fas"),f}var CL=function(){function e(){jD(this,e),this.definitions={}}return zD(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),l=0;l0&&d.forEach(function(m){typeof m=="string"&&(n[c][m]=p)}),n[c][f]=p}),n}}]),e}(),dx=[],Ja={},ll={},kL=Object.keys(ll);function NL(e,t){var n=t.mixoutsTo;return dx=e,Ja={},Object.keys(ll).forEach(function(r){kL.indexOf(r)===-1&&delete ll[r]}),dx.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(s){typeof o[s]=="function"&&(n[s]=o[s]),Lf(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){Ja[s]||(Ja[s]=[]),Ja[s].push(l[s])})}r.provides&&r.provides(ll)}),n}function $m(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 Bi?(fa("beforeI2svg",t),Fi("pseudoElements2svg",t),Fi("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;_e.autoReplaceSvg===!1&&(_e.autoReplaceSvg=!0),_e.observeMutations=!0,mL(function(){TL({autoReplaceSvgRoot:n}),fa("watch",t)})}},OL={icon:function(t){if(t===null)return null;if(Lf(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Zo(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=bd(t[0]);return{prefix:r,iconName:Zo(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(_e.cssPrefix,"-"))>-1||t.match(QD))){var o=_d(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||Co(),iconName:Zo(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var l=Co();return{prefix:l,iconName:Zo(l,t)||t}}}},fr={noAuto:RL,config:_e,dom:PL,parse:OL,library:E2,findIconDefinition:Bm,toHtml:hu},TL=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?kt:n;(Object.keys(Gr.styles).length>0||_e.autoFetchSvg)&&Bi&&_e.autoReplaceSvg&&fr.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 hu(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Bi){var r=kt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function AL(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,l=e.styles,s=e.transform;if(_g(s)&&n.found&&!r.found){var c=n.width,f=n.height,p={x:c/f/2,y:.5};o.style=xd(ve(ve({},l),{},{"transform-origin":"".concat(p.x+s.x/16,"em ").concat(p.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function IL(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,l=e.symbol,s=l===!0?"".concat(t,"-").concat(_e.cssPrefix,"-").concat(n):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ve(ve({},o),{},{id:s}),children:r}]}]}function kg(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,p=e.maskId,d=e.titleId,m=e.extra,v=e.watchable,S=v===void 0?!1:v,C=r.found?r:n,k=C.width,A=C.height,_=o==="fak",b=[_e.replacementClass,l?"".concat(_e.cssPrefix,"-").concat(l):""].filter(function(F){return m.classes.indexOf(F)===-1}).filter(function(F){return F!==""||!!F}).concat(m.classes).join(" "),y={children:[],attributes:ve(ve({},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(k," ").concat(A)})},O=_&&!~m.classes.indexOf("fa-fw")?{width:"".concat(k/A*16*.0625,"em")}:{};S&&(y.attributes[ca]=""),f&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(d||eu())},children:[f]}),delete y.attributes.title);var I=ve(ve({},y),{},{prefix:o,iconName:l,main:n,mask:r,maskId:p,transform:s,symbol:c,styles:ve(ve({},O),m.styles)}),G=r.found&&n.found?Fi("generateAbstractMask",I)||{children:[],attributes:{}}:Fi("generateAbstractIcon",I)||{children:[],attributes:{}},N=G.children,$=G.attributes;return I.children=N,I.attributes=$,c?IL(I):AL(I)}function px(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,p=ve(ve(ve({},s.attributes),l?{title:l}:{}),{},{class:s.classes.join(" ")});f&&(p[ca]="");var d=ve({},s.styles);_g(o)&&(d.transform=fL({transform:o,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var m=xd(d);m.length>0&&(p.style=m);var v=[];return v.push({tag:"span",attributes:p,children:[t]}),l&&v.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),v}function DL(e){var t=e.content,n=e.title,r=e.extra,o=ve(ve(ve({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),l=xd(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=Gr.styles;function Wm(e){var t=e[0],n=e[1],r=e.slice(4),o=vg(r,1),l=o[0],s=null;return Array.isArray(l)?s={tag:"g",attributes:{class:"".concat(_e.cssPrefix,"-").concat(Jo.GROUP)},children:[{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(Jo.SECONDARY),fill:"currentColor",d:l[0]}},{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(Jo.PRIMARY),fill:"currentColor",d:l[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:l}},{found:!0,width:t,height:n,icon:s}}var LL={found:!1,width:512,height:512};function ML(e,t){!c2&&!_e.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Hm(e,t){var n=t;return t==="fa"&&_e.styleDefault!==null&&(t=Co()),new Promise(function(r,o){if(Fi("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(Wm(s))}ML(e,t),r(ve(ve({},LL),{},{icon:_e.showMissingIcons&&e?Fi("missingIconAbstract")||{}:{}}))})}var hx=function(){},Gm=_e.measurePerformance&&Pc&&Pc.mark&&Pc.measure?Pc:{mark:hx,measure:hx},fs='FA "6.5.2"',jL=function(t){return Gm.mark("".concat(fs," ").concat(t," begins")),function(){return C2(t)}},C2=function(t){Gm.mark("".concat(fs," ").concat(t," ends")),Gm.measure("".concat(fs," ").concat(t),"".concat(fs," ").concat(t," begins"),"".concat(fs," ").concat(t," ends"))},Ng={begin:jL,end:C2},Zc=function(){};function mx(e){var t=e.getAttribute?e.getAttribute(ca):null;return typeof t=="string"}function FL(e){var t=e.getAttribute?e.getAttribute(yg):null,n=e.getAttribute?e.getAttribute(wg):null;return t&&n}function zL(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(_e.replacementClass)}function UL(){if(_e.autoReplaceSvg===!0)return ef.replace;var e=ef[_e.autoReplaceSvg];return e||ef.replace}function $L(e){return kt.createElementNS("http://www.w3.org/2000/svg",e)}function BL(e){return kt.createElement(e)}function k2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?$L:BL:n;if(typeof e=="string")return kt.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(k2(s,{ceFn:r}))}),o}function WL(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var ef={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(k2(o),n)}),n.getAttribute(ca)===null&&_e.keepOriginalSource){var r=kt.createComment(WL(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~bg(n).indexOf(_e.replacementClass))return ef.replace(t);var o=new RegExp("".concat(_e.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var l=r[0].attributes.class.split(" ").reduce(function(c,f){return f===_e.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 hu(c)}).join(` +`);n.setAttribute(ca,""),n.innerHTML=s}};function vx(e){e()}function N2(e,t){var n=typeof t=="function"?t:Zc;if(e.length===0)n();else{var r=vx;_e.mutateApproach===qD&&(r=Eo.requestAnimationFrame||vx),r(function(){var o=UL(),l=Ng.begin("mutate");e.map(o),l(),n()})}}var Rg=!1;function R2(){Rg=!0}function Km(){Rg=!1}var jf=null;function gx(e){if(ax&&_e.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?kt:c;jf=new ax(function(p){if(!Rg){var d=Co();Nl(p).forEach(function(m){if(m.type==="childList"&&m.addedNodes.length>0&&!mx(m.addedNodes[0])&&(_e.searchPseudoElements&&s(m.target),n(m.target)),m.type==="attributes"&&m.target.parentNode&&_e.searchPseudoElements&&s(m.target.parentNode),m.type==="attributes"&&mx(m.target)&&~tL.indexOf(m.attributeName))if(m.attributeName==="class"&&FL(m.target)){var v=_d(bg(m.target)),S=v.prefix,C=v.iconName;m.target.setAttribute(yg,S||d),C&&m.target.setAttribute(wg,C)}else zL(m.target)&&o(m.target)})}}),Bi&&jf.observe(f,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function HL(){jf&&jf.disconnect()}function GL(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 KL(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=_d(bg(e));return o.prefix||(o.prefix=Co()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=SL(o.prefix,e.innerText)||Eg(o.prefix,zm(e.innerText))),!o.iconName&&_e.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function YL(e){var t=Nl(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 _e.autoA11y&&(n?t["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(r||eu()):(t["aria-hidden"]="true",t.focusable="false")),t}function qL(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ci,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function yx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=KL(e),r=n.iconName,o=n.prefix,l=n.rest,s=YL(e),c=$m("parseNodeAttributes",{},e),f=t.styleParser?GL(e):[];return ve({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:ci,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:l,styles:f,attributes:s}},c)}var VL=Gr.styles;function P2(e){var t=_e.autoReplaceSvg==="nest"?yx(e,{styleParser:!1}):yx(e);return~t.extra.classes.indexOf(f2)?Fi("generateLayersText",e,t):Fi("generateSvgReplacementMutation",e,t)}var ko=new Set;xg.map(function(e){ko.add("fa-".concat(e))});Object.keys(Xs[Et]).map(ko.add.bind(ko));Object.keys(Xs[Ut]).map(ko.add.bind(ko));ko=du(ko);function wx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Bi)return Promise.resolve();var n=kt.documentElement.classList,r=function(m){return n.add("".concat(lx,"-").concat(m))},o=function(m){return n.remove("".concat(lx,"-").concat(m))},l=_e.autoFetchSvg?ko:xg.map(function(d){return"fa-".concat(d)}).concat(Object.keys(VL));l.includes("fa")||l.push("fa");var s=[".".concat(f2,":not([").concat(ca,"])")].concat(l.map(function(d){return".".concat(d,":not([").concat(ca,"])")})).join(", ");if(s.length===0)return Promise.resolve();var c=[];try{c=Nl(e.querySelectorAll(s))}catch{}if(c.length>0)r("pending"),o("complete");else return Promise.resolve();var f=Ng.begin("onTree"),p=c.reduce(function(d,m){try{var v=P2(m);v&&d.push(v)}catch(S){c2||S.name==="MissingIcon"&&console.error(S)}return d},[]);return new Promise(function(d,m){Promise.all(p).then(function(v){N2(v,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),f(),d()})}).catch(function(v){f(),m(v)})})}function XL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;P2(e).then(function(n){n&&N2([n],t)})}function QL(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Bm(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:Bm(o||{})),e(r,ve(ve({},n),{},{mask:o}))}}var JL=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?ci:r,l=n.symbol,s=l===void 0?!1:l,c=n.mask,f=c===void 0?null:c,p=n.maskId,d=p===void 0?null:p,m=n.title,v=m===void 0?null:m,S=n.titleId,C=S===void 0?null:S,k=n.classes,A=k===void 0?[]:k,_=n.attributes,b=_===void 0?{}:_,y=n.styles,O=y===void 0?{}:y;if(t){var I=t.prefix,G=t.iconName,N=t.icon;return Sd(ve({type:"icon"},t),function(){return fa("beforeDOMElementCreation",{iconDefinition:t,params:n}),_e.autoA11y&&(v?b["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(C||eu()):(b["aria-hidden"]="true",b.focusable="false")),kg({icons:{main:Wm(N),mask:f?Wm(f.icon):{found:!1,width:null,height:null,icon:{}}},prefix:I,iconName:G,transform:ve(ve({},ci),o),symbol:s,title:v,maskId:d,titleId:C,extra:{attributes:b,styles:O,classes:A}})})}},ZL={mixout:function(){return{icon:QL(JL)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=wx,n.nodeCallback=XL,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?kt:r,l=n.callback,s=l===void 0?function(){}:l;return wx(o,s)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,l=r.title,s=r.titleId,c=r.prefix,f=r.transform,p=r.symbol,d=r.mask,m=r.maskId,v=r.extra;return new Promise(function(S,C){Promise.all([Hm(o,c),d.iconName?Hm(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(k){var A=vg(k,2),_=A[0],b=A[1];S([n,kg({icons:{main:_,mask:b},prefix:c,iconName:o,transform:f,symbol:p,maskId:m,title:l,titleId:s,extra:v,watchable:!0})])}).catch(C)})},t.generateAbstractIcon=function(n){var r=n.children,o=n.attributes,l=n.main,s=n.transform,c=n.styles,f=xd(c);f.length>0&&(o.style=f);var p;return _g(s)&&(p=Fi("generateAbstractTransformGrouping",{main:l,transform:s,containerWidth:l.width,iconWidth:l.width})),r.push(p||l.icon),{children:r,attributes:o}}}},eM={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(){fa("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(_e.cssPrefix,"-layers")].concat(du(l)).join(" ")},children:s}]})}}}},tM={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,p=f===void 0?{}:f,d=r.styles,m=d===void 0?{}:d;return Sd({type:"counter",content:n},function(){return fa("beforeDOMElementCreation",{content:n,params:r}),DL({content:n.toString(),title:l,extra:{attributes:p,styles:m,classes:["".concat(_e.cssPrefix,"-layers-counter")].concat(du(c))}})})}}}},nM={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,l=o===void 0?ci:o,s=r.title,c=s===void 0?null:s,f=r.classes,p=f===void 0?[]:f,d=r.attributes,m=d===void 0?{}:d,v=r.styles,S=v===void 0?{}:v;return Sd({type:"text",content:n},function(){return fa("beforeDOMElementCreation",{content:n,params:r}),px({content:n,transform:ve(ve({},ci),l),title:c,extra:{attributes:m,styles:S,classes:["".concat(_e.cssPrefix,"-layers-text")].concat(du(p))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.title,l=r.transform,s=r.extra,c=null,f=null;if(l2){var p=parseInt(getComputedStyle(n).fontSize,10),d=n.getBoundingClientRect();c=d.width/p,f=d.height/p}return _e.autoA11y&&!o&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,px({content:n.innerHTML,width:c,height:f,transform:l,title:o,extra:s,watchable:!0})])}}},rM=new RegExp('"',"ug"),xx=[1105920,1112319];function iM(e){var t=e.replace(rM,""),n=gL(t,0),r=n>=xx[0]&&n<=xx[1],o=t.length===2?t[0]===t[1]:!1;return{value:zm(o?t[0]:t),isSecondary:r||o}}function bx(e,t){var n="".concat(YD).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var l=Nl(e.children),s=l.filter(function(N){return N.getAttribute(Fm)===t})[0],c=Eo.getComputedStyle(e,t),f=c.getPropertyValue("font-family").match(JD),p=c.getPropertyValue("font-weight"),d=c.getPropertyValue("content");if(s&&!f)return e.removeChild(s),r();if(f&&d!=="none"&&d!==""){var m=c.getPropertyValue("content"),v=~["Sharp"].indexOf(f[2])?Ut:Et,S=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(f[2])?Qs[v][f[2].toLowerCase()]:ZD[v][p],C=iM(m),k=C.value,A=C.isSecondary,_=f[0].startsWith("FontAwesome"),b=Eg(S,k),y=b;if(_){var O=EL(k);O.iconName&&O.prefix&&(b=O.iconName,S=O.prefix)}if(b&&!A&&(!s||s.getAttribute(yg)!==S||s.getAttribute(wg)!==y)){e.setAttribute(n,y),s&&e.removeChild(s);var I=qL(),G=I.extra;G.attributes[Fm]=t,Hm(b,S).then(function(N){var $=kg(ve(ve({},I),{},{icons:{main:N,mask:Cg()},prefix:S,iconName:y,extra:G,watchable:!0})),F=kt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(F,e.firstChild):e.appendChild(F),F.outerHTML=$.map(function(q){return hu(q)}).join(` +`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function oM(e){return Promise.all([bx(e,"::before"),bx(e,"::after")])}function aM(e){return e.parentNode!==document.head&&!~VD.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Fm)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function _x(e){if(Bi)return new Promise(function(t,n){var r=Nl(e.querySelectorAll("*")).filter(aM).map(oM),o=Ng.begin("searchPseudoElements");R2(),Promise.all(r).then(function(){o(),Km(),t()}).catch(function(){o(),Km(),n()})})}var lM={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=_x,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?kt:r;_e.searchPseudoElements&&_x(o)}}},Sx=!1,sM={mixout:function(){return{dom:{unwatch:function(){R2(),Sx=!0}}}},hooks:function(){return{bootstrap:function(){gx($m("mutationObserverCallbacks",{}))},noAuto:function(){HL()},watch:function(n){var r=n.observeMutationsRoot;Sx?Km():gx($m("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Ex=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)},uM={mixout:function(){return{parse:{transform:function(n){return Ex(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=Ex(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,") "),p="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),d="rotate(".concat(o.rotate," 0 0)"),m={transform:"".concat(f," ").concat(p," ").concat(d)},v={transform:"translate(".concat(s/2*-1," -256)")},S={outer:c,inner:m,path:v};return{tag:"g",attributes:ve({},S.outer),children:[{tag:"g",attributes:ve({},S.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ve(ve({},r.icon.attributes),S.path)}]}]}}}},Eh={x:0,y:0,width:"100%",height:"100%"};function Cx(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 cM(e){return e.tag==="g"?e.children:[e]}var fM={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),l=o?_d(o.split(" ").map(function(s){return s.trim()})):Cg();return l.prefix||(l.prefix=Co()),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,p=l.width,d=l.icon,m=s.width,v=s.icon,S=cL({transform:f,containerWidth:m,iconWidth:p}),C={tag:"rect",attributes:ve(ve({},Eh),{},{fill:"white"})},k=d.children?{children:d.children.map(Cx)}:{},A={tag:"g",attributes:ve({},S.inner),children:[Cx(ve({tag:d.tag,attributes:ve(ve({},d.attributes),S.path)},k))]},_={tag:"g",attributes:ve({},S.outer),children:[A]},b="mask-".concat(c||eu()),y="clip-".concat(c||eu()),O={tag:"mask",attributes:ve(ve({},Eh),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[C,_]},I={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:cM(v)},O]};return r.push(I,{tag:"rect",attributes:ve({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},Eh)}),{children:r,attributes:o}}}},dM={provides:function(t){var n=!1;Eo.matchMedia&&(n=Eo.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:ve(ve({},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=ve(ve({},l),{},{attributeName:"opacity"}),c={tag:"circle",attributes:ve(ve({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||c.children.push({tag:"animate",attributes:ve(ve({},l),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ve(ve({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(c),r.push({tag:"path",attributes:ve(ve({},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:ve(ve({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ve(ve({},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:ve(ve({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},pM={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}}}},hM=[pL,ZL,eM,tM,nM,lM,sM,uM,fM,dM,pM];NL(hM,{mixoutsTo:fr});fr.noAuto;fr.config;fr.library;fr.dom;var Ym=fr.parse;fr.findIconDefinition;fr.toHtml;var mM=fr.icon;fr.layer;fr.text;fr.counter;var O2={exports:{}},vM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gM=vM,yM=gM;function T2(){}function A2(){}A2.resetWarningCache=T2;var wM=function(){function e(r,o,l,s,c,f){if(f!==yM){var p=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 p.name="Invariant Violation",p}}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:A2,resetWarningCache:T2};return n.PropTypes=n,n};O2.exports=wM();var Pg=O2.exports;const Ge=Vf(Pg);function kx(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 si(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function bM(e,t){if(e==null)return{};var n=xM(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 qm(e){return _M(e)||SM(e)||EM(e)||CM()}function _M(e){if(Array.isArray(e))return Vm(e)}function SM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EM(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 D2(e,f)}),o=Object.keys(t.attributes||{}).reduce(function(f,p){var d=t.attributes[p];switch(p){case"class":f.attrs.className=d,delete t.attributes.class;break;case"style":f.attrs.style=OM(d);break;default:p.indexOf("aria-")===0||p.indexOf("data-")===0?f.attrs[p.toLowerCase()]=d:f.attrs[I2(p)]=d}return f},{attrs:{}}),l=n.style,s=l===void 0?{}:l,c=bM(n,RM);return o.attrs.style=si(si({},o.attrs.style),s),e.apply(void 0,[t.tag,si(si({},o.attrs),c)].concat(qm(r)))}var L2=!1;try{L2=!0}catch{}function TM(){if(!L2&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Nx(e){if(e&&Ff(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Ym.icon)return Ym.icon(e);if(e===null)return null;if(e&&Ff(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?Za({},e,t):{}}var Rx={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},In=pt.forwardRef(function(e,t){var n=si(si({},Rx),e),r=n.icon,o=n.mask,l=n.symbol,s=n.className,c=n.title,f=n.titleId,p=n.maskId,d=Nx(r),m=Ch("classes",[].concat(qm(kM(n)),qm((s||"").split(" ")))),v=Ch("transform",typeof n.transform=="string"?Ym.transform(n.transform):n.transform),S=Ch("mask",Nx(o)),C=mM(d,si(si(si(si({},m),v),S),{},{symbol:l,title:c,titleId:f,maskId:p}));if(!C)return TM("Could not find icon",d),null;var k=C.abstract,A={ref:t};return Object.keys(n).forEach(function(_){Rx.hasOwnProperty(_)||(A[_]=n[_])}),AM(k[0],A)});In.displayName="FontAwesomeIcon";In.propTypes={beat:Ge.bool,border:Ge.bool,beatFade:Ge.bool,bounce:Ge.bool,className:Ge.string,fade:Ge.bool,flash:Ge.bool,mask:Ge.oneOfType([Ge.object,Ge.array,Ge.string]),maskId:Ge.string,fixedWidth:Ge.bool,inverse:Ge.bool,flip:Ge.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ge.oneOfType([Ge.object,Ge.array,Ge.string]),listItem:Ge.bool,pull:Ge.oneOf(["right","left"]),pulse:Ge.bool,rotation:Ge.oneOf([0,90,180,270]),shake:Ge.bool,size:Ge.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ge.bool,spinPulse:Ge.bool,spinReverse:Ge.bool,symbol:Ge.oneOfType([Ge.bool,Ge.string]),title:Ge.string,titleId:Ge.string,transform:Ge.oneOfType([Ge.string,Ge.object]),swapOpacity:Ge.bool};var AM=D2.bind(null,pt.createElement),Xm={exports:{}},da={},Qm={exports:{}},Zr={},Jm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;/*! * Adapted from jQuery UI core * * http://jqueryui.com @@ -871,11 +871,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * 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 p(m){var v=m.getAttribute("tabindex");v===null&&(v=void 0);var S=isNaN(v);return(S||v>=0)&&f(m,!S)}function d(m){var v=[].slice.call(m.querySelectorAll("*"),0).reduce(function(S,E){return S.concat(E.shadowRoot?d(E.shadowRoot):[E])},[]);return v.filter(p)}e.exports=t.default})(Jm,Jm.exports);var L2=Jm.exports;Object.defineProperty(Zr,"__esModule",{value:!0});Zr.resetState=LL;Zr.log=jL;Zr.handleBlur=tu;Zr.handleFocus=nu;Zr.markForFocusLater=FL;Zr.returnFocus=zL;Zr.popWithoutFocus=UL;Zr.setupScopedFocus=$L;Zr.teardownScopedFocus=BL;var IL=L2,DL=ML(IL);function ML(e){return e&&e.__esModule?e:{default:e}}var bl=[],el=null,Zm=!1;function LL(){bl=[]}function jL(){}function tu(){Zm=!0}function nu(){if(Zm){if(Zm=!1,!el)return;setTimeout(function(){if(!el.contains(document.activeElement)){var e=(0,DL.default)(el)[0]||el;e.focus()}},0)}}function FL(){bl.push(document.activeElement)}function zL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{bl.length!==0&&(t=bl.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 UL(){bl.length>0&&bl.pop()}function $L(e){el=e,window.addEventListener?(window.addEventListener("blur",tu,!1),document.addEventListener("focus",nu,!0)):(window.attachEvent("onBlur",tu),document.attachEvent("onFocus",nu))}function BL(){el=null,window.addEventListener?(window.removeEventListener("blur",tu),document.removeEventListener("focus",nu)):(window.detachEvent("onBlur",tu),document.detachEvent("onFocus",nu))}var ev={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 p=(0,r.default)(c);if(!p.length){f.preventDefault();return}var d=void 0,m=f.shiftKey,v=p[0],S=p[p.length-1],E=l();if(c===E){if(!m)return;d=S}if(S===E&&!m&&(d=v),v===E&&m&&(d=S),d){f.preventDefault(),d.focus();return}var k=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),A=k!=null&&k[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(A){var _=p.indexOf(E);if(_>-1&&(_+=m?-1:1),d=p[_],typeof d>"u"){f.preventDefault(),d=m?S:v,d.focus();return}f.preventDefault(),d.focus()}}e.exports=t.default})(ev,ev.exports);var WL=ev.exports,ei={},HL=function(){},GL=HL,qr={},j2={exports:{}};/*! + */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),C=S.getPropertyValue("display");return v?C!==r&&l(m,S):C===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(),C=o.test(S)&&!m.disabled||S==="a"&&m.href||v;return C&&c(m)}function p(m){var v=m.getAttribute("tabindex");v===null&&(v=void 0);var S=isNaN(v);return(S||v>=0)&&f(m,!S)}function d(m){var v=[].slice.call(m.querySelectorAll("*"),0).reduce(function(S,C){return S.concat(C.shadowRoot?d(C.shadowRoot):[C])},[]);return v.filter(p)}e.exports=t.default})(Jm,Jm.exports);var M2=Jm.exports;Object.defineProperty(Zr,"__esModule",{value:!0});Zr.resetState=MM;Zr.log=jM;Zr.handleBlur=tu;Zr.handleFocus=nu;Zr.markForFocusLater=FM;Zr.returnFocus=zM;Zr.popWithoutFocus=UM;Zr.setupScopedFocus=$M;Zr.teardownScopedFocus=BM;var IM=M2,DM=LM(IM);function LM(e){return e&&e.__esModule?e:{default:e}}var bl=[],el=null,Zm=!1;function MM(){bl=[]}function jM(){}function tu(){Zm=!0}function nu(){if(Zm){if(Zm=!1,!el)return;setTimeout(function(){if(!el.contains(document.activeElement)){var e=(0,DM.default)(el)[0]||el;e.focus()}},0)}}function FM(){bl.push(document.activeElement)}function zM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{bl.length!==0&&(t=bl.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 UM(){bl.length>0&&bl.pop()}function $M(e){el=e,window.addEventListener?(window.addEventListener("blur",tu,!1),document.addEventListener("focus",nu,!0)):(window.attachEvent("onBlur",tu),document.attachEvent("onFocus",nu))}function BM(){el=null,window.addEventListener?(window.removeEventListener("blur",tu),document.removeEventListener("focus",nu)):(window.detachEvent("onBlur",tu),document.detachEvent("onFocus",nu))}var ev={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=M2,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 p=(0,r.default)(c);if(!p.length){f.preventDefault();return}var d=void 0,m=f.shiftKey,v=p[0],S=p[p.length-1],C=l();if(c===C){if(!m)return;d=S}if(S===C&&!m&&(d=v),v===C&&m&&(d=S),d){f.preventDefault(),d.focus();return}var k=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),A=k!=null&&k[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(A){var _=p.indexOf(C);if(_>-1&&(_+=m?-1:1),d=p[_],typeof d>"u"){f.preventDefault(),d=m?S:v,d.focus();return}f.preventDefault(),d.focus()}}e.exports=t.default})(ev,ev.exports);var WM=ev.exports,ei={},HM=function(){},GM=HM,qr={},j2={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})()})(j2);var KL=j2.exports;Object.defineProperty(qr,"__esModule",{value:!0});qr.canUseDOM=qr.SafeNodeList=qr.SafeHTMLCollection=void 0;var YL=KL,qL=VL(YL);function VL(e){return e&&e.__esModule?e:{default:e}}var Ed=qL.default,XL=Ed.canUseDOM?window.HTMLElement:{};qr.SafeHTMLCollection=Ed.canUseDOM?window.HTMLCollection:{};qr.SafeNodeList=Ed.canUseDOM?window.NodeList:{};qr.canUseDOM=Ed.canUseDOM;qr.default=XL;Object.defineProperty(ei,"__esModule",{value:!0});ei.resetState=t6;ei.log=n6;ei.assertNodeList=F2;ei.setElement=r6;ei.validateElement=Og;ei.hide=i6;ei.show=o6;ei.documentNotReadyOrSSRTesting=a6;var QL=GL,JL=e6(QL),ZL=qr;function e6(e){return e&&e.__esModule?e:{default:e}}var Sr=null;function t6(){Sr&&(Sr.removeAttribute?Sr.removeAttribute("aria-hidden"):Sr.length!=null?Sr.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Sr).forEach(function(e){return e.removeAttribute("aria-hidden")})),Sr=null}function n6(){}function F2(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function r6(e){var t=e;if(typeof t=="string"&&ZL.canUseDOM){var n=document.querySelectorAll(t);F2(n,t),t=n}return Sr=t||Sr,Sr}function Og(e){var t=e||Sr;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,JL.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 i6(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 o6(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 a6(){Sr=null}var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.resetState=l6;Rl.log=s6;var Es={},Cs={};function Px(e,t){e.classList.remove(t)}function l6(){var e=document.getElementsByTagName("html")[0];for(var t in Es)Px(e,Es[t]);var n=document.body;for(var r in Cs)Px(n,Cs[r]);Es={},Cs={}}function s6(){}var u6=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},c6=function(t,n){return t[n]&&(t[n]-=1),n},f6=function(t,n,r){r.forEach(function(o){u6(n,o),t.add(o)})},d6=function(t,n,r){r.forEach(function(o){c6(n,o),n[o]===0&&t.remove(o)})};Rl.add=function(t,n){return f6(t.classList,t.nodeName.toLowerCase()=="html"?Es:Cs,n.split(" "))};Rl.remove=function(t,n){return d6(t.classList,t.nodeName.toLowerCase()=="html"?Es:Cs,n.split(" "))};var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0});Pl.log=h6;Pl.resetState=m6;function p6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var z2=function e(){var t=this;p6(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=[]},zf=new z2;function h6(){console.log("portalOpenInstances ----------"),console.log(zf.openInstances.length),zf.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function m6(){zf=new z2}Pl.default=zf;var Tg={};Object.defineProperty(Tg,"__esModule",{value:!0});Tg.resetState=w6;Tg.log=x6;var v6=Pl,g6=y6(v6);function y6(e){return e&&e.__esModule?e:{default:e}}var Cn=void 0,Fr=void 0,na=[];function w6(){for(var e=[Cn,Fr],t=0;t0?(document.body.firstChild!==Cn&&document.body.insertBefore(Cn,document.body.firstChild),document.body.lastChild!==Fr&&document.body.appendChild(Fr)):(Cn.parentElement&&Cn.parentElement.removeChild(Cn),Fr.parentElement&&Fr.parentElement.removeChild(Fr))}g6.default.subscribe(b6);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(ie){for(var le=1;le0&&(we-=1,we===0&&S.show(ae)),B.props.shouldFocusAfterRender&&(B.props.shouldReturnFocusAfterClose?(p.returnFocus(B.props.preventScroll),p.teardownScopedFocus()):p.popWithoutFocus()),B.props.onAfterClose&&B.props.onAfterClose(),y.default.deregister(B)},B.open=function(){B.beforeOpen(),B.state.afterOpen&&B.state.beforeClose?(clearTimeout(B.closeTimer),B.setState({beforeClose:!1})):(B.props.shouldFocusAfterRender&&(p.setupScopedFocus(B.node),p.markForFocusLater()),B.setState({isOpen:!0},function(){B.openAnimationFrame=requestAnimationFrame(function(){B.setState({afterOpen:!0}),B.props.isOpen&&B.props.onAfterOpen&&B.props.onAfterOpen({overlayEl:B.overlay,contentEl:B.content})})}))},B.close=function(){B.props.closeTimeoutMS>0?B.closeWithTimeout():B.closeWithoutTimeout()},B.focusContent=function(){return B.content&&!B.contentHasFocus()&&B.content.focus({preventScroll:!0})},B.closeWithTimeout=function(){var W=Date.now()+B.props.closeTimeoutMS;B.setState({beforeClose:!0,closesAt:W},function(){B.closeTimer=setTimeout(B.closeWithoutTimeout,B.state.closesAt-Date.now())})},B.closeWithoutTimeout=function(){B.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},B.afterClose)},B.handleKeyDown=function(W){q(W)&&(0,m.default)(B.content,W),B.props.shouldCloseOnEsc&&te(W)&&(W.stopPropagation(),B.requestClose(W))},B.handleOverlayOnClick=function(W){B.shouldClose===null&&(B.shouldClose=!0),B.shouldClose&&B.props.shouldCloseOnOverlayClick&&(B.ownerHandlesClose()?B.requestClose(W):B.focusContent()),B.shouldClose=null},B.handleContentOnMouseUp=function(){B.shouldClose=!1},B.handleOverlayOnMouseDown=function(W){!B.props.shouldCloseOnOverlayClick&&W.target==B.overlay&&W.preventDefault()},B.handleContentOnClick=function(){B.shouldClose=!1},B.handleContentOnMouseDown=function(){B.shouldClose=!1},B.requestClose=function(W){return B.ownerHandlesClose()&&B.props.onRequestClose(W)},B.ownerHandlesClose=function(){return B.props.onRequestClose},B.shouldBeClosed=function(){return!B.state.isOpen&&!B.state.beforeClose},B.contentHasFocus=function(){return document.activeElement===B.content||B.content.contains(document.activeElement)},B.buildClassName=function(W,ae){var se=(typeof ae>"u"?"undefined":r(ae))==="object"?ae:{base:F[W],afterOpen:F[W]+"--after-open",beforeClose:F[W]+"--before-close"},oe=se.base;return B.state.afterOpen&&(oe=oe+" "+se.afterOpen),B.state.beforeClose&&(oe=oe+" "+se.beforeClose),typeof ae=="string"&&ae?oe+" "+ae:oe},B.attributesFromObject=function(W,ae){return Object.keys(ae).reduce(function(se,oe){return se[W+"-"+oe]=ae[oe],se},{})},B.state={afterOpen:!1,beforeClose:!1},B.shouldClose=null,B.moveFromContentToOverlay=null,B}return o(le,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(B,W){this.props.isOpen&&!B.isOpen?this.open():!this.props.isOpen&&B.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!W.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var B=this.props,W=B.appElement,ae=B.ariaHideApp,se=B.htmlOpenClassName,oe=B.bodyOpenClassName,ye=B.parentSelector,Fe=ye&&ye().ownerDocument||document;oe&&k.add(Fe.body,oe),se&&k.add(Fe.getElementsByTagName("html")[0],se),ae&&(we+=1,S.hide(W)),y.default.register(this)}},{key:"render",value:function(){var B=this.props,W=B.id,ae=B.className,se=B.overlayClassName,oe=B.defaultStyles,ye=B.children,Fe=ae?{}:oe.content,Ve=se?{}:oe.overlay;if(this.shouldBeClosed())return null;var Xe={ref:this.setOverlayRef,className:this.buildClassName("overlay",se),style:n({},Ve,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Ee=n({id:W,ref:this.setContentRef,style:n({},Fe,this.props.style.content),className:this.buildClassName("content",ae),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}),ft=this.props.contentElement(Ee,ye);return this.props.overlayElement(Xe,ft)}}]),le}(l.Component);fe.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},fe.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(A.SafeHTMLCollection),c.default.instanceOf(A.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=fe,e.exports=t.default})(Qm,Qm.exports);var _6=Qm.exports;function U2(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function $2(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function B2(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}}U2.__suppressDeprecationWarning=!0;$2.__suppressDeprecationWarning=!0;B2.__suppressDeprecationWarning=!0;function S6(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. +*/(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})()})(j2);var KM=j2.exports;Object.defineProperty(qr,"__esModule",{value:!0});qr.canUseDOM=qr.SafeNodeList=qr.SafeHTMLCollection=void 0;var YM=KM,qM=VM(YM);function VM(e){return e&&e.__esModule?e:{default:e}}var Ed=qM.default,XM=Ed.canUseDOM?window.HTMLElement:{};qr.SafeHTMLCollection=Ed.canUseDOM?window.HTMLCollection:{};qr.SafeNodeList=Ed.canUseDOM?window.NodeList:{};qr.canUseDOM=Ed.canUseDOM;qr.default=XM;Object.defineProperty(ei,"__esModule",{value:!0});ei.resetState=t6;ei.log=n6;ei.assertNodeList=F2;ei.setElement=r6;ei.validateElement=Og;ei.hide=i6;ei.show=o6;ei.documentNotReadyOrSSRTesting=a6;var QM=GM,JM=e6(QM),ZM=qr;function e6(e){return e&&e.__esModule?e:{default:e}}var Sr=null;function t6(){Sr&&(Sr.removeAttribute?Sr.removeAttribute("aria-hidden"):Sr.length!=null?Sr.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Sr).forEach(function(e){return e.removeAttribute("aria-hidden")})),Sr=null}function n6(){}function F2(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function r6(e){var t=e;if(typeof t=="string"&&ZM.canUseDOM){var n=document.querySelectorAll(t);F2(n,t),t=n}return Sr=t||Sr,Sr}function Og(e){var t=e||Sr;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,JM.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 i6(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 o6(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 a6(){Sr=null}var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.resetState=l6;Rl.log=s6;var Es={},Cs={};function Px(e,t){e.classList.remove(t)}function l6(){var e=document.getElementsByTagName("html")[0];for(var t in Es)Px(e,Es[t]);var n=document.body;for(var r in Cs)Px(n,Cs[r]);Es={},Cs={}}function s6(){}var u6=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},c6=function(t,n){return t[n]&&(t[n]-=1),n},f6=function(t,n,r){r.forEach(function(o){u6(n,o),t.add(o)})},d6=function(t,n,r){r.forEach(function(o){c6(n,o),n[o]===0&&t.remove(o)})};Rl.add=function(t,n){return f6(t.classList,t.nodeName.toLowerCase()=="html"?Es:Cs,n.split(" "))};Rl.remove=function(t,n){return d6(t.classList,t.nodeName.toLowerCase()=="html"?Es:Cs,n.split(" "))};var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0});Pl.log=h6;Pl.resetState=m6;function p6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var z2=function e(){var t=this;p6(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=[]},zf=new z2;function h6(){console.log("portalOpenInstances ----------"),console.log(zf.openInstances.length),zf.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function m6(){zf=new z2}Pl.default=zf;var Tg={};Object.defineProperty(Tg,"__esModule",{value:!0});Tg.resetState=w6;Tg.log=x6;var v6=Pl,g6=y6(v6);function y6(e){return e&&e.__esModule?e:{default:e}}var Cn=void 0,Fr=void 0,na=[];function w6(){for(var e=[Cn,Fr],t=0;t0?(document.body.firstChild!==Cn&&document.body.insertBefore(Cn,document.body.firstChild),document.body.lastChild!==Fr&&document.body.appendChild(Fr)):(Cn.parentElement&&Cn.parentElement.removeChild(Cn),Fr.parentElement&&Fr.parentElement.removeChild(Fr))}g6.default.subscribe(b6);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(ie){for(var le=1;le0&&(we-=1,we===0&&S.show(ae)),B.props.shouldFocusAfterRender&&(B.props.shouldReturnFocusAfterClose?(p.returnFocus(B.props.preventScroll),p.teardownScopedFocus()):p.popWithoutFocus()),B.props.onAfterClose&&B.props.onAfterClose(),y.default.deregister(B)},B.open=function(){B.beforeOpen(),B.state.afterOpen&&B.state.beforeClose?(clearTimeout(B.closeTimer),B.setState({beforeClose:!1})):(B.props.shouldFocusAfterRender&&(p.setupScopedFocus(B.node),p.markForFocusLater()),B.setState({isOpen:!0},function(){B.openAnimationFrame=requestAnimationFrame(function(){B.setState({afterOpen:!0}),B.props.isOpen&&B.props.onAfterOpen&&B.props.onAfterOpen({overlayEl:B.overlay,contentEl:B.content})})}))},B.close=function(){B.props.closeTimeoutMS>0?B.closeWithTimeout():B.closeWithoutTimeout()},B.focusContent=function(){return B.content&&!B.contentHasFocus()&&B.content.focus({preventScroll:!0})},B.closeWithTimeout=function(){var W=Date.now()+B.props.closeTimeoutMS;B.setState({beforeClose:!0,closesAt:W},function(){B.closeTimer=setTimeout(B.closeWithoutTimeout,B.state.closesAt-Date.now())})},B.closeWithoutTimeout=function(){B.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},B.afterClose)},B.handleKeyDown=function(W){q(W)&&(0,m.default)(B.content,W),B.props.shouldCloseOnEsc&&te(W)&&(W.stopPropagation(),B.requestClose(W))},B.handleOverlayOnClick=function(W){B.shouldClose===null&&(B.shouldClose=!0),B.shouldClose&&B.props.shouldCloseOnOverlayClick&&(B.ownerHandlesClose()?B.requestClose(W):B.focusContent()),B.shouldClose=null},B.handleContentOnMouseUp=function(){B.shouldClose=!1},B.handleOverlayOnMouseDown=function(W){!B.props.shouldCloseOnOverlayClick&&W.target==B.overlay&&W.preventDefault()},B.handleContentOnClick=function(){B.shouldClose=!1},B.handleContentOnMouseDown=function(){B.shouldClose=!1},B.requestClose=function(W){return B.ownerHandlesClose()&&B.props.onRequestClose(W)},B.ownerHandlesClose=function(){return B.props.onRequestClose},B.shouldBeClosed=function(){return!B.state.isOpen&&!B.state.beforeClose},B.contentHasFocus=function(){return document.activeElement===B.content||B.content.contains(document.activeElement)},B.buildClassName=function(W,ae){var se=(typeof ae>"u"?"undefined":r(ae))==="object"?ae:{base:F[W],afterOpen:F[W]+"--after-open",beforeClose:F[W]+"--before-close"},oe=se.base;return B.state.afterOpen&&(oe=oe+" "+se.afterOpen),B.state.beforeClose&&(oe=oe+" "+se.beforeClose),typeof ae=="string"&&ae?oe+" "+ae:oe},B.attributesFromObject=function(W,ae){return Object.keys(ae).reduce(function(se,oe){return se[W+"-"+oe]=ae[oe],se},{})},B.state={afterOpen:!1,beforeClose:!1},B.shouldClose=null,B.moveFromContentToOverlay=null,B}return o(le,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(B,W){this.props.isOpen&&!B.isOpen?this.open():!this.props.isOpen&&B.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!W.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var B=this.props,W=B.appElement,ae=B.ariaHideApp,se=B.htmlOpenClassName,oe=B.bodyOpenClassName,ye=B.parentSelector,Fe=ye&&ye().ownerDocument||document;oe&&k.add(Fe.body,oe),se&&k.add(Fe.getElementsByTagName("html")[0],se),ae&&(we+=1,S.hide(W)),y.default.register(this)}},{key:"render",value:function(){var B=this.props,W=B.id,ae=B.className,se=B.overlayClassName,oe=B.defaultStyles,ye=B.children,Fe=ae?{}:oe.content,Ve=se?{}:oe.overlay;if(this.shouldBeClosed())return null;var Xe={ref:this.setOverlayRef,className:this.buildClassName("overlay",se),style:n({},Ve,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Ee=n({id:W,ref:this.setContentRef,style:n({},Fe,this.props.style.content),className:this.buildClassName("content",ae),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}),ft=this.props.contentElement(Ee,ye);return this.props.overlayElement(Xe,ft)}}]),le}(l.Component);fe.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},fe.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(A.SafeHTMLCollection),c.default.instanceOf(A.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=fe,e.exports=t.default})(Qm,Qm.exports);var _6=Qm.exports;function U2(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function $2(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function B2(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}}U2.__suppressDeprecationWarning=!0;$2.__suppressDeprecationWarning=!0;B2.__suppressDeprecationWarning=!0;function S6(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?` @@ -883,12 +883,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `+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=U2,t.componentWillReceiveProps=$2),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=B2;var c=t.componentDidUpdate;t.componentDidUpdate=function(p,d,m){var v=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;c.call(this,p,d,v)}}return e}const E6=Object.freeze(Object.defineProperty({__proto__:null,polyfill:S6},Symbol.toStringTag,{value:"Module"})),C6=kO(E6);Object.defineProperty(da,"__esModule",{value:!0});da.bodyOpenClassName=da.portalClassName=void 0;var Tx=Object.assign||function(e){for(var t=1;t{r(c=>(c+1)%ki.length)},[]),l=R.useCallback(()=>{r(c=>c===0?ki.length-1:c-1)},[]),s=R.useCallback(c=>{c.key==="ArrowRight"?o():c.key==="ArrowLeft"&&l()},[o,l]);return R.useEffect(()=>(e?document.addEventListener("keydown",s):document.removeEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}),[e,s]),jx.setAppElement(document.getElementById("root")),C.jsx(jx,{isOpen:e,onRequestClose:()=>t(),className:"modal-container",overlayClassName:"modal-overlay",shouldCloseOnOverlayClick:!0,children:C.jsxs("div",{className:"modal-content",children:[C.jsx("button",{type:"button",className:"close-modal-button",onClick:()=>t(),children:C.jsx(In,{icon:wd,className:"nav-icon"})}),C.jsx("span",{className:"modal-image-title",children:ki[n]}),C.jsx("img",{src:`${Xr}/assets/ingredients/${ki[n].toLowerCase()}.webp`,alt:`${ki[n]}`,className:"modal-image"}),C.jsxs("div",{className:"modal-nav-buttons",children:[C.jsx("button",{type:"button",className:"nav-button prev",onClick:l,children:C.jsx(In,{icon:D5,className:"nav-icon"})}),C.jsx("button",{type:"button",className:"nav-button next",onClick:o,children:C.jsx(In,{icon:M5,className:"nav-icon"})})]})]})})}const U6=R.lazy(()=>O5(()=>import("./IngredientGalleryItem-DBzJVy4N.js"),[]));function $6(){const[e,t]=R.useState(!1),n=lt(o=>o.recipe.possibleItems),r=n.length<5?"flex flex-row gap-x-8":"grid-autofill";return C.jsxs(C.Fragment,{children:[!e&&C.jsxs("div",{className:"modal-open-button",onClick:()=>t(!0),onKeyDown:$i,children:["CLICK ME",C.jsx("br",{}),'to say "Wow"',C.jsx("br",{}),'and "Ooooh"']}),C.jsx(z6,{isOpen:e,onClose:()=>t(!1)}),C.jsx("div",{className:"flex flex-row overflow-auto no-scrollbar justify-evenly",children:C.jsx("div",{className:`flex flex-row flex-wrap center gap-y-8 gap-x-4 ${r}`,children:n.map(o=>C.jsx(R.Suspense,{fallback:C.jsx("div",{className:"suspense-gallery-item","data-testid":`${o}_suspense`,children:""}),children:C.jsx(U6,{item:{itemName:o,amount:0,unit:wl}})},`${o}_suspense`))})})]})}function B6(){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 Ol(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ag(e){return"nodeType"in e}function Ln(e){var t,n;return e?Ol(e)?e:Ag(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Ig(e){const{Document:t}=Ln(e);return e instanceof t}function gu(e){return Ol(e)?!1:e instanceof Ln(e).HTMLElement}function H2(e){return e instanceof Ln(e).SVGElement}function Tl(e){return e?Ol(e)?e.document:Ag(e)?Ig(e)?e:gu(e)||H2(e)?e.ownerDocument:document:document:document}const Qr=Cd?R.useLayoutEffect:R.useEffect;function kd(e){const t=R.useRef(e);return Qr(()=>{t.current=e}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=R.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ru(e,t){t===void 0&&(t=[e]);const n=R.useRef(e);return Qr(()=>{n.current!==e&&(n.current=e)},t),n}function yu(e,t){const n=R.useRef();return R.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Bf(e){const t=kd(e),n=R.useRef(null),r=R.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function Wf(e){const t=R.useRef();return R.useEffect(()=>{t.current=e},[e]),t.current}let kh={};function Nd(e,t){return R.useMemo(()=>{if(t)return t;const n=kh[e]==null?0:kh[e]+1;return kh[e]=n,e+"-"+n},[e,t])}function G2(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,p]of c){const d=l[f];d!=null&&(l[f]=d+e*p)}return l},{...t})}}const sl=G2(1),Hf=G2(-1);function H6(e){return"clientX"in e&&"clientY"in e}function Rd(e){if(!e)return!1;const{KeyboardEvent:t}=Ln(e.target);return t&&e instanceof t}function G6(e){if(!e)return!1;const{TouchEvent:t}=Ln(e.target);return t&&e instanceof t}function Gf(e){if(G6(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 H6(e)?{x:e.clientX,y:e.clientY}:null}const zi=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[zi.Translate.toString(e),zi.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Fx="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function K6(e){return e.matches(Fx)?e:e.querySelector(Fx)}const Y6={display:"none"};function q6(e){let{id:t,value:n}=e;return pt.createElement("div",{id:t,style:Y6},n)}function V6(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 pt.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function X6(){const[e,t]=R.useState("");return{announce:R.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const K2=R.createContext(null);function Q6(e){const t=R.useContext(K2);R.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function J6(){const[e]=R.useState(()=>new Set),t=R.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[R.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 Z6={draggable:` +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=U2,t.componentWillReceiveProps=$2),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=B2;var c=t.componentDidUpdate;t.componentDidUpdate=function(p,d,m){var v=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;c.call(this,p,d,v)}}return e}const E6=Object.freeze(Object.defineProperty({__proto__:null,polyfill:S6},Symbol.toStringTag,{value:"Module"})),C6=kO(E6);Object.defineProperty(da,"__esModule",{value:!0});da.bodyOpenClassName=da.portalClassName=void 0;var Tx=Object.assign||function(e){for(var t=1;t{r(c=>(c+1)%ki.length)},[]),l=R.useCallback(()=>{r(c=>c===0?ki.length-1:c-1)},[]),s=R.useCallback(c=>{c.key==="ArrowRight"?o():c.key==="ArrowLeft"&&l()},[o,l]);return R.useEffect(()=>(e?document.addEventListener("keydown",s):document.removeEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}),[e,s]),jx.setAppElement(document.getElementById("root")),E.jsx(jx,{isOpen:e,onRequestClose:()=>t(),className:"modal-container",overlayClassName:"modal-overlay",shouldCloseOnOverlayClick:!0,children:E.jsxs("div",{className:"modal-content",children:[E.jsx("button",{type:"button",className:"close-modal-button",onClick:()=>t(),children:E.jsx(In,{icon:wd,className:"nav-icon"})}),E.jsx("span",{className:"modal-image-title",children:ki[n]}),E.jsx("img",{src:`${Xr}/assets/ingredients/${ki[n].toLowerCase()}.webp`,alt:`${ki[n]}`,className:"modal-image"}),E.jsxs("div",{className:"modal-nav-buttons",children:[E.jsx("button",{type:"button",className:"nav-button prev",onClick:l,children:E.jsx(In,{icon:DD,className:"nav-icon"})}),E.jsx("button",{type:"button",className:"nav-button next",onClick:o,children:E.jsx(In,{icon:LD,className:"nav-icon"})})]})]})})}const U6=R.lazy(()=>OD(()=>import("./IngredientGalleryItem-CqRfOQte.js"),[]));function $6(){const[e,t]=R.useState(!1),n=lt(o=>o.recipe.possibleItems),r=n.length<5?"flex flex-row gap-x-8":"grid-autofill";return E.jsxs(E.Fragment,{children:[!e&&E.jsxs("div",{className:"modal-open-button",onClick:()=>t(!0),onKeyDown:$i,children:["CLICK ME",E.jsx("br",{}),'to say "Wow"',E.jsx("br",{}),'and "Ooooh"']}),E.jsx(z6,{isOpen:e,onClose:()=>t(!1)}),E.jsx("div",{className:"flex flex-row overflow-auto no-scrollbar justify-evenly",children:E.jsx("div",{className:`flex flex-row flex-wrap center gap-y-8 gap-x-4 ${r}`,children:n.map(o=>E.jsx(R.Suspense,{fallback:E.jsx("div",{className:"suspense-gallery-item","data-testid":`${o}_suspense`,children:""}),children:E.jsx(U6,{item:{itemName:o,amount:0,unit:wl}})},`${o}_suspense`))})})]})}function B6(){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 Ol(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ag(e){return"nodeType"in e}function Mn(e){var t,n;return e?Ol(e)?e:Ag(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Ig(e){const{Document:t}=Mn(e);return e instanceof t}function gu(e){return Ol(e)?!1:e instanceof Mn(e).HTMLElement}function H2(e){return e instanceof Mn(e).SVGElement}function Tl(e){return e?Ol(e)?e.document:Ag(e)?Ig(e)?e:gu(e)||H2(e)?e.ownerDocument:document:document:document}const Qr=Cd?R.useLayoutEffect:R.useEffect;function kd(e){const t=R.useRef(e);return Qr(()=>{t.current=e}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=R.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ru(e,t){t===void 0&&(t=[e]);const n=R.useRef(e);return Qr(()=>{n.current!==e&&(n.current=e)},t),n}function yu(e,t){const n=R.useRef();return R.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Bf(e){const t=kd(e),n=R.useRef(null),r=R.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function Wf(e){const t=R.useRef();return R.useEffect(()=>{t.current=e},[e]),t.current}let kh={};function Nd(e,t){return R.useMemo(()=>{if(t)return t;const n=kh[e]==null?0:kh[e]+1;return kh[e]=n,e+"-"+n},[e,t])}function G2(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,p]of c){const d=l[f];d!=null&&(l[f]=d+e*p)}return l},{...t})}}const sl=G2(1),Hf=G2(-1);function H6(e){return"clientX"in e&&"clientY"in e}function Rd(e){if(!e)return!1;const{KeyboardEvent:t}=Mn(e.target);return t&&e instanceof t}function G6(e){if(!e)return!1;const{TouchEvent:t}=Mn(e.target);return t&&e instanceof t}function Gf(e){if(G6(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 H6(e)?{x:e.clientX,y:e.clientY}:null}const zi=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[zi.Translate.toString(e),zi.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Fx="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function K6(e){return e.matches(Fx)?e:e.querySelector(Fx)}const Y6={display:"none"};function q6(e){let{id:t,value:n}=e;return pt.createElement("div",{id:t,style:Y6},n)}function V6(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 pt.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function X6(){const[e,t]=R.useState("");return{announce:R.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const K2=R.createContext(null);function Q6(e){const t=R.useContext(K2);R.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function J6(){const[e]=R.useState(()=>new Set),t=R.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[R.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 Z6={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. - `},ej={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 tj(e){let{announcements:t=ej,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Z6}=e;const{announce:l,announcement:s}=X6(),c=Nd("DndLiveRegion"),[f,p]=R.useState(!1);if(R.useEffect(()=>{p(!0)},[]),Q6(R.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 d=pt.createElement(pt.Fragment,null,pt.createElement(q6,{id:r,value:o.draggable}),pt.createElement(V6,{id:c,announcement:s}));return n?Br.createPortal(d,n):d}var nn;(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"})(nn||(nn={}));function Kf(){}function Yf(e,t){return R.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Y2(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(r=>r!=null),[...t])}const Jr=Object.freeze({x:0,y:0});function q2(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function nj(e,t){const n=Gf(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 rj(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function tv(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 ij(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const X2=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=tv(t),l=[];for(const s of r){const{id:c}=s,f=n.get(c);if(f){const p=tv(f),d=o.reduce((v,S,E)=>v+q2(p[E],S),0),m=Number((d/4).toFixed(4));l.push({id:c,data:{droppableContainer:s,value:m}})}}return l.sort(V2)};function oj(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=oj(c,t);f>0&&o.push({id:s,data:{droppableContainer:l,value:f}})}}return o.sort(rj)};function lj(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 Q2=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&&lj(r,c)){const p=tv(c).reduce((m,v)=>m+q2(r,v),0),d=Number((p/4).toFixed(4));o.push({id:s,data:{droppableContainer:l,value:d}})}}return o.sort(V2)};function sj(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function J2(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Jr}function uj(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 cj=uj(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 fj(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),p=e.top-c-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),d=o?e.width/o:e.width,m=l?e.height/l:e.height;return{width:d,height:m,top:p,right:f+d,bottom:p+m,left:f}}const dj={ignoreTransform:!1};function Al(e,t){t===void 0&&(t=dj);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:p,transformOrigin:d}=Ln(e).getComputedStyle(e);p&&(n=fj(n,p,d))}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 zx(e){return Al(e,{ignoreTransform:!0})}function pj(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function hj(e,t){return t===void 0&&(t=Ln(e).getComputedStyle(e)),t.position==="fixed"}function mj(e,t){t===void 0&&(t=Ln(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 Dg(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(!gu(o)||H2(o)||n.includes(o))return n;const l=Ln(e).getComputedStyle(o);return o!==e&&mj(o,l)&&n.push(o),hj(o,l)?n:r(o.parentNode)}return e?r(e):n}function eE(e){const[t]=Dg(e,1);return t??null}function Nh(e){return!Cd||!e?null:Ol(e)?e:Ag(e)?Ig(e)||e===Tl(e).scrollingElement?window:gu(e)?e:null:null}function tE(e){return Ol(e)?e.scrollX:e.scrollLeft}function nE(e){return Ol(e)?e.scrollY:e.scrollTop}function nv(e){return{x:tE(e),y:nE(e)}}var sn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(sn||(sn={}));function rE(e){return!Cd||!e?!1:e===document.scrollingElement}function iE(e){const t={x:0,y:0},n=rE(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 vj={x:.2,y:.2};function gj(e,t,n,r,o){let{top:l,left:s,right:c,bottom:f}=n;r===void 0&&(r=10),o===void 0&&(o=vj);const{isTop:p,isBottom:d,isLeft:m,isRight:v}=iE(e),S={x:0,y:0},E={x:0,y:0},k={height:t.height*o.y,width:t.width*o.x};return!p&&l<=t.top+k.height?(S.y=sn.Backward,E.y=r*Math.abs((t.top+k.height-l)/k.height)):!d&&f>=t.bottom-k.height&&(S.y=sn.Forward,E.y=r*Math.abs((t.bottom-k.height-f)/k.height)),!v&&c>=t.right-k.width?(S.x=sn.Forward,E.x=r*Math.abs((t.right-k.width-c)/k.width)):!m&&s<=t.left+k.width&&(S.x=sn.Backward,E.x=r*Math.abs((t.left+k.width-s)/k.width)),{direction:S,speed:E}}function yj(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 oE(e){return e.reduce((t,n)=>sl(t,nv(n)),Jr)}function wj(e){return e.reduce((t,n)=>t+tE(n),0)}function xj(e){return e.reduce((t,n)=>t+nE(n),0)}function aE(e,t){if(t===void 0&&(t=Al),!e)return;const{top:n,left:r,bottom:o,right:l}=t(e);eE(e)&&(o<=0||l<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const bj=[["x",["left","right"],wj],["y",["top","bottom"],xj]];class Mg{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=Dg(n),o=oE(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,s,c]of bj)for(const f of s)Object.defineProperty(this,f,{get:()=>{const p=c(r),d=o[l]-p;return this.rect[f]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ks{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 _j(e){const{EventTarget:t}=Ln(e);return e instanceof t?e:Tl(e)}function Rh(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 Er;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Er||(Er={}));function Ux(e){e.preventDefault()}function Sj(e){e.stopPropagation()}var at;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(at||(at={}));const lE={start:[at.Space,at.Enter],cancel:[at.Esc],end:[at.Space,at.Enter]},Ej=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case at.Right:return{...n,x:n.x+25};case at.Left:return{...n,x:n.x-25};case at.Down:return{...n,y:n.y+25};case at.Up:return{...n,y:n.y-25}}};class sE{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 ks(Tl(n)),this.windowListeners=new ks(Ln(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Er.Resize,this.handleCancel),this.windowListeners.add(Er.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Er.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&aE(r),n(Jr)}handleKeyDown(t){if(Rd(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:l=lE,coordinateGetter:s=Ej,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:p}=r.current,d=p?{x:p.left,y:p.top}:Jr;this.referenceCoordinates||(this.referenceCoordinates=d);const m=s(t,{active:n,context:r.current,currentCoordinates:d});if(m){const v=Hf(m,d),S={x:0,y:0},{scrollableAncestors:E}=r.current;for(const k of E){const A=t.code,{isTop:_,isRight:b,isLeft:y,isBottom:O,maxScroll:I,minScroll:G}=iE(k),N=yj(k),$={x:Math.min(A===at.Right?N.right-N.width/2:N.right,Math.max(A===at.Right?N.left:N.left+N.width/2,m.x)),y:Math.min(A===at.Down?N.bottom-N.height/2:N.bottom,Math.max(A===at.Down?N.top:N.top+N.height/2,m.y))},F=A===at.Right&&!b||A===at.Left&&!y,q=A===at.Down&&!O||A===at.Up&&!_;if(F&&$.x!==m.x){const te=k.scrollLeft+v.x,we=A===at.Right&&te<=I.x||A===at.Left&&te>=G.x;if(we&&!v.y){k.scrollTo({left:te,behavior:c});return}we?S.x=k.scrollLeft-te:S.x=A===at.Right?k.scrollLeft-I.x:k.scrollLeft-G.x,S.x&&k.scrollBy({left:-S.x,behavior:c});break}else if(q&&$.y!==m.y){const te=k.scrollTop+v.y,we=A===at.Down&&te<=I.y||A===at.Up&&te>=G.y;if(we&&!v.x){k.scrollTo({top:te,behavior:c});return}we?S.y=k.scrollTop-te:S.y=A===at.Down?k.scrollTop-I.y:k.scrollTop-G.y,S.y&&k.scrollBy({top:-S.y,behavior:c});break}}this.handleMove(t,sl(Hf(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()}}sE.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=lE,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 $x(e){return!!(e&&"distance"in e)}function Bx(e){return!!(e&&"delay"in e)}class Lg{constructor(t,n,r){var o;r===void 0&&(r=_j(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=Tl(s),this.documentListeners=new ks(this.document),this.listeners=new ks(r),this.windowListeners=new ks(Ln(s)),this.initialCoordinates=(o=Gf(l))!=null?o:Jr,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(Er.Resize,this.handleCancel),this.windowListeners.add(Er.DragStart,Ux),this.windowListeners.add(Er.VisibilityChange,this.handleCancel),this.windowListeners.add(Er.ContextMenu,Ux),this.documentListeners.add(Er.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Bx(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if($x(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(Er.Click,Sj,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Er.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=Gf(t))!=null?n:Jr,p=Hf(o,f);if(!r&&c){if($x(c)){if(c.tolerance!=null&&Rh(p,c.tolerance))return this.handleCancel();if(Rh(p,c.distance))return this.handleStart()}return Bx(c)&&Rh(p,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===at.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Cj={move:{name:"pointermove"},end:{name:"pointerup"}};class uE extends Lg{constructor(t){const{event:n}=t,r=Tl(n.target);super(t,Cj,r)}}uE.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 kj={move:{name:"mousemove"},end:{name:"mouseup"}};var rv;(function(e){e[e.RightClick=2]="RightClick"})(rv||(rv={}));class jg extends Lg{constructor(t){super(t,kj,Tl(t.event.target))}}jg.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===rv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Ph={move:{name:"touchmove"},end:{name:"touchend"}};class Fg extends Lg{constructor(t){super(t,Ph)}static setup(){return window.addEventListener(Ph.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Ph.move.name,t)};function t(){}}}Fg.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 qf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(qf||(qf={}));function Nj(e){let{acceleration:t,activator:n=Ns.Pointer,canScroll:r,draggingRect:o,enabled:l,interval:s=5,order:c=qf.TreeOrder,pointerCoordinates:f,scrollableAncestors:p,scrollableAncestorRects:d,delta:m,threshold:v}=e;const S=Pj({delta:m,disabled:!l}),[E,k]=W6(),A=R.useRef({x:0,y:0}),_=R.useRef({x:0,y:0}),b=R.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]),y=R.useRef(null),O=R.useCallback(()=>{const G=y.current;if(!G)return;const N=A.current.x*_.current.x,$=A.current.y*_.current.y;G.scrollBy(N,$)},[]),I=R.useMemo(()=>c===qf.TreeOrder?[...p].reverse():p,[c,p]);R.useEffect(()=>{if(!l||!p.length||!b){k();return}for(const G of I){if((r==null?void 0:r(G))===!1)continue;const N=p.indexOf(G),$=d[N];if(!$)continue;const{direction:F,speed:q}=gj(G,$,b,t,v);for(const te of["x","y"])S[te][F[te]]||(q[te]=0,F[te]=0);if(q.x>0||q.y>0){k(),y.current=G,E(O,s),A.current=q,_.current=F;return}}A.current={x:0,y:0},_.current={x:0,y:0},k()},[t,O,r,k,l,s,JSON.stringify(b),JSON.stringify(S),E,p,I,d,JSON.stringify(v)])}const Rj={x:{[sn.Backward]:!1,[sn.Forward]:!1},y:{[sn.Backward]:!1,[sn.Forward]:!1}};function Pj(e){let{delta:t,disabled:n}=e;const r=Wf(t);return yu(o=>{if(n||!r||!o)return Rj;const l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[sn.Backward]:o.x[sn.Backward]||l.x===-1,[sn.Forward]:o.x[sn.Forward]||l.x===1},y:{[sn.Backward]:o.y[sn.Backward]||l.y===-1,[sn.Forward]:o.y[sn.Forward]||l.y===1}}},[n,t,r])}function Oj(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return yu(o=>{var l;return t===null?null:(l=r??o)!=null?l:null},[r,t])}function Tj(e,t){return R.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 iu;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(iu||(iu={}));var iv;(function(e){e.Optimized="optimized"})(iv||(iv={}));const Wx=new Map;function Aj(e,t){let{dragging:n,dependencies:r,config:o}=t;const[l,s]=R.useState(null),{frequency:c,measure:f,strategy:p}=o,d=R.useRef(e),m=A(),v=ru(m),S=R.useCallback(function(_){_===void 0&&(_=[]),!v.current&&s(b=>b===null?_:b.concat(_.filter(y=>!b.includes(y))))},[v]),E=R.useRef(null),k=yu(_=>{if(m&&!n)return Wx;if(!_||_===Wx||d.current!==e||l!=null){const b=new Map;for(let y of e){if(!y)continue;if(l&&l.length>0&&!l.includes(y.id)&&y.rect.current){b.set(y.id,y.rect.current);continue}const O=y.node.current,I=O?new Mg(f(O),O):null;y.rect.current=I,I&&b.set(y.id,I)}return b}return _},[e,l,n,m,f]);return R.useEffect(()=>{d.current=e},[e]),R.useEffect(()=>{m||S()},[n,m]),R.useEffect(()=>{l&&l.length>0&&s(null)},[JSON.stringify(l)]),R.useEffect(()=>{m||typeof c!="number"||E.current!==null||(E.current=setTimeout(()=>{S(),E.current=null},c))},[c,m,S,...r]),{droppableRects:k,measureDroppableContainers:S,measuringScheduled:l!=null};function A(){switch(p){case iu.Always:return!1;case iu.BeforeDragging:return n;default:return!n}}}function zg(e,t){return yu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Ij(e,t){return zg(e,t)}function Dj(e){let{callback:t,disabled:n}=e;const r=kd(t),o=R.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(r)},[r,n]);return R.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Pd(e){let{callback:t,disabled:n}=e;const r=kd(t),o=R.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(r)},[n]);return R.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Mj(e){return new Mg(Al(e),e)}function Hx(e,t,n){t===void 0&&(t=Mj);const[r,o]=R.useReducer(c,null),l=Dj({callback(f){if(e)for(const p of f){const{type:d,target:m}=p;if(d==="childList"&&m instanceof HTMLElement&&m.contains(e)){o();break}}}}),s=Pd({callback:o});return Qr(()=>{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 p;return(p=f??n)!=null?p:null}const d=t(e);return JSON.stringify(f)===JSON.stringify(d)?f:d}}function Lj(e){const t=zg(e);return J2(e,t)}const Gx=[];function jj(e){const t=R.useRef(e),n=yu(r=>e?r&&r!==Gx&&e&&t.current&&e.parentNode===t.current.parentNode?r:Dg(e):Gx,[e]);return R.useEffect(()=>{t.current=e},[e]),n}function Fj(e){const[t,n]=R.useState(null),r=R.useRef(e),o=R.useCallback(l=>{const s=Nh(l.target);s&&n(c=>c?(c.set(s,nv(s)),new Map(c)):null)},[]);return R.useEffect(()=>{const l=r.current;if(e!==l){s(l);const c=e.map(f=>{const p=Nh(f);return p?(p.addEventListener("scroll",o,{passive:!0}),[p,nv(p)]):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 p=Nh(f);p==null||p.removeEventListener("scroll",o)})}},[o,e]),R.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,s)=>sl(l,s),Jr):oE(e):Jr,[e,t])}function Kx(e,t){t===void 0&&(t=[]);const n=R.useRef(null);return R.useEffect(()=>{n.current=null},t),R.useEffect(()=>{const r=e!==Jr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Hf(e,n.current):Jr}function zj(e){R.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 Uj(e,t){return R.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:l}=r;return n[o]=s=>{l(s,t)},n},{}),[e,t])}function cE(e){return R.useMemo(()=>e?pj(e):null,[e])}const Oh=[];function $j(e,t){t===void 0&&(t=Al);const[n]=e,r=cE(n?Ln(n):null),[o,l]=R.useReducer(c,Oh),s=Pd({callback:l});return e.length>0&&o===Oh&&l(),Qr(()=>{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=>rE(f)?r:new Mg(t(f),f)):Oh}}function fE(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return gu(t)?t:e}function Bj(e){let{measure:t}=e;const[n,r]=R.useState(null),o=R.useCallback(p=>{for(const{target:d}of p)if(gu(d)){r(m=>{const v=t(d);return m?{...m,width:v.width,height:v.height}:v});break}},[t]),l=Pd({callback:o}),s=R.useCallback(p=>{const d=fE(p);l==null||l.disconnect(),d&&(l==null||l.observe(d)),r(d?t(d):null)},[t,l]),[c,f]=Bf(s);return R.useMemo(()=>({nodeRef:c,rect:n,setRef:f}),[n,c,f])}const Wj=[{sensor:uE,options:{}},{sensor:sE,options:{}}],Hj={current:{}},tf={draggable:{measure:zx},droppable:{measure:zx,strategy:iu.WhileDragging,frequency:iv.Optimized},dragOverlay:{measure:Al}};class Rs 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 Gj={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Rs,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Kf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:tf,measureDroppableContainers:Kf,windowRect:null,measuringScheduled:!1},dE={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Kf,draggableNodes:new Map,over:null,measureDroppableContainers:Kf},wu=R.createContext(dE),pE=R.createContext(Gj);function Kj(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Rs}}}function Yj(e,t){switch(t.type){case nn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case nn.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 nn.DragEnd:case nn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case nn.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Rs(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case nn.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 Rs(e.droppable.containers);return s.set(n,{...l,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case nn.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const l=new Rs(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function qj(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=R.useContext(wu),l=Wf(r),s=Wf(n==null?void 0:n.id);return R.useEffect(()=>{if(!t&&!r&&l&&s!=null){if(!Rd(l)||document.activeElement===l.target)return;const c=o.get(s);if(!c)return;const{activatorNode:f,node:p}=c;if(!f.current&&!p.current)return;requestAnimationFrame(()=>{for(const d of[f.current,p.current]){if(!d)continue;const m=K6(d);if(m){m.focus();break}}})}},[r,t,o,s,l]),null}function hE(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,l)=>l({transform:o,...r}),n):n}function Vj(e){return R.useMemo(()=>({draggable:{...tf.draggable,...e==null?void 0:e.draggable},droppable:{...tf.droppable,...e==null?void 0:e.droppable},dragOverlay:{...tf.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 Xj(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const l=R.useRef(!1),{x:s,y:c}=typeof o=="boolean"?{x:o,y:o}:o;Qr(()=>{if(!s&&!c||!t){l.current=!1;return}if(l.current||!r)return;const p=t==null?void 0:t.node.current;if(!p||p.isConnected===!1)return;const d=n(p),m=J2(d,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=eE(p);v&&v.scrollBy({top:m.y,left:m.x})}},[t,s,c,r,n])}const Od=R.createContext({...Jr,scaleX:1,scaleY:1});var oo;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(oo||(oo={}));const mE=R.memo(function(t){var n,r,o,l;let{id:s,accessibility:c,autoScroll:f=!0,children:p,sensors:d=Wj,collisionDetection:m=aj,measuring:v,modifiers:S,...E}=t;const k=R.useReducer(Yj,void 0,Kj),[A,_]=k,[b,y]=J6(),[O,I]=R.useState(oo.Uninitialized),G=O===oo.Initialized,{draggable:{active:N,nodes:$,translate:F},droppable:{containers:q}}=A,te=N?$.get(N):null,we=R.useRef({initial:null,translated:null}),fe=R.useMemo(()=>{var Nt;return N!=null?{id:N,data:(Nt=te==null?void 0:te.data)!=null?Nt:Hj,rect:we}:null},[N,te]),ie=R.useRef(null),[le,Ae]=R.useState(null),[B,W]=R.useState(null),ae=ru(E,Object.values(E)),se=Nd("DndDescribedBy",s),oe=R.useMemo(()=>q.getEnabled(),[q]),ye=Vj(v),{droppableRects:Fe,measureDroppableContainers:Ve,measuringScheduled:Xe}=Aj(oe,{dragging:G,dependencies:[F.x,F.y],config:ye.droppable}),Ee=Oj($,N),ft=R.useMemo(()=>B?Gf(B):null,[B]),yt=ga(),z=Ij(Ee,ye.draggable.measure);Xj({activeNode:N?$.get(N):null,config:yt.layoutShiftCompensation,initialRect:z,measure:ye.draggable.measure});const j=Hx(Ee,ye.draggable.measure,z),K=Hx(Ee?Ee.parentElement:null),H=R.useRef({activatorEvent:null,active:null,activeNode:Ee,collisionRect:null,collisions:null,droppableRects:Fe,draggableNodes:$,draggingNode:null,draggingNodeRect:null,droppableContainers:q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=q.getNodeFor((n=H.current.over)==null?void 0:n.id),de=Bj({measure:ye.dragOverlay.measure}),he=(r=de.nodeRef.current)!=null?r:Ee,Ne=G?(o=de.rect)!=null?o:j:null,Ze=!!(de.nodeRef.current&&de.rect),ht=Lj(Ze?null:j),Se=cE(he?Ln(he):null),De=jj(G?Q??Ee:null),tt=$j(De),st=hE(S,{transform:{x:F.x-ht.x,y:F.y-ht.y,scaleX:1,scaleY:1},activatorEvent:B,active:fe,activeNodeRect:j,containerNodeRect:K,draggingNodeRect:Ne,over:H.current.over,overlayNodeRect:de.rect,scrollableAncestors:De,scrollableAncestorRects:tt,windowRect:Se}),wt=ft?sl(ft,F):null,xn=Fj(De),jt=Kx(xn),Ht=Kx(xn,[j]),Gt=sl(st,jt),it=Ne?cj(Ne,st):null,Me=fe&&it?m({active:fe,collisionRect:it,droppableRects:Fe,droppableContainers:oe,pointerCoordinates:wt}):null,nt=ij(Me,"id"),[Je,cn]=R.useState(null),jn=Ze?st:sl(st,Ht),qn=sj(jn,(l=Je==null?void 0:Je.rect)!=null?l:null,j),Kt=R.useCallback((Nt,Qt)=>{let{sensor:Yt,options:dr}=Qt;if(ie.current==null)return;const D=$.get(ie.current);if(!D)return;const U=Nt.nativeEvent,V=new Yt({active:ie.current,activeNode:D,event:U,options:dr,context:H,onStart(ue){const Re=ie.current;if(Re==null)return;const xe=$.get(Re);if(!xe)return;const{onDragStart:pe}=ae.current,Pe={active:{id:Re,data:xe.data,rect:we}};Br.unstable_batchedUpdates(()=>{pe==null||pe(Pe),I(oo.Initializing),_({type:nn.DragStart,initialCoordinates:ue,active:Re}),b({type:"onDragStart",event:Pe})})},onMove(ue){_({type:nn.DragMove,coordinates:ue})},onEnd:ne(nn.DragEnd),onCancel:ne(nn.DragCancel)});Br.unstable_batchedUpdates(()=>{Ae(V),W(Nt.nativeEvent)});function ne(ue){return async function(){const{active:xe,collisions:pe,over:Pe,scrollAdjustedTranslate:Ie}=H.current;let xt=null;if(xe&&Ie){const{cancelDrop:bt}=ae.current;xt={activatorEvent:U,active:xe,collisions:pe,delta:Ie,over:Pe},ue===nn.DragEnd&&typeof bt=="function"&&await Promise.resolve(bt(xt))&&(ue=nn.DragCancel)}ie.current=null,Br.unstable_batchedUpdates(()=>{_({type:ue}),I(oo.Uninitialized),cn(null),Ae(null),W(null);const bt=ue===nn.DragEnd?"onDragEnd":"onDragCancel";if(xt){const Ce=ae.current[bt];Ce==null||Ce(xt),b({type:bt,event:xt})}})}}},[$]),Tt=R.useCallback((Nt,Qt)=>(Yt,dr)=>{const D=Yt.nativeEvent,U=$.get(dr);if(ie.current!==null||!U||D.dndKit||D.defaultPrevented)return;const V={active:U};Nt(Yt,Qt.options,V)===!0&&(D.dndKit={capturedBy:Qt.sensor},ie.current=dr,Kt(Yt,Qt))},[$,Kt]),Vn=Tj(d,Tt);zj(d),Qr(()=>{j&&O===oo.Initializing&&I(oo.Initialized)},[j,O]),R.useEffect(()=>{const{onDragMove:Nt}=ae.current,{active:Qt,activatorEvent:Yt,collisions:dr,over:D}=H.current;if(!Qt||!Yt)return;const U={active:Qt,activatorEvent:Yt,collisions:dr,delta:{x:Gt.x,y:Gt.y},over:D};Br.unstable_batchedUpdates(()=>{Nt==null||Nt(U),b({type:"onDragMove",event:U})})},[Gt.x,Gt.y]),R.useEffect(()=>{const{active:Nt,activatorEvent:Qt,collisions:Yt,droppableContainers:dr,scrollAdjustedTranslate:D}=H.current;if(!Nt||ie.current==null||!Qt||!D)return;const{onDragOver:U}=ae.current,V=dr.get(nt),ne=V&&V.rect.current?{id:V.id,rect:V.rect.current,data:V.data,disabled:V.disabled}:null,ue={active:Nt,activatorEvent:Qt,collisions:Yt,delta:{x:D.x,y:D.y},over:ne};Br.unstable_batchedUpdates(()=>{cn(ne),U==null||U(ue),b({type:"onDragOver",event:ue})})},[nt]),Qr(()=>{H.current={activatorEvent:B,active:fe,activeNode:Ee,collisionRect:it,collisions:Me,droppableRects:Fe,draggableNodes:$,draggingNode:he,draggingNodeRect:Ne,droppableContainers:q,over:Je,scrollableAncestors:De,scrollAdjustedTranslate:Gt},we.current={initial:Ne,translated:it}},[fe,Ee,Me,it,$,he,Ne,Fe,q,Je,De,Gt]),Nj({...yt,delta:F,draggingRect:it,pointerCoordinates:wt,scrollableAncestors:De,scrollableAncestorRects:tt});const ti=R.useMemo(()=>({active:fe,activeNode:Ee,activeNodeRect:j,activatorEvent:B,collisions:Me,containerNodeRect:K,dragOverlay:de,draggableNodes:$,droppableContainers:q,droppableRects:Fe,over:Je,measureDroppableContainers:Ve,scrollableAncestors:De,scrollableAncestorRects:tt,measuringConfiguration:ye,measuringScheduled:Xe,windowRect:Se}),[fe,Ee,j,B,Me,K,de,$,q,Fe,Je,Ve,De,tt,ye,Xe,Se]),pi=R.useMemo(()=>({activatorEvent:B,activators:Vn,active:fe,activeNodeRect:j,ariaDescribedById:{draggable:se},dispatch:_,draggableNodes:$,over:Je,measureDroppableContainers:Ve}),[B,Vn,fe,j,_,se,$,Je,Ve]);return pt.createElement(K2.Provider,{value:y},pt.createElement(wu.Provider,{value:pi},pt.createElement(pE.Provider,{value:ti},pt.createElement(Od.Provider,{value:qn},p)),pt.createElement(qj,{disabled:(c==null?void 0:c.restoreFocus)===!1})),pt.createElement(tj,{...c,hiddenTextDescribedById:se}));function ga(){const Nt=(le==null?void 0:le.autoScrollEnabled)===!1,Qt=typeof f=="object"?f.enabled===!1:f===!1,Yt=G&&!Nt&&!Qt;return typeof f=="object"?{...f,enabled:Yt}:{enabled:Yt}}}),Qj=R.createContext(null),Yx="button",Jj="Droppable";function Zj(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const l=Nd(Jj),{activators:s,activatorEvent:c,active:f,activeNodeRect:p,ariaDescribedById:d,draggableNodes:m,over:v}=R.useContext(wu),{role:S=Yx,roleDescription:E="draggable",tabIndex:k=0}=o??{},A=(f==null?void 0:f.id)===t,_=R.useContext(A?Od:Qj),[b,y]=Bf(),[O,I]=Bf(),G=Uj(s,t),N=ru(n);Qr(()=>(m.set(t,{id:t,key:l,node:b,activatorNode:O,data:N}),()=>{const F=m.get(t);F&&F.key===l&&m.delete(t)}),[m,t]);const $=R.useMemo(()=>({role:S,tabIndex:k,"aria-disabled":r,"aria-pressed":A&&S===Yx?!0:void 0,"aria-roledescription":E,"aria-describedby":d.draggable}),[r,S,k,A,E,d.draggable]);return{active:f,activatorEvent:c,activeNodeRect:p,attributes:$,isDragging:A,listeners:r?void 0:G,node:b,over:v,setNodeRef:y,setActivatorNodeRef:I,transform:_}}function eF(){return R.useContext(pE)}const tF="Droppable",nF={timeout:25};function Td(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const l=Nd(tF),{active:s,dispatch:c,over:f,measureDroppableContainers:p}=R.useContext(wu),d=R.useRef({disabled:n}),m=R.useRef(!1),v=R.useRef(null),S=R.useRef(null),{disabled:E,updateMeasurementsFor:k,timeout:A}={...nF,...o},_=ru(k??r),b=R.useCallback(()=>{if(!m.current){m.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{p(Array.isArray(_.current)?_.current:[_.current]),S.current=null},A)},[A]),y=Pd({callback:b,disabled:E||!s}),O=R.useCallback(($,F)=>{y&&(F&&(y.unobserve(F),m.current=!1),$&&y.observe($))},[y]),[I,G]=Bf(O),N=ru(t);return R.useEffect(()=>{!y||!I.current||(y.disconnect(),m.current=!1,y.observe(I.current))},[I,y]),Qr(()=>(c({type:nn.RegisterDroppable,element:{id:r,key:l,disabled:n,node:I,rect:v,data:N}}),()=>c({type:nn.UnregisterDroppable,key:l,id:r})),[r]),R.useEffect(()=>{n!==d.current.disabled&&(c({type:nn.SetDroppableDisabled,id:r,key:l,disabled:n}),d.current.disabled=n)},[r,l,n,c]),{active:s,rect:v,isOver:(f==null?void 0:f.id)===r,node:I,over:f,setNodeRef:G}}function rF(e){let{animation:t,children:n}=e;const[r,o]=R.useState(null),[l,s]=R.useState(null),c=Wf(n);return!n&&!r&&c&&o(c),Qr(()=>{if(!l)return;const f=r==null?void 0:r.key,p=r==null?void 0:r.props.id;if(f==null||p==null){o(null);return}Promise.resolve(t(p,l)).then(()=>{o(null)})},[t,r,l]),pt.createElement(pt.Fragment,null,n,r?R.cloneElement(r,{ref:s}):null)}const iF={x:0,y:0,scaleX:1,scaleY:1};function oF(e){let{children:t}=e;return pt.createElement(wu.Provider,{value:dE},pt.createElement(Od.Provider,{value:iF},t))}const aF={position:"fixed",touchAction:"none"},lF=e=>Rd(e)?"transform 250ms ease":void 0,sF=R.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:l,className:s,rect:c,style:f,transform:p,transition:d=lF}=e;if(!c)return null;const m=o?p:{...p,scaleX:1,scaleY:1},v={...aF,width:c.width,height:c.height,top:c.top,left:c.left,transform:zi.Transform.toString(m),transformOrigin:o&&r?nj(r,c):void 0,transition:typeof d=="function"?d(r):d,...f};return pt.createElement(n,{className:s,style:v,ref:t},l)}),uF=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,p]of Object.entries(o))n.node.style.setProperty(f,p);s!=null&&s.active&&n.node.classList.remove(s.active)}},cF=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:zi.Transform.toString(t)},{transform:zi.Transform.toString(n)}]},fF={duration:250,easing:"ease",keyframes:cF,sideEffects:uF({styles:{active:{opacity:"0"}}})};function dF(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return kd((l,s)=>{if(t===null)return;const c=n.get(l);if(!c)return;const f=c.node.current;if(!f)return;const p=fE(s);if(!p)return;const{transform:d}=Ln(s).getComputedStyle(s),m=Z2(d);if(!m)return;const v=typeof t=="function"?t:pF(t);return aE(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(p)},droppableContainers:r,measuringConfiguration:o,transform:m})})}function pF(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...fF,...e};return l=>{let{active:s,dragOverlay:c,transform:f,...p}=l;if(!t)return;const d={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-d.x,y:f.y-d.y,...m},S=o({...p,active:s,dragOverlay:c,transform:{initial:f,final:v}}),[E]=S,k=S[S.length-1];if(JSON.stringify(E)===JSON.stringify(k))return;const A=r==null?void 0:r({active:s,dragOverlay:c,...p}),_=c.node.animate(S,{duration:t,easing:n,fill:"forwards"});return new Promise(b=>{_.onfinish=()=>{A==null||A(),b()}})}}let qx=0;function hF(e){return R.useMemo(()=>{if(e!=null)return qx++,qx},[e])}const ov=pt.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:l,modifiers:s,wrapperElement:c="div",className:f,zIndex:p=999}=e;const{activatorEvent:d,active:m,activeNodeRect:v,containerNodeRect:S,draggableNodes:E,droppableContainers:k,dragOverlay:A,over:_,measuringConfiguration:b,scrollableAncestors:y,scrollableAncestorRects:O,windowRect:I}=eF(),G=R.useContext(Od),N=hF(m==null?void 0:m.id),$=hE(s,{activatorEvent:d,active:m,activeNodeRect:v,containerNodeRect:S,draggingNodeRect:A.rect,over:_,overlayNodeRect:A.rect,scrollableAncestors:y,scrollableAncestorRects:O,transform:G,windowRect:I}),F=zg(v),q=dF({config:r,draggableNodes:E,droppableContainers:k,measuringConfiguration:b}),te=F?A.setRef:void 0;return pt.createElement(oF,null,pt.createElement(rF,{animation:q},m&&N?pt.createElement(sF,{key:N,id:m.id,ref:te,as:c,activatorEvent:d,adjustScale:t,className:f,transition:l,rect:F,style:{zIndex:p,...o},transform:$},n):null))});function vE(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 mF=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const o=r[0];return!t||!o?n:vE(n,t,o)},vF=e=>{let{transform:t,draggingNodeRect:n,windowRect:r}=e;return!n||!r?t:vE(t,n,r)};function gE(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function zc(e){return e!==null&&e>=0}const gF=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const l=gE(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}},yF="Sortable",wF=pt.createContext({activeIndex:-1,containerId:yF,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:gF,disabled:{draggable:!1,droppable:!1}}),xF=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return gE(n,r,o).indexOf(t)},bF=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:l,newIndex:s,previousItems:c,previousContainerId:f,transition:p}=e;return!p||!r||c!==l&&o===s?!1:n?!0:s!==o&&t===f},_F={duration:200,easing:"ease"},yE="transform",SF=zi.Transition.toString({property:yE,duration:0,easing:"linear"}),EF={roleDescription:"sortable"};function CF(e){let{disabled:t,index:n,node:r,rect:o}=e;const[l,s]=R.useState(null),c=R.useRef(n);return Qr(()=>{if(!t&&n!==c.current&&r.current){const f=o.current;if(f){const p=Al(r.current,{ignoreTransform:!0}),d={x:f.left-p.left,y:f.top-p.top,scaleX:f.width/p.width,scaleY:f.height/p.height};(d.x||d.y)&&s(d)}}n!==c.current&&(c.current=n)},[t,n,r,o]),R.useEffect(()=>{l&&s(null)},[l]),l}function wE(e){let{animateLayoutChanges:t=bF,attributes:n,disabled:r,data:o,getNewIndex:l=xF,id:s,strategy:c,resizeObserverConfig:f,transition:p=_F}=e;const{items:d,containerId:m,activeIndex:v,disabled:S,disableTransforms:E,sortedRects:k,overIndex:A,useDragOverlay:_,strategy:b}=R.useContext(wF),y=kF(r,S),O=d.indexOf(s),I=R.useMemo(()=>({sortable:{containerId:m,index:O,items:d},...o}),[m,o,O,d]),G=R.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:N,node:$,isOver:F,setNodeRef:q}=Td({id:s,data:I,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:G,...f}}),{active:te,activatorEvent:we,activeNodeRect:fe,attributes:ie,setNodeRef:le,listeners:Ae,isDragging:B,over:W,setActivatorNodeRef:ae,transform:se}=Zj({id:s,data:I,attributes:{...EF,...n},disabled:y.draggable}),oe=B6(q,le),ye=!!te,Fe=ye&&!E&&zc(v)&&zc(A),Ve=!_&&B,Xe=Ve&&Fe?se:null,ft=Fe?Xe??(c??b)({rects:k,activeNodeRect:fe,activeIndex:v,overIndex:A,index:O}):null,yt=zc(v)&&zc(A)?l({id:s,items:d,activeIndex:v,overIndex:A}):O,z=te==null?void 0:te.id,j=R.useRef({activeId:z,items:d,newIndex:yt,containerId:m}),K=d!==j.current.items,H=t({active:te,containerId:m,isDragging:B,isSorting:ye,id:s,index:O,items:d,newIndex:j.current.newIndex,previousItems:j.current.items,previousContainerId:j.current.containerId,transition:p,wasDragging:j.current.activeId!=null}),Q=CF({disabled:!H,index:O,node:$,rect:N});return R.useEffect(()=>{ye&&j.current.newIndex!==yt&&(j.current.newIndex=yt),m!==j.current.containerId&&(j.current.containerId=m),d!==j.current.items&&(j.current.items=d)},[ye,yt,m,d]),R.useEffect(()=>{if(z===j.current.activeId)return;if(z&&!j.current.activeId){j.current.activeId=z;return}const he=setTimeout(()=>{j.current.activeId=z},50);return()=>clearTimeout(he)},[z]),{active:te,activeIndex:v,attributes:ie,data:I,rect:N,index:O,newIndex:yt,items:d,isOver:F,isSorting:ye,isDragging:B,listeners:Ae,node:$,overIndex:A,over:W,setNodeRef:oe,setActivatorNodeRef:ae,setDroppableNodeRef:q,setDraggableNodeRef:le,transform:Q??ft,transition:de()};function de(){if(Q||K&&j.current.newIndex===O)return SF;if(!(Ve&&!Rd(we)||!p)&&(ye||H))return zi.Transition.toString({...p,property:yE})}}function kF(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}}at.Down,at.Right,at.Up,at.Left;function Ad({groupName:e,item:t,allowRemove:n,onRemove:r}){const{attributes:o,listeners:l,setNodeRef:s,transform:c,transition:f}=wE({id:`${e}_${t.itemName}`,data:{type:"Ingredient",item:t,parentGroup:e}}),p={transition:f,transform:zi.Translate.toString(c)};return C.jsxs("div",{ref:s,className:"relative print-rounded aspect-square w-clamp card-shadow center",style:p,...l,...o,children:[C.jsx("img",{src:`${Xr}/assets/ingredients/${t.itemName.toLowerCase()}.webp`,alt:t.itemName,"data-testid":`${e}_${t.itemName}_selected`,className:"print-rounded"}),n&&C.jsx("div",{className:"flex center rounded-2xl",children:C.jsx(In,{icon:wd,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 NF({group:e,item:t}){const n=wn(),r=(o,l)=>{n(YS({groupName:o,itemName:l}))};return C.jsx("div",{children:C.jsx("div",{className:"mx-2 hover:cursor-grabbing hover:scale-105",children:C.jsx(Ad,{groupName:e.groupName,item:t,allowRemove:!0,onRemove:()=>r(e.groupName,t.itemName)})})})}function RF({group:e}){const{setNodeRef:t}=Td({id:e.groupName,data:{type:"Group",group:e}});return C.jsx(C.Fragment,{children:C.jsx("div",{ref:t,className:"flex flex-wrap justify-center gap-y-4 mb-12 center",children:e.items.map((n,r)=>C.jsx("div",{children:C.jsx(NF,{group:e,item:n})},`${n}${r.toString()}`))})})}function PF(){const e=wn();return lt(n=>n.groups.ingredientsGroups).map((n,r)=>C.jsxs("div",{className:"flex flex-col center",children:[C.jsx("p",{onKeyDown:$i,"data-testid":"chosen_group",onClick:()=>e(QS(n.groupName)),className:"group-chip text-fluidSubtitle",children:n.groupName}),C.jsx(RF,{group:n})]},`${n.groupName}_${r}`))}function OF(){const e=wn(),t=lt(f=>f.groups.ingredientsGroups),[n,r]=R.useState(null),o=f=>{var p;r((p=f.active.data.current)==null?void 0:p.item)},l=f=>{var E,k,A,_;const{active:p,over:d}=f;if(!d)return;const m=((E=p.data.current)==null?void 0:E.type)==="Ingredient",v=((k=d.data.current)==null?void 0:k.type)==="Group",S=(A=p.data.current)==null?void 0:A.parentGroup;if(m&&v&&S!==d.id){const b=p.id.split("_")[1];if(t.filter(O=>O.groupName===d.id)[0].items.findIndex(O=>O.itemName===b)>-1)return;e(YS({groupName:S,itemName:b})),e(Mm({groupName:d.id,itemName:b,item:(_=p.data.current)==null?void 0:_.item}))}r(null)},s=f=>{const p=Q2(f);return p.length>0?p.sort((m,v)=>{const S=f.droppableRects.get(m.id),E=f.droppableRects.get(v.id);if(S&&E){const k=S.width*S.height;return E.width*E.height-k}return 0}):X2(f)},c=Y2(Yf(jg,{activationConstraint:{distance:5}}),Yf(Fg,{activationConstraint:{distance:4}}));return C.jsxs(mE,{collisionDetection:s,modifiers:[mF],sensors:c,onDragEnd:l,onDragStart:o,children:[C.jsxs("div",{className:"relative px-4 pb-4 overflow-auto center text-center no-scrollbar overflow-x-hidden",children:[C.jsx("h2",{className:"mb-8 text-fluidSubtitle",children:"Selected ingredient groups"}),C.jsx(PF,{})]}),n&&C.jsx(ov,{children:C.jsx(Ad,{groupName:`${n.itemName}_${Math.random().toString()}`,item:n,allowRemove:!1})})]})}function _l({page:e,isNext:t}){const n=sg(),r=wn(),o=lt(d=>d.recipe.title),l=lt(d=>d.groups.ingredientsGroups),s=lt(d=>d.actions.chefInstructions),c=async()=>{const d=l.flatMap(S=>S.items.flat()),m=d.every(S=>S.amount>0),v=d.every(S=>S.unit!==wl);return m&&v},f=async()=>{const d=s.every(v=>v.items.length>0||v.customItem),m=s.every(v=>v.action.time!==0);return s.length>0&&d&&m},p=async()=>{if(t){let d=!1,m="";if(e==="/quantities"&&(o.length>0&&l.length>0?d=!0:m="You must have a Recipe Title and ingredients!"),e==="/instructions")if(await c()){d=!0;const v=l.flatMap(S=>S.items.flat());r(S5(v))}else m="Fill in all quantities and units!";e==="/print"&&(await f()?d=!0:m="Create some instructions with ingredients!"),d?(r(Hr("")),n(e)):r(Hr(m))}else r(Hr("")),n(e,{replace:!0})};return C.jsx("div",{"data-testid":t?"next":"back",onKeyDown:$i,onClick:p,children:t?C.jsx("button",{className:"go-to-button-arrow right-0 bg-green-500 hover:bg-green-400 hover:translate-x-4",type:"button",children:"NEXT"}):C.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 Vx({link:e,icon:t}){return C.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"mx-1",children:C.jsx(In,{icon:t,size:"2x",className:"num-input-icons"})})}var TF={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},AF={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]};function IF(){const e=lt(t=>t.groups.ingredientsGroups);return C.jsxs("div",{"data-testid":"homepage",className:"max-h-screen flex flex-col",children:[C.jsx(_l,{page:"/quantities",isNext:!0}),C.jsx(N5,{}),C.jsxs("div",{className:"flex flex-grow md:p-2 lg:p-2 sm:gap-4 md:gap-4 lg:gap-8 mx-4",children:[C.jsx("div",{className:"main-gallery sm:w-2/3 md:w-4/5 lg:w-3/5",children:C.jsx($6,{})}),C.jsx("div",{className:`main-gallery sm:w-1/3 w-2/5 ${e.length===0&&"required-element-border"}`,children:C.jsx(OF,{})})]}),C.jsxs("div",{className:"absolute top-0 left-0 m-4",children:[C.jsx(Vx,{link:"https://www.linkedin.com/in/yafimsimanovsky/",icon:TF}),C.jsx(Vx,{link:"https://github.com/yafimski/a4recipe",icon:AF})]})]})}function DF(){const e=wn(),t=lt(r=>r.actions.availableItems),n=r=>{e(mg(r))};return t.map((r,o)=>C.jsx("div",{"data-item-name":r.itemName,className:"mb-1 pb-2 lg:pb-4 print-rounded opacity-100 hover:scale-105",onKeyDown:$i,children:C.jsx(Ad,{groupName:o.toString(),item:r,allowRemove:!1,onRemove:()=>n(r)})},`${r.itemName}_shelf_${o}`))}function xE({action:e}){const{attributes:t,listeners:n,setNodeRef:r,transform:o,transition:l}=wE({id:e.actionName,data:{type:"Action",action:e}}),s={transition:l,transform:zi.Translate.toString(o)},{actionName:c}=e;return C.jsx("div",{ref:r,style:s,...n,...t,children:C.jsxs("div",{className:"bg-white card-shadow print-rounded w-clamp",children:[C.jsx("img",{draggable:"false",src:`${Xr}/assets/chefActions/${c}.webp`,alt:c,"data-testid":`${c}_action`,className:"print-rounded-img rounded-t-lg w-clamp"}),C.jsx("p",{className:"md:text-sm text-fluidPrint py-2",children:c})]},c)})}function MF(){return o5.map(e=>C.jsx(R.Suspense,{fallback:C.jsx("div",{className:"suspense-gallery-action","data-testid":`${e.actionName}_suspense`,children:""}),children:C.jsx("div",{className:"bg-white mx-2 aspect-videoThin hover:scale-105",children:C.jsx(xE,{action:e})})},`${e.actionName}_suspense`))}function Xx({icon:e,onCaretClick:t}){return C.jsx("div",{className:"flex center max-h-short cursor-pointer hover:border-y-2 hover:border-black",onClick:()=>t(),onKeyDown:$i,children:C.jsx(In,{icon:e,size:"lg"})})}function LF({instruction:e}){const t=R.useRef(null),n=wn(),[r,o]=R.useState(e.note),[l,s]=R.useState(null),c=v=>{r?n(Rc({id:e.id,note:v})):(s(null),n(Rc({id:e.id,note:""})))},f=()=>{s(null),o(""),n(Rc({id:e.id,note:""}))},p=v=>{o(v.target.value)},d=l===e.id;R.useEffect(()=>{d&&t.current&&t.current.focus()},[d]);const m=(v,S)=>{if(v.key==="Enter"){const{id:E,note:k}=S;n(Rc({id:E,note:k})),v.target.blur()}};return d||e.note?C.jsxs("div",{className:"flex justify-end items-center md:w-60 lg:w-96",children:[C.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:p,onBlur:v=>c(v.target.value),onKeyDown:v=>m(v,e)}),C.jsx(In,{icon:wd,size:"1x",className:"bg-white -ml-2 cursor-pointer",onClick:()=>f()})]}):C.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:C.jsx("span",{children:"Add Note"})})}function jF({instruction:e}){const t=wn(),[n,r]=R.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 R.useEffect(()=>{t(b5({instruction:e,time:n}))},[t,e,n]),C.jsxs("div",{className:"flex flex-row rounded-md mx-2",children:[C.jsx("button",{type:"button",onClick:s,children:C.jsx(In,{icon:t2,className:"num-input-icons"})}),C.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()}),C.jsx("button",{type:"button",onClick:c,children:C.jsx(In,{icon:n2,className:"num-input-icons"})})]})}function FF({action:e}){const{actionName:t}=e;return C.jsxs("div",{className:"bg-white card-shadow print-rounded w-clamp",children:[C.jsx("img",{draggable:"false",src:`${Xr}/assets/chefActions/${t}.webp`,alt:t,"data-testid":`${t}_action`,className:"print-rounded-img md:w-clampSmall lg:w-clamp"}),C.jsx("p",{className:"md:text-sm text-fluidCard py-2",children:t})]},t)}function zF({groupName:e,item:t,onRemoveItem:n}){const r=()=>{n(t)};return C.jsxs("div",{className:"relative print-rounded aspect-square print-image card-shadow center",children:[C.jsx("img",{draggable:"false",src:`${Xr}/assets/ingredients/${t.itemName.toLowerCase()}.webp`,alt:t.itemName,"data-testid":`${e}_${t.itemName}_shelf`,className:"print-rounded print-image"}),C.jsx("div",{className:"flex center rounded-2xl",children:C.jsx(In,{icon:wd,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 UF({instruction:e,refClick:t}){const[n,r]=R.useState(""),{setNodeRef:o}=Td({id:e.id,data:{type:"Instruction",instruction:e}}),l=wn(),s=(E,k)=>{const A=k.items.filter(_=>!Ko.isEqual(_,E));l(e2({id:k.id,items:A})),l(mg(E))},c=E=>{l(x5(E)),l(E5(E.items))},f=(E,k)=>{l(y5({id:k.id,customItem:E.target.value})),E.target.blur()},p=E=>{r(E.target.value)},d=E=>{E.key===" "&&(E.preventDefault(),r(k=>`${k} `))},{id:m,action:v,items:S}=e;return C.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:[C.jsxs("div",{className:"flex items-center justify-between pl-6",children:[C.jsxs("div",{className:"flex justify-start w-full py-2",children:[C.jsxs("div",{draggable:"false",className:"flex center",onClick:()=>{t(e)},onKeyDown:$i,children:[C.jsx(FF,{action:v}),C.jsx("span",{className:"md:text-xs text-fluidSubtitle ml-4",children:"THE"}),C.jsx("div",{className:"flex flex-row",children:C.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=>C.jsx("div",{className:"px-2 py-2",children:C.jsx(zF,{groupName:m.toString(),item:E,onRemoveItem:k=>s(k,e)})},`${m}_${E.itemName}`)):C.jsxs("div",{className:"flex flex-col justify-between items-center sm:min-h-16 md:min-h-24",children:[C.jsx("span",{className:"sm:text-sm md:text-base lg:text-lg",children:n?C.jsxs("b",{className:"text-neutral-400",children:["Drop Item ",C.jsx("br",{})," or"]}):C.jsxs("b",{children:["Drop Item ",C.jsx("br",{})," or"]})},m),C.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=>p(E),onKeyDown:d,onBlur:E=>f(E,e)})]})})})]}),v.time!==-1&&C.jsxs("div",{className:"flex center",children:[C.jsx("span",{className:"text-fluidSubtitle mx-2",children:"FOR"}),C.jsx(jF,{instruction:e}),C.jsx("span",{className:"text-fluidSubtitle md:ml-2 lg:ml-4",children:v.unit})]})]}),C.jsx("button",{type:"button",className:"px-4 md:ml-2 lg:ml-8 h-fit",onClick:()=>c(e),children:C.jsx(In,{icon:T5,size:"lg",color:"red",className:"cursor-pointer hover:text-black"})})]}),C.jsx("div",{className:"flex center sm:mt-4 md:mt-6",children:C.jsx(LF,{instruction:e})})]},`${m}_${v}`)}const $F=R.memo(({onRefClick:e})=>[...lt(r=>r.actions.chefInstructions)].sort((r,o)=>r.id-o.id).map(r=>C.jsx("div",{"data-instruction":r.id,className:"pt-4",children:C.jsx(UF,{instruction:r,refClick:o=>e(o)})},r.id)));function BF({onInstructionClick:e}){const{setNodeRef:t}=Td({id:"steps_container",data:{type:"Steps"}}),n=lt(s=>s.actions.chefInstructions),r=R.useRef(null),o=R.useRef(n.length),l=R.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 R.useEffect(()=>{n.length!==o.current&&(l(),o.current=n.length)},[n,l]),C.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&&C.jsxs("h2",{className:"text-fluidSubtitle text-gray-600",children:["Drag an action ",C.jsx("b",{children:"[ top ]"})," to this area ",C.jsx("br",{}),"and start adding ingredients ",C.jsx("b",{children:"[left ]"})," to it!",C.jsx("br",{}),C.jsx("br",{}),"To add more steps just",C.jsx("br",{}),"drag another action.",C.jsx("br",{}),C.jsx("br",{}),C.jsx("b",{children:"Replace an action by dragging a new one over it!"})]}),C.jsx($F,{onRefClick:s=>e(s)})]})}function WF(){const e=R.useRef(null),t=R.useRef(null),[n,r]=R.useState(!1),[o,l]=R.useState(0),[s,c]=R.useState(0),[f,p]=R.useState(null),[d,m]=R.useState(null),[v,S]=R.useState(null),E=wn(),k=lt(F=>F.actions.chefInstructions);R.useEffect(()=>{if(v){const F=v.current,q=te=>{F&&(te.preventDefault(),te.deltaY<0?F.scrollLeft-=20:F.scrollLeft+=20)};return F&&F.addEventListener("wheel",q,{passive:!1}),()=>{F&&F.removeEventListener("wheel",q)}}},[v]);const A=F=>{if(v!=null&&v.current){const te=v.current.firstChild.offsetWidth*4;v.current.scrollBy({left:F==="left"?-te:te,behavior:"smooth"})}},_=(F,q)=>{F.current&&(S(F),F.current&&(r(!0),l(q.pageX-F.current.offsetLeft),c(F.current.scrollLeft)))},b=(F,q)=>{if(!(!n||!F.current)&&(S(F),q.preventDefault(),F.current)){const we=q.pageX-F.current.offsetLeft-o;F.current.scrollLeft=s-we}},y=F=>{const q=e.current;let te=null;te=q==null?void 0:q.querySelector(`[data-action-name="${F.action.actionName}"]`),te&&te.scrollIntoView({behavior:"smooth",inline:"center"})},O=F=>{E(w5({id:k.length>0?Math.max(...k.map(q=>q.id))+1:0,note:"",action:F,items:[]}))},I=F=>{var q,te,we,fe;((q=F.active.data.current)==null?void 0:q.type)==="Action"?p((te=F.active.data.current)==null?void 0:te.action):p(null),((we=F.active.data.current)==null?void 0:we.type)==="Ingredient"?m((fe=F.active.data.current)==null?void 0:fe.item):m(null)},G=F=>{var ie,le,Ae,B,W,ae;const{active:q,over:te}=F;if(!te)return;const we=(ie=q.data.current)==null?void 0:ie.type,fe=(le=te.data.current)==null?void 0:le.type;if(we==="Action"&&fe==="Steps")O((Ae=q.data.current)==null?void 0:Ae.action);else if(fe==="Instruction"){const se=(B=te.data.current)==null?void 0:B.instruction;if(we==="Action"){const oe=(W=q.data.current)==null?void 0:W.action;E(_5({id:se.id,action:oe}))}else if(we==="Ingredient"){const oe=(ae=q.data.current)==null?void 0:ae.item;se.items.find(Fe=>Ko.isEqual(Fe,oe))||(E(e2({id:se.id,items:[...se.items,oe]})),E(mg(oe)))}}},N=F=>{const q=Q2(F);return q.length>0?q.sort((we,fe)=>{const ie=F.droppableRects.get(we.id),le=F.droppableRects.get(fe.id);if(ie&&le){const Ae=ie.width*ie.height,B=le.width*le.height;return Ae-B}return 0}):X2(F)},$=Y2(Yf(jg,{activationConstraint:{distance:0}}),Yf(Fg,{activationConstraint:{distance:10}}));return C.jsx(mE,{collisionDetection:N,modifiers:[vF],sensors:$,onDragEnd:G,onDragStart:I,children:C.jsxs("div",{className:"mt-16 max-h-5/6 w-11/12 input-gallery-border p-4",children:[C.jsx("h2",{className:"text-fluidSubtitle mb-2",children:"Plan the instructions and steps for this recipe!"}),C.jsxs("div",{className:"flex flex-row gap-2",children:[C.jsx(Xx,{icon:L5,onCaretClick:()=>A("left")}),C.jsx("div",{id:"actions-scrollbar",className:"flex w-full overflow-x-scroll py-4 pt-4 overflow-y-auto",ref:e,onMouseDown:F=>_(e,F),onMouseLeave:()=>r(!1),onMouseUp:()=>r(!1),onMouseMove:F=>b(e,F),children:C.jsx(MF,{})}),C.jsx(Xx,{icon:A5,onCaretClick:()=>A("right")}),f&&C.jsx(ov,{children:C.jsx(xE,{action:f})})]}),C.jsxs("div",{className:"flex w-full justify-between mt-8",children:[C.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:C.jsx("div",{className:"scroll-mirror",children:C.jsx(DF,{})})}),d&&C.jsx(ov,{children:C.jsx(Ad,{groupName:Math.random().toString(),item:d,allowRemove:!1})}),C.jsx(BF,{onInstructionClick:F=>y(F)})]})]})})}function HF(){const e=lt(t=>t.warning.warning);return C.jsxs("div",{"data-testid":"instructions",className:"min-h-screen flex flex-col",children:[C.jsx(_l,{page:"/print",isNext:!0}),C.jsx(_l,{page:"/quantities",isNext:!1}),C.jsx("div",{className:"flex h-screen justify-center text-center",children:C.jsx(WF,{})}),e&&C.jsx(hg,{})]})}function GF(){const e=lt(t=>t.groups.ingredientsGroups);return C.jsx("div",{className:"flex flex-col center",children:e.map(t=>C.jsxs("div",{className:"flex flex-wrap center mb-12 group-borders-half w-10/12",children:[C.jsx("p",{className:"font-bold mb-4",children:t.groupName}),C.jsx("div",{className:"flex flex-wrap center gap-x-10 md:gap-y-4 lg:gap-y-8",children:t.items.map(n=>C.jsxs("div",{className:"flex flex-row center",children:[C.jsx("img",{src:`${Xr}/assets/ingredients/${n.itemName.toLowerCase()}.webp`,alt:n.itemName,className:"print-rounded md:w-12 lg:w-28"}),C.jsx("div",{className:"flex flex-col center w-16 ml-1",children:C.jsxs("span",{className:"md:text-xs lg:text-sm rounded-xl md:mt-1 lg:mt-1 xl:mt-2",children:[C.jsx("p",{className:"mb-2",children:n.itemName}),C.jsxs("p",{className:"font-semibold",children:[n.amount," ",n.unit]})]})})]},`${t.groupName}_${n.itemName}`))})]},t.groupName))})}function KF(){const e=lt(t=>t.actions.chefInstructions);return C.jsx("div",{className:"flex flex-col center",children:e.map((t,n)=>C.jsxs("div",{className:"flex flex-col center items-start w-fit mb-8",children:[C.jsxs("div",{className:"relative flex flex-row md:gap-2 lg:gap-4 pointer-events-none center",children:[C.jsxs("span",{className:"print-small-text mr-4 font-bold",children:["Step ",n+1]}),C.jsx("div",{children:C.jsxs("div",{className:"bg-white card-shadow print-rounded w-fullImage",children:[C.jsx("img",{draggable:"false",src:`${Xr}/assets/chefActions/${t.action.actionName}.webp`,alt:t.action.actionName,"data-testid":`${t.action.actionName}_action`,className:"print-rounded-img w-fullImage"}),C.jsx("p",{className:"print-small-text text-center",children:t.action.actionName})]})}),C.jsx("span",{className:"print-small-text",children:"THE"}),t.customItem?C.jsx("b",{className:"print-small-text",children:t.customItem}):C.jsx("div",{className:"center justify-start flex flex-row flex-wrap max-w-52 lg:max-w-80 md:gap-y-1 lg:gap-y-2",children:t.items.map(r=>C.jsx("div",{className:"flex center py-1 px-2",children:C.jsx("img",{src:`${Xr}/assets/ingredients/${r.itemName.toLowerCase()}.webp`,alt:r.itemName,className:"card-shadow w-12 lg:w-20 print-rounded"})},`${t.id}_${r.itemName}`))}),t.action.time!==-1&&C.jsxs("span",{className:"print-small-text",children:["FOR ",C.jsx("br",{}),t.action.time," ",t.action.unit]})]}),C.jsx("div",{className:"flex w-full",children:C.jsx("span",{className:"print-small-text mt-2",children:t.note})}),C.jsx("hr",{className:"hr-generic"})]},`${t.id}`))})}function YF(){const e=sg(),t=wn(),n=async()=>{t(XS()),t(Hr("")),t(KS()),t(g5()),e(`${Xr}/`)};return C.jsx("div",{"data-testid":"make_another",onKeyDown:$i,onClick:n,children:C.jsxs("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",C.jsx("br",{}),"ANOTHER"]})})}function qF(){const e=lt(l=>l.recipe),t=lt(l=>l.groups),n=lt(l=>l.actions),r=lt(l=>l.warning),o=()=>{const l={recipe:{...e,possibleItems:[]},groups:t,actions:n,warning:r},s=JSON.stringify(l),c=new Blob([s],{type:"application/json"}),f=URL.createObjectURL(c),p=document.createElement("a");p.href=f,p.download=`${e.title}_recipe.json`,p.click(),URL.revokeObjectURL(f)};return C.jsx("div",{"data-testid":"save",onKeyDown:$i,onClick:o,children:C.jsxs("button",{type:"button",className:"save-button",children:["Save",C.jsx("br",{}),"for later"]})})}function VF(){const e=wn(),t=lt(s=>s.recipe.batches),[n,r]=R.useState(t),o=s=>{s.target.select()},l=s=>{Number.isNaN(s)?(e(Zw({batch:1,divider:n})),r(1)):(e(Zw({batch:s,divider:n})),r(s))};return R.useEffect(()=>{e(f5(n))},[e,n]),C.jsx("div",{className:"relative mb-4",children:C.jsxs("div",{className:"flex flex-col center rounded-md mx-2",children:[C.jsx("p",{className:"text-xl",children:"# of batches"}),C.jsx("input",{className:`sm:w-6 md:w-6 lg:w-12 p-0 md:mx-2 lg:mx-4 focus:outline-none text-center rounded-2xl sm:text-xl md:text-2xl lg:text-3xl bg-transparent border-2 border-transparent hover:border-neutral-500 hover:border-2 ${n===0&&"required-element-fill"}`,type:"number",id:"units-number-input",value:n,required:!0,onChange:s=>l(Number.parseFloat(s.target.value)),onFocus:o,onWheel:s=>s.target.blur()})]})})}var bE={exports:{}};(function(e,t){(function(n,r){e.exports=r(R,Br)})(typeof self<"u"?self:ja,function(n,r){return function(){var o={328:function(f,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.PrintContextConsumer=p.PrintContext=void 0;var m=d(496),v=Object.prototype.hasOwnProperty.call(m,"createContext");p.PrintContext=v?m.createContext({}):null,p.PrintContextConsumer=p.PrintContext?p.PrintContext.Consumer:function(){return null}},428:function(f,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.ReactToPrint=void 0;var m=d(316),v=d(496),S=d(190),E=d(328),k=d(940),A=function(_){function b(){var y=_.apply(this,m.__spreadArray([],m.__read(arguments),!1))||this;return y.startPrint=function(O){var I=y.props,G=I.onAfterPrint,N=I.onPrintError,$=I.print,F=I.documentTitle;setTimeout(function(){var q,te;if(O.contentWindow)if(O.contentWindow.focus(),$)$(O).then(function(){return G==null?void 0:G()}).then(function(){return y.handleRemoveIframe()}).catch(function(ie){N?N("print",ie):y.logMessages(["An error was thrown by the specified `print` function"])});else{if(O.contentWindow.print){var we=(te=(q=O.contentDocument)===null||q===void 0?void 0:q.title)!==null&&te!==void 0?te:"",fe=O.ownerDocument.title;F&&(O.ownerDocument.title=F,O.contentDocument&&(O.contentDocument.title=F)),O.contentWindow.print(),F&&(O.ownerDocument.title=fe,O.contentDocument&&(O.contentDocument.title=we))}else y.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);G==null||G(),y.handleRemoveIframe()}else y.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},y.triggerPrint=function(O){var I=y.props,G=I.onBeforePrint,N=I.onPrintError;if(G){var $=G();$&&typeof $.then=="function"?$.then(function(){y.startPrint(O)}).catch(function(F){N&&N("onBeforePrint",F)}):y.startPrint(O)}else y.startPrint(O)},y.handlePrint=function(O){var I=y.props,G=I.bodyClass,N=I.content,$=I.copyStyles,F=I.fonts,q=I.pageStyle,te=I.nonce,we=typeof O=="function"?O():null;if(we&&typeof N=="function"&&y.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),we||typeof N!="function"||(we=N()),we!==void 0)if(we!==null){var fe=document.createElement("iframe");fe.width="".concat(document.documentElement.clientWidth,"px"),fe.height="".concat(document.documentElement.clientHeight,"px"),fe.style.position="absolute",fe.style.top="-".concat(document.documentElement.clientHeight+100,"px"),fe.style.left="-".concat(document.documentElement.clientWidth+100,"px"),fe.id="printWindow",fe.srcdoc="";var ie=(0,S.findDOMNode)(we);if(ie){var le=ie.cloneNode(!0),Ae=le instanceof Text,B=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),W=Ae?[]:le.querySelectorAll("img"),ae=Ae?[]:le.querySelectorAll("video"),se=F?F.length:0;y.numResourcesToLoad=B.length+W.length+ae.length+se,y.resourcesLoaded=[],y.resourcesErrored=[];var oe=function(ye,Fe){y.resourcesLoaded.includes(ye)?y.logMessages(["Tried to mark a resource that has already been handled",ye],"debug"):(Fe?(y.logMessages(m.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],m.__read(Fe),!1)),y.resourcesErrored.push(ye)):y.resourcesLoaded.push(ye),y.resourcesLoaded.length+y.resourcesErrored.length===y.numResourcesToLoad&&y.triggerPrint(fe))};fe.onload=function(){var ye,Fe,Ve,Xe;fe.onload=null;var Ee=fe.contentDocument||((Fe=fe.contentWindow)===null||Fe===void 0?void 0:Fe.document);if(Ee){Ee.body.appendChild(le),F&&(!((Ve=fe.contentDocument)===null||Ve===void 0)&&Ve.fonts&&(!((Xe=fe.contentWindow)===null||Xe===void 0)&&Xe.FontFace)?F.forEach(function(it){var Me=new FontFace(it.family,it.source,{weight:it.weight,style:it.style});fe.contentDocument.fonts.add(Me),Me.loaded.then(function(){oe(Me)}).catch(function(nt){oe(Me,["Failed loading the font:",Me,"Load error:",nt])})}):(F.forEach(function(it){return oe(it)}),y.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var ft=typeof q=="function"?q():q;if(typeof ft!="string")y.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof ft,'". Styles from `pageStyle` will not be applied.')]);else{var yt=Ee.createElement("style");te&&(yt.setAttribute("nonce",te),Ee.head.setAttribute("nonce",te)),yt.appendChild(Ee.createTextNode(ft)),Ee.head.appendChild(yt)}if(G&&(ye=Ee.body.classList).add.apply(ye,m.__spreadArray([],m.__read(G.split(" ")),!1)),!Ae){for(var z=Ae?[]:ie.querySelectorAll("canvas"),j=Ee.querySelectorAll("canvas"),K=0;K",Me,"Error",Tt])},Je.src=nt}else oe(Me,['Found an tag with an empty "src" attribute. This prevents pre-loading it. The is:',Me])};for(K=0;K=2?oe(Me):(Me.onloadeddata=function(){return oe(Me)},Me.onerror=function(cn,jn,qn,Kt,Tt){return oe(Me,["Error loading video",Me,"Error",Tt])},Me.onstalled=function(){return oe(Me,["Loading video stalled, skipping",Me])})};for(K=0;K tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The is:",nt],"warning"),oe(nt);else{for(var Tt=Ee.createElement(nt.tagName),Vn=(Kt=0,nt.attributes.length);Kt tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the was not loaded. The is:",nt],"warning"),oe(nt)},Gt=(K=0,jt.length);K{p(!0)},[]),Q6(R.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 d=pt.createElement(pt.Fragment,null,pt.createElement(q6,{id:r,value:o.draggable}),pt.createElement(V6,{id:c,announcement:s}));return n?Br.createPortal(d,n):d}var nn;(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"})(nn||(nn={}));function Kf(){}function Yf(e,t){return R.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Y2(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(r=>r!=null),[...t])}const Jr=Object.freeze({x:0,y:0});function q2(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function nj(e,t){const n=Gf(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 rj(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function tv(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 ij(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const X2=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=tv(t),l=[];for(const s of r){const{id:c}=s,f=n.get(c);if(f){const p=tv(f),d=o.reduce((v,S,C)=>v+q2(p[C],S),0),m=Number((d/4).toFixed(4));l.push({id:c,data:{droppableContainer:s,value:m}})}}return l.sort(V2)};function oj(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=oj(c,t);f>0&&o.push({id:s,data:{droppableContainer:l,value:f}})}}return o.sort(rj)};function lj(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 Q2=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&&lj(r,c)){const p=tv(c).reduce((m,v)=>m+q2(r,v),0),d=Number((p/4).toFixed(4));o.push({id:s,data:{droppableContainer:l,value:d}})}}return o.sort(V2)};function sj(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function J2(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Jr}function uj(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 cj=uj(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 fj(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),p=e.top-c-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),d=o?e.width/o:e.width,m=l?e.height/l:e.height;return{width:d,height:m,top:p,right:f+d,bottom:p+m,left:f}}const dj={ignoreTransform:!1};function Al(e,t){t===void 0&&(t=dj);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:p,transformOrigin:d}=Mn(e).getComputedStyle(e);p&&(n=fj(n,p,d))}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 zx(e){return Al(e,{ignoreTransform:!0})}function pj(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function hj(e,t){return t===void 0&&(t=Mn(e).getComputedStyle(e)),t.position==="fixed"}function mj(e,t){t===void 0&&(t=Mn(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 Dg(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(!gu(o)||H2(o)||n.includes(o))return n;const l=Mn(e).getComputedStyle(o);return o!==e&&mj(o,l)&&n.push(o),hj(o,l)?n:r(o.parentNode)}return e?r(e):n}function eE(e){const[t]=Dg(e,1);return t??null}function Nh(e){return!Cd||!e?null:Ol(e)?e:Ag(e)?Ig(e)||e===Tl(e).scrollingElement?window:gu(e)?e:null:null}function tE(e){return Ol(e)?e.scrollX:e.scrollLeft}function nE(e){return Ol(e)?e.scrollY:e.scrollTop}function nv(e){return{x:tE(e),y:nE(e)}}var sn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(sn||(sn={}));function rE(e){return!Cd||!e?!1:e===document.scrollingElement}function iE(e){const t={x:0,y:0},n=rE(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 vj={x:.2,y:.2};function gj(e,t,n,r,o){let{top:l,left:s,right:c,bottom:f}=n;r===void 0&&(r=10),o===void 0&&(o=vj);const{isTop:p,isBottom:d,isLeft:m,isRight:v}=iE(e),S={x:0,y:0},C={x:0,y:0},k={height:t.height*o.y,width:t.width*o.x};return!p&&l<=t.top+k.height?(S.y=sn.Backward,C.y=r*Math.abs((t.top+k.height-l)/k.height)):!d&&f>=t.bottom-k.height&&(S.y=sn.Forward,C.y=r*Math.abs((t.bottom-k.height-f)/k.height)),!v&&c>=t.right-k.width?(S.x=sn.Forward,C.x=r*Math.abs((t.right-k.width-c)/k.width)):!m&&s<=t.left+k.width&&(S.x=sn.Backward,C.x=r*Math.abs((t.left+k.width-s)/k.width)),{direction:S,speed:C}}function yj(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 oE(e){return e.reduce((t,n)=>sl(t,nv(n)),Jr)}function wj(e){return e.reduce((t,n)=>t+tE(n),0)}function xj(e){return e.reduce((t,n)=>t+nE(n),0)}function aE(e,t){if(t===void 0&&(t=Al),!e)return;const{top:n,left:r,bottom:o,right:l}=t(e);eE(e)&&(o<=0||l<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const bj=[["x",["left","right"],wj],["y",["top","bottom"],xj]];class Lg{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=Dg(n),o=oE(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,s,c]of bj)for(const f of s)Object.defineProperty(this,f,{get:()=>{const p=c(r),d=o[l]-p;return this.rect[f]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ks{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 _j(e){const{EventTarget:t}=Mn(e);return e instanceof t?e:Tl(e)}function Rh(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 Er;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Er||(Er={}));function Ux(e){e.preventDefault()}function Sj(e){e.stopPropagation()}var at;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(at||(at={}));const lE={start:[at.Space,at.Enter],cancel:[at.Esc],end:[at.Space,at.Enter]},Ej=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case at.Right:return{...n,x:n.x+25};case at.Left:return{...n,x:n.x-25};case at.Down:return{...n,y:n.y+25};case at.Up:return{...n,y:n.y-25}}};class sE{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 ks(Tl(n)),this.windowListeners=new ks(Mn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Er.Resize,this.handleCancel),this.windowListeners.add(Er.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Er.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&aE(r),n(Jr)}handleKeyDown(t){if(Rd(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:l=lE,coordinateGetter:s=Ej,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:p}=r.current,d=p?{x:p.left,y:p.top}:Jr;this.referenceCoordinates||(this.referenceCoordinates=d);const m=s(t,{active:n,context:r.current,currentCoordinates:d});if(m){const v=Hf(m,d),S={x:0,y:0},{scrollableAncestors:C}=r.current;for(const k of C){const A=t.code,{isTop:_,isRight:b,isLeft:y,isBottom:O,maxScroll:I,minScroll:G}=iE(k),N=yj(k),$={x:Math.min(A===at.Right?N.right-N.width/2:N.right,Math.max(A===at.Right?N.left:N.left+N.width/2,m.x)),y:Math.min(A===at.Down?N.bottom-N.height/2:N.bottom,Math.max(A===at.Down?N.top:N.top+N.height/2,m.y))},F=A===at.Right&&!b||A===at.Left&&!y,q=A===at.Down&&!O||A===at.Up&&!_;if(F&&$.x!==m.x){const te=k.scrollLeft+v.x,we=A===at.Right&&te<=I.x||A===at.Left&&te>=G.x;if(we&&!v.y){k.scrollTo({left:te,behavior:c});return}we?S.x=k.scrollLeft-te:S.x=A===at.Right?k.scrollLeft-I.x:k.scrollLeft-G.x,S.x&&k.scrollBy({left:-S.x,behavior:c});break}else if(q&&$.y!==m.y){const te=k.scrollTop+v.y,we=A===at.Down&&te<=I.y||A===at.Up&&te>=G.y;if(we&&!v.x){k.scrollTo({top:te,behavior:c});return}we?S.y=k.scrollTop-te:S.y=A===at.Down?k.scrollTop-I.y:k.scrollTop-G.y,S.y&&k.scrollBy({top:-S.y,behavior:c});break}}this.handleMove(t,sl(Hf(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()}}sE.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=lE,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 $x(e){return!!(e&&"distance"in e)}function Bx(e){return!!(e&&"delay"in e)}class Mg{constructor(t,n,r){var o;r===void 0&&(r=_j(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=Tl(s),this.documentListeners=new ks(this.document),this.listeners=new ks(r),this.windowListeners=new ks(Mn(s)),this.initialCoordinates=(o=Gf(l))!=null?o:Jr,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(Er.Resize,this.handleCancel),this.windowListeners.add(Er.DragStart,Ux),this.windowListeners.add(Er.VisibilityChange,this.handleCancel),this.windowListeners.add(Er.ContextMenu,Ux),this.documentListeners.add(Er.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Bx(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if($x(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(Er.Click,Sj,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Er.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=Gf(t))!=null?n:Jr,p=Hf(o,f);if(!r&&c){if($x(c)){if(c.tolerance!=null&&Rh(p,c.tolerance))return this.handleCancel();if(Rh(p,c.distance))return this.handleStart()}return Bx(c)&&Rh(p,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===at.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Cj={move:{name:"pointermove"},end:{name:"pointerup"}};class uE extends Mg{constructor(t){const{event:n}=t,r=Tl(n.target);super(t,Cj,r)}}uE.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 kj={move:{name:"mousemove"},end:{name:"mouseup"}};var rv;(function(e){e[e.RightClick=2]="RightClick"})(rv||(rv={}));class jg extends Mg{constructor(t){super(t,kj,Tl(t.event.target))}}jg.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===rv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Ph={move:{name:"touchmove"},end:{name:"touchend"}};class Fg extends Mg{constructor(t){super(t,Ph)}static setup(){return window.addEventListener(Ph.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Ph.move.name,t)};function t(){}}}Fg.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 qf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(qf||(qf={}));function Nj(e){let{acceleration:t,activator:n=Ns.Pointer,canScroll:r,draggingRect:o,enabled:l,interval:s=5,order:c=qf.TreeOrder,pointerCoordinates:f,scrollableAncestors:p,scrollableAncestorRects:d,delta:m,threshold:v}=e;const S=Pj({delta:m,disabled:!l}),[C,k]=W6(),A=R.useRef({x:0,y:0}),_=R.useRef({x:0,y:0}),b=R.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]),y=R.useRef(null),O=R.useCallback(()=>{const G=y.current;if(!G)return;const N=A.current.x*_.current.x,$=A.current.y*_.current.y;G.scrollBy(N,$)},[]),I=R.useMemo(()=>c===qf.TreeOrder?[...p].reverse():p,[c,p]);R.useEffect(()=>{if(!l||!p.length||!b){k();return}for(const G of I){if((r==null?void 0:r(G))===!1)continue;const N=p.indexOf(G),$=d[N];if(!$)continue;const{direction:F,speed:q}=gj(G,$,b,t,v);for(const te of["x","y"])S[te][F[te]]||(q[te]=0,F[te]=0);if(q.x>0||q.y>0){k(),y.current=G,C(O,s),A.current=q,_.current=F;return}}A.current={x:0,y:0},_.current={x:0,y:0},k()},[t,O,r,k,l,s,JSON.stringify(b),JSON.stringify(S),C,p,I,d,JSON.stringify(v)])}const Rj={x:{[sn.Backward]:!1,[sn.Forward]:!1},y:{[sn.Backward]:!1,[sn.Forward]:!1}};function Pj(e){let{delta:t,disabled:n}=e;const r=Wf(t);return yu(o=>{if(n||!r||!o)return Rj;const l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[sn.Backward]:o.x[sn.Backward]||l.x===-1,[sn.Forward]:o.x[sn.Forward]||l.x===1},y:{[sn.Backward]:o.y[sn.Backward]||l.y===-1,[sn.Forward]:o.y[sn.Forward]||l.y===1}}},[n,t,r])}function Oj(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return yu(o=>{var l;return t===null?null:(l=r??o)!=null?l:null},[r,t])}function Tj(e,t){return R.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 iu;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(iu||(iu={}));var iv;(function(e){e.Optimized="optimized"})(iv||(iv={}));const Wx=new Map;function Aj(e,t){let{dragging:n,dependencies:r,config:o}=t;const[l,s]=R.useState(null),{frequency:c,measure:f,strategy:p}=o,d=R.useRef(e),m=A(),v=ru(m),S=R.useCallback(function(_){_===void 0&&(_=[]),!v.current&&s(b=>b===null?_:b.concat(_.filter(y=>!b.includes(y))))},[v]),C=R.useRef(null),k=yu(_=>{if(m&&!n)return Wx;if(!_||_===Wx||d.current!==e||l!=null){const b=new Map;for(let y of e){if(!y)continue;if(l&&l.length>0&&!l.includes(y.id)&&y.rect.current){b.set(y.id,y.rect.current);continue}const O=y.node.current,I=O?new Lg(f(O),O):null;y.rect.current=I,I&&b.set(y.id,I)}return b}return _},[e,l,n,m,f]);return R.useEffect(()=>{d.current=e},[e]),R.useEffect(()=>{m||S()},[n,m]),R.useEffect(()=>{l&&l.length>0&&s(null)},[JSON.stringify(l)]),R.useEffect(()=>{m||typeof c!="number"||C.current!==null||(C.current=setTimeout(()=>{S(),C.current=null},c))},[c,m,S,...r]),{droppableRects:k,measureDroppableContainers:S,measuringScheduled:l!=null};function A(){switch(p){case iu.Always:return!1;case iu.BeforeDragging:return n;default:return!n}}}function zg(e,t){return yu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Ij(e,t){return zg(e,t)}function Dj(e){let{callback:t,disabled:n}=e;const r=kd(t),o=R.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(r)},[r,n]);return R.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Pd(e){let{callback:t,disabled:n}=e;const r=kd(t),o=R.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(r)},[n]);return R.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Lj(e){return new Lg(Al(e),e)}function Hx(e,t,n){t===void 0&&(t=Lj);const[r,o]=R.useReducer(c,null),l=Dj({callback(f){if(e)for(const p of f){const{type:d,target:m}=p;if(d==="childList"&&m instanceof HTMLElement&&m.contains(e)){o();break}}}}),s=Pd({callback:o});return Qr(()=>{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 p;return(p=f??n)!=null?p:null}const d=t(e);return JSON.stringify(f)===JSON.stringify(d)?f:d}}function Mj(e){const t=zg(e);return J2(e,t)}const Gx=[];function jj(e){const t=R.useRef(e),n=yu(r=>e?r&&r!==Gx&&e&&t.current&&e.parentNode===t.current.parentNode?r:Dg(e):Gx,[e]);return R.useEffect(()=>{t.current=e},[e]),n}function Fj(e){const[t,n]=R.useState(null),r=R.useRef(e),o=R.useCallback(l=>{const s=Nh(l.target);s&&n(c=>c?(c.set(s,nv(s)),new Map(c)):null)},[]);return R.useEffect(()=>{const l=r.current;if(e!==l){s(l);const c=e.map(f=>{const p=Nh(f);return p?(p.addEventListener("scroll",o,{passive:!0}),[p,nv(p)]):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 p=Nh(f);p==null||p.removeEventListener("scroll",o)})}},[o,e]),R.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,s)=>sl(l,s),Jr):oE(e):Jr,[e,t])}function Kx(e,t){t===void 0&&(t=[]);const n=R.useRef(null);return R.useEffect(()=>{n.current=null},t),R.useEffect(()=>{const r=e!==Jr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Hf(e,n.current):Jr}function zj(e){R.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 Uj(e,t){return R.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:l}=r;return n[o]=s=>{l(s,t)},n},{}),[e,t])}function cE(e){return R.useMemo(()=>e?pj(e):null,[e])}const Oh=[];function $j(e,t){t===void 0&&(t=Al);const[n]=e,r=cE(n?Mn(n):null),[o,l]=R.useReducer(c,Oh),s=Pd({callback:l});return e.length>0&&o===Oh&&l(),Qr(()=>{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=>rE(f)?r:new Lg(t(f),f)):Oh}}function fE(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return gu(t)?t:e}function Bj(e){let{measure:t}=e;const[n,r]=R.useState(null),o=R.useCallback(p=>{for(const{target:d}of p)if(gu(d)){r(m=>{const v=t(d);return m?{...m,width:v.width,height:v.height}:v});break}},[t]),l=Pd({callback:o}),s=R.useCallback(p=>{const d=fE(p);l==null||l.disconnect(),d&&(l==null||l.observe(d)),r(d?t(d):null)},[t,l]),[c,f]=Bf(s);return R.useMemo(()=>({nodeRef:c,rect:n,setRef:f}),[n,c,f])}const Wj=[{sensor:uE,options:{}},{sensor:sE,options:{}}],Hj={current:{}},tf={draggable:{measure:zx},droppable:{measure:zx,strategy:iu.WhileDragging,frequency:iv.Optimized},dragOverlay:{measure:Al}};class Rs 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 Gj={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Rs,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Kf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:tf,measureDroppableContainers:Kf,windowRect:null,measuringScheduled:!1},dE={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Kf,draggableNodes:new Map,over:null,measureDroppableContainers:Kf},wu=R.createContext(dE),pE=R.createContext(Gj);function Kj(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Rs}}}function Yj(e,t){switch(t.type){case nn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case nn.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 nn.DragEnd:case nn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case nn.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Rs(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case nn.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 Rs(e.droppable.containers);return s.set(n,{...l,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case nn.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const l=new Rs(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function qj(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=R.useContext(wu),l=Wf(r),s=Wf(n==null?void 0:n.id);return R.useEffect(()=>{if(!t&&!r&&l&&s!=null){if(!Rd(l)||document.activeElement===l.target)return;const c=o.get(s);if(!c)return;const{activatorNode:f,node:p}=c;if(!f.current&&!p.current)return;requestAnimationFrame(()=>{for(const d of[f.current,p.current]){if(!d)continue;const m=K6(d);if(m){m.focus();break}}})}},[r,t,o,s,l]),null}function hE(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,l)=>l({transform:o,...r}),n):n}function Vj(e){return R.useMemo(()=>({draggable:{...tf.draggable,...e==null?void 0:e.draggable},droppable:{...tf.droppable,...e==null?void 0:e.droppable},dragOverlay:{...tf.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 Xj(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const l=R.useRef(!1),{x:s,y:c}=typeof o=="boolean"?{x:o,y:o}:o;Qr(()=>{if(!s&&!c||!t){l.current=!1;return}if(l.current||!r)return;const p=t==null?void 0:t.node.current;if(!p||p.isConnected===!1)return;const d=n(p),m=J2(d,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=eE(p);v&&v.scrollBy({top:m.y,left:m.x})}},[t,s,c,r,n])}const Od=R.createContext({...Jr,scaleX:1,scaleY:1});var oo;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(oo||(oo={}));const mE=R.memo(function(t){var n,r,o,l;let{id:s,accessibility:c,autoScroll:f=!0,children:p,sensors:d=Wj,collisionDetection:m=aj,measuring:v,modifiers:S,...C}=t;const k=R.useReducer(Yj,void 0,Kj),[A,_]=k,[b,y]=J6(),[O,I]=R.useState(oo.Uninitialized),G=O===oo.Initialized,{draggable:{active:N,nodes:$,translate:F},droppable:{containers:q}}=A,te=N?$.get(N):null,we=R.useRef({initial:null,translated:null}),fe=R.useMemo(()=>{var Nt;return N!=null?{id:N,data:(Nt=te==null?void 0:te.data)!=null?Nt:Hj,rect:we}:null},[N,te]),ie=R.useRef(null),[le,Ae]=R.useState(null),[B,W]=R.useState(null),ae=ru(C,Object.values(C)),se=Nd("DndDescribedBy",s),oe=R.useMemo(()=>q.getEnabled(),[q]),ye=Vj(v),{droppableRects:Fe,measureDroppableContainers:Ve,measuringScheduled:Xe}=Aj(oe,{dragging:G,dependencies:[F.x,F.y],config:ye.droppable}),Ee=Oj($,N),ft=R.useMemo(()=>B?Gf(B):null,[B]),yt=ga(),z=Ij(Ee,ye.draggable.measure);Xj({activeNode:N?$.get(N):null,config:yt.layoutShiftCompensation,initialRect:z,measure:ye.draggable.measure});const j=Hx(Ee,ye.draggable.measure,z),K=Hx(Ee?Ee.parentElement:null),H=R.useRef({activatorEvent:null,active:null,activeNode:Ee,collisionRect:null,collisions:null,droppableRects:Fe,draggableNodes:$,draggingNode:null,draggingNodeRect:null,droppableContainers:q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=q.getNodeFor((n=H.current.over)==null?void 0:n.id),de=Bj({measure:ye.dragOverlay.measure}),he=(r=de.nodeRef.current)!=null?r:Ee,Ne=G?(o=de.rect)!=null?o:j:null,Ze=!!(de.nodeRef.current&&de.rect),ht=Mj(Ze?null:j),Se=cE(he?Mn(he):null),De=jj(G?Q??Ee:null),tt=$j(De),st=hE(S,{transform:{x:F.x-ht.x,y:F.y-ht.y,scaleX:1,scaleY:1},activatorEvent:B,active:fe,activeNodeRect:j,containerNodeRect:K,draggingNodeRect:Ne,over:H.current.over,overlayNodeRect:de.rect,scrollableAncestors:De,scrollableAncestorRects:tt,windowRect:Se}),wt=ft?sl(ft,F):null,xn=Fj(De),jt=Kx(xn),Ht=Kx(xn,[j]),Gt=sl(st,jt),it=Ne?cj(Ne,st):null,Le=fe&&it?m({active:fe,collisionRect:it,droppableRects:Fe,droppableContainers:oe,pointerCoordinates:wt}):null,nt=ij(Le,"id"),[Je,cn]=R.useState(null),jn=Ze?st:sl(st,Ht),qn=sj(jn,(l=Je==null?void 0:Je.rect)!=null?l:null,j),Kt=R.useCallback((Nt,Qt)=>{let{sensor:Yt,options:dr}=Qt;if(ie.current==null)return;const D=$.get(ie.current);if(!D)return;const U=Nt.nativeEvent,V=new Yt({active:ie.current,activeNode:D,event:U,options:dr,context:H,onStart(ue){const Re=ie.current;if(Re==null)return;const xe=$.get(Re);if(!xe)return;const{onDragStart:pe}=ae.current,Pe={active:{id:Re,data:xe.data,rect:we}};Br.unstable_batchedUpdates(()=>{pe==null||pe(Pe),I(oo.Initializing),_({type:nn.DragStart,initialCoordinates:ue,active:Re}),b({type:"onDragStart",event:Pe})})},onMove(ue){_({type:nn.DragMove,coordinates:ue})},onEnd:ne(nn.DragEnd),onCancel:ne(nn.DragCancel)});Br.unstable_batchedUpdates(()=>{Ae(V),W(Nt.nativeEvent)});function ne(ue){return async function(){const{active:xe,collisions:pe,over:Pe,scrollAdjustedTranslate:Ie}=H.current;let xt=null;if(xe&&Ie){const{cancelDrop:bt}=ae.current;xt={activatorEvent:U,active:xe,collisions:pe,delta:Ie,over:Pe},ue===nn.DragEnd&&typeof bt=="function"&&await Promise.resolve(bt(xt))&&(ue=nn.DragCancel)}ie.current=null,Br.unstable_batchedUpdates(()=>{_({type:ue}),I(oo.Uninitialized),cn(null),Ae(null),W(null);const bt=ue===nn.DragEnd?"onDragEnd":"onDragCancel";if(xt){const Ce=ae.current[bt];Ce==null||Ce(xt),b({type:bt,event:xt})}})}}},[$]),Tt=R.useCallback((Nt,Qt)=>(Yt,dr)=>{const D=Yt.nativeEvent,U=$.get(dr);if(ie.current!==null||!U||D.dndKit||D.defaultPrevented)return;const V={active:U};Nt(Yt,Qt.options,V)===!0&&(D.dndKit={capturedBy:Qt.sensor},ie.current=dr,Kt(Yt,Qt))},[$,Kt]),Vn=Tj(d,Tt);zj(d),Qr(()=>{j&&O===oo.Initializing&&I(oo.Initialized)},[j,O]),R.useEffect(()=>{const{onDragMove:Nt}=ae.current,{active:Qt,activatorEvent:Yt,collisions:dr,over:D}=H.current;if(!Qt||!Yt)return;const U={active:Qt,activatorEvent:Yt,collisions:dr,delta:{x:Gt.x,y:Gt.y},over:D};Br.unstable_batchedUpdates(()=>{Nt==null||Nt(U),b({type:"onDragMove",event:U})})},[Gt.x,Gt.y]),R.useEffect(()=>{const{active:Nt,activatorEvent:Qt,collisions:Yt,droppableContainers:dr,scrollAdjustedTranslate:D}=H.current;if(!Nt||ie.current==null||!Qt||!D)return;const{onDragOver:U}=ae.current,V=dr.get(nt),ne=V&&V.rect.current?{id:V.id,rect:V.rect.current,data:V.data,disabled:V.disabled}:null,ue={active:Nt,activatorEvent:Qt,collisions:Yt,delta:{x:D.x,y:D.y},over:ne};Br.unstable_batchedUpdates(()=>{cn(ne),U==null||U(ue),b({type:"onDragOver",event:ue})})},[nt]),Qr(()=>{H.current={activatorEvent:B,active:fe,activeNode:Ee,collisionRect:it,collisions:Le,droppableRects:Fe,draggableNodes:$,draggingNode:he,draggingNodeRect:Ne,droppableContainers:q,over:Je,scrollableAncestors:De,scrollAdjustedTranslate:Gt},we.current={initial:Ne,translated:it}},[fe,Ee,Le,it,$,he,Ne,Fe,q,Je,De,Gt]),Nj({...yt,delta:F,draggingRect:it,pointerCoordinates:wt,scrollableAncestors:De,scrollableAncestorRects:tt});const ti=R.useMemo(()=>({active:fe,activeNode:Ee,activeNodeRect:j,activatorEvent:B,collisions:Le,containerNodeRect:K,dragOverlay:de,draggableNodes:$,droppableContainers:q,droppableRects:Fe,over:Je,measureDroppableContainers:Ve,scrollableAncestors:De,scrollableAncestorRects:tt,measuringConfiguration:ye,measuringScheduled:Xe,windowRect:Se}),[fe,Ee,j,B,Le,K,de,$,q,Fe,Je,Ve,De,tt,ye,Xe,Se]),pi=R.useMemo(()=>({activatorEvent:B,activators:Vn,active:fe,activeNodeRect:j,ariaDescribedById:{draggable:se},dispatch:_,draggableNodes:$,over:Je,measureDroppableContainers:Ve}),[B,Vn,fe,j,_,se,$,Je,Ve]);return pt.createElement(K2.Provider,{value:y},pt.createElement(wu.Provider,{value:pi},pt.createElement(pE.Provider,{value:ti},pt.createElement(Od.Provider,{value:qn},p)),pt.createElement(qj,{disabled:(c==null?void 0:c.restoreFocus)===!1})),pt.createElement(tj,{...c,hiddenTextDescribedById:se}));function ga(){const Nt=(le==null?void 0:le.autoScrollEnabled)===!1,Qt=typeof f=="object"?f.enabled===!1:f===!1,Yt=G&&!Nt&&!Qt;return typeof f=="object"?{...f,enabled:Yt}:{enabled:Yt}}}),Qj=R.createContext(null),Yx="button",Jj="Droppable";function Zj(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const l=Nd(Jj),{activators:s,activatorEvent:c,active:f,activeNodeRect:p,ariaDescribedById:d,draggableNodes:m,over:v}=R.useContext(wu),{role:S=Yx,roleDescription:C="draggable",tabIndex:k=0}=o??{},A=(f==null?void 0:f.id)===t,_=R.useContext(A?Od:Qj),[b,y]=Bf(),[O,I]=Bf(),G=Uj(s,t),N=ru(n);Qr(()=>(m.set(t,{id:t,key:l,node:b,activatorNode:O,data:N}),()=>{const F=m.get(t);F&&F.key===l&&m.delete(t)}),[m,t]);const $=R.useMemo(()=>({role:S,tabIndex:k,"aria-disabled":r,"aria-pressed":A&&S===Yx?!0:void 0,"aria-roledescription":C,"aria-describedby":d.draggable}),[r,S,k,A,C,d.draggable]);return{active:f,activatorEvent:c,activeNodeRect:p,attributes:$,isDragging:A,listeners:r?void 0:G,node:b,over:v,setNodeRef:y,setActivatorNodeRef:I,transform:_}}function eF(){return R.useContext(pE)}const tF="Droppable",nF={timeout:25};function Td(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const l=Nd(tF),{active:s,dispatch:c,over:f,measureDroppableContainers:p}=R.useContext(wu),d=R.useRef({disabled:n}),m=R.useRef(!1),v=R.useRef(null),S=R.useRef(null),{disabled:C,updateMeasurementsFor:k,timeout:A}={...nF,...o},_=ru(k??r),b=R.useCallback(()=>{if(!m.current){m.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{p(Array.isArray(_.current)?_.current:[_.current]),S.current=null},A)},[A]),y=Pd({callback:b,disabled:C||!s}),O=R.useCallback(($,F)=>{y&&(F&&(y.unobserve(F),m.current=!1),$&&y.observe($))},[y]),[I,G]=Bf(O),N=ru(t);return R.useEffect(()=>{!y||!I.current||(y.disconnect(),m.current=!1,y.observe(I.current))},[I,y]),Qr(()=>(c({type:nn.RegisterDroppable,element:{id:r,key:l,disabled:n,node:I,rect:v,data:N}}),()=>c({type:nn.UnregisterDroppable,key:l,id:r})),[r]),R.useEffect(()=>{n!==d.current.disabled&&(c({type:nn.SetDroppableDisabled,id:r,key:l,disabled:n}),d.current.disabled=n)},[r,l,n,c]),{active:s,rect:v,isOver:(f==null?void 0:f.id)===r,node:I,over:f,setNodeRef:G}}function rF(e){let{animation:t,children:n}=e;const[r,o]=R.useState(null),[l,s]=R.useState(null),c=Wf(n);return!n&&!r&&c&&o(c),Qr(()=>{if(!l)return;const f=r==null?void 0:r.key,p=r==null?void 0:r.props.id;if(f==null||p==null){o(null);return}Promise.resolve(t(p,l)).then(()=>{o(null)})},[t,r,l]),pt.createElement(pt.Fragment,null,n,r?R.cloneElement(r,{ref:s}):null)}const iF={x:0,y:0,scaleX:1,scaleY:1};function oF(e){let{children:t}=e;return pt.createElement(wu.Provider,{value:dE},pt.createElement(Od.Provider,{value:iF},t))}const aF={position:"fixed",touchAction:"none"},lF=e=>Rd(e)?"transform 250ms ease":void 0,sF=R.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:l,className:s,rect:c,style:f,transform:p,transition:d=lF}=e;if(!c)return null;const m=o?p:{...p,scaleX:1,scaleY:1},v={...aF,width:c.width,height:c.height,top:c.top,left:c.left,transform:zi.Transform.toString(m),transformOrigin:o&&r?nj(r,c):void 0,transition:typeof d=="function"?d(r):d,...f};return pt.createElement(n,{className:s,style:v,ref:t},l)}),uF=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,p]of Object.entries(o))n.node.style.setProperty(f,p);s!=null&&s.active&&n.node.classList.remove(s.active)}},cF=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:zi.Transform.toString(t)},{transform:zi.Transform.toString(n)}]},fF={duration:250,easing:"ease",keyframes:cF,sideEffects:uF({styles:{active:{opacity:"0"}}})};function dF(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return kd((l,s)=>{if(t===null)return;const c=n.get(l);if(!c)return;const f=c.node.current;if(!f)return;const p=fE(s);if(!p)return;const{transform:d}=Mn(s).getComputedStyle(s),m=Z2(d);if(!m)return;const v=typeof t=="function"?t:pF(t);return aE(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(p)},droppableContainers:r,measuringConfiguration:o,transform:m})})}function pF(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...fF,...e};return l=>{let{active:s,dragOverlay:c,transform:f,...p}=l;if(!t)return;const d={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-d.x,y:f.y-d.y,...m},S=o({...p,active:s,dragOverlay:c,transform:{initial:f,final:v}}),[C]=S,k=S[S.length-1];if(JSON.stringify(C)===JSON.stringify(k))return;const A=r==null?void 0:r({active:s,dragOverlay:c,...p}),_=c.node.animate(S,{duration:t,easing:n,fill:"forwards"});return new Promise(b=>{_.onfinish=()=>{A==null||A(),b()}})}}let qx=0;function hF(e){return R.useMemo(()=>{if(e!=null)return qx++,qx},[e])}const ov=pt.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:l,modifiers:s,wrapperElement:c="div",className:f,zIndex:p=999}=e;const{activatorEvent:d,active:m,activeNodeRect:v,containerNodeRect:S,draggableNodes:C,droppableContainers:k,dragOverlay:A,over:_,measuringConfiguration:b,scrollableAncestors:y,scrollableAncestorRects:O,windowRect:I}=eF(),G=R.useContext(Od),N=hF(m==null?void 0:m.id),$=hE(s,{activatorEvent:d,active:m,activeNodeRect:v,containerNodeRect:S,draggingNodeRect:A.rect,over:_,overlayNodeRect:A.rect,scrollableAncestors:y,scrollableAncestorRects:O,transform:G,windowRect:I}),F=zg(v),q=dF({config:r,draggableNodes:C,droppableContainers:k,measuringConfiguration:b}),te=F?A.setRef:void 0;return pt.createElement(oF,null,pt.createElement(rF,{animation:q},m&&N?pt.createElement(sF,{key:N,id:m.id,ref:te,as:c,activatorEvent:d,adjustScale:t,className:f,transition:l,rect:F,style:{zIndex:p,...o},transform:$},n):null))});function vE(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 mF=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const o=r[0];return!t||!o?n:vE(n,t,o)},vF=e=>{let{transform:t,draggingNodeRect:n,windowRect:r}=e;return!n||!r?t:vE(t,n,r)};function gE(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function zc(e){return e!==null&&e>=0}const gF=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const l=gE(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}},yF="Sortable",wF=pt.createContext({activeIndex:-1,containerId:yF,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:gF,disabled:{draggable:!1,droppable:!1}}),xF=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return gE(n,r,o).indexOf(t)},bF=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:l,newIndex:s,previousItems:c,previousContainerId:f,transition:p}=e;return!p||!r||c!==l&&o===s?!1:n?!0:s!==o&&t===f},_F={duration:200,easing:"ease"},yE="transform",SF=zi.Transition.toString({property:yE,duration:0,easing:"linear"}),EF={roleDescription:"sortable"};function CF(e){let{disabled:t,index:n,node:r,rect:o}=e;const[l,s]=R.useState(null),c=R.useRef(n);return Qr(()=>{if(!t&&n!==c.current&&r.current){const f=o.current;if(f){const p=Al(r.current,{ignoreTransform:!0}),d={x:f.left-p.left,y:f.top-p.top,scaleX:f.width/p.width,scaleY:f.height/p.height};(d.x||d.y)&&s(d)}}n!==c.current&&(c.current=n)},[t,n,r,o]),R.useEffect(()=>{l&&s(null)},[l]),l}function wE(e){let{animateLayoutChanges:t=bF,attributes:n,disabled:r,data:o,getNewIndex:l=xF,id:s,strategy:c,resizeObserverConfig:f,transition:p=_F}=e;const{items:d,containerId:m,activeIndex:v,disabled:S,disableTransforms:C,sortedRects:k,overIndex:A,useDragOverlay:_,strategy:b}=R.useContext(wF),y=kF(r,S),O=d.indexOf(s),I=R.useMemo(()=>({sortable:{containerId:m,index:O,items:d},...o}),[m,o,O,d]),G=R.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:N,node:$,isOver:F,setNodeRef:q}=Td({id:s,data:I,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:G,...f}}),{active:te,activatorEvent:we,activeNodeRect:fe,attributes:ie,setNodeRef:le,listeners:Ae,isDragging:B,over:W,setActivatorNodeRef:ae,transform:se}=Zj({id:s,data:I,attributes:{...EF,...n},disabled:y.draggable}),oe=B6(q,le),ye=!!te,Fe=ye&&!C&&zc(v)&&zc(A),Ve=!_&&B,Xe=Ve&&Fe?se:null,ft=Fe?Xe??(c??b)({rects:k,activeNodeRect:fe,activeIndex:v,overIndex:A,index:O}):null,yt=zc(v)&&zc(A)?l({id:s,items:d,activeIndex:v,overIndex:A}):O,z=te==null?void 0:te.id,j=R.useRef({activeId:z,items:d,newIndex:yt,containerId:m}),K=d!==j.current.items,H=t({active:te,containerId:m,isDragging:B,isSorting:ye,id:s,index:O,items:d,newIndex:j.current.newIndex,previousItems:j.current.items,previousContainerId:j.current.containerId,transition:p,wasDragging:j.current.activeId!=null}),Q=CF({disabled:!H,index:O,node:$,rect:N});return R.useEffect(()=>{ye&&j.current.newIndex!==yt&&(j.current.newIndex=yt),m!==j.current.containerId&&(j.current.containerId=m),d!==j.current.items&&(j.current.items=d)},[ye,yt,m,d]),R.useEffect(()=>{if(z===j.current.activeId)return;if(z&&!j.current.activeId){j.current.activeId=z;return}const he=setTimeout(()=>{j.current.activeId=z},50);return()=>clearTimeout(he)},[z]),{active:te,activeIndex:v,attributes:ie,data:I,rect:N,index:O,newIndex:yt,items:d,isOver:F,isSorting:ye,isDragging:B,listeners:Ae,node:$,overIndex:A,over:W,setNodeRef:oe,setActivatorNodeRef:ae,setDroppableNodeRef:q,setDraggableNodeRef:le,transform:Q??ft,transition:de()};function de(){if(Q||K&&j.current.newIndex===O)return SF;if(!(Ve&&!Rd(we)||!p)&&(ye||H))return zi.Transition.toString({...p,property:yE})}}function kF(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}}at.Down,at.Right,at.Up,at.Left;function Ad({groupName:e,item:t,allowRemove:n,onRemove:r}){const{attributes:o,listeners:l,setNodeRef:s,transform:c,transition:f}=wE({id:`${e}_${t.itemName}`,data:{type:"Ingredient",item:t,parentGroup:e}}),p={transition:f,transform:zi.Translate.toString(c)};return E.jsxs("div",{ref:s,className:"relative print-rounded aspect-square w-clamp card-shadow center",style:p,...l,...o,children:[E.jsx("img",{src:`${Xr}/assets/ingredients/${t.itemName.toLowerCase()}.webp`,alt:t.itemName,"data-testid":`${e}_${t.itemName}_selected`,className:"print-rounded"}),n&&E.jsx("div",{className:"flex center rounded-2xl",children:E.jsx(In,{icon:wd,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 NF({group:e,item:t}){const n=wn(),r=(o,l)=>{n(YS({groupName:o,itemName:l}))};return E.jsx("div",{children:E.jsx("div",{className:"mx-2 hover:cursor-grabbing hover:scale-105",children:E.jsx(Ad,{groupName:e.groupName,item:t,allowRemove:!0,onRemove:()=>r(e.groupName,t.itemName)})})})}function RF({group:e}){const{setNodeRef:t}=Td({id:e.groupName,data:{type:"Group",group:e}});return E.jsx(E.Fragment,{children:E.jsx("div",{ref:t,className:"flex flex-wrap justify-center gap-y-4 mb-12 center",children:e.items.map((n,r)=>E.jsx("div",{children:E.jsx(NF,{group:e,item:n})},`${n}${r.toString()}`))})})}function PF(){const e=wn();return lt(n=>n.groups.ingredientsGroups).map((n,r)=>E.jsxs("div",{className:"flex flex-col center",children:[E.jsx("p",{onKeyDown:$i,"data-testid":"chosen_group",onClick:()=>e(QS(n.groupName)),className:"group-chip text-fluidSubtitle",children:n.groupName}),E.jsx(RF,{group:n})]},`${n.groupName}_${r}`))}function OF(){const e=wn(),t=lt(f=>f.groups.ingredientsGroups),[n,r]=R.useState(null),o=f=>{var p;r((p=f.active.data.current)==null?void 0:p.item)},l=f=>{var C,k,A,_;const{active:p,over:d}=f;if(!d)return;const m=((C=p.data.current)==null?void 0:C.type)==="Ingredient",v=((k=d.data.current)==null?void 0:k.type)==="Group",S=(A=p.data.current)==null?void 0:A.parentGroup;if(m&&v&&S!==d.id){const b=p.id.split("_")[1];if(t.filter(O=>O.groupName===d.id)[0].items.findIndex(O=>O.itemName===b)>-1)return;e(YS({groupName:S,itemName:b})),e(Lm({groupName:d.id,itemName:b,item:(_=p.data.current)==null?void 0:_.item}))}r(null)},s=f=>{const p=Q2(f);return p.length>0?p.sort((m,v)=>{const S=f.droppableRects.get(m.id),C=f.droppableRects.get(v.id);if(S&&C){const k=S.width*S.height;return C.width*C.height-k}return 0}):X2(f)},c=Y2(Yf(jg,{activationConstraint:{distance:5}}),Yf(Fg,{activationConstraint:{distance:4}}));return E.jsxs(mE,{collisionDetection:s,modifiers:[mF],sensors:c,onDragEnd:l,onDragStart:o,children:[E.jsxs("div",{className:"relative px-4 pb-4 overflow-auto center text-center no-scrollbar overflow-x-hidden",children:[E.jsx("h2",{className:"mb-8 text-fluidSubtitle",children:"Selected ingredient groups"}),E.jsx(PF,{})]}),n&&E.jsx(ov,{children:E.jsx(Ad,{groupName:`${n.itemName}_${Math.random().toString()}`,item:n,allowRemove:!1})})]})}function _l({page:e,isNext:t}){const n=sg(),r=wn(),o=lt(d=>d.recipe.title),l=lt(d=>d.groups.ingredientsGroups),s=lt(d=>d.actions.chefInstructions),c=async()=>{const d=l.flatMap(S=>S.items.flat()),m=d.every(S=>S.amount>0),v=d.every(S=>S.unit!==wl);return m&&v},f=async()=>{const d=s.every(v=>v.items.length>0||v.customItem),m=s.every(v=>v.action.time!==0);return s.length>0&&d&&m},p=async()=>{if(t){let d=!1,m="";if(e==="/quantities"&&(o.length>0&&l.length>0?d=!0:m="You must have a Recipe Title and ingredients!"),e==="/instructions")if(await c()){d=!0;const v=l.flatMap(S=>S.items.flat());r(SD(v))}else m="Fill in all quantities and units!";e==="/print"&&(await f()?d=!0:m="Create some instructions with ingredients!"),d?(r(Hr("")),n(e)):r(Hr(m))}else r(Hr("")),n(e,{replace:!0})};return E.jsx("div",{"data-testid":t?"next":"back",onKeyDown:$i,onClick:p,children:t?E.jsx("button",{className:"go-to-button-arrow right-0 bg-green-500 hover:bg-green-400 hover:translate-x-4",type:"button",children:"NEXT"}):E.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 Vx({link:e,icon:t}){return E.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"mx-1",children:E.jsx(In,{icon:t,size:"2x",className:"num-input-icons"})})}var TF={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},AF={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]};function IF(){const[e,t]=R.useState(window.innerWidth);R.useEffect(()=>{const r=()=>{t(window.innerWidth)};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]);const n=lt(r=>r.groups.ingredientsGroups);return e<768?E.jsx("div",{className:"h-screen flex flex-col center",children:E.jsxs("p",{className:"flex w-1/2 text-center xs:text-base sm:text-xl md:text-2xl",children:["For the best experience,",E.jsx("br",{}),E.jsx("br",{}),"Please open this website on a tablet or laptop :)"]})}):E.jsxs("div",{"data-testid":"homepage",className:"max-h-screen flex flex-col",children:[E.jsx(_l,{page:"/quantities",isNext:!0}),E.jsx(ND,{}),E.jsxs("div",{className:"flex flex-grow md:p-2 lg:p-2 sm:gap-4 md:gap-4 lg:gap-8 mx-4",children:[E.jsx("div",{className:"main-gallery sm:w-2/3 md:w-4/5 lg:w-3/5",children:E.jsx($6,{})}),E.jsx("div",{className:`main-gallery sm:w-1/3 w-2/5 ${n.length===0&&"required-element-border"}`,children:E.jsx(OF,{})})]}),E.jsxs("div",{className:"absolute top-0 left-0 m-4",children:[E.jsx(Vx,{link:"https://www.linkedin.com/in/yafimsimanovsky/",icon:TF}),E.jsx(Vx,{link:"https://github.com/yafimski/a4recipe",icon:AF})]})]})}function DF(){const e=wn(),t=lt(r=>r.actions.availableItems),n=r=>{e(mg(r))};return t.map((r,o)=>E.jsx("div",{"data-item-name":r.itemName,className:"mb-1 pb-2 lg:pb-4 print-rounded opacity-100 hover:scale-105",onKeyDown:$i,children:E.jsx(Ad,{groupName:o.toString(),item:r,allowRemove:!1,onRemove:()=>n(r)})},`${r.itemName}_shelf_${o}`))}function xE({action:e}){const{attributes:t,listeners:n,setNodeRef:r,transform:o,transition:l}=wE({id:e.actionName,data:{type:"Action",action:e}}),s={transition:l,transform:zi.Translate.toString(o)},{actionName:c}=e;return E.jsx("div",{ref:r,style:s,...n,...t,children:E.jsxs("div",{className:"bg-white card-shadow print-rounded w-clamp",children:[E.jsx("img",{draggable:"false",src:`${Xr}/assets/chefActions/${c}.webp`,alt:c,"data-testid":`${c}_action`,className:"print-rounded-img rounded-t-lg w-clamp"}),E.jsx("p",{className:"md:text-sm text-fluidPrint py-2",children:c})]},c)})}function LF(){return oD.map(e=>E.jsx(R.Suspense,{fallback:E.jsx("div",{className:"suspense-gallery-action","data-testid":`${e.actionName}_suspense`,children:""}),children:E.jsx("div",{className:"bg-white mx-2 aspect-videoThin hover:scale-105",children:E.jsx(xE,{action:e})})},`${e.actionName}_suspense`))}function Xx({icon:e,onCaretClick:t}){return E.jsx("div",{className:"flex center max-h-short cursor-pointer hover:border-y-2 hover:border-black",onClick:()=>t(),onKeyDown:$i,children:E.jsx(In,{icon:e,size:"lg"})})}function MF({instruction:e}){const t=R.useRef(null),n=wn(),[r,o]=R.useState(e.note),[l,s]=R.useState(null),c=v=>{r?n(Rc({id:e.id,note:v})):(s(null),n(Rc({id:e.id,note:""})))},f=()=>{s(null),o(""),n(Rc({id:e.id,note:""}))},p=v=>{o(v.target.value)},d=l===e.id;R.useEffect(()=>{d&&t.current&&t.current.focus()},[d]);const m=(v,S)=>{if(v.key==="Enter"){const{id:C,note:k}=S;n(Rc({id:C,note:k})),v.target.blur()}};return d||e.note?E.jsxs("div",{className:"flex justify-end items-center md:w-60 lg:w-96",children:[E.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:p,onBlur:v=>c(v.target.value),onKeyDown:v=>m(v,e)}),E.jsx(In,{icon:wd,size:"1x",className:"bg-white -ml-2 cursor-pointer",onClick:()=>f()})]}):E.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:E.jsx("span",{children:"Add Note"})})}function jF({instruction:e}){const t=wn(),[n,r]=R.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 R.useEffect(()=>{t(bD({instruction:e,time:n}))},[t,e,n]),E.jsxs("div",{className:"flex flex-row rounded-md mx-2",children:[E.jsx("button",{type:"button",onClick:s,children:E.jsx(In,{icon:t2,className:"num-input-icons"})}),E.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()}),E.jsx("button",{type:"button",onClick:c,children:E.jsx(In,{icon:n2,className:"num-input-icons"})})]})}function FF({action:e}){const{actionName:t}=e;return E.jsxs("div",{className:"bg-white card-shadow print-rounded w-clamp",children:[E.jsx("img",{draggable:"false",src:`${Xr}/assets/chefActions/${t}.webp`,alt:t,"data-testid":`${t}_action`,className:"print-rounded-img md:w-clampSmall lg:w-clamp"}),E.jsx("p",{className:"md:text-sm text-fluidCard py-2",children:t})]},t)}function zF({groupName:e,item:t,onRemoveItem:n}){const r=()=>{n(t)};return E.jsxs("div",{className:"relative print-rounded aspect-square print-image card-shadow center",children:[E.jsx("img",{draggable:"false",src:`${Xr}/assets/ingredients/${t.itemName.toLowerCase()}.webp`,alt:t.itemName,"data-testid":`${e}_${t.itemName}_shelf`,className:"print-rounded print-image"}),E.jsx("div",{className:"flex center rounded-2xl",children:E.jsx(In,{icon:wd,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 UF({instruction:e,refClick:t}){const[n,r]=R.useState(""),{setNodeRef:o}=Td({id:e.id,data:{type:"Instruction",instruction:e}}),l=wn(),s=(C,k)=>{const A=k.items.filter(_=>!Ko.isEqual(_,C));l(e2({id:k.id,items:A})),l(mg(C))},c=C=>{l(xD(C)),l(ED(C.items))},f=(C,k)=>{l(yD({id:k.id,customItem:C.target.value})),C.target.blur()},p=C=>{r(C.target.value)},d=C=>{C.key===" "&&(C.preventDefault(),r(k=>`${k} `))},{id:m,action:v,items:S}=e;return E.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:[E.jsxs("div",{className:"flex items-center justify-between pl-6",children:[E.jsxs("div",{className:"flex justify-start w-full py-2",children:[E.jsxs("div",{draggable:"false",className:"flex center",onClick:()=>{t(e)},onKeyDown:$i,children:[E.jsx(FF,{action:v}),E.jsx("span",{className:"md:text-xs text-fluidSubtitle ml-4",children:"THE"}),E.jsx("div",{className:"flex flex-row",children:E.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(C=>E.jsx("div",{className:"px-2 py-2",children:E.jsx(zF,{groupName:m.toString(),item:C,onRemoveItem:k=>s(k,e)})},`${m}_${C.itemName}`)):E.jsxs("div",{className:"flex flex-col justify-between items-center sm:min-h-16 md:min-h-24",children:[E.jsx("span",{className:"sm:text-sm md:text-base lg:text-lg",children:n?E.jsxs("b",{className:"text-neutral-400",children:["Drop Item ",E.jsx("br",{})," or"]}):E.jsxs("b",{children:["Drop Item ",E.jsx("br",{})," or"]})},m),E.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:C=>p(C),onKeyDown:d,onBlur:C=>f(C,e)})]})})})]}),v.time!==-1&&E.jsxs("div",{className:"flex center",children:[E.jsx("span",{className:"text-fluidSubtitle mx-2",children:"FOR"}),E.jsx(jF,{instruction:e}),E.jsx("span",{className:"text-fluidSubtitle md:ml-2 lg:ml-4",children:v.unit})]})]}),E.jsx("button",{type:"button",className:"px-4 md:ml-2 lg:ml-8 h-fit",onClick:()=>c(e),children:E.jsx(In,{icon:TD,size:"lg",color:"red",className:"cursor-pointer hover:text-black"})})]}),E.jsx("div",{className:"flex center sm:mt-4 md:mt-6",children:E.jsx(MF,{instruction:e})})]},`${m}_${v}`)}const $F=R.memo(({onRefClick:e})=>[...lt(r=>r.actions.chefInstructions)].sort((r,o)=>r.id-o.id).map(r=>E.jsx("div",{"data-instruction":r.id,className:"pt-4",children:E.jsx(UF,{instruction:r,refClick:o=>e(o)})},r.id)));function BF({onInstructionClick:e}){const{setNodeRef:t}=Td({id:"steps_container",data:{type:"Steps"}}),n=lt(s=>s.actions.chefInstructions),r=R.useRef(null),o=R.useRef(n.length),l=R.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 R.useEffect(()=>{n.length!==o.current&&(l(),o.current=n.length)},[n,l]),E.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&&E.jsxs("h2",{className:"text-fluidSubtitle text-gray-600",children:["Drag an action ",E.jsx("b",{children:"[ top ]"})," to this area ",E.jsx("br",{}),"and start adding ingredients ",E.jsx("b",{children:"[left ]"})," to it!",E.jsx("br",{}),E.jsx("br",{}),"To add more steps just",E.jsx("br",{}),"drag another action.",E.jsx("br",{}),E.jsx("br",{}),E.jsx("b",{children:"Replace an action by dragging a new one over it!"})]}),E.jsx($F,{onRefClick:s=>e(s)})]})}function WF(){const e=R.useRef(null),t=R.useRef(null),[n,r]=R.useState(!1),[o,l]=R.useState(0),[s,c]=R.useState(0),[f,p]=R.useState(null),[d,m]=R.useState(null),[v,S]=R.useState(null),C=wn(),k=lt(F=>F.actions.chefInstructions);R.useEffect(()=>{if(v){const F=v.current,q=te=>{F&&(te.preventDefault(),te.deltaY<0?F.scrollLeft-=20:F.scrollLeft+=20)};return F&&F.addEventListener("wheel",q,{passive:!1}),()=>{F&&F.removeEventListener("wheel",q)}}},[v]);const A=F=>{if(v!=null&&v.current){const te=v.current.firstChild.offsetWidth*4;v.current.scrollBy({left:F==="left"?-te:te,behavior:"smooth"})}},_=(F,q)=>{F.current&&(S(F),F.current&&(r(!0),l(q.pageX-F.current.offsetLeft),c(F.current.scrollLeft)))},b=(F,q)=>{if(!(!n||!F.current)&&(S(F),q.preventDefault(),F.current)){const we=q.pageX-F.current.offsetLeft-o;F.current.scrollLeft=s-we}},y=F=>{const q=e.current;let te=null;te=q==null?void 0:q.querySelector(`[data-action-name="${F.action.actionName}"]`),te&&te.scrollIntoView({behavior:"smooth",inline:"center"})},O=F=>{C(wD({id:k.length>0?Math.max(...k.map(q=>q.id))+1:0,note:"",action:F,items:[]}))},I=F=>{var q,te,we,fe;((q=F.active.data.current)==null?void 0:q.type)==="Action"?p((te=F.active.data.current)==null?void 0:te.action):p(null),((we=F.active.data.current)==null?void 0:we.type)==="Ingredient"?m((fe=F.active.data.current)==null?void 0:fe.item):m(null)},G=F=>{var ie,le,Ae,B,W,ae;const{active:q,over:te}=F;if(!te)return;const we=(ie=q.data.current)==null?void 0:ie.type,fe=(le=te.data.current)==null?void 0:le.type;if(we==="Action"&&fe==="Steps")O((Ae=q.data.current)==null?void 0:Ae.action);else if(fe==="Instruction"){const se=(B=te.data.current)==null?void 0:B.instruction;if(we==="Action"){const oe=(W=q.data.current)==null?void 0:W.action;C(_D({id:se.id,action:oe}))}else if(we==="Ingredient"){const oe=(ae=q.data.current)==null?void 0:ae.item;se.items.find(Fe=>Ko.isEqual(Fe,oe))||(C(e2({id:se.id,items:[...se.items,oe]})),C(mg(oe)))}}},N=F=>{const q=Q2(F);return q.length>0?q.sort((we,fe)=>{const ie=F.droppableRects.get(we.id),le=F.droppableRects.get(fe.id);if(ie&&le){const Ae=ie.width*ie.height,B=le.width*le.height;return Ae-B}return 0}):X2(F)},$=Y2(Yf(jg,{activationConstraint:{distance:0}}),Yf(Fg,{activationConstraint:{distance:10}}));return E.jsx(mE,{collisionDetection:N,modifiers:[vF],sensors:$,onDragEnd:G,onDragStart:I,children:E.jsxs("div",{className:"mt-16 max-h-5/6 w-11/12 input-gallery-border p-4",children:[E.jsx("h2",{className:"text-fluidSubtitle mb-2",children:"Plan the instructions and steps for this recipe!"}),E.jsxs("div",{className:"flex flex-row gap-2",children:[E.jsx(Xx,{icon:MD,onCaretClick:()=>A("left")}),E.jsx("div",{id:"actions-scrollbar",className:"flex w-full overflow-x-scroll py-4 pt-4 overflow-y-auto",ref:e,onMouseDown:F=>_(e,F),onMouseLeave:()=>r(!1),onMouseUp:()=>r(!1),onMouseMove:F=>b(e,F),children:E.jsx(LF,{})}),E.jsx(Xx,{icon:AD,onCaretClick:()=>A("right")}),f&&E.jsx(ov,{children:E.jsx(xE,{action:f})})]}),E.jsxs("div",{className:"flex w-full justify-between mt-8",children:[E.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:E.jsx("div",{className:"scroll-mirror",children:E.jsx(DF,{})})}),d&&E.jsx(ov,{children:E.jsx(Ad,{groupName:Math.random().toString(),item:d,allowRemove:!1})}),E.jsx(BF,{onInstructionClick:F=>y(F)})]})]})})}function HF(){const e=lt(t=>t.warning.warning);return E.jsxs("div",{"data-testid":"instructions",className:"min-h-screen flex flex-col",children:[E.jsx(_l,{page:"/print",isNext:!0}),E.jsx(_l,{page:"/quantities",isNext:!1}),E.jsx("div",{className:"flex h-screen justify-center text-center",children:E.jsx(WF,{})}),e&&E.jsx(hg,{})]})}function GF(){const e=lt(t=>t.groups.ingredientsGroups);return E.jsx("div",{className:"flex flex-col center",children:e.map(t=>E.jsxs("div",{className:"flex flex-wrap center mb-12 group-borders-half w-10/12",children:[E.jsx("p",{className:"font-bold mb-4",children:t.groupName}),E.jsx("div",{className:"flex flex-wrap center gap-x-10 md:gap-y-4 lg:gap-y-8",children:t.items.map(n=>E.jsxs("div",{className:"flex flex-row center",children:[E.jsx("img",{src:`${Xr}/assets/ingredients/${n.itemName.toLowerCase()}.webp`,alt:n.itemName,className:"print-rounded md:w-12 lg:w-28"}),E.jsx("div",{className:"flex flex-col center w-16 ml-1",children:E.jsxs("span",{className:"md:text-xs lg:text-sm rounded-xl md:mt-1 lg:mt-1 xl:mt-2",children:[E.jsx("p",{className:"mb-2",children:n.itemName}),E.jsxs("p",{className:"font-semibold",children:[n.amount," ",n.unit]})]})})]},`${t.groupName}_${n.itemName}`))})]},t.groupName))})}function KF(){const e=lt(t=>t.actions.chefInstructions);return E.jsx("div",{className:"flex flex-col center",children:e.map((t,n)=>E.jsxs("div",{className:"flex flex-col center items-start w-fit mb-8",children:[E.jsxs("div",{className:"relative flex flex-row md:gap-2 lg:gap-4 pointer-events-none center",children:[E.jsxs("span",{className:"print-small-text mr-4 font-bold",children:["Step ",n+1]}),E.jsx("div",{children:E.jsxs("div",{className:"bg-white card-shadow print-rounded w-fullImage",children:[E.jsx("img",{draggable:"false",src:`${Xr}/assets/chefActions/${t.action.actionName}.webp`,alt:t.action.actionName,"data-testid":`${t.action.actionName}_action`,className:"print-rounded-img w-fullImage"}),E.jsx("p",{className:"print-small-text text-center",children:t.action.actionName})]})}),E.jsx("span",{className:"print-small-text",children:"THE"}),t.customItem?E.jsx("b",{className:"print-small-text",children:t.customItem}):E.jsx("div",{className:"center justify-start flex flex-row flex-wrap max-w-52 lg:max-w-80 md:gap-y-1 lg:gap-y-2",children:t.items.map(r=>E.jsx("div",{className:"flex center py-1 px-2",children:E.jsx("img",{src:`${Xr}/assets/ingredients/${r.itemName.toLowerCase()}.webp`,alt:r.itemName,className:"card-shadow w-12 lg:w-20 print-rounded"})},`${t.id}_${r.itemName}`))}),t.action.time!==-1&&E.jsxs("span",{className:"print-small-text",children:["FOR ",E.jsx("br",{}),t.action.time," ",t.action.unit]})]}),E.jsx("div",{className:"flex w-full",children:E.jsx("span",{className:"print-small-text mt-2",children:t.note})}),E.jsx("hr",{className:"hr-generic"})]},`${t.id}`))})}function YF(){const e=sg(),t=wn(),n=async()=>{t(XS()),t(Hr("")),t(KS()),t(gD()),e(`${Xr}/`)};return E.jsx("div",{"data-testid":"make_another",onKeyDown:$i,onClick:n,children:E.jsxs("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",E.jsx("br",{}),"ANOTHER"]})})}function qF(){const e=lt(l=>l.recipe),t=lt(l=>l.groups),n=lt(l=>l.actions),r=lt(l=>l.warning),o=()=>{const l={recipe:{...e,possibleItems:[]},groups:t,actions:n,warning:r},s=JSON.stringify(l),c=new Blob([s],{type:"application/json"}),f=URL.createObjectURL(c),p=document.createElement("a");p.href=f,p.download=`${e.title}_recipe.json`,p.click(),URL.revokeObjectURL(f)};return E.jsx("div",{"data-testid":"save",onKeyDown:$i,onClick:o,children:E.jsxs("button",{type:"button",className:"save-button",children:["Save",E.jsx("br",{}),"for later"]})})}function VF(){const e=wn(),t=lt(s=>s.recipe.batches),[n,r]=R.useState(t),o=s=>{s.target.select()},l=s=>{Number.isNaN(s)?(e(Zw({batch:1,divider:n})),r(1)):(e(Zw({batch:s,divider:n})),r(s))};return R.useEffect(()=>{e(fD(n))},[e,n]),E.jsx("div",{className:"relative mb-4",children:E.jsxs("div",{className:"flex flex-col center rounded-md mx-2",children:[E.jsx("p",{className:"text-xl",children:"# of batches"}),E.jsx("input",{className:`sm:w-6 md:w-6 lg:w-12 p-0 md:mx-2 lg:mx-4 focus:outline-none text-center rounded-2xl sm:text-xl md:text-2xl lg:text-3xl bg-transparent border-2 border-transparent hover:border-neutral-500 hover:border-2 ${n===0&&"required-element-fill"}`,type:"number",id:"units-number-input",value:n,required:!0,onChange:s=>l(Number.parseFloat(s.target.value)),onFocus:o,onWheel:s=>s.target.blur()})]})})}var bE={exports:{}};(function(e,t){(function(n,r){e.exports=r(R,Br)})(typeof self<"u"?self:ja,function(n,r){return function(){var o={328:function(f,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.PrintContextConsumer=p.PrintContext=void 0;var m=d(496),v=Object.prototype.hasOwnProperty.call(m,"createContext");p.PrintContext=v?m.createContext({}):null,p.PrintContextConsumer=p.PrintContext?p.PrintContext.Consumer:function(){return null}},428:function(f,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.ReactToPrint=void 0;var m=d(316),v=d(496),S=d(190),C=d(328),k=d(940),A=function(_){function b(){var y=_.apply(this,m.__spreadArray([],m.__read(arguments),!1))||this;return y.startPrint=function(O){var I=y.props,G=I.onAfterPrint,N=I.onPrintError,$=I.print,F=I.documentTitle;setTimeout(function(){var q,te;if(O.contentWindow)if(O.contentWindow.focus(),$)$(O).then(function(){return G==null?void 0:G()}).then(function(){return y.handleRemoveIframe()}).catch(function(ie){N?N("print",ie):y.logMessages(["An error was thrown by the specified `print` function"])});else{if(O.contentWindow.print){var we=(te=(q=O.contentDocument)===null||q===void 0?void 0:q.title)!==null&&te!==void 0?te:"",fe=O.ownerDocument.title;F&&(O.ownerDocument.title=F,O.contentDocument&&(O.contentDocument.title=F)),O.contentWindow.print(),F&&(O.ownerDocument.title=fe,O.contentDocument&&(O.contentDocument.title=we))}else y.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);G==null||G(),y.handleRemoveIframe()}else y.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},y.triggerPrint=function(O){var I=y.props,G=I.onBeforePrint,N=I.onPrintError;if(G){var $=G();$&&typeof $.then=="function"?$.then(function(){y.startPrint(O)}).catch(function(F){N&&N("onBeforePrint",F)}):y.startPrint(O)}else y.startPrint(O)},y.handlePrint=function(O){var I=y.props,G=I.bodyClass,N=I.content,$=I.copyStyles,F=I.fonts,q=I.pageStyle,te=I.nonce,we=typeof O=="function"?O():null;if(we&&typeof N=="function"&&y.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),we||typeof N!="function"||(we=N()),we!==void 0)if(we!==null){var fe=document.createElement("iframe");fe.width="".concat(document.documentElement.clientWidth,"px"),fe.height="".concat(document.documentElement.clientHeight,"px"),fe.style.position="absolute",fe.style.top="-".concat(document.documentElement.clientHeight+100,"px"),fe.style.left="-".concat(document.documentElement.clientWidth+100,"px"),fe.id="printWindow",fe.srcdoc="";var ie=(0,S.findDOMNode)(we);if(ie){var le=ie.cloneNode(!0),Ae=le instanceof Text,B=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),W=Ae?[]:le.querySelectorAll("img"),ae=Ae?[]:le.querySelectorAll("video"),se=F?F.length:0;y.numResourcesToLoad=B.length+W.length+ae.length+se,y.resourcesLoaded=[],y.resourcesErrored=[];var oe=function(ye,Fe){y.resourcesLoaded.includes(ye)?y.logMessages(["Tried to mark a resource that has already been handled",ye],"debug"):(Fe?(y.logMessages(m.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],m.__read(Fe),!1)),y.resourcesErrored.push(ye)):y.resourcesLoaded.push(ye),y.resourcesLoaded.length+y.resourcesErrored.length===y.numResourcesToLoad&&y.triggerPrint(fe))};fe.onload=function(){var ye,Fe,Ve,Xe;fe.onload=null;var Ee=fe.contentDocument||((Fe=fe.contentWindow)===null||Fe===void 0?void 0:Fe.document);if(Ee){Ee.body.appendChild(le),F&&(!((Ve=fe.contentDocument)===null||Ve===void 0)&&Ve.fonts&&(!((Xe=fe.contentWindow)===null||Xe===void 0)&&Xe.FontFace)?F.forEach(function(it){var Le=new FontFace(it.family,it.source,{weight:it.weight,style:it.style});fe.contentDocument.fonts.add(Le),Le.loaded.then(function(){oe(Le)}).catch(function(nt){oe(Le,["Failed loading the font:",Le,"Load error:",nt])})}):(F.forEach(function(it){return oe(it)}),y.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var ft=typeof q=="function"?q():q;if(typeof ft!="string")y.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof ft,'". Styles from `pageStyle` will not be applied.')]);else{var yt=Ee.createElement("style");te&&(yt.setAttribute("nonce",te),Ee.head.setAttribute("nonce",te)),yt.appendChild(Ee.createTextNode(ft)),Ee.head.appendChild(yt)}if(G&&(ye=Ee.body.classList).add.apply(ye,m.__spreadArray([],m.__read(G.split(" ")),!1)),!Ae){for(var z=Ae?[]:ie.querySelectorAll("canvas"),j=Ee.querySelectorAll("canvas"),K=0;K",Le,"Error",Tt])},Je.src=nt}else oe(Le,['Found an tag with an empty "src" attribute. This prevents pre-loading it. The is:',Le])};for(K=0;K=2?oe(Le):(Le.onloadeddata=function(){return oe(Le)},Le.onerror=function(cn,jn,qn,Kt,Tt){return oe(Le,["Error loading video",Le,"Error",Tt])},Le.onstalled=function(){return oe(Le,["Loading video stalled, skipping",Le])})};for(K=0;K tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The is:",nt],"warning"),oe(nt);else{for(var Tt=Ee.createElement(nt.tagName),Vn=(Kt=0,nt.attributes.length);Kt tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the was not loaded. The is:",nt],"warning"),oe(nt)},Gt=(K=0,jt.length);K=0;Ne--)(Q=z[Ne])&&(he=(de<3?Q(he):de>3?Q(j,K,he):Q(j,K))||he);return de>3&&he&&Object.defineProperty(j,K,he),he}function A(z,j){return function(K,H){j(K,H,z)}}function _(z,j,K,H,Q,de){function he(Ht){if(Ht!==void 0&&typeof Ht!="function")throw new TypeError("Function expected");return Ht}for(var Ne,Ze=H.kind,ht=Ze==="getter"?"get":Ze==="setter"?"set":"value",Se=!j&&z?H.static?z:z.prototype:null,De=j||(Se?Object.getOwnPropertyDescriptor(Se,H.name):{}),tt=!1,st=K.length-1;st>=0;st--){var wt={};for(var xn in H)wt[xn]=xn==="access"?{}:H[xn];for(var xn in H.access)wt.access[xn]=H.access[xn];wt.addInitializer=function(Ht){if(tt)throw new TypeError("Cannot add initializers after decoration has completed");de.push(he(Ht||null))};var jt=(0,K[st])(Ze==="accessor"?{get:De.get,set:De.set}:De[ht],wt);if(Ze==="accessor"){if(jt===void 0)continue;if(jt===null||typeof jt!="object")throw new TypeError("Object expected");(Ne=he(jt.get))&&(De.get=Ne),(Ne=he(jt.set))&&(De.set=Ne),(Ne=he(jt.init))&&Q.unshift(Ne)}else(Ne=he(jt))&&(Ze==="field"?Q.unshift(Ne):De[ht]=Ne)}Se&&Object.defineProperty(Se,H.name,De),tt=!0}function b(z,j,K){for(var H=arguments.length>2,Q=0;Q0&&Q[Q.length-1])||Se[0]!==6&&Se[0]!==2)){he=0;continue}if(Se[0]===3&&(!Q||Se[1]>Q[0]&&Se[1]=z.length&&(z=void 0),{value:z&&z[H++],done:!z}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}function te(z,j){var K=typeof Symbol=="function"&&z[Symbol.iterator];if(!K)return z;var H,Q,de=K.call(z),he=[];try{for(;(j===void 0||j-- >0)&&!(H=de.next()).done;)he.push(H.value)}catch(Ne){Q={error:Ne}}finally{try{H&&!H.done&&(K=de.return)&&K.call(de)}finally{if(Q)throw Q.error}}return he}function we(){for(var z=[],j=0;j1||Ne(De,tt)})})}function Ne(De,tt){try{(st=Q[De](tt)).value instanceof le?Promise.resolve(st.value.v).then(Ze,ht):Se(de[0][2],st)}catch(wt){Se(de[0][3],wt)}var st}function Ze(De){Ne("next",De)}function ht(De){Ne("throw",De)}function Se(De,tt){De(tt),de.shift(),de.length&&Ne(de[0][0],de[0][1])}}function B(z){var j,K;return j={},H("next"),H("throw",function(Q){throw Q}),H("return"),j[Symbol.iterator]=function(){return this},j;function H(Q,de){j[Q]=z[Q]?function(he){return(K=!K)?{value:le(z[Q](he)),done:!1}:de?de(he):he}:de}}function W(z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var j,K=z[Symbol.asyncIterator];return K?K.call(z):(z=q(z),j={},H("next"),H("throw"),H("return"),j[Symbol.asyncIterator]=function(){return this},j);function H(Q){j[Q]=z[Q]&&function(de){return new Promise(function(he,Ne){(function(Ze,ht,Se,De){Promise.resolve(De).then(function(tt){Ze({value:tt,done:Se})},ht)})(he,Ne,(de=z[Q](de)).done,de.value)})}}}function ae(z,j){return Object.defineProperty?Object.defineProperty(z,"raw",{value:j}):z.raw=j,z}var se=Object.create?function(z,j){Object.defineProperty(z,"default",{enumerable:!0,value:j})}:function(z,j){z.default=j};function oe(z){if(z&&z.__esModule)return z;var j={};if(z!=null)for(var K in z)K!=="default"&&Object.prototype.hasOwnProperty.call(z,K)&&$(j,z,K);return se(j,z),j}function ye(z){return z&&z.__esModule?z:{default:z}}function Fe(z,j,K,H){if(K==="a"&&!H)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?z!==j||!H:!j.has(z))throw new TypeError("Cannot read private member from an object whose class did not declare it");return K==="m"?H:K==="a"?H.call(z):H?H.value:j.get(z)}function Ve(z,j,K,H,Q){if(H==="m")throw new TypeError("Private method is not writable");if(H==="a"&&!Q)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?z!==j||!Q:!j.has(z))throw new TypeError("Cannot write private member to an object whose class did not declare it");return H==="a"?Q.call(z,K):Q?Q.value=K:j.set(z,K),K}function Xe(z,j){if(j===null||typeof j!="object"&&typeof j!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof z=="function"?j===z:z.has(j)}function Ee(z,j,K){if(j!=null){if(typeof j!="object"&&typeof j!="function")throw new TypeError("Object expected.");var H;if(K){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");H=j[Symbol.asyncDispose]}if(H===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");H=j[Symbol.dispose]}if(typeof H!="function")throw new TypeError("Object not disposable.");z.stack.push({value:j,dispose:H,async:K})}else K&&z.stack.push({async:!0});return j}var ft=typeof SuppressedError=="function"?SuppressedError:function(z,j,K){var H=new Error(K);return H.name="SuppressedError",H.error=z,H.suppressed=j,H};function yt(z){function j(K){z.error=z.hasError?new ft(K,z.error,"An error was suppressed during disposal."):K,z.hasError=!0}return function K(){for(;z.stack.length;){var H=z.stack.pop();try{var Q=H.dispose&&H.dispose.call(H.value);if(H.async)return Promise.resolve(Q).then(K,function(de){return j(de),K()})}catch(de){j(de)}}if(z.hasError)throw z.error}()}p.default={__extends:v,__assign:S,__rest:E,__decorate:k,__param:A,__metadata:I,__awaiter:G,__generator:N,__createBinding:$,__exportStar:F,__values:q,__read:te,__spread:we,__spreadArrays:fe,__spreadArray:ie,__await:le,__asyncGenerator:Ae,__asyncDelegator:B,__asyncValues:W,__makeTemplateObject:ae,__importStar:oe,__importDefault:ye,__classPrivateFieldGet:Fe,__classPrivateFieldSet:Ve,__classPrivateFieldIn:Xe,__addDisposableResource:Ee,__disposeResources:yt}}},l={};function s(f){var p=l[f];if(p!==void 0)return p.exports;var d=l[f]={exports:{}};return o[f](d,d.exports,s),d.exports}s.d=function(f,p){for(var d in p)s.o(p,d)&&!s.o(f,d)&&Object.defineProperty(f,d,{enumerable:!0,get:p[d]})},s.o=function(f,p){return Object.prototype.hasOwnProperty.call(f,p)},s.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var c={};return function(){var f=c;Object.defineProperty(f,"__esModule",{value:!0}),f.useReactToPrint=f.ReactToPrint=f.PrintContextConsumer=void 0;var p=s(328);Object.defineProperty(f,"PrintContextConsumer",{enumerable:!0,get:function(){return p.PrintContextConsumer}});var d=s(428);Object.defineProperty(f,"ReactToPrint",{enumerable:!0,get:function(){return d.ReactToPrint}});var m=s(892);Object.defineProperty(f,"useReactToPrint",{enumerable:!0,get:function(){return m.useReactToPrint}});var v=s(428);f.default=v.ReactToPrint}(),c}()})})(bE);var XF=bE.exports;function QF(){const e=R.useRef(null),t=XF.useReactToPrint({content:()=>e.current,copyStyles:!0}),n=lt(r=>r.recipe.title);return C.jsxs("div",{"data-testid":"resultpage",className:"relative min-h-screen flex flex-col",children:[C.jsx(YF,{}),C.jsx(_l,{page:"/instructions",isNext:!1}),C.jsx("div",{className:"flex flex-col center mt-28 mb-16",children:C.jsx("div",{id:"printpage",className:"relative flex flex-col w-2/3 text-center input-border",children:C.jsxs("div",{className:"relative",ref:e,children:[C.jsxs("div",{className:"flex flex-col h-fit justify-between items-center",children:[C.jsxs("div",{className:"flex flex-col center w-full",children:[C.jsx("h1",{className:"print-title mt-8",children:n}),C.jsx("hr",{className:"hr-generic w-2/3"}),C.jsx(VF,{}),C.jsxs("div",{className:"relative flex center",children:[C.jsx("h2",{className:"print-subtitle z-10 bg-white px-6",children:"Ingredients:"}),C.jsx("hr",{className:"hr-long"})]})]}),C.jsx(GF,{})]}),C.jsxs("div",{className:"flex flex-col h-fit justify-between items-center",children:[C.jsxs("div",{className:"relative flex center",children:[C.jsx("h2",{className:"print-subtitle z-10 bg-white px-6 mb-4",children:"Steps:"}),C.jsx("hr",{className:"hr-long"})]}),C.jsx(KF,{}),C.jsx("div",{className:"flex flex-col h-fit justify-between items-center pb-2",children:C.jsx("h2",{className:"print-subtitle",children:"Enjoy !"})})]}),C.jsxs("div",{className:"absolute bottom-0 left-0 text-fluidPrintSubtitle m-2",children:[C.jsx("p",{children:"made with love by Yafim Simanovsky"}),C.jsx("p",{children:"https://github.com/yafimski/a4recipe"}),C.jsx("hr",{className:"w-full mt-1"})]})]})})}),C.jsxs("button",{type:"button",className:"print-button",onClick:t,children:["PRINT",C.jsx("br",{}),"THIS OUT !"]}),C.jsx(qF,{})]})}function Qx({identifier:e,units:t}){var c;const n=lt(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&&C.jsx("div",{className:"text-fluidCard",children:t.map(f=>C.jsx("button",{className:`unit-card my-1 md: text-xs lg:text-xl ${s.unit===f?"unit-card-chosen":null}`,type:"button",onClick:()=>r(qS({groupName:l,itemName:o,unit:f})),children:f},`${e}_${f}`))})}function JF({item:e,groupName:t}){const n=wn(),[r,o]=R.useState(e.amount),l=d=>{d>=0&&o(d)},s=()=>{r>0&&(n(os({groupName:t,itemName:e.itemName,amount:r-1})),o(d=>d-1))},c=()=>{n(os({groupName:t,itemName:e.itemName,amount:r+1})),o(d=>d+1)},f=d=>{Number.isNaN(d)?o(0):d>=0&&o(d),n(os({groupName:t,itemName:e.itemName,amount:d}))},p=d=>{d.key==="Enter"?(f(r),n(os({groupName:t,itemName:e.itemName,amount:r}))):d.key==="Backspace"&&d.target.value.length===1&&(o(0),n(os({groupName:t,itemName:e.itemName,amount:0})))};return C.jsxs("div",{className:"flex flex-row rounded-md sm:mx-2 md:mx-4 lg:mx-6",children:[C.jsx("button",{type:"button",className:"lg:mx-2",onClick:s,children:C.jsx(In,{icon:t2,className:"num-input-icons"})}),C.jsx("input",{className:`sm:w-10 md:w-12 lg:w-16 sm:py-0 lg:py-1 md:mx-1 lg:mx-2 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:d=>l(Number.parseFloat(d.target.value)),onFocus:Jc,onBlur:d=>f(Number.parseFloat(d.target.value)),onKeyDown:p,onWheel:d=>d.target.blur()}),C.jsx("button",{type:"button",className:"lg:mx-2",onClick:c,children:C.jsx(In,{icon:n2,className:"num-input-icons"})})]})}function ZF({groupName:e,item:t}){const{itemName:n,unit:r}=t;return C.jsx("div",{"data-testid":"ingredientFullItem",className:"flex center",children:C.jsxs("div",{className:"aspect-videoWide flex flex-row h-clampSmall rounded-2xl card-shadow",children:[C.jsx("img",{src:`${Xr}/assets/ingredients/${n.toLowerCase()}.webp`,alt:n,className:"rounded-l-2xl"}),C.jsxs("div",{className:"flex flex-col center w-1/2 md:p-0 lg:p-2 m-auto md:gap-0.5 lg:gap-1",children:[C.jsx("p",{className:"text-fluidSubtitle",children:n}),C.jsx("hr",{className:"hr-generic"}),C.jsx(JF,{item:t,groupName:e}),C.jsx("p",{className:`text-fluidSubtitle rounded-xl px-3 md:mt-0 lg:mt-1 xl:mt-2 ${r===wl&&"required-element-fill"}`,children:r})]})]},`${e}_${n}`)})}function e8({groupName:e,items:t}){const n=wn(),r=(o,l)=>{n(qS({groupName:e,itemName:o.itemName,unit:l}))};return C.jsxs("div",{className:"flex flex-col items-start mx-8",children:[C.jsx("p",{className:"group-chip-dead",children:e}),t.map(o=>C.jsxs("div",{className:"flex flex-row center mb-8",children:[C.jsx(ZF,{groupName:e,item:o},`${e}_${o.itemName}_${o.amount}_${o.unit}}`),C.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:[C.jsx(Qx,{identifier:`${o.itemName}_${e}_common1`,units:Nc.slice(0,Nc.length/2)}),C.jsx(Qx,{identifier:`${o.itemName}_${e}_common2`,units:Nc.slice(Nc.length/2)})]}),C.jsx("form",{children:C.jsx("select",{className:`text-base md:w-20 lg:w-28 input-border rounded-md px-2 py-1 ${ex.includes(o.unit)?"border-blue-500 border-1 bg-blue-300":null}`,value:o.unit,onChange:l=>r(o,l.target.value),children:ex.map(l=>C.jsx("option",{value:l,children:l},l))})})]},`${e}_${o.itemName}}`))]})}function t8(){const e=lt(t=>t.groups.ingredientsGroups);return C.jsxs("div",{className:"flex flex-col justify-center",children:[C.jsx("h2",{className:"text-fluidSubtitle mb-4 mt-12",children:"Select the Units and Quantities for each ingredient"}),C.jsx("div",{className:"flex flex-col h-5/6 w-fit input-gallery-border overflow-auto p-4 items-center",children:e.map(t=>C.jsx("div",{className:"sm:mb-2 md:mb-4",children:C.jsx(e8,{groupName:t.groupName,items:t.items},t.groupName)},t.groupName))})]})}function n8(){const e=lt(t=>t.warning.warning);return C.jsxs("div",{"data-testid":"quantities",className:"max-h-screen flex flex-col",children:[C.jsx(_l,{page:"/instructions",isNext:!0}),C.jsx(_l,{page:`${Xr}/`,isNext:!1}),C.jsx("div",{className:"flex h-screen justify-center text-center mt-8",children:C.jsx(t8,{})}),e&&C.jsx(hg,{})]})}const r8=[{path:"/a4recipe/",element:C.jsx(IF,{}),errorElement:C.jsx(eD,{})},{path:"/quantities",element:C.jsx(n8,{})},{path:"/instructions",element:C.jsx(HF,{})},{path:"/print",element:C.jsx(QF,{})}],i8=jD({reducer:{recipe:d5,groups:i5,actions:C5,warning:h5}}),o8=z4(r8);Ah.createRoot(document.getElementById("root")).render(C.jsx(pt.StrictMode,{children:C.jsx(hT,{store:i8,children:C.jsx(q4,{router:o8})})}));export{In as F,wn as a,Hr as b,Mm as c,l8 as f,$i as h,C as j,Xr as s,lt as u}; + `,removeAfterPrint:!1,suppressErrors:!1}},892:function(f,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.useReactToPrint=void 0;var m=d(316),v=d(496),S=d(428),C=d(940),k=d(860),A=Object.prototype.hasOwnProperty.call(v,"useMemo")&&Object.prototype.hasOwnProperty.call(v,"useCallback");p.useReactToPrint=function(_){if(!A)return _.suppressErrors||console.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var b=v.useMemo(function(){return new S.ReactToPrint(m.__assign(m.__assign({},C.defaultProps),_))},[_]);return v.useCallback(function(y,O){return(0,k.wrapCallbackWithArgs)(b,b.handleClick,O)(y)},[b])}},860:function(f,p,d){Object.defineProperty(p,"__esModule",{value:!0}),p.wrapCallbackWithArgs=void 0;var m=d(316);p.wrapCallbackWithArgs=function(v,S){for(var C=[],k=2;k=0;Ne--)(Q=z[Ne])&&(he=(de<3?Q(he):de>3?Q(j,K,he):Q(j,K))||he);return de>3&&he&&Object.defineProperty(j,K,he),he}function A(z,j){return function(K,H){j(K,H,z)}}function _(z,j,K,H,Q,de){function he(Ht){if(Ht!==void 0&&typeof Ht!="function")throw new TypeError("Function expected");return Ht}for(var Ne,Ze=H.kind,ht=Ze==="getter"?"get":Ze==="setter"?"set":"value",Se=!j&&z?H.static?z:z.prototype:null,De=j||(Se?Object.getOwnPropertyDescriptor(Se,H.name):{}),tt=!1,st=K.length-1;st>=0;st--){var wt={};for(var xn in H)wt[xn]=xn==="access"?{}:H[xn];for(var xn in H.access)wt.access[xn]=H.access[xn];wt.addInitializer=function(Ht){if(tt)throw new TypeError("Cannot add initializers after decoration has completed");de.push(he(Ht||null))};var jt=(0,K[st])(Ze==="accessor"?{get:De.get,set:De.set}:De[ht],wt);if(Ze==="accessor"){if(jt===void 0)continue;if(jt===null||typeof jt!="object")throw new TypeError("Object expected");(Ne=he(jt.get))&&(De.get=Ne),(Ne=he(jt.set))&&(De.set=Ne),(Ne=he(jt.init))&&Q.unshift(Ne)}else(Ne=he(jt))&&(Ze==="field"?Q.unshift(Ne):De[ht]=Ne)}Se&&Object.defineProperty(Se,H.name,De),tt=!0}function b(z,j,K){for(var H=arguments.length>2,Q=0;Q0&&Q[Q.length-1])||Se[0]!==6&&Se[0]!==2)){he=0;continue}if(Se[0]===3&&(!Q||Se[1]>Q[0]&&Se[1]=z.length&&(z=void 0),{value:z&&z[H++],done:!z}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}function te(z,j){var K=typeof Symbol=="function"&&z[Symbol.iterator];if(!K)return z;var H,Q,de=K.call(z),he=[];try{for(;(j===void 0||j-- >0)&&!(H=de.next()).done;)he.push(H.value)}catch(Ne){Q={error:Ne}}finally{try{H&&!H.done&&(K=de.return)&&K.call(de)}finally{if(Q)throw Q.error}}return he}function we(){for(var z=[],j=0;j1||Ne(De,tt)})})}function Ne(De,tt){try{(st=Q[De](tt)).value instanceof le?Promise.resolve(st.value.v).then(Ze,ht):Se(de[0][2],st)}catch(wt){Se(de[0][3],wt)}var st}function Ze(De){Ne("next",De)}function ht(De){Ne("throw",De)}function Se(De,tt){De(tt),de.shift(),de.length&&Ne(de[0][0],de[0][1])}}function B(z){var j,K;return j={},H("next"),H("throw",function(Q){throw Q}),H("return"),j[Symbol.iterator]=function(){return this},j;function H(Q,de){j[Q]=z[Q]?function(he){return(K=!K)?{value:le(z[Q](he)),done:!1}:de?de(he):he}:de}}function W(z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var j,K=z[Symbol.asyncIterator];return K?K.call(z):(z=q(z),j={},H("next"),H("throw"),H("return"),j[Symbol.asyncIterator]=function(){return this},j);function H(Q){j[Q]=z[Q]&&function(de){return new Promise(function(he,Ne){(function(Ze,ht,Se,De){Promise.resolve(De).then(function(tt){Ze({value:tt,done:Se})},ht)})(he,Ne,(de=z[Q](de)).done,de.value)})}}}function ae(z,j){return Object.defineProperty?Object.defineProperty(z,"raw",{value:j}):z.raw=j,z}var se=Object.create?function(z,j){Object.defineProperty(z,"default",{enumerable:!0,value:j})}:function(z,j){z.default=j};function oe(z){if(z&&z.__esModule)return z;var j={};if(z!=null)for(var K in z)K!=="default"&&Object.prototype.hasOwnProperty.call(z,K)&&$(j,z,K);return se(j,z),j}function ye(z){return z&&z.__esModule?z:{default:z}}function Fe(z,j,K,H){if(K==="a"&&!H)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?z!==j||!H:!j.has(z))throw new TypeError("Cannot read private member from an object whose class did not declare it");return K==="m"?H:K==="a"?H.call(z):H?H.value:j.get(z)}function Ve(z,j,K,H,Q){if(H==="m")throw new TypeError("Private method is not writable");if(H==="a"&&!Q)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?z!==j||!Q:!j.has(z))throw new TypeError("Cannot write private member to an object whose class did not declare it");return H==="a"?Q.call(z,K):Q?Q.value=K:j.set(z,K),K}function Xe(z,j){if(j===null||typeof j!="object"&&typeof j!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof z=="function"?j===z:z.has(j)}function Ee(z,j,K){if(j!=null){if(typeof j!="object"&&typeof j!="function")throw new TypeError("Object expected.");var H;if(K){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");H=j[Symbol.asyncDispose]}if(H===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");H=j[Symbol.dispose]}if(typeof H!="function")throw new TypeError("Object not disposable.");z.stack.push({value:j,dispose:H,async:K})}else K&&z.stack.push({async:!0});return j}var ft=typeof SuppressedError=="function"?SuppressedError:function(z,j,K){var H=new Error(K);return H.name="SuppressedError",H.error=z,H.suppressed=j,H};function yt(z){function j(K){z.error=z.hasError?new ft(K,z.error,"An error was suppressed during disposal."):K,z.hasError=!0}return function K(){for(;z.stack.length;){var H=z.stack.pop();try{var Q=H.dispose&&H.dispose.call(H.value);if(H.async)return Promise.resolve(Q).then(K,function(de){return j(de),K()})}catch(de){j(de)}}if(z.hasError)throw z.error}()}p.default={__extends:v,__assign:S,__rest:C,__decorate:k,__param:A,__metadata:I,__awaiter:G,__generator:N,__createBinding:$,__exportStar:F,__values:q,__read:te,__spread:we,__spreadArrays:fe,__spreadArray:ie,__await:le,__asyncGenerator:Ae,__asyncDelegator:B,__asyncValues:W,__makeTemplateObject:ae,__importStar:oe,__importDefault:ye,__classPrivateFieldGet:Fe,__classPrivateFieldSet:Ve,__classPrivateFieldIn:Xe,__addDisposableResource:Ee,__disposeResources:yt}}},l={};function s(f){var p=l[f];if(p!==void 0)return p.exports;var d=l[f]={exports:{}};return o[f](d,d.exports,s),d.exports}s.d=function(f,p){for(var d in p)s.o(p,d)&&!s.o(f,d)&&Object.defineProperty(f,d,{enumerable:!0,get:p[d]})},s.o=function(f,p){return Object.prototype.hasOwnProperty.call(f,p)},s.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var c={};return function(){var f=c;Object.defineProperty(f,"__esModule",{value:!0}),f.useReactToPrint=f.ReactToPrint=f.PrintContextConsumer=void 0;var p=s(328);Object.defineProperty(f,"PrintContextConsumer",{enumerable:!0,get:function(){return p.PrintContextConsumer}});var d=s(428);Object.defineProperty(f,"ReactToPrint",{enumerable:!0,get:function(){return d.ReactToPrint}});var m=s(892);Object.defineProperty(f,"useReactToPrint",{enumerable:!0,get:function(){return m.useReactToPrint}});var v=s(428);f.default=v.ReactToPrint}(),c}()})})(bE);var XF=bE.exports;function QF(){const e=R.useRef(null),t=XF.useReactToPrint({content:()=>e.current,copyStyles:!0}),n=lt(r=>r.recipe.title);return E.jsxs("div",{"data-testid":"resultpage",className:"relative min-h-screen flex flex-col",children:[E.jsx(YF,{}),E.jsx(_l,{page:"/instructions",isNext:!1}),E.jsx("div",{className:"flex flex-col center mt-28 mb-16",children:E.jsx("div",{id:"printpage",className:"relative flex flex-col w-2/3 text-center input-border",children:E.jsxs("div",{className:"relative",ref:e,children:[E.jsxs("div",{className:"flex flex-col h-fit justify-between items-center",children:[E.jsxs("div",{className:"flex flex-col center w-full",children:[E.jsx("h1",{className:"print-title mt-8",children:n}),E.jsx("hr",{className:"hr-generic w-2/3"}),E.jsx(VF,{}),E.jsxs("div",{className:"relative flex center",children:[E.jsx("h2",{className:"print-subtitle z-10 bg-white px-6",children:"Ingredients:"}),E.jsx("hr",{className:"hr-long"})]})]}),E.jsx(GF,{})]}),E.jsxs("div",{className:"flex flex-col h-fit justify-between items-center",children:[E.jsxs("div",{className:"relative flex center",children:[E.jsx("h2",{className:"print-subtitle z-10 bg-white px-6 mb-4",children:"Steps:"}),E.jsx("hr",{className:"hr-long"})]}),E.jsx(KF,{}),E.jsx("div",{className:"flex flex-col h-fit justify-between items-center pb-2",children:E.jsx("h2",{className:"print-subtitle",children:"Enjoy !"})})]}),E.jsxs("div",{className:"absolute bottom-0 left-0 text-fluidPrintSubtitle m-2",children:[E.jsx("p",{children:"made with love by Yafim Simanovsky"}),E.jsx("p",{children:"https://github.com/yafimski/a4recipe"}),E.jsx("hr",{className:"w-full mt-1"})]})]})})}),E.jsxs("button",{type:"button",className:"print-button",onClick:t,children:["PRINT",E.jsx("br",{}),"THIS OUT !"]}),E.jsx(qF,{})]})}function Qx({identifier:e,units:t}){var c;const n=lt(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&&E.jsx("div",{className:"text-fluidCard",children:t.map(f=>E.jsx("button",{className:`unit-card my-1 md: text-xs lg:text-xl ${s.unit===f?"unit-card-chosen":null}`,type:"button",onClick:()=>r(qS({groupName:l,itemName:o,unit:f})),children:f},`${e}_${f}`))})}function JF({item:e,groupName:t}){const n=wn(),[r,o]=R.useState(e.amount),l=d=>{d>=0&&o(d)},s=()=>{r>0&&(n(os({groupName:t,itemName:e.itemName,amount:r-1})),o(d=>d-1))},c=()=>{n(os({groupName:t,itemName:e.itemName,amount:r+1})),o(d=>d+1)},f=d=>{Number.isNaN(d)?o(0):d>=0&&o(d),n(os({groupName:t,itemName:e.itemName,amount:d}))},p=d=>{d.key==="Enter"?(f(r),n(os({groupName:t,itemName:e.itemName,amount:r}))):d.key==="Backspace"&&d.target.value.length===1&&(o(0),n(os({groupName:t,itemName:e.itemName,amount:0})))};return E.jsxs("div",{className:"flex flex-row rounded-md sm:mx-2 md:mx-4 lg:mx-6",children:[E.jsx("button",{type:"button",className:"lg:mx-2",onClick:s,children:E.jsx(In,{icon:t2,className:"num-input-icons"})}),E.jsx("input",{className:`sm:w-10 md:w-12 lg:w-16 sm:py-0 lg:py-1 md:mx-1 lg:mx-2 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:d=>l(Number.parseFloat(d.target.value)),onFocus:Jc,onBlur:d=>f(Number.parseFloat(d.target.value)),onKeyDown:p,onWheel:d=>d.target.blur()}),E.jsx("button",{type:"button",className:"lg:mx-2",onClick:c,children:E.jsx(In,{icon:n2,className:"num-input-icons"})})]})}function ZF({groupName:e,item:t}){const{itemName:n,unit:r}=t;return E.jsx("div",{"data-testid":"ingredientFullItem",className:"flex center",children:E.jsxs("div",{className:"aspect-videoWide flex flex-row h-clampSmall rounded-2xl card-shadow",children:[E.jsx("img",{src:`${Xr}/assets/ingredients/${n.toLowerCase()}.webp`,alt:n,className:"rounded-l-2xl"}),E.jsxs("div",{className:"flex flex-col center w-1/2 md:p-0 lg:p-1 m-auto md:gap-0.5 lg:gap-0.5",children:[E.jsx("p",{className:"text-fluidSubtitle",children:n}),E.jsx("hr",{className:"hr-generic"}),E.jsx(JF,{item:t,groupName:e}),E.jsx("p",{className:`text-fluidSubtitle rounded-xl px-3 md:mt-1 lg:mt-0 xl:text-xl ${r===wl&&"required-element-fill"}`,children:r})]})]},`${e}_${n}`)})}function e8({groupName:e,items:t}){const n=wn(),r=(o,l)=>{n(qS({groupName:e,itemName:o.itemName,unit:l}))};return E.jsxs("div",{className:"flex flex-col items-start mx-8",children:[E.jsx("p",{className:"group-chip-dead",children:e}),t.map(o=>E.jsxs("div",{className:"flex flex-row center mb-8",children:[E.jsx(ZF,{groupName:e,item:o},`${e}_${o.itemName}_${o.amount}_${o.unit}}`),E.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:[E.jsx(Qx,{identifier:`${o.itemName}_${e}_common1`,units:Nc.slice(0,Nc.length/2)}),E.jsx(Qx,{identifier:`${o.itemName}_${e}_common2`,units:Nc.slice(Nc.length/2)})]}),E.jsx("form",{children:E.jsx("select",{className:`text-base md:w-20 lg:w-28 input-border rounded-md px-2 py-1 ${ex.includes(o.unit)?"border-blue-500 border-1 bg-blue-300":null}`,value:o.unit,onChange:l=>r(o,l.target.value),children:ex.map(l=>E.jsx("option",{value:l,children:l},l))})})]},`${e}_${o.itemName}}`))]})}function t8(){const e=lt(t=>t.groups.ingredientsGroups);return E.jsxs("div",{className:"flex flex-col justify-center",children:[E.jsx("h2",{className:"text-fluidSubtitle mb-4 mt-12",children:"Select the Units and Quantities for each ingredient"}),E.jsx("div",{className:"flex flex-col h-5/6 w-fit input-gallery-border overflow-auto p-4 items-center",children:e.map(t=>E.jsx("div",{className:"sm:mb-2 md:mb-4",children:E.jsx(e8,{groupName:t.groupName,items:t.items},t.groupName)},t.groupName))})]})}function n8(){const e=lt(t=>t.warning.warning);return E.jsxs("div",{"data-testid":"quantities",className:"max-h-screen flex flex-col",children:[E.jsx(_l,{page:"/instructions",isNext:!0}),E.jsx(_l,{page:`${Xr}/`,isNext:!1}),E.jsx("div",{className:"flex h-screen justify-center text-center mt-8",children:E.jsx(t8,{})}),e&&E.jsx(hg,{})]})}const r8=[{path:"/a4recipe/",element:E.jsx(IF,{}),errorElement:E.jsx(e5,{})},{path:"/quantities",element:E.jsx(n8,{})},{path:"/instructions",element:E.jsx(HF,{})},{path:"/print",element:E.jsx(QF,{})}],i8=j5({reducer:{recipe:dD,groups:iD,actions:CD,warning:hD}}),o8=z4(r8);Ah.createRoot(document.getElementById("root")).render(E.jsx(pt.StrictMode,{children:E.jsx(hT,{store:i8,children:E.jsx(q4,{router:o8})})}));export{In as F,wn as a,Hr as b,Lm as c,l8 as f,$i as h,E as j,Xr as s,lt as u}; diff --git a/index.html b/index.html index ff28aa5..9f2ccce 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ a4recipe - - + +