From ddf7ec5847a76ac8e0464dfae49bf197dd3056db Mon Sep 17 00:00:00 2001 From: Sadanand Pai Date: Fri, 14 Jul 2023 04:31:48 +0000 Subject: [PATCH] build files from github action --- .../{index-d30cfbe2.css => index-4069318d.css} | 2 +- .../{index-86fd1322.js => index-8f238d97.js} | 18 +++++++++--------- react/dist/index.html | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) rename react/dist/assets/{index-d30cfbe2.css => index-4069318d.css} (82%) rename react/dist/assets/{index-86fd1322.js => index-8f238d97.js} (78%) diff --git a/react/dist/assets/index-d30cfbe2.css b/react/dist/assets/index-4069318d.css similarity index 82% rename from react/dist/assets/index-d30cfbe2.css rename to react/dist/assets/index-4069318d.css index 6387dce88..1207863d6 100644 --- a/react/dist/assets/index-d30cfbe2.css +++ b/react/dist/assets/index-4069318d.css @@ -1 +1 @@ -@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";html{box-sizing:border-box;font-family:Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}*,*:before,*:after{box-sizing:inherit}html,body{margin:0}a{text-decoration:none;color:#00f}.container{width:90%;margin:auto}.text-center{text-align:center}button{cursor:pointer}.btn.btn-primary{padding:10px 16px;background-color:#0ff;border:1px solid grey;border-radius:4px;cursor:pointer}._App_1tfmt_1{font-family:sans-serif;text-align:center;margin-top:1rem}._accordion_1tfmt_7{border:1px solid rgb(218,212,212);padding:10px;font-size:14px;text-align:left;margin-bottom:10px}._accordion-title_1tfmt_15{display:flex;align-items:center;justify-content:space-between}._accordion-icon_1tfmt_21{background:transparent;border-color:transparent;width:2rem;height:2rem;background:rgb(209,209,209);display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-size:20px;cursor:pointer;margin-left:1rem;align-self:center;min-width:2rem}._main_1uppu_1{text-align:center;width:90%;margin:auto}._main_1uppu_1 input{width:94%;margin-bottom:.5rem;padding:.5rem 1rem;font-size:1rem}._main_1uppu_1 ._suggestions_1uppu_12{width:93%;margin:auto;padding-inline-start:0}._main_1uppu_1 li{display:flex;align-items:center;height:40px;padding-left:1rem;margin-bottom:.1rem;background-color:beige;cursor:pointer;list-style:none}._main_1uppu_1 li._highlight_1uppu_27{background-color:khaki;outline:1px solid}@media (min-width: 768px){._main_1uppu_1 input,._main_1uppu_1 ._suggestions_1uppu_12{width:50%}}._main_1uppu_1 ._loader_1uppu_37{width:25px;height:25px;margin:25px auto auto;border:2px solid black;border-right-width:0;border-left-width:0;border-radius:50%;animation:_loader_1uppu_37 linear 1s infinite}@keyframes _loader_1uppu_37{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._main_6qdtw_1{text-align:center}._main_6qdtw_1 div{margin:1rem 0}._main_6qdtw_1 button{padding:.25rem .5rem;margin:0 .5rem;font-size:1.15rem;cursor:pointer}._main_6qdtw_1 input{padding:.15rem;font-size:1.15rem;width:5rem;margin-left:1rem}._app_8fex5_1{font-size:1.2rem;margin-top:1rem}._list_8fex5_6{list-style-type:none;padding-left:0;margin-bottom:.5em;height:1.5em;display:flex;align-items:center}._list_8fex5_6 button{font-size:1em;background-color:transparent;border:none;cursor:pointer}._list_8fex5_6._editList_8fex5_22{padding:1px 6px}._list_8fex5_6 input{font-size:1em}._indent_8fex5_30{margin-left:30px}._controls_8fex5_34{display:flex;gap:.5em;margin-left:2rem}._controls_8fex5_34 button{display:none;align-items:center;justify-content:center;background-color:transparent;padding:0;border:none;cursor:pointer}._list_8fex5_6:hover button{display:block}._list_8fex5_6[data-root=true]:hover div button:first-child,._list_8fex5_6[data-root=true]:hover div button:last-child{display:none}._app_wqhfe_1{display:flex;flex-direction:column;max-width:25%;margin:10px auto}._app_wqhfe_1 input{text-align:center;height:30px;padding:20px;outline:none}._app_wqhfe_1 ._widget_wqhfe_13{margin-top:5px;display:flex;justify-content:space-around}._app_wqhfe_1 ._text_wqhfe_18 p{text-align:center}._app_wqhfe_1 form{display:flex;flex-direction:column}._app_wqhfe_1 form label{padding:10px}._app_wqhfe_1 form button{margin-top:10px;min-width:40%;padding:10px;border:none;cursor:pointer;font-size:16px}@media (max-width: 600px){._app_wqhfe_1 ._widget_wqhfe_13{margin-top:5px;display:flex;flex-direction:column}}._nav_19h5h_1{display:flex;align-items:center;justify-content:space-between;position:relative}._logo_19h5h_8{width:35px;height:35px;vertical-align:text-bottom}nav:after{content:"";position:absolute;width:110%;bottom:10px;left:-5%;box-shadow:0 5px 0 2px gray}:root{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #d23669}._darkTheme_1hd3l_7{--clr-bcg: #282c35;--clr-font: #fff;--clr-primary: #d23669}._lightTheme_1hd3l_13{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #ffd7c4}._main_1hd3l_19{background-color:var(--clr-bcg);padding:10px;transition:.3s linear}._main_1hd3l_19 h1{color:var(--clr-font)}._main_1hd3l_19 button{margin-top:10px;color:var(--clr-font);background-color:var(--clr-primary);padding:10px;border:none;cursor:pointer;font-size:16px}._main_yas6p_1{text-align:center;width:90%;margin:auto}._main_yas6p_1 ._indicators_yas6p_6{display:flex;width:20rem;justify-content:space-between;margin:.5rem auto 1rem;font-size:.8rem;color:#d3d3d3}._main_yas6p_1 ._active_yas6p_14{color:green}._main_yas6p_1 ._progressContainer_yas6p_17{position:relative;width:20rem;height:.6rem;margin:auto;border-radius:8px;outline:1px solid #ccc}._main_yas6p_1 ._progressBar_yas6p_25{width:0%;height:100%;background:red;transition:all .25s ease-in-out}._main_yas6p_1 input{width:20rem;font-size:1.5rem}._App_p94la_1{font-family:sans-serif;text-align:center;margin-top:2rem}._star_p94la_7{cursor:pointer;font-size:30px}._main_slx1h_2{text-align:center;width:90%;margin:auto;margin-top:1rem}._main_slx1h_2 form{display:flex;flex-direction:column;gap:1rem;align-items:center}._main_slx1h_2 input,._main_slx1h_2 select{padding:.5em;font-size:1rem}._main_slx1h_2 label{display:flex}._main_slx1h_2 #_message_slx1h_1{min-width:25ch}._main_slx1h_2 [for=duration]{align-items:center}._main_slx1h_2 ._toastContainer_slx1h_28{display:flex;position:fixed;flex-direction:column;gap:.5rem}._main_slx1h_2 ._toast_slx1h_28{padding:.5em;background-color:pink;border-radius:.25rem;box-shadow:0 4px 10px #00000040}._main_slx1h_2 ._success_slx1h_40{background-color:#00b300}._main_slx1h_2 ._error_slx1h_43{background-color:red}._main_slx1h_2 ._warning_slx1h_46{background-color:orange}._main_slx1h_2 ._info_slx1h_49{background-color:#ffffe0}._main_slx1h_2 ._toast_slx1h_28:before{min-width:1rem;padding:.1em .5em;font-weight:700;font-size:.85em}._main_slx1h_2 ._success_slx1h_40:before{content:"✓"}._main_slx1h_2 ._error_slx1h_43:before{content:"✗"}._main_slx1h_2 ._warning_slx1h_46:before{content:"⚠"}._main_slx1h_2 ._info_slx1h_49:before{content:"ⓘ"}._main_slx1h_2 ._remove_slx1h_70{all:unset;margin-left:1em;cursor:pointer}._main_slx1h_2 ._tcLeftTop_slx1h_75{top:1rem;left:1rem}._main_slx1h_2 ._tcLeftBottom_slx1h_79{bottom:1rem;left:1rem}._main_slx1h_2 ._tcRightTop_slx1h_83{top:1rem;right:1rem}._main_slx1h_2 ._tcRightBottom_slx1h_87{right:1rem;bottom:1rem}._main_slx1h_2 ._tcLeftTop_slx1h_75 ._toast_slx1h_28,._main_slx1h_2 ._tcLeftBottom_slx1h_79 ._toast_slx1h_28{animation:_appearFromLeft_slx1h_1 .1s ease-in forwards}._main_slx1h_2 ._tcLeftTop_slx1h_75 ._toast_slx1h_28._fade-out-left_slx1h_95,._main_slx1h_2 ._tcLeftBottom_slx1h_79 ._toast_slx1h_28._fade-out-left_slx1h_95{animation:_fadeOutToLeft_slx1h_1 .1s ease-in forwards}@keyframes _appearFromLeft_slx1h_1{0%{transform:translate(-200%)}to{transform:translate(0)}}@keyframes _fadeOutToLeft_slx1h_1{0%{transform:translate(0)}to{transform:translate(-200%)}}._main_slx1h_2 ._tcRightTop_slx1h_83 ._toast_slx1h_28,._main_slx1h_2 ._tcRightBottom_slx1h_87 ._toast_slx1h_28{animation:_appearFromRight_slx1h_1 .1s ease-in forwards}._main_slx1h_2 ._tcRightTop_slx1h_83 ._toast_slx1h_28._fade-out-right_slx1h_119,._main_slx1h_2 ._tcRightBottom_slx1h_87 ._toast_slx1h_28._fade-out-right_slx1h_119{animation:_fadeOutToRight_slx1h_1 .1s ease-in forwards}@keyframes _appearFromRight_slx1h_1{0%{transform:translate(200%)}to{transform:translate(0)}}@keyframes _fadeOutToRight_slx1h_1{0%{transform:translate(0)}to{transform:translate(200%)}}._App_110i9_1{margin:auto}._App_110i9_1 button{color:#fff;padding:.5rem .75rem;border-radius:6px;transform:scale(1);transition:all .33s;border:none}._App_110i9_1 button:hover{transform:scale(1.1);transition:all .33s}._App_110i9_1 button:disabled{cursor:not-allowed;transform:scale(1);background-color:gray}._App_110i9_1 form{margin-top:10px;width:100%}._App_110i9_1 form input{width:100%;height:80%;border-radius:6px;padding:.5rem}._App_110i9_1 form button{margin-top:10px;background-color:#00f;margin-right:.5rem}._App_110i9_1 ._item_110i9_36{margin-top:10px;display:flex;justify-content:space-between;align-items:center}._App_110i9_1 ._item_110i9_36 ._editBtn_110i9_42{background-color:green}._App_110i9_1 ._item_110i9_36 ._deleteBtn_110i9_45{background-color:red;margin-left:10px}@media screen and (min-width: 768px){._App_110i9_1{width:50%}}._challengeGrid_k7tqa_1{display:grid;grid-gap:1.5rem;grid-template-columns:repeat(1,1fr);margin:2rem 0}._challengeCard_k7tqa_8{padding:10px;position:relative;overflow:hidden;background-color:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 6px 8px #00000026;transition:all .2s ease-in-out}._challengeCard_k7tqa_8:hover{box-shadow:0 6px 8px #0000004d;transform:scale(1.05)}._challengeCard_k7tqa_8 h3{color:#d2691e;font-size:1.25rem}._challengeCard_k7tqa_8._disabled_k7tqa_25 h3{color:gray}._challengeCard_k7tqa_8._disabled_k7tqa_25{box-shadow:0 3px 4px #0000001a;cursor:not-allowed}._challengeCard_k7tqa_8._disabled_k7tqa_25:hover{transform:scale(1)}._challengeCard_k7tqa_8 a{color:#d2691e;text-decoration:none}._challengeCard_k7tqa_8 ._new_k7tqa_39{position:absolute;top:.75rem;right:-1.75rem;width:6rem;color:#fff;font-size:1rem;text-align:center;background:red;transform:rotate(45deg)}._challengeCard_k7tqa_8 ._developer_k7tqa_50{display:flex;justify-content:center;align-items:center;color:#000;font-size:.8rem}._challengeCard_k7tqa_8 img{border-radius:50%;height:25px;width:25px;margin-right:.5rem}._challengeCard_k7tqa_8 ._name_k7tqa_63{color:#000}@media screen and (min-width: 480px){._challengeGrid_k7tqa_1{grid-template-columns:repeat(2,1fr)}}@media screen and (min-width: 1024px){._challengeGrid_k7tqa_1{grid-template-columns:repeat(3,1fr)}}@media screen and (min-width: 1400px){._challengeGrid_k7tqa_1{grid-template-columns:repeat(4,1fr)}}._h1_12dvk_1{justify-content:center}._h1_12dvk_1 ._github_12dvk_4{height:35px;width:35px;vertical-align:text-bottom;margin-left:.5rem}._hero_12dvk_11{width:min(80vh,80vw)}._routes_12dvk_15{display:flex;justify-content:center;gap:2rem;flex-wrap:wrap}._routes_12dvk_15 a{background-color:#9932cc;color:#fff;padding:1rem 2rem;min-width:12rem;border-radius:.5rem;transition:all .33s;font-size:1.2rem;line-height:2rem}._routes_12dvk_15 a:hover{transform:scale(1.1)}@media screen and (min-width: 375px){._routes_12dvk_15 a{padding:1rem 4rem;flex-shrink:0}} +@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";html{box-sizing:border-box;font-family:Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}*,*:before,*:after{box-sizing:inherit}html,body{margin:0}a{text-decoration:none;color:#00f}.container{width:90%;margin:auto}.text-center{text-align:center}button{cursor:pointer}.btn.btn-primary{padding:10px 16px;background-color:#0ff;border:1px solid grey;border-radius:4px;cursor:pointer}._App_1tfmt_1{font-family:sans-serif;text-align:center;margin-top:1rem}._accordion_1tfmt_7{border:1px solid rgb(218,212,212);padding:10px;font-size:14px;text-align:left;margin-bottom:10px}._accordion-title_1tfmt_15{display:flex;align-items:center;justify-content:space-between}._accordion-icon_1tfmt_21{background:transparent;border-color:transparent;width:2rem;height:2rem;background:rgb(209,209,209);display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-size:20px;cursor:pointer;margin-left:1rem;align-self:center;min-width:2rem}._main_1uppu_1{text-align:center;width:90%;margin:auto}._main_1uppu_1 input{width:94%;margin-bottom:.5rem;padding:.5rem 1rem;font-size:1rem}._main_1uppu_1 ._suggestions_1uppu_12{width:93%;margin:auto;padding-inline-start:0}._main_1uppu_1 li{display:flex;align-items:center;height:40px;padding-left:1rem;margin-bottom:.1rem;background-color:beige;cursor:pointer;list-style:none}._main_1uppu_1 li._highlight_1uppu_27{background-color:khaki;outline:1px solid}@media (min-width: 768px){._main_1uppu_1 input,._main_1uppu_1 ._suggestions_1uppu_12{width:50%}}._main_1uppu_1 ._loader_1uppu_37{width:25px;height:25px;margin:25px auto auto;border:2px solid black;border-right-width:0;border-left-width:0;border-radius:50%;animation:_loader_1uppu_37 linear 1s infinite}@keyframes _loader_1uppu_37{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._main_6qdtw_1{text-align:center}._main_6qdtw_1 div{margin:1rem 0}._main_6qdtw_1 button{padding:.25rem .5rem;margin:0 .5rem;font-size:1.15rem;cursor:pointer}._main_6qdtw_1 input{padding:.15rem;font-size:1.15rem;width:5rem;margin-left:1rem}._app_8fex5_1{font-size:1.2rem;margin-top:1rem}._list_8fex5_6{list-style-type:none;padding-left:0;margin-bottom:.5em;height:1.5em;display:flex;align-items:center}._list_8fex5_6 button{font-size:1em;background-color:transparent;border:none;cursor:pointer}._list_8fex5_6._editList_8fex5_22{padding:1px 6px}._list_8fex5_6 input{font-size:1em}._indent_8fex5_30{margin-left:30px}._controls_8fex5_34{display:flex;gap:.5em;margin-left:2rem}._controls_8fex5_34 button{display:none;align-items:center;justify-content:center;background-color:transparent;padding:0;border:none;cursor:pointer}._list_8fex5_6:hover button{display:block}._list_8fex5_6[data-root=true]:hover div button:first-child,._list_8fex5_6[data-root=true]:hover div button:last-child{display:none}._app_wqhfe_1{display:flex;flex-direction:column;max-width:25%;margin:10px auto}._app_wqhfe_1 input{text-align:center;height:30px;padding:20px;outline:none}._app_wqhfe_1 ._widget_wqhfe_13{margin-top:5px;display:flex;justify-content:space-around}._app_wqhfe_1 ._text_wqhfe_18 p{text-align:center}._app_wqhfe_1 form{display:flex;flex-direction:column}._app_wqhfe_1 form label{padding:10px}._app_wqhfe_1 form button{margin-top:10px;min-width:40%;padding:10px;border:none;cursor:pointer;font-size:16px}@media (max-width: 600px){._app_wqhfe_1 ._widget_wqhfe_13{margin-top:5px;display:flex;flex-direction:column}}._nav_19h5h_1{display:flex;align-items:center;justify-content:space-between;position:relative}._logo_19h5h_8{width:35px;height:35px;vertical-align:text-bottom}nav:after{content:"";position:absolute;width:110%;bottom:10px;left:-5%;box-shadow:0 5px 0 2px gray}:root{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #d23669}._darkTheme_1hd3l_7{--clr-bcg: #282c35;--clr-font: #fff;--clr-primary: #d23669}._lightTheme_1hd3l_13{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #ffd7c4}._main_1hd3l_19{background-color:var(--clr-bcg);padding:10px;transition:.3s linear}._main_1hd3l_19 h1{color:var(--clr-font)}._main_1hd3l_19 button{margin-top:10px;color:var(--clr-font);background-color:var(--clr-primary);padding:10px;border:none;cursor:pointer;font-size:16px}._main_yas6p_1{text-align:center;width:90%;margin:auto}._main_yas6p_1 ._indicators_yas6p_6{display:flex;width:20rem;justify-content:space-between;margin:.5rem auto 1rem;font-size:.8rem;color:#d3d3d3}._main_yas6p_1 ._active_yas6p_14{color:green}._main_yas6p_1 ._progressContainer_yas6p_17{position:relative;width:20rem;height:.6rem;margin:auto;border-radius:8px;outline:1px solid #ccc}._main_yas6p_1 ._progressBar_yas6p_25{width:0%;height:100%;background:red;transition:all .25s ease-in-out}._main_yas6p_1 input{width:20rem;font-size:1.5rem}._App_p94la_1{font-family:sans-serif;text-align:center;margin-top:2rem}._star_p94la_7{cursor:pointer;font-size:30px}._main_slx1h_2{text-align:center;width:90%;margin:auto;margin-top:1rem}._main_slx1h_2 form{display:flex;flex-direction:column;gap:1rem;align-items:center}._main_slx1h_2 input,._main_slx1h_2 select{padding:.5em;font-size:1rem}._main_slx1h_2 label{display:flex}._main_slx1h_2 #_message_slx1h_1{min-width:25ch}._main_slx1h_2 [for=duration]{align-items:center}._main_slx1h_2 ._toastContainer_slx1h_28{display:flex;position:fixed;flex-direction:column;gap:.5rem}._main_slx1h_2 ._toast_slx1h_28{padding:.5em;background-color:pink;border-radius:.25rem;box-shadow:0 4px 10px #00000040}._main_slx1h_2 ._success_slx1h_40{background-color:#00b300}._main_slx1h_2 ._error_slx1h_43{background-color:red}._main_slx1h_2 ._warning_slx1h_46{background-color:orange}._main_slx1h_2 ._info_slx1h_49{background-color:#ffffe0}._main_slx1h_2 ._toast_slx1h_28:before{min-width:1rem;padding:.1em .5em;font-weight:700;font-size:.85em}._main_slx1h_2 ._success_slx1h_40:before{content:"✓"}._main_slx1h_2 ._error_slx1h_43:before{content:"✗"}._main_slx1h_2 ._warning_slx1h_46:before{content:"⚠"}._main_slx1h_2 ._info_slx1h_49:before{content:"ⓘ"}._main_slx1h_2 ._remove_slx1h_70{all:unset;margin-left:1em;cursor:pointer}._main_slx1h_2 ._tcLeftTop_slx1h_75{top:1rem;left:1rem}._main_slx1h_2 ._tcLeftBottom_slx1h_79{bottom:1rem;left:1rem}._main_slx1h_2 ._tcRightTop_slx1h_83{top:1rem;right:1rem}._main_slx1h_2 ._tcRightBottom_slx1h_87{right:1rem;bottom:1rem}._main_slx1h_2 ._tcLeftTop_slx1h_75 ._toast_slx1h_28,._main_slx1h_2 ._tcLeftBottom_slx1h_79 ._toast_slx1h_28{animation:_appearFromLeft_slx1h_1 .1s ease-in forwards}._main_slx1h_2 ._tcLeftTop_slx1h_75 ._toast_slx1h_28._fade-out-left_slx1h_95,._main_slx1h_2 ._tcLeftBottom_slx1h_79 ._toast_slx1h_28._fade-out-left_slx1h_95{animation:_fadeOutToLeft_slx1h_1 .1s ease-in forwards}@keyframes _appearFromLeft_slx1h_1{0%{transform:translate(-200%)}to{transform:translate(0)}}@keyframes _fadeOutToLeft_slx1h_1{0%{transform:translate(0)}to{transform:translate(-200%)}}._main_slx1h_2 ._tcRightTop_slx1h_83 ._toast_slx1h_28,._main_slx1h_2 ._tcRightBottom_slx1h_87 ._toast_slx1h_28{animation:_appearFromRight_slx1h_1 .1s ease-in forwards}._main_slx1h_2 ._tcRightTop_slx1h_83 ._toast_slx1h_28._fade-out-right_slx1h_119,._main_slx1h_2 ._tcRightBottom_slx1h_87 ._toast_slx1h_28._fade-out-right_slx1h_119{animation:_fadeOutToRight_slx1h_1 .1s ease-in forwards}@keyframes _appearFromRight_slx1h_1{0%{transform:translate(200%)}to{transform:translate(0)}}@keyframes _fadeOutToRight_slx1h_1{0%{transform:translate(0)}to{transform:translate(200%)}}._App_110i9_1{margin:auto}._App_110i9_1 button{color:#fff;padding:.5rem .75rem;border-radius:6px;transform:scale(1);transition:all .33s;border:none}._App_110i9_1 button:hover{transform:scale(1.1);transition:all .33s}._App_110i9_1 button:disabled{cursor:not-allowed;transform:scale(1);background-color:gray}._App_110i9_1 form{margin-top:10px;width:100%}._App_110i9_1 form input{width:100%;height:80%;border-radius:6px;padding:.5rem}._App_110i9_1 form button{margin-top:10px;background-color:#00f;margin-right:.5rem}._App_110i9_1 ._item_110i9_36{margin-top:10px;display:flex;justify-content:space-between;align-items:center}._App_110i9_1 ._item_110i9_36 ._editBtn_110i9_42{background-color:green}._App_110i9_1 ._item_110i9_36 ._deleteBtn_110i9_45{background-color:red;margin-left:10px}@media screen and (min-width: 768px){._App_110i9_1{width:50%}}._challengeGrid_1uxoo_1{display:grid;grid-gap:1.5rem;grid-template-columns:repeat(1,1fr);margin:2rem 0}._challengeCard_1uxoo_8{padding:10px;position:relative;overflow:hidden;background-color:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 6px 8px #00000026;transition:all .2s ease-in-out}._challengeCard_1uxoo_8:hover{box-shadow:0 6px 8px #0000004d;transform:scale(1.05)}._challengeCard_1uxoo_8 h3{color:#d2691e;font-size:1.25rem}._challengeCard_1uxoo_8._disabled_1uxoo_25 h3{color:gray}._challengeCard_1uxoo_8._disabled_1uxoo_25{box-shadow:0 3px 4px #0000001a;cursor:not-allowed}._challengeCard_1uxoo_8._disabled_1uxoo_25:hover{transform:scale(1)}._challengeCard_1uxoo_8 a{color:#d2691e;text-decoration:none}._challengeCard_1uxoo_8 ._new_1uxoo_39{position:absolute;top:.75rem;right:-1.75rem;width:6rem;color:#fff;font-size:1rem;text-align:center;background:red;transform:rotate(45deg)}._challengeCard_1uxoo_8 ._developer_1uxoo_50{display:flex;justify-content:center;align-items:center;color:#000;font-size:.8rem}._challengeCard_1uxoo_8 img{border-radius:50%;height:25px;width:25px;margin-right:.5rem}._challengeCard_1uxoo_8 ._name_1uxoo_63{color:#000}._challengeCard_1uxoo_8._easy_1uxoo_66{border:2px solid green}._challengeCard_1uxoo_8._medium_1uxoo_69{border:2px solid orange}._challengeCard_1uxoo_8._hard_1uxoo_72{border:2px solid red}@media screen and (min-width: 480px){._challengeGrid_1uxoo_1{grid-template-columns:repeat(2,1fr)}}@media screen and (min-width: 1024px){._challengeGrid_1uxoo_1{grid-template-columns:repeat(3,1fr)}}@media screen and (min-width: 1400px){._challengeGrid_1uxoo_1{grid-template-columns:repeat(4,1fr)}}._h1_12dvk_1{justify-content:center}._h1_12dvk_1 ._github_12dvk_4{height:35px;width:35px;vertical-align:text-bottom;margin-left:.5rem}._hero_12dvk_11{width:min(80vh,80vw)}._routes_12dvk_15{display:flex;justify-content:center;gap:2rem;flex-wrap:wrap}._routes_12dvk_15 a{background-color:#9932cc;color:#fff;padding:1rem 2rem;min-width:12rem;border-radius:.5rem;transition:all .33s;font-size:1.2rem;line-height:2rem}._routes_12dvk_15 a:hover{transform:scale(1.1)}@media screen and (min-width: 375px){._routes_12dvk_15 a{padding:1rem 4rem;flex-shrink:0}} diff --git a/react/dist/assets/index-86fd1322.js b/react/dist/assets/index-8f238d97.js similarity index 78% rename from react/dist/assets/index-86fd1322.js rename to react/dist/assets/index-8f238d97.js index 70d2fdd9c..aa31b1643 100644 --- a/react/dist/assets/index-86fd1322.js +++ b/react/dist/assets/index-8f238d97.js @@ -6,7 +6,7 @@ var Uf=Object.defineProperty;var Bf=(e,t,n)=>t in e?Uf(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Xr=Symbol.for("react.element"),Vf=Symbol.for("react.portal"),Wf=Symbol.for("react.fragment"),Qf=Symbol.for("react.strict_mode"),Kf=Symbol.for("react.profiler"),Gf=Symbol.for("react.provider"),Yf=Symbol.for("react.context"),Xf=Symbol.for("react.forward_ref"),Zf=Symbol.for("react.suspense"),Jf=Symbol.for("react.memo"),qf=Symbol.for("react.lazy"),Su=Symbol.iterator;function bf(e){return e===null||typeof e!="object"?null:(e=Su&&e[Su]||e["@@iterator"],typeof e=="function"?e:null)}var bs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ec=Object.assign,tc={};function tr(e,t,n){this.props=e,this.context=t,this.refs=tc,this.updater=n||bs}tr.prototype.isReactComponent={};tr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};tr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nc(){}nc.prototype=tr.prototype;function pa(e,t,n){this.props=e,this.context=t,this.refs=tc,this.updater=n||bs}var ha=pa.prototype=new nc;ha.constructor=pa;ec(ha,tr.prototype);ha.isPureReactComponent=!0;var xu=Array.isArray,rc=Object.prototype.hasOwnProperty,ma={current:null},lc={key:!0,ref:!0,__self:!0,__source:!0};function oc(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)rc.call(t,r)&&!lc.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1t in e?Uf(e,t,{enumerable:!0,config * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fp(){return Math.random().toString(36).substr(2,8)}function Eu(e,t){return{usr:e.state,key:e.key,idx:t}}function Lr(e,t,n,r){return n===void 0&&(n=null),G({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ht(t):t,{state:n,key:t&&t.key||r||fp()})}function Zr(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 ht(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 pp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,a=ce.Pop,u=null,s=m();s==null&&(s=0,i.replaceState(G({},i.state,{idx:s}),""));function m(){return(i.state||{idx:null}).idx}function p(){a=ce.Pop;let P=m(),d=P==null?null:P-s;s=P,u&&u({action:a,location:k.location,delta:d})}function h(P,d){a=ce.Push;let f=Lr(k.location,P,d);n&&n(f,P),s=m()+1;let g=Eu(f,s),c=k.createHref(f);try{i.pushState(g,"",c)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;l.location.assign(c)}o&&u&&u({action:a,location:k.location,delta:1})}function w(P,d){a=ce.Replace;let f=Lr(k.location,P,d);n&&n(f,P),s=m();let g=Eu(f,s),c=k.createHref(f);i.replaceState(g,"",c),o&&u&&u({action:a,location:k.location,delta:0})}function y(P){let d=l.location.origin!=="null"?l.location.origin:l.location.href,f=typeof P=="string"?P:Zr(P);return V(d,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,d)}let k={get action(){return a},get location(){return e(l,i)},listen(P){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(_u,p),u=P,()=>{l.removeEventListener(_u,p),u=null}},createHref(P){return t(l,P)},createURL:y,encodeLocation(P){let d=y(P);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:h,replace:w,go(P){return i.go(P)}};return k}var fe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fe||(fe={}));const hp=new Set(["lazy","caseSensitive","path","id","index","children"]);function mp(e){return e.index===!0}function gi(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,o)=>{let i=[...n,o],a=typeof l.id=="string"?l.id:i.join("-");if(V(l.index!==!0||!l.children,"Cannot specify children on an index route"),V(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),mp(l)){let u=G({},l,t(l),{id:a});return r[a]=u,u}else{let u=G({},l,t(l),{id:a,children:void 0});return r[a]=u,l.children&&(u.children=gi(l.children,t,i,r)),u}})}function Cn(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ht(t):t,l=Jr(r.pathname||"/",n);if(l==null)return null;let o=uc(e);gp(o);let i=null;for(let a=0;i==null&&a{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(V(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=an([r,u.relativePath]),m=n.concat(u);o.children&&o.children.length>0&&(V(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),uc(o.children,t,m,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:_p(s,o.index),routesMeta:m})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,i);else for(let u of sc(o.path))l(o,i,u)}),t}function sc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=sc(r.join("/")),a=[];return a.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function gp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ep(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const vp=/^:\w+$/,yp=3,wp=2,Sp=1,xp=10,kp=-2,Cu=e=>e==="*";function _p(e,t){let n=e.split("/"),r=n.length;return n.some(Cu)&&(r+=kp),t&&(r+=wp),n.filter(l=>!Cu(l)).reduce((l,o)=>l+(vp.test(o)?yp:o===""?Sp:xp),r)}function Ep(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Cp(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{if(m==="*"){let h=a[p]||"";i=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}return s[m]=jp(a[p]||"",m),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Pp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cn(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=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Rp(e){try{return decodeURI(e)}catch(t){return cn(!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 jp(e,t){try{return decodeURIComponent(e)}catch(n){return cn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Jr(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 Tp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?ht(e):e;return{pathname:n?n.startsWith("/")?n:Lp(n,t):t,search:zp(r),hash:Fp(l)}}function Lp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function $o(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 cc(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mp(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=ht(e):(l=G({},e),V(!l.pathname||!l.pathname.includes("?"),$o("?","pathname","search",l)),V(!l.pathname||!l.pathname.includes("#"),$o("#","pathname","hash",l)),V(!l.search||!l.search.includes("#"),$o("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,a;if(r||i==null)a=n;else{let p=t.length-1;if(i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;l.pathname=h.join("/")}a=p>=0?t[p]:"/"}let u=Tp(l,a),s=i&&i!=="/"&&i.endsWith("/"),m=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||m)&&(u.pathname+="/"),u}const an=e=>e.join("/").replace(/\/\/+/g,"/"),Dp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Fp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class va{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function dc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fc=["post","put","patch","delete"],Ip=new Set(fc),Op=["get",...fc],Ap=new Set(Op),Up=new Set([301,302,303,307,308]),Bp=new Set([307,308]),Ho={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},$p={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Nu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},pc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hp=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Vp(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;V(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let S=e.detectErrorBoundary;l=x=>({hasErrorBoundary:S(x)})}else l=Hp;let o={},i=gi(e.routes,l,void 0,o),a,u=e.basename||"/",s=G({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),m=null,p=new Set,h=null,w=null,y=null,k=e.hydrationData!=null,P=Cn(i,e.history.location,u),d=null;if(P==null){let S=be(404,{pathname:e.history.location.pathname}),{matches:x,route:E}=Du(i);P=x,d={[E.id]:S}}let f=!P.some(S=>S.route.lazy)&&(!P.some(S=>S.route.loader)||e.hydrationData!=null),g,c={historyAction:e.history.action,location:e.history.location,matches:P,initialized:f,navigation:Ho,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||d,fetchers:new Map,blockers:new Map},N=ce.Pop,j=!1,R,D=!1,K=!1,$=[],_e=[],b=new Map,jt=0,yn=-1,Tt=new Map,mt=new Set,it=new Map,L=new Map,F=new Map,B=!1;function ne(){return m=e.history.listen(S=>{let{action:x,location:E,delta:T}=S;if(B){B=!1;return}cn(F.size===0||T!=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 I=gu({currentLocation:c.location,nextLocation:E,historyAction:x});if(I&&T!=null){B=!0,e.history.go(T*-1),rl(I,{state:"blocked",location:E,proceed(){rl(I,{state:"proceeding",proceed:void 0,reset:void 0,location:E}),e.history.go(T)},reset(){or(I),ee({blockers:new Map(g.state.blockers)})}});return}return Lt(x,E)}),c.initialized||Lt(ce.Pop,c.location),g}function se(){m&&m(),p.clear(),R&&R.abort(),c.fetchers.forEach((S,x)=>Do(x)),c.blockers.forEach((S,x)=>or(x))}function wn(S){return p.add(S),()=>p.delete(S)}function ee(S){c=G({},c,S),p.forEach(x=>x(c))}function gt(S,x){var E,T;let I=c.actionData!=null&&c.navigation.formMethod!=null&&yt(c.navigation.formMethod)&&c.navigation.state==="loading"&&((E=S.state)==null?void 0:E._isRedirect)!==!0,O;x.actionData?Object.keys(x.actionData).length>0?O=x.actionData:O=null:I?O=c.actionData:O=null;let A=x.loaderData?Mu(c.loaderData,x.loaderData,x.matches||[],x.errors):c.loaderData;for(let[z]of F)or(z);let U=j===!0||c.navigation.formMethod!=null&&yt(c.navigation.formMethod)&&((T=S.state)==null?void 0:T._isRedirect)!==!0;a&&(i=a,a=void 0),ee(G({},x,{actionData:O,loaderData:A,historyAction:N,location:S,initialized:!0,navigation:Ho,revalidation:"idle",restoreScrollPosition:vu(S,x.matches||c.matches),preventScrollReset:U,blockers:new Map(c.blockers)})),D||N===ce.Pop||(N===ce.Push?e.history.push(S,S.state):N===ce.Replace&&e.history.replace(S,S.state)),N=ce.Pop,j=!1,D=!1,K=!1,$=[],_e=[]}async function at(S,x){if(typeof S=="number"){e.history.go(S);return}let E=vi(c.location,c.matches,u,s.v7_prependBasename,S,x==null?void 0:x.fromRouteId,x==null?void 0:x.relative),{path:T,submission:I,error:O}=Pu(s.v7_normalizeFormMethod,!1,E,x),A=c.location,U=Lr(c.location,T,x&&x.state);U=G({},U,e.history.encodeLocation(U));let z=x&&x.replace!=null?x.replace:void 0,Q=ce.Push;z===!0?Q=ce.Replace:z===!1||I!=null&&yt(I.formMethod)&&I.formAction===c.location.pathname+c.location.search&&(Q=ce.Replace);let X=x&&"preventScrollReset"in x?x.preventScrollReset===!0:void 0,Ee=gu({currentLocation:A,nextLocation:U,historyAction:Q});if(Ee){rl(Ee,{state:"blocked",location:U,proceed(){rl(Ee,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),at(S,x)},reset(){or(Ee),ee({blockers:new Map(c.blockers)})}});return}return await Lt(Q,U,{submission:I,pendingError:O,preventScrollReset:X,replace:x&&x.replace})}function Sn(){if(Lo(),ee({revalidation:"loading"}),c.navigation.state!=="submitting"){if(c.navigation.state==="idle"){Lt(c.historyAction,c.location,{startUninterruptedRevalidation:!0});return}Lt(N||c.historyAction,c.navigation.location,{overrideNavigation:c.navigation})}}async function Lt(S,x,E){R&&R.abort(),R=null,N=S,D=(E&&E.startUninterruptedRevalidation)===!0,If(c.location,c.matches),j=(E&&E.preventScrollReset)===!0;let T=a||i,I=E&&E.overrideNavigation,O=Cn(T,x,u);if(!O){let me=be(404,{pathname:x.pathname}),{matches:ye,route:ut}=Du(T);zo(),gt(x,{matches:ye,loaderData:{},errors:{[ut.id]:me}});return}if(c.initialized&&!K&&Yp(c.location,x)&&!(E&&E.submission&&yt(E.submission.formMethod))){gt(x,{matches:O});return}R=new AbortController;let A=ur(e.history,x,R.signal,E&&E.submission),U,z;if(E&&E.pendingError)z={[Nn(O).route.id]:E.pendingError};else if(E&&E.submission&&yt(E.submission.formMethod)){let me=await jf(A,x,E.submission,O,{replace:E.replace});if(me.shortCircuited)return;U=me.pendingActionData,z=me.pendingActionError,I=G({state:"loading",location:x},E.submission),A=new Request(A.url,{signal:A.signal})}let{shortCircuited:Q,loaderData:X,errors:Ee}=await Tf(A,x,O,I,E&&E.submission,E&&E.fetcherSubmission,E&&E.replace,U,z);Q||(R=null,gt(x,G({matches:O},U?{actionData:U}:{},{loaderData:X,errors:Ee})))}async function jf(S,x,E,T,I){Lo();let O=G({state:"submitting",location:x},E);ee({navigation:O});let A,U=yi(T,x);if(!U.route.action&&!U.route.lazy)A={type:fe.error,error:be(405,{method:S.method,pathname:x.pathname,routeId:U.route.id})};else if(A=await ar("action",S,U,T,o,l,u),S.signal.aborted)return{shortCircuited:!0};if(Bn(A)){let z;return I&&I.replace!=null?z=I.replace:z=A.location===c.location.pathname+c.location.search,await lr(c,A,{submission:E,replace:z}),{shortCircuited:!0}}if(xr(A)){let z=Nn(T,U.route.id);return(I&&I.replace)!==!0&&(N=ce.Push),{pendingActionData:{},pendingActionError:{[z.route.id]:A.error}}}if(tn(A))throw be(400,{type:"defer-action"});return{pendingActionData:{[U.route.id]:A.data}}}async function Tf(S,x,E,T,I,O,A,U,z){let Q=T;Q||(Q=G({state:"loading",location:x,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},I));let X=I||O?I||O:Q.formMethod&&Q.formAction&&Q.formData&&Q.formEncType?{formMethod:Q.formMethod,formAction:Q.formAction,formData:Q.formData,formEncType:Q.formEncType}:void 0,Ee=a||i,[me,ye]=Ru(e.history,c,E,X,x,K,$,_e,it,Ee,u,U,z);if(zo(re=>!(E&&E.some(Qe=>Qe.route.id===re))||me&&me.some(Qe=>Qe.route.id===re)),me.length===0&&ye.length===0){let re=hu();return gt(x,G({matches:E,loaderData:{},errors:z||null},U?{actionData:U}:{},re?{fetchers:new Map(c.fetchers)}:{})),{shortCircuited:!0}}if(!D){ye.forEach(Qe=>{let kn=c.fetchers.get(Qe.key),we={state:"loading",data:kn&&kn.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};c.fetchers.set(Qe.key,we)});let re=U||c.actionData;ee(G({navigation:Q},re?Object.keys(re).length===0?{actionData:null}:{actionData:re}:{},ye.length>0?{fetchers:new Map(c.fetchers)}:{}))}yn=++jt,ye.forEach(re=>{re.controller&&b.set(re.key,re.controller)});let ut=()=>ye.forEach(re=>xn(re.key));R&&R.signal.addEventListener("abort",ut);let{results:ir,loaderResults:Fo,fetcherResults:ll}=await fu(c.matches,E,me,ye,S);if(S.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",ut),ye.forEach(re=>b.delete(re.key));let vt=zu(ir);if(vt)return await lr(c,vt,{replace:A}),{shortCircuited:!0};let{loaderData:ol,errors:Io}=Lu(c,E,me,Fo,z,ye,ll,L);L.forEach((re,Qe)=>{re.subscribe(kn=>{(kn||re.done)&&L.delete(Qe)})});let Oo=hu(),Ao=mu(yn),il=Oo||Ao||ye.length>0;return G({loaderData:ol,errors:Io},il?{fetchers:new Map(c.fetchers)}:{})}function du(S){return c.fetchers.get(S)||$p}function Lf(S,x,E,T){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.");b.has(S)&&xn(S);let I=a||i,O=vi(c.location,c.matches,u,s.v7_prependBasename,E,x,T==null?void 0:T.relative),A=Cn(I,O,u);if(!A){Mo(S,x,be(404,{pathname:O}));return}let{path:U,submission:z}=Pu(s.v7_normalizeFormMethod,!0,O,T),Q=yi(A,U);if(j=(T&&T.preventScrollReset)===!0,z&&yt(z.formMethod)){Mf(S,x,U,Q,A,z);return}it.set(S,{routeId:x,path:U}),Df(S,x,U,Q,A,z)}async function Mf(S,x,E,T,I,O){if(Lo(),it.delete(S),!T.route.action&&!T.route.lazy){let we=be(405,{method:O.formMethod,pathname:E,routeId:x});Mo(S,x,we);return}let A=c.fetchers.get(S),U=G({state:"submitting"},O,{data:A&&A.data," _hasFetcherDoneAnything ":!0});c.fetchers.set(S,U),ee({fetchers:new Map(c.fetchers)});let z=new AbortController,Q=ur(e.history,E,z.signal,O);b.set(S,z);let X=await ar("action",Q,T,I,o,l,u);if(Q.signal.aborted){b.get(S)===z&&b.delete(S);return}if(Bn(X)){b.delete(S),mt.add(S);let we=G({state:"loading"},O,{data:void 0," _hasFetcherDoneAnything ":!0});return c.fetchers.set(S,we),ee({fetchers:new Map(c.fetchers)}),lr(c,X,{submission:O,isFetchActionRedirect:!0})}if(xr(X)){Mo(S,x,X.error);return}if(tn(X))throw be(400,{type:"defer-action"});let Ee=c.navigation.location||c.location,me=ur(e.history,Ee,z.signal),ye=a||i,ut=c.navigation.state!=="idle"?Cn(ye,c.navigation.location,u):c.matches;V(ut,"Didn't find any matches after fetcher action");let ir=++jt;Tt.set(S,ir);let Fo=G({state:"loading",data:X.data},O,{" _hasFetcherDoneAnything ":!0});c.fetchers.set(S,Fo);let[ll,vt]=Ru(e.history,c,ut,O,Ee,K,$,_e,it,ye,u,{[T.route.id]:X.data},void 0);vt.filter(we=>we.key!==S).forEach(we=>{let Uo=we.key,yu=c.fetchers.get(Uo),Af={state:"loading",data:yu&&yu.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};c.fetchers.set(Uo,Af),we.controller&&b.set(Uo,we.controller)}),ee({fetchers:new Map(c.fetchers)});let ol=()=>vt.forEach(we=>xn(we.key));z.signal.addEventListener("abort",ol);let{results:Io,loaderResults:Oo,fetcherResults:Ao}=await fu(c.matches,ut,ll,vt,me);if(z.signal.aborted)return;z.signal.removeEventListener("abort",ol),Tt.delete(S),b.delete(S),vt.forEach(we=>b.delete(we.key));let il=zu(Io);if(il)return lr(c,il);let{loaderData:re,errors:Qe}=Lu(c,c.matches,ll,Oo,void 0,vt,Ao,L);if(c.fetchers.has(S)){let we={state:"idle",data:X.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};c.fetchers.set(S,we)}let kn=mu(ir);c.navigation.state==="loading"&&ir>yn?(V(N,"Expected pending action"),R&&R.abort(),gt(c.navigation.location,{matches:ut,loaderData:re,errors:Qe,fetchers:new Map(c.fetchers)})):(ee(G({errors:Qe,loaderData:Mu(c.loaderData,re,ut,Qe)},kn||vt.length>0?{fetchers:new Map(c.fetchers)}:{})),K=!1)}async function Df(S,x,E,T,I,O){let A=c.fetchers.get(S),U=G({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},O,{data:A&&A.data," _hasFetcherDoneAnything ":!0});c.fetchers.set(S,U),ee({fetchers:new Map(c.fetchers)});let z=new AbortController,Q=ur(e.history,E,z.signal);b.set(S,z);let X=await ar("loader",Q,T,I,o,l,u);if(tn(X)&&(X=await vc(X,Q.signal,!0)||X),b.get(S)===z&&b.delete(S),Q.signal.aborted)return;if(Bn(X)){mt.add(S),await lr(c,X);return}if(xr(X)){let me=Nn(c.matches,x);c.fetchers.delete(S),ee({fetchers:new Map(c.fetchers),errors:{[me.route.id]:X.error}});return}V(!tn(X),"Unhandled fetcher deferred data");let Ee={state:"idle",data:X.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};c.fetchers.set(S,Ee),ee({fetchers:new Map(c.fetchers)})}async function lr(S,x,E){let{submission:T,replace:I,isFetchActionRedirect:O}=E===void 0?{}:E;x.revalidate&&(K=!0);let A=Lr(S.location,x.location,G({_isRedirect:!0},O?{_isFetchActionRedirect:!0}:{}));if(V(A,"Expected a location on the redirect navigation"),pc.test(x.location)&&n){let me=e.history.createURL(x.location),ye=Jr(me.pathname,u)==null;if(t.location.origin!==me.origin||ye){I?t.location.replace(x.location):t.location.assign(x.location);return}}R=null;let U=I===!0?ce.Replace:ce.Push,{formMethod:z,formAction:Q,formEncType:X,formData:Ee}=S.navigation;!T&&z&&Q&&Ee&&X&&(T={formMethod:z,formAction:Q,formEncType:X,formData:Ee}),Bp.has(x.status)&&T&&yt(T.formMethod)?await Lt(U,A,{submission:G({},T,{formAction:x.location}),preventScrollReset:j}):O?await Lt(U,A,{overrideNavigation:{state:"loading",location:A,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:T,preventScrollReset:j}):await Lt(U,A,{overrideNavigation:{state:"loading",location:A,formMethod:T?T.formMethod:void 0,formAction:T?T.formAction:void 0,formEncType:T?T.formEncType:void 0,formData:T?T.formData:void 0},preventScrollReset:j})}async function fu(S,x,E,T,I){let O=await Promise.all([...E.map(z=>ar("loader",I,z,x,o,l,u)),...T.map(z=>z.matches&&z.match&&z.controller?ar("loader",ur(e.history,z.path,z.controller.signal),z.match,z.matches,o,l,u):{type:fe.error,error:be(404,{pathname:z.path})})]),A=O.slice(0,E.length),U=O.slice(E.length);return await Promise.all([Fu(S,E,A,A.map(()=>I.signal),!1,c.loaderData),Fu(S,T.map(z=>z.match),U,T.map(z=>z.controller?z.controller.signal:null),!0)]),{results:O,loaderResults:A,fetcherResults:U}}function Lo(){K=!0,$.push(...zo()),it.forEach((S,x)=>{b.has(x)&&(_e.push(x),xn(x))})}function Mo(S,x,E){let T=Nn(c.matches,x);Do(S),ee({errors:{[T.route.id]:E},fetchers:new Map(c.fetchers)})}function Do(S){let x=c.fetchers.get(S);b.has(S)&&!(x&&x.state==="loading"&&Tt.has(S))&&xn(S),it.delete(S),Tt.delete(S),mt.delete(S),c.fetchers.delete(S)}function xn(S){let x=b.get(S);V(x,"Expected fetch controller: "+S),x.abort(),b.delete(S)}function pu(S){for(let x of S){let T={state:"idle",data:du(x).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};c.fetchers.set(x,T)}}function hu(){let S=[],x=!1;for(let E of mt){let T=c.fetchers.get(E);V(T,"Expected fetcher: "+E),T.state==="loading"&&(mt.delete(E),S.push(E),x=!0)}return pu(S),x}function mu(S){let x=[];for(let[E,T]of Tt)if(T0}function zf(S,x){let E=c.blockers.get(S)||Nu;return F.get(S)!==x&&F.set(S,x),E}function or(S){c.blockers.delete(S),F.delete(S)}function rl(S,x){let E=c.blockers.get(S)||Nu;V(E.state==="unblocked"&&x.state==="blocked"||E.state==="blocked"&&x.state==="blocked"||E.state==="blocked"&&x.state==="proceeding"||E.state==="blocked"&&x.state==="unblocked"||E.state==="proceeding"&&x.state==="unblocked","Invalid blocker state transition: "+E.state+" -> "+x.state),c.blockers.set(S,x),ee({blockers:new Map(c.blockers)})}function gu(S){let{currentLocation:x,nextLocation:E,historyAction:T}=S;if(F.size===0)return;F.size>1&&cn(!1,"A router only supports one blocker at a time");let I=Array.from(F.entries()),[O,A]=I[I.length-1],U=c.blockers.get(O);if(!(U&&U.state==="proceeding")&&A({currentLocation:x,nextLocation:E,historyAction:T}))return O}function zo(S){let x=[];return L.forEach((E,T)=>{(!S||S(T))&&(E.cancel(),x.push(T),L.delete(T))}),x}function Ff(S,x,E){if(h=S,y=x,w=E||(T=>T.key),!k&&c.navigation===Ho){k=!0;let T=vu(c.location,c.matches);T!=null&&ee({restoreScrollPosition:T})}return()=>{h=null,y=null,w=null}}function If(S,x){if(h&&w&&y){let E=x.map(I=>Iu(I,c.loaderData)),T=w(S,E)||S.key;h[T]=y()}}function vu(S,x){if(h&&w&&y){let E=x.map(O=>Iu(O,c.loaderData)),T=w(S,E)||S.key,I=h[T];if(typeof I=="number")return I}return null}function Of(S){o={},a=gi(S,l,void 0,o)}return g={get basename(){return u},get state(){return c},get routes(){return i},initialize:ne,subscribe:wn,enableScrollRestoration:Ff,navigate:at,fetch:Lf,revalidate:Sn,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:du,deleteFetcher:Do,dispose:se,getBlocker:zf,deleteBlocker:or,_internalFetchControllers:b,_internalActiveDeferreds:L,_internalSetRoutes:Of},g}function Wp(e){return e!=null&&"formData"in e}function vi(e,t,n,r,l,o,i){let a,u;if(o!=null&&i!=="path"){a=[];for(let m of t)if(a.push(m),m.route.id===o){u=m;break}}else a=t,u=t[t.length-1];let s=Mp(l||".",cc(a).map(m=>m.pathnameBase),Jr(e.pathname,n)||e.pathname,i==="path");return l==null&&(s.search=e.search,s.hash=e.hash),(l==null||l===""||l===".")&&u&&u.route.index&&!ya(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(s.pathname=s.pathname==="/"?n:an([n,s.pathname])),Zr(s)}function Pu(e,t,n,r){if(!r||!Wp(r))return{path:n};if(r.formMethod&&!Jp(r.formMethod))return{path:n,error:be(405,{method:r.formMethod})};let l;if(r.formData){let a=r.formMethod||"get";if(l={formMethod:e?a.toUpperCase():a.toLowerCase(),formAction:gc(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData},yt(l.formMethod))return{path:n,submission:l}}let o=ht(n),i=mc(r.formData);return t&&o.search&&ya(o.search)&&i.append("index",""),o.search="?"+i,{path:Zr(o),submission:l}}function Qp(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Ru(e,t,n,r,l,o,i,a,u,s,m,p,h){let w=h?Object.values(h)[0]:p?Object.values(p)[0]:void 0,y=e.createURL(t.location),k=e.createURL(l),P=h?Object.keys(h)[0]:void 0,f=Qp(n,P).filter((c,N)=>{if(c.route.lazy)return!0;if(c.route.loader==null)return!1;if(Kp(t.loaderData,t.matches[N],c)||i.some(D=>D===c.route.id))return!0;let j=t.matches[N],R=c;return ju(c,G({currentUrl:y,currentParams:j.params,nextUrl:k,nextParams:R.params},r,{actionResult:w,defaultShouldRevalidate:o||y.pathname+y.search===k.pathname+k.search||y.search!==k.search||hc(j,R)}))}),g=[];return u.forEach((c,N)=>{if(!n.some(K=>K.route.id===c.routeId))return;let j=Cn(s,c.path,m);if(!j){g.push({key:N,routeId:c.routeId,path:c.path,matches:null,match:null,controller:null});return}let R=yi(j,c.path);if(a.includes(N)){g.push({key:N,routeId:c.routeId,path:c.path,matches:j,match:R,controller:new AbortController});return}ju(R,G({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:k,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:o}))&&g.push({key:N,routeId:c.routeId,path:c.path,matches:j,match:R,controller:new AbortController})}),[f,g]}function Kp(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function hc(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ju(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Tu(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];V(l,"No route found in manifest");let o={};for(let i in r){let u=l[i]!==void 0&&i!=="hasErrorBoundary";cn(!u,'Route "'+l.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!hp.has(i)&&(o[i]=r[i])}Object.assign(l,o),Object.assign(l,G({},t(l),{lazy:void 0}))}async function ar(e,t,n,r,l,o,i,a,u,s){a===void 0&&(a=!1),u===void 0&&(u=!1);let m,p,h,w=P=>{let d,f=new Promise((g,c)=>d=c);return h=()=>d(),t.signal.addEventListener("abort",h),Promise.race([P({request:t,params:n.params,context:s}),f])};try{let P=n.route[e];if(n.route.lazy)if(P)p=(await Promise.all([w(P),Tu(n.route,o,l)]))[0];else if(await Tu(n.route,o,l),P=n.route[e],P)p=await w(P);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw be(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:fe.data,data:void 0};else if(P)p=await w(P);else{let d=new URL(t.url),f=d.pathname+d.search;throw be(404,{pathname:f})}V(p!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(P){m=fe.error,p=P}finally{h&&t.signal.removeEventListener("abort",h)}if(Zp(p)){let P=p.status;if(Up.has(P)){let g=p.headers.get("Location");if(V(g,"Redirects returned/thrown from loaders/actions must have a Location header"),!pc.test(g))g=vi(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,g);else if(!a){let c=new URL(t.url),N=g.startsWith("//")?new URL(c.protocol+g):new URL(g),j=Jr(N.pathname,i)!=null;N.origin===c.origin&&j&&(g=N.pathname+N.search+N.hash)}if(a)throw p.headers.set("Location",g),p;return{type:fe.redirect,status:P,location:g,revalidate:p.headers.get("X-Remix-Revalidate")!==null}}if(u)throw{type:m||fe.data,response:p};let d,f=p.headers.get("Content-Type");return f&&/\bapplication\/json\b/.test(f)?d=await p.json():d=await p.text(),m===fe.error?{type:m,error:new va(P,p.statusText,d),headers:p.headers}:{type:fe.data,data:d,statusCode:p.status,headers:p.headers}}if(m===fe.error)return{type:m,error:p};if(Xp(p)){var y,k;return{type:fe.deferred,deferredData:p,statusCode:(y=p.init)==null?void 0:y.status,headers:((k=p.init)==null?void 0:k.headers)&&new Headers(p.init.headers)}}return{type:fe.data,data:p}}function ur(e,t,n,r){let l=e.createURL(gc(t)).toString(),o={signal:n};if(r&&yt(r.formMethod)){let{formMethod:i,formEncType:a,formData:u}=r;o.method=i.toUpperCase(),o.body=a==="application/x-www-form-urlencoded"?mc(u):u}return new Request(l,o)}function mc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function Gp(e,t,n,r,l){let o={},i=null,a,u=!1,s={};return n.forEach((m,p)=>{let h=t[p].route.id;if(V(!Bn(m),"Cannot handle redirect results in processLoaderData"),xr(m)){let w=Nn(e,h),y=m.error;r&&(y=Object.values(r)[0],r=void 0),i=i||{},i[w.route.id]==null&&(i[w.route.id]=y),o[h]=void 0,u||(u=!0,a=dc(m.error)?m.error.status:500),m.headers&&(s[h]=m.headers)}else tn(m)?(l.set(h,m.deferredData),o[h]=m.deferredData.data):o[h]=m.data,m.statusCode!=null&&m.statusCode!==200&&!u&&(a=m.statusCode),m.headers&&(s[h]=m.headers)}),r&&(i=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:s}}function Lu(e,t,n,r,l,o,i,a){let{loaderData:u,errors:s}=Gp(t,n,r,l,a);for(let m=0;mr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Du(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function be(e,t){let{pathname:n,routeId:r,method:l,type:o}=t===void 0?{}:t,i="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(i="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"&&(a="defer() is not supported in actions")):e===403?(i="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",a='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new va(e||500,i,new Error(a),!0)}function zu(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Bn(n))return n}}function gc(e){let t=typeof e=="string"?ht(e):e;return Zr(G({},t,{hash:""}))}function Yp(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function tn(e){return e.type===fe.deferred}function xr(e){return e.type===fe.error}function Bn(e){return(e&&e.type)===fe.redirect}function Xp(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 Zp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Jp(e){return Ap.has(e.toLowerCase())}function yt(e){return Ip.has(e.toLowerCase())}async function Fu(e,t,n,r,l,o){for(let i=0;ip.route.id===u.route.id),m=s!=null&&!hc(s,u)&&(o&&o[u.route.id])!==void 0;if(tn(a)&&(l||m)){let p=r[i];V(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await vc(a,p,l).then(h=>{h&&(n[i]=h||n[i])})}}}async function vc(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:fe.data,data:e.deferredData.unwrappedData}}catch(l){return{type:fe.error,error:l}}return{type:fe.data,data:e.deferredData.data}}}function ya(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Iu(e,t){let{route:n,pathname:r,params:l}=e;return{id:n.id,pathname:r,params:l,data:t[n.id],handle:n.handle}}function yi(e,t){let n=typeof t=="string"?ht(t).search:t.search;if(e[e.length-1].route.index&&ya(n||""))return e[e.length-1];let r=cc(e);return r[r.length-1]}/** + */function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function dn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fp(){return Math.random().toString(36).substr(2,8)}function Eu(e,t){return{usr:e.state,key:e.key,idx:t}}function Lr(e,t,n,r){return n===void 0&&(n=null),G({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ht(t):t,{state:n,key:t&&t.key||r||fp()})}function Zr(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 ht(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 pp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,a=ce.Pop,u=null,s=m();s==null&&(s=0,i.replaceState(G({},i.state,{idx:s}),""));function m(){return(i.state||{idx:null}).idx}function p(){a=ce.Pop;let N=m(),d=N==null?null:N-s;s=N,u&&u({action:a,location:k.location,delta:d})}function h(N,d){a=ce.Push;let f=Lr(k.location,N,d);n&&n(f,N),s=m()+1;let g=Eu(f,s),c=k.createHref(f);try{i.pushState(g,"",c)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;l.location.assign(c)}o&&u&&u({action:a,location:k.location,delta:1})}function w(N,d){a=ce.Replace;let f=Lr(k.location,N,d);n&&n(f,N),s=m();let g=Eu(f,s),c=k.createHref(f);i.replaceState(g,"",c),o&&u&&u({action:a,location:k.location,delta:0})}function y(N){let d=l.location.origin!=="null"?l.location.origin:l.location.href,f=typeof N=="string"?N:Zr(N);return V(d,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,d)}let k={get action(){return a},get location(){return e(l,i)},listen(N){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(_u,p),u=N,()=>{l.removeEventListener(_u,p),u=null}},createHref(N){return t(l,N)},createURL:y,encodeLocation(N){let d=y(N);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:h,replace:w,go(N){return i.go(N)}};return k}var fe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fe||(fe={}));const hp=new Set(["lazy","caseSensitive","path","id","index","children"]);function mp(e){return e.index===!0}function gi(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,o)=>{let i=[...n,o],a=typeof l.id=="string"?l.id:i.join("-");if(V(l.index!==!0||!l.children,"Cannot specify children on an index route"),V(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),mp(l)){let u=G({},l,t(l),{id:a});return r[a]=u,u}else{let u=G({},l,t(l),{id:a,children:void 0});return r[a]=u,l.children&&(u.children=gi(l.children,t,i,r)),u}})}function Cn(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ht(t):t,l=Jr(r.pathname||"/",n);if(l==null)return null;let o=uc(e);gp(o);let i=null;for(let a=0;i==null&&a{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(V(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=un([r,u.relativePath]),m=n.concat(u);o.children&&o.children.length>0&&(V(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),uc(o.children,t,m,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:_p(s,o.index),routesMeta:m})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,i);else for(let u of sc(o.path))l(o,i,u)}),t}function sc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=sc(r.join("/")),a=[];return a.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function gp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ep(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const vp=/^:\w+$/,yp=3,wp=2,Sp=1,xp=10,kp=-2,Cu=e=>e==="*";function _p(e,t){let n=e.split("/"),r=n.length;return n.some(Cu)&&(r+=kp),t&&(r+=wp),n.filter(l=>!Cu(l)).reduce((l,o)=>l+(vp.test(o)?yp:o===""?Sp:xp),r)}function Ep(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Cp(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{if(m==="*"){let h=a[p]||"";i=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}return s[m]=jp(a[p]||"",m),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Np(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dn(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=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Rp(e){try{return decodeURI(e)}catch(t){return dn(!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 jp(e,t){try{return decodeURIComponent(e)}catch(n){return dn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Jr(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 Tp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?ht(e):e;return{pathname:n?n.startsWith("/")?n:Lp(n,t):t,search:zp(r),hash:Fp(l)}}function Lp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function $o(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 cc(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mp(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=ht(e):(l=G({},e),V(!l.pathname||!l.pathname.includes("?"),$o("?","pathname","search",l)),V(!l.pathname||!l.pathname.includes("#"),$o("#","pathname","hash",l)),V(!l.search||!l.search.includes("#"),$o("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,a;if(r||i==null)a=n;else{let p=t.length-1;if(i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;l.pathname=h.join("/")}a=p>=0?t[p]:"/"}let u=Tp(l,a),s=i&&i!=="/"&&i.endsWith("/"),m=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||m)&&(u.pathname+="/"),u}const un=e=>e.join("/").replace(/\/\/+/g,"/"),Dp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Fp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class va{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function dc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fc=["post","put","patch","delete"],Ip=new Set(fc),Op=["get",...fc],Ap=new Set(Op),Up=new Set([301,302,303,307,308]),Bp=new Set([307,308]),Ho={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},$p={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Pu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},pc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hp=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Vp(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;V(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let S=e.detectErrorBoundary;l=x=>({hasErrorBoundary:S(x)})}else l=Hp;let o={},i=gi(e.routes,l,void 0,o),a,u=e.basename||"/",s=G({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),m=null,p=new Set,h=null,w=null,y=null,k=e.hydrationData!=null,N=Cn(i,e.history.location,u),d=null;if(N==null){let S=be(404,{pathname:e.history.location.pathname}),{matches:x,route:E}=Du(i);N=x,d={[E.id]:S}}let f=!N.some(S=>S.route.lazy)&&(!N.some(S=>S.route.loader)||e.hydrationData!=null),g,c={historyAction:e.history.action,location:e.history.location,matches:N,initialized:f,navigation:Ho,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||d,fetchers:new Map,blockers:new Map},P=ce.Pop,j=!1,R,D=!1,K=!1,$=[],_e=[],b=new Map,jt=0,wn=-1,Tt=new Map,mt=new Set,it=new Map,L=new Map,F=new Map,B=!1;function ne(){return m=e.history.listen(S=>{let{action:x,location:E,delta:T}=S;if(B){B=!1;return}dn(F.size===0||T!=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 I=gu({currentLocation:c.location,nextLocation:E,historyAction:x});if(I&&T!=null){B=!0,e.history.go(T*-1),rl(I,{state:"blocked",location:E,proceed(){rl(I,{state:"proceeding",proceed:void 0,reset:void 0,location:E}),e.history.go(T)},reset(){or(I),ee({blockers:new Map(g.state.blockers)})}});return}return Lt(x,E)}),c.initialized||Lt(ce.Pop,c.location),g}function se(){m&&m(),p.clear(),R&&R.abort(),c.fetchers.forEach((S,x)=>Do(x)),c.blockers.forEach((S,x)=>or(x))}function Sn(S){return p.add(S),()=>p.delete(S)}function ee(S){c=G({},c,S),p.forEach(x=>x(c))}function gt(S,x){var E,T;let I=c.actionData!=null&&c.navigation.formMethod!=null&&yt(c.navigation.formMethod)&&c.navigation.state==="loading"&&((E=S.state)==null?void 0:E._isRedirect)!==!0,O;x.actionData?Object.keys(x.actionData).length>0?O=x.actionData:O=null:I?O=c.actionData:O=null;let A=x.loaderData?Mu(c.loaderData,x.loaderData,x.matches||[],x.errors):c.loaderData;for(let[z]of F)or(z);let U=j===!0||c.navigation.formMethod!=null&&yt(c.navigation.formMethod)&&((T=S.state)==null?void 0:T._isRedirect)!==!0;a&&(i=a,a=void 0),ee(G({},x,{actionData:O,loaderData:A,historyAction:P,location:S,initialized:!0,navigation:Ho,revalidation:"idle",restoreScrollPosition:vu(S,x.matches||c.matches),preventScrollReset:U,blockers:new Map(c.blockers)})),D||P===ce.Pop||(P===ce.Push?e.history.push(S,S.state):P===ce.Replace&&e.history.replace(S,S.state)),P=ce.Pop,j=!1,D=!1,K=!1,$=[],_e=[]}async function at(S,x){if(typeof S=="number"){e.history.go(S);return}let E=vi(c.location,c.matches,u,s.v7_prependBasename,S,x==null?void 0:x.fromRouteId,x==null?void 0:x.relative),{path:T,submission:I,error:O}=Nu(s.v7_normalizeFormMethod,!1,E,x),A=c.location,U=Lr(c.location,T,x&&x.state);U=G({},U,e.history.encodeLocation(U));let z=x&&x.replace!=null?x.replace:void 0,Q=ce.Push;z===!0?Q=ce.Replace:z===!1||I!=null&&yt(I.formMethod)&&I.formAction===c.location.pathname+c.location.search&&(Q=ce.Replace);let X=x&&"preventScrollReset"in x?x.preventScrollReset===!0:void 0,Ee=gu({currentLocation:A,nextLocation:U,historyAction:Q});if(Ee){rl(Ee,{state:"blocked",location:U,proceed(){rl(Ee,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),at(S,x)},reset(){or(Ee),ee({blockers:new Map(c.blockers)})}});return}return await Lt(Q,U,{submission:I,pendingError:O,preventScrollReset:X,replace:x&&x.replace})}function xn(){if(Lo(),ee({revalidation:"loading"}),c.navigation.state!=="submitting"){if(c.navigation.state==="idle"){Lt(c.historyAction,c.location,{startUninterruptedRevalidation:!0});return}Lt(P||c.historyAction,c.navigation.location,{overrideNavigation:c.navigation})}}async function Lt(S,x,E){R&&R.abort(),R=null,P=S,D=(E&&E.startUninterruptedRevalidation)===!0,If(c.location,c.matches),j=(E&&E.preventScrollReset)===!0;let T=a||i,I=E&&E.overrideNavigation,O=Cn(T,x,u);if(!O){let me=be(404,{pathname:x.pathname}),{matches:ye,route:ut}=Du(T);zo(),gt(x,{matches:ye,loaderData:{},errors:{[ut.id]:me}});return}if(c.initialized&&!K&&Yp(c.location,x)&&!(E&&E.submission&&yt(E.submission.formMethod))){gt(x,{matches:O});return}R=new AbortController;let A=ur(e.history,x,R.signal,E&&E.submission),U,z;if(E&&E.pendingError)z={[Pn(O).route.id]:E.pendingError};else if(E&&E.submission&&yt(E.submission.formMethod)){let me=await jf(A,x,E.submission,O,{replace:E.replace});if(me.shortCircuited)return;U=me.pendingActionData,z=me.pendingActionError,I=G({state:"loading",location:x},E.submission),A=new Request(A.url,{signal:A.signal})}let{shortCircuited:Q,loaderData:X,errors:Ee}=await Tf(A,x,O,I,E&&E.submission,E&&E.fetcherSubmission,E&&E.replace,U,z);Q||(R=null,gt(x,G({matches:O},U?{actionData:U}:{},{loaderData:X,errors:Ee})))}async function jf(S,x,E,T,I){Lo();let O=G({state:"submitting",location:x},E);ee({navigation:O});let A,U=yi(T,x);if(!U.route.action&&!U.route.lazy)A={type:fe.error,error:be(405,{method:S.method,pathname:x.pathname,routeId:U.route.id})};else if(A=await ar("action",S,U,T,o,l,u),S.signal.aborted)return{shortCircuited:!0};if(Bn(A)){let z;return I&&I.replace!=null?z=I.replace:z=A.location===c.location.pathname+c.location.search,await lr(c,A,{submission:E,replace:z}),{shortCircuited:!0}}if(xr(A)){let z=Pn(T,U.route.id);return(I&&I.replace)!==!0&&(P=ce.Push),{pendingActionData:{},pendingActionError:{[z.route.id]:A.error}}}if(nn(A))throw be(400,{type:"defer-action"});return{pendingActionData:{[U.route.id]:A.data}}}async function Tf(S,x,E,T,I,O,A,U,z){let Q=T;Q||(Q=G({state:"loading",location:x,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},I));let X=I||O?I||O:Q.formMethod&&Q.formAction&&Q.formData&&Q.formEncType?{formMethod:Q.formMethod,formAction:Q.formAction,formData:Q.formData,formEncType:Q.formEncType}:void 0,Ee=a||i,[me,ye]=Ru(e.history,c,E,X,x,K,$,_e,it,Ee,u,U,z);if(zo(re=>!(E&&E.some(Qe=>Qe.route.id===re))||me&&me.some(Qe=>Qe.route.id===re)),me.length===0&&ye.length===0){let re=hu();return gt(x,G({matches:E,loaderData:{},errors:z||null},U?{actionData:U}:{},re?{fetchers:new Map(c.fetchers)}:{})),{shortCircuited:!0}}if(!D){ye.forEach(Qe=>{let _n=c.fetchers.get(Qe.key),we={state:"loading",data:_n&&_n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};c.fetchers.set(Qe.key,we)});let re=U||c.actionData;ee(G({navigation:Q},re?Object.keys(re).length===0?{actionData:null}:{actionData:re}:{},ye.length>0?{fetchers:new Map(c.fetchers)}:{}))}wn=++jt,ye.forEach(re=>{re.controller&&b.set(re.key,re.controller)});let ut=()=>ye.forEach(re=>kn(re.key));R&&R.signal.addEventListener("abort",ut);let{results:ir,loaderResults:Fo,fetcherResults:ll}=await fu(c.matches,E,me,ye,S);if(S.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",ut),ye.forEach(re=>b.delete(re.key));let vt=zu(ir);if(vt)return await lr(c,vt,{replace:A}),{shortCircuited:!0};let{loaderData:ol,errors:Io}=Lu(c,E,me,Fo,z,ye,ll,L);L.forEach((re,Qe)=>{re.subscribe(_n=>{(_n||re.done)&&L.delete(Qe)})});let Oo=hu(),Ao=mu(wn),il=Oo||Ao||ye.length>0;return G({loaderData:ol,errors:Io},il?{fetchers:new Map(c.fetchers)}:{})}function du(S){return c.fetchers.get(S)||$p}function Lf(S,x,E,T){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.");b.has(S)&&kn(S);let I=a||i,O=vi(c.location,c.matches,u,s.v7_prependBasename,E,x,T==null?void 0:T.relative),A=Cn(I,O,u);if(!A){Mo(S,x,be(404,{pathname:O}));return}let{path:U,submission:z}=Nu(s.v7_normalizeFormMethod,!0,O,T),Q=yi(A,U);if(j=(T&&T.preventScrollReset)===!0,z&&yt(z.formMethod)){Mf(S,x,U,Q,A,z);return}it.set(S,{routeId:x,path:U}),Df(S,x,U,Q,A,z)}async function Mf(S,x,E,T,I,O){if(Lo(),it.delete(S),!T.route.action&&!T.route.lazy){let we=be(405,{method:O.formMethod,pathname:E,routeId:x});Mo(S,x,we);return}let A=c.fetchers.get(S),U=G({state:"submitting"},O,{data:A&&A.data," _hasFetcherDoneAnything ":!0});c.fetchers.set(S,U),ee({fetchers:new Map(c.fetchers)});let z=new AbortController,Q=ur(e.history,E,z.signal,O);b.set(S,z);let X=await ar("action",Q,T,I,o,l,u);if(Q.signal.aborted){b.get(S)===z&&b.delete(S);return}if(Bn(X)){b.delete(S),mt.add(S);let we=G({state:"loading"},O,{data:void 0," _hasFetcherDoneAnything ":!0});return c.fetchers.set(S,we),ee({fetchers:new Map(c.fetchers)}),lr(c,X,{submission:O,isFetchActionRedirect:!0})}if(xr(X)){Mo(S,x,X.error);return}if(nn(X))throw be(400,{type:"defer-action"});let Ee=c.navigation.location||c.location,me=ur(e.history,Ee,z.signal),ye=a||i,ut=c.navigation.state!=="idle"?Cn(ye,c.navigation.location,u):c.matches;V(ut,"Didn't find any matches after fetcher action");let ir=++jt;Tt.set(S,ir);let Fo=G({state:"loading",data:X.data},O,{" _hasFetcherDoneAnything ":!0});c.fetchers.set(S,Fo);let[ll,vt]=Ru(e.history,c,ut,O,Ee,K,$,_e,it,ye,u,{[T.route.id]:X.data},void 0);vt.filter(we=>we.key!==S).forEach(we=>{let Uo=we.key,yu=c.fetchers.get(Uo),Af={state:"loading",data:yu&&yu.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};c.fetchers.set(Uo,Af),we.controller&&b.set(Uo,we.controller)}),ee({fetchers:new Map(c.fetchers)});let ol=()=>vt.forEach(we=>kn(we.key));z.signal.addEventListener("abort",ol);let{results:Io,loaderResults:Oo,fetcherResults:Ao}=await fu(c.matches,ut,ll,vt,me);if(z.signal.aborted)return;z.signal.removeEventListener("abort",ol),Tt.delete(S),b.delete(S),vt.forEach(we=>b.delete(we.key));let il=zu(Io);if(il)return lr(c,il);let{loaderData:re,errors:Qe}=Lu(c,c.matches,ll,Oo,void 0,vt,Ao,L);if(c.fetchers.has(S)){let we={state:"idle",data:X.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};c.fetchers.set(S,we)}let _n=mu(ir);c.navigation.state==="loading"&&ir>wn?(V(P,"Expected pending action"),R&&R.abort(),gt(c.navigation.location,{matches:ut,loaderData:re,errors:Qe,fetchers:new Map(c.fetchers)})):(ee(G({errors:Qe,loaderData:Mu(c.loaderData,re,ut,Qe)},_n||vt.length>0?{fetchers:new Map(c.fetchers)}:{})),K=!1)}async function Df(S,x,E,T,I,O){let A=c.fetchers.get(S),U=G({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},O,{data:A&&A.data," _hasFetcherDoneAnything ":!0});c.fetchers.set(S,U),ee({fetchers:new Map(c.fetchers)});let z=new AbortController,Q=ur(e.history,E,z.signal);b.set(S,z);let X=await ar("loader",Q,T,I,o,l,u);if(nn(X)&&(X=await vc(X,Q.signal,!0)||X),b.get(S)===z&&b.delete(S),Q.signal.aborted)return;if(Bn(X)){mt.add(S),await lr(c,X);return}if(xr(X)){let me=Pn(c.matches,x);c.fetchers.delete(S),ee({fetchers:new Map(c.fetchers),errors:{[me.route.id]:X.error}});return}V(!nn(X),"Unhandled fetcher deferred data");let Ee={state:"idle",data:X.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};c.fetchers.set(S,Ee),ee({fetchers:new Map(c.fetchers)})}async function lr(S,x,E){let{submission:T,replace:I,isFetchActionRedirect:O}=E===void 0?{}:E;x.revalidate&&(K=!0);let A=Lr(S.location,x.location,G({_isRedirect:!0},O?{_isFetchActionRedirect:!0}:{}));if(V(A,"Expected a location on the redirect navigation"),pc.test(x.location)&&n){let me=e.history.createURL(x.location),ye=Jr(me.pathname,u)==null;if(t.location.origin!==me.origin||ye){I?t.location.replace(x.location):t.location.assign(x.location);return}}R=null;let U=I===!0?ce.Replace:ce.Push,{formMethod:z,formAction:Q,formEncType:X,formData:Ee}=S.navigation;!T&&z&&Q&&Ee&&X&&(T={formMethod:z,formAction:Q,formEncType:X,formData:Ee}),Bp.has(x.status)&&T&&yt(T.formMethod)?await Lt(U,A,{submission:G({},T,{formAction:x.location}),preventScrollReset:j}):O?await Lt(U,A,{overrideNavigation:{state:"loading",location:A,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:T,preventScrollReset:j}):await Lt(U,A,{overrideNavigation:{state:"loading",location:A,formMethod:T?T.formMethod:void 0,formAction:T?T.formAction:void 0,formEncType:T?T.formEncType:void 0,formData:T?T.formData:void 0},preventScrollReset:j})}async function fu(S,x,E,T,I){let O=await Promise.all([...E.map(z=>ar("loader",I,z,x,o,l,u)),...T.map(z=>z.matches&&z.match&&z.controller?ar("loader",ur(e.history,z.path,z.controller.signal),z.match,z.matches,o,l,u):{type:fe.error,error:be(404,{pathname:z.path})})]),A=O.slice(0,E.length),U=O.slice(E.length);return await Promise.all([Fu(S,E,A,A.map(()=>I.signal),!1,c.loaderData),Fu(S,T.map(z=>z.match),U,T.map(z=>z.controller?z.controller.signal:null),!0)]),{results:O,loaderResults:A,fetcherResults:U}}function Lo(){K=!0,$.push(...zo()),it.forEach((S,x)=>{b.has(x)&&(_e.push(x),kn(x))})}function Mo(S,x,E){let T=Pn(c.matches,x);Do(S),ee({errors:{[T.route.id]:E},fetchers:new Map(c.fetchers)})}function Do(S){let x=c.fetchers.get(S);b.has(S)&&!(x&&x.state==="loading"&&Tt.has(S))&&kn(S),it.delete(S),Tt.delete(S),mt.delete(S),c.fetchers.delete(S)}function kn(S){let x=b.get(S);V(x,"Expected fetch controller: "+S),x.abort(),b.delete(S)}function pu(S){for(let x of S){let T={state:"idle",data:du(x).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};c.fetchers.set(x,T)}}function hu(){let S=[],x=!1;for(let E of mt){let T=c.fetchers.get(E);V(T,"Expected fetcher: "+E),T.state==="loading"&&(mt.delete(E),S.push(E),x=!0)}return pu(S),x}function mu(S){let x=[];for(let[E,T]of Tt)if(T0}function zf(S,x){let E=c.blockers.get(S)||Pu;return F.get(S)!==x&&F.set(S,x),E}function or(S){c.blockers.delete(S),F.delete(S)}function rl(S,x){let E=c.blockers.get(S)||Pu;V(E.state==="unblocked"&&x.state==="blocked"||E.state==="blocked"&&x.state==="blocked"||E.state==="blocked"&&x.state==="proceeding"||E.state==="blocked"&&x.state==="unblocked"||E.state==="proceeding"&&x.state==="unblocked","Invalid blocker state transition: "+E.state+" -> "+x.state),c.blockers.set(S,x),ee({blockers:new Map(c.blockers)})}function gu(S){let{currentLocation:x,nextLocation:E,historyAction:T}=S;if(F.size===0)return;F.size>1&&dn(!1,"A router only supports one blocker at a time");let I=Array.from(F.entries()),[O,A]=I[I.length-1],U=c.blockers.get(O);if(!(U&&U.state==="proceeding")&&A({currentLocation:x,nextLocation:E,historyAction:T}))return O}function zo(S){let x=[];return L.forEach((E,T)=>{(!S||S(T))&&(E.cancel(),x.push(T),L.delete(T))}),x}function Ff(S,x,E){if(h=S,y=x,w=E||(T=>T.key),!k&&c.navigation===Ho){k=!0;let T=vu(c.location,c.matches);T!=null&&ee({restoreScrollPosition:T})}return()=>{h=null,y=null,w=null}}function If(S,x){if(h&&w&&y){let E=x.map(I=>Iu(I,c.loaderData)),T=w(S,E)||S.key;h[T]=y()}}function vu(S,x){if(h&&w&&y){let E=x.map(O=>Iu(O,c.loaderData)),T=w(S,E)||S.key,I=h[T];if(typeof I=="number")return I}return null}function Of(S){o={},a=gi(S,l,void 0,o)}return g={get basename(){return u},get state(){return c},get routes(){return i},initialize:ne,subscribe:Sn,enableScrollRestoration:Ff,navigate:at,fetch:Lf,revalidate:xn,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:du,deleteFetcher:Do,dispose:se,getBlocker:zf,deleteBlocker:or,_internalFetchControllers:b,_internalActiveDeferreds:L,_internalSetRoutes:Of},g}function Wp(e){return e!=null&&"formData"in e}function vi(e,t,n,r,l,o,i){let a,u;if(o!=null&&i!=="path"){a=[];for(let m of t)if(a.push(m),m.route.id===o){u=m;break}}else a=t,u=t[t.length-1];let s=Mp(l||".",cc(a).map(m=>m.pathnameBase),Jr(e.pathname,n)||e.pathname,i==="path");return l==null&&(s.search=e.search,s.hash=e.hash),(l==null||l===""||l===".")&&u&&u.route.index&&!ya(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(s.pathname=s.pathname==="/"?n:un([n,s.pathname])),Zr(s)}function Nu(e,t,n,r){if(!r||!Wp(r))return{path:n};if(r.formMethod&&!Jp(r.formMethod))return{path:n,error:be(405,{method:r.formMethod})};let l;if(r.formData){let a=r.formMethod||"get";if(l={formMethod:e?a.toUpperCase():a.toLowerCase(),formAction:gc(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData},yt(l.formMethod))return{path:n,submission:l}}let o=ht(n),i=mc(r.formData);return t&&o.search&&ya(o.search)&&i.append("index",""),o.search="?"+i,{path:Zr(o),submission:l}}function Qp(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Ru(e,t,n,r,l,o,i,a,u,s,m,p,h){let w=h?Object.values(h)[0]:p?Object.values(p)[0]:void 0,y=e.createURL(t.location),k=e.createURL(l),N=h?Object.keys(h)[0]:void 0,f=Qp(n,N).filter((c,P)=>{if(c.route.lazy)return!0;if(c.route.loader==null)return!1;if(Kp(t.loaderData,t.matches[P],c)||i.some(D=>D===c.route.id))return!0;let j=t.matches[P],R=c;return ju(c,G({currentUrl:y,currentParams:j.params,nextUrl:k,nextParams:R.params},r,{actionResult:w,defaultShouldRevalidate:o||y.pathname+y.search===k.pathname+k.search||y.search!==k.search||hc(j,R)}))}),g=[];return u.forEach((c,P)=>{if(!n.some(K=>K.route.id===c.routeId))return;let j=Cn(s,c.path,m);if(!j){g.push({key:P,routeId:c.routeId,path:c.path,matches:null,match:null,controller:null});return}let R=yi(j,c.path);if(a.includes(P)){g.push({key:P,routeId:c.routeId,path:c.path,matches:j,match:R,controller:new AbortController});return}ju(R,G({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:k,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:o}))&&g.push({key:P,routeId:c.routeId,path:c.path,matches:j,match:R,controller:new AbortController})}),[f,g]}function Kp(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function hc(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ju(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Tu(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];V(l,"No route found in manifest");let o={};for(let i in r){let u=l[i]!==void 0&&i!=="hasErrorBoundary";dn(!u,'Route "'+l.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!hp.has(i)&&(o[i]=r[i])}Object.assign(l,o),Object.assign(l,G({},t(l),{lazy:void 0}))}async function ar(e,t,n,r,l,o,i,a,u,s){a===void 0&&(a=!1),u===void 0&&(u=!1);let m,p,h,w=N=>{let d,f=new Promise((g,c)=>d=c);return h=()=>d(),t.signal.addEventListener("abort",h),Promise.race([N({request:t,params:n.params,context:s}),f])};try{let N=n.route[e];if(n.route.lazy)if(N)p=(await Promise.all([w(N),Tu(n.route,o,l)]))[0];else if(await Tu(n.route,o,l),N=n.route[e],N)p=await w(N);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw be(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:fe.data,data:void 0};else if(N)p=await w(N);else{let d=new URL(t.url),f=d.pathname+d.search;throw be(404,{pathname:f})}V(p!==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(N){m=fe.error,p=N}finally{h&&t.signal.removeEventListener("abort",h)}if(Zp(p)){let N=p.status;if(Up.has(N)){let g=p.headers.get("Location");if(V(g,"Redirects returned/thrown from loaders/actions must have a Location header"),!pc.test(g))g=vi(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,g);else if(!a){let c=new URL(t.url),P=g.startsWith("//")?new URL(c.protocol+g):new URL(g),j=Jr(P.pathname,i)!=null;P.origin===c.origin&&j&&(g=P.pathname+P.search+P.hash)}if(a)throw p.headers.set("Location",g),p;return{type:fe.redirect,status:N,location:g,revalidate:p.headers.get("X-Remix-Revalidate")!==null}}if(u)throw{type:m||fe.data,response:p};let d,f=p.headers.get("Content-Type");return f&&/\bapplication\/json\b/.test(f)?d=await p.json():d=await p.text(),m===fe.error?{type:m,error:new va(N,p.statusText,d),headers:p.headers}:{type:fe.data,data:d,statusCode:p.status,headers:p.headers}}if(m===fe.error)return{type:m,error:p};if(Xp(p)){var y,k;return{type:fe.deferred,deferredData:p,statusCode:(y=p.init)==null?void 0:y.status,headers:((k=p.init)==null?void 0:k.headers)&&new Headers(p.init.headers)}}return{type:fe.data,data:p}}function ur(e,t,n,r){let l=e.createURL(gc(t)).toString(),o={signal:n};if(r&&yt(r.formMethod)){let{formMethod:i,formEncType:a,formData:u}=r;o.method=i.toUpperCase(),o.body=a==="application/x-www-form-urlencoded"?mc(u):u}return new Request(l,o)}function mc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function Gp(e,t,n,r,l){let o={},i=null,a,u=!1,s={};return n.forEach((m,p)=>{let h=t[p].route.id;if(V(!Bn(m),"Cannot handle redirect results in processLoaderData"),xr(m)){let w=Pn(e,h),y=m.error;r&&(y=Object.values(r)[0],r=void 0),i=i||{},i[w.route.id]==null&&(i[w.route.id]=y),o[h]=void 0,u||(u=!0,a=dc(m.error)?m.error.status:500),m.headers&&(s[h]=m.headers)}else nn(m)?(l.set(h,m.deferredData),o[h]=m.deferredData.data):o[h]=m.data,m.statusCode!=null&&m.statusCode!==200&&!u&&(a=m.statusCode),m.headers&&(s[h]=m.headers)}),r&&(i=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:s}}function Lu(e,t,n,r,l,o,i,a){let{loaderData:u,errors:s}=Gp(t,n,r,l,a);for(let m=0;mr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Du(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function be(e,t){let{pathname:n,routeId:r,method:l,type:o}=t===void 0?{}:t,i="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(i="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"&&(a="defer() is not supported in actions")):e===403?(i="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",a='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new va(e||500,i,new Error(a),!0)}function zu(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Bn(n))return n}}function gc(e){let t=typeof e=="string"?ht(e):e;return Zr(G({},t,{hash:""}))}function Yp(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function nn(e){return e.type===fe.deferred}function xr(e){return e.type===fe.error}function Bn(e){return(e&&e.type)===fe.redirect}function Xp(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 Zp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Jp(e){return Ap.has(e.toLowerCase())}function yt(e){return Ip.has(e.toLowerCase())}async function Fu(e,t,n,r,l,o){for(let i=0;ip.route.id===u.route.id),m=s!=null&&!hc(s,u)&&(o&&o[u.route.id])!==void 0;if(nn(a)&&(l||m)){let p=r[i];V(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await vc(a,p,l).then(h=>{h&&(n[i]=h||n[i])})}}}async function vc(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:fe.data,data:e.deferredData.unwrappedData}}catch(l){return{type:fe.error,error:l}}return{type:fe.data,data:e.deferredData.data}}}function ya(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Iu(e,t){let{route:n,pathname:r,params:l}=e;return{id:n.id,pathname:r,params:l,data:t[n.id],handle:n.handle}}function yi(e,t){let n=typeof t=="string"?ht(t).search:t.search;if(e[e.length-1].route.index&&ya(n||""))return e[e.length-1];let r=cc(e);return r[r.length-1]}/** * React Router v6.13.0 * * Copyright (c) Remix Software Inc. @@ -32,7 +32,7 @@ var Uf=Object.defineProperty;var Bf=(e,t,n)=>t in e?Uf(e,t,{enumerable:!0,config * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function wi(){return wi=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},k,{params:Object.assign({},i,k.params),pathname:an([a,r.encodeLocation?r.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?a:an([a,r.encodeLocation?r.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),l,n);return t&&y?_.createElement(mo.Provider,{value:{location:wi({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:ce.Pop}},y):y}function nh(){let e=ch(),t=dc(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:l},n):null,o)}const rh=_.createElement(nh,null);class lh extends _.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||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?_.createElement(qr.Provider,{value:this.props.routeContext},_.createElement(xc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oh(e){let{routeContext:t,match:n,children:r}=e,l=_.useContext(yc);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(qr.Provider,{value:t},r)}function ih(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let o=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let a=o.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id]));a>=0||V(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,u,s)=>{let m=u.route.id?i==null?void 0:i[u.route.id]:null,p=null;n&&(p=u.route.errorElement||rh);let h=t.concat(o.slice(0,s+1)),w=()=>{let y;return m?y=p:u.route.Component?y=_.createElement(u.route.Component,null):u.route.element?y=u.route.element:y=a,_.createElement(oh,{match:u,routeContext:{outlet:a,matches:h,isDataRoute:n!=null},children:y})};return n&&(u.route.ErrorBoundary||u.route.errorElement||s===0)?_.createElement(lh,{location:n.location,revalidation:n.revalidation,component:p,error:m,children:w(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):w()},null)}var Au;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Au||(Au={}));var Ul;(function(e){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"})(Ul||(Ul={}));function ah(e){let t=_.useContext(wc);return t||V(!1),t}function uh(e){let t=_.useContext(qr);return t||V(!1),t}function sh(e){let t=uh(),n=t.matches[t.matches.length-1];return n.route.id||V(!1),n.route.id}function ch(){var e;let t=_.useContext(xc),n=ah(Ul.UseRouteError),r=sh(Ul.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function dh(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=_.useState(n.state),{v7_startTransition:i}=r||{},a=_.useCallback(p=>{i&&Ou?Ou(()=>o(p)):o(p)},[o,i]);_.useLayoutEffect(()=>n.subscribe(a),[n,a]);let u=_.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:p=>n.navigate(p),push:(p,h,w)=>n.navigate(p,{state:h,preventScrollReset:w==null?void 0:w.preventScrollReset}),replace:(p,h,w)=>n.navigate(p,{replace:!0,state:h,preventScrollReset:w==null?void 0:w.preventScrollReset})}),[n]),s=n.basename||"/",m=_.useMemo(()=>({router:n,navigator:u,static:!1,basename:s}),[n,u,s]);return _.createElement(_.Fragment,null,_.createElement(yc.Provider,{value:m},_.createElement(wc.Provider,{value:l},_.createElement(ph,{basename:s,location:l.location,navigationType:l.historyAction,navigator:u},l.initialized?_.createElement(fh,{routes:n.routes,state:l}):t))),null)}function fh(e){let{routes:t,state:n}=e;return th(t,void 0,n)}function ph(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ce.Pop,navigator:o,static:i=!1}=e;wa()&&V(!1);let a=t.replace(/^\/*/,"/"),u=_.useMemo(()=>({basename:a,navigator:o,static:i}),[a,o,i]);typeof r=="string"&&(r=ht(r));let{pathname:s="/",search:m="",hash:p="",state:h=null,key:w="default"}=r,y=_.useMemo(()=>{let k=Jr(s,a);return k==null?null:{location:{pathname:k,search:m,hash:p,state:h,key:w},navigationType:l}},[a,s,m,p,h,w,l]);return y==null?null:_.createElement(Sc.Provider,{value:u},_.createElement(mo.Provider,{children:n,value:y}))}var Uu;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Uu||(Uu={}));new Promise(()=>{});function hh(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function wi(){return wi=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},k,{params:Object.assign({},i,k.params),pathname:un([a,r.encodeLocation?r.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?a:un([a,r.encodeLocation?r.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),l,n);return t&&y?_.createElement(mo.Provider,{value:{location:wi({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:ce.Pop}},y):y}function nh(){let e=ch(),t=dc(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:l},n):null,o)}const rh=_.createElement(nh,null);class lh extends _.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||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?_.createElement(qr.Provider,{value:this.props.routeContext},_.createElement(xc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oh(e){let{routeContext:t,match:n,children:r}=e,l=_.useContext(yc);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(qr.Provider,{value:t},r)}function ih(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let o=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let a=o.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id]));a>=0||V(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,u,s)=>{let m=u.route.id?i==null?void 0:i[u.route.id]:null,p=null;n&&(p=u.route.errorElement||rh);let h=t.concat(o.slice(0,s+1)),w=()=>{let y;return m?y=p:u.route.Component?y=_.createElement(u.route.Component,null):u.route.element?y=u.route.element:y=a,_.createElement(oh,{match:u,routeContext:{outlet:a,matches:h,isDataRoute:n!=null},children:y})};return n&&(u.route.ErrorBoundary||u.route.errorElement||s===0)?_.createElement(lh,{location:n.location,revalidation:n.revalidation,component:p,error:m,children:w(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):w()},null)}var Au;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Au||(Au={}));var Ul;(function(e){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"})(Ul||(Ul={}));function ah(e){let t=_.useContext(wc);return t||V(!1),t}function uh(e){let t=_.useContext(qr);return t||V(!1),t}function sh(e){let t=uh(),n=t.matches[t.matches.length-1];return n.route.id||V(!1),n.route.id}function ch(){var e;let t=_.useContext(xc),n=ah(Ul.UseRouteError),r=sh(Ul.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function dh(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=_.useState(n.state),{v7_startTransition:i}=r||{},a=_.useCallback(p=>{i&&Ou?Ou(()=>o(p)):o(p)},[o,i]);_.useLayoutEffect(()=>n.subscribe(a),[n,a]);let u=_.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:p=>n.navigate(p),push:(p,h,w)=>n.navigate(p,{state:h,preventScrollReset:w==null?void 0:w.preventScrollReset}),replace:(p,h,w)=>n.navigate(p,{replace:!0,state:h,preventScrollReset:w==null?void 0:w.preventScrollReset})}),[n]),s=n.basename||"/",m=_.useMemo(()=>({router:n,navigator:u,static:!1,basename:s}),[n,u,s]);return _.createElement(_.Fragment,null,_.createElement(yc.Provider,{value:m},_.createElement(wc.Provider,{value:l},_.createElement(ph,{basename:s,location:l.location,navigationType:l.historyAction,navigator:u},l.initialized?_.createElement(fh,{routes:n.routes,state:l}):t))),null)}function fh(e){let{routes:t,state:n}=e;return th(t,void 0,n)}function ph(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ce.Pop,navigator:o,static:i=!1}=e;wa()&&V(!1);let a=t.replace(/^\/*/,"/"),u=_.useMemo(()=>({basename:a,navigator:o,static:i}),[a,o,i]);typeof r=="string"&&(r=ht(r));let{pathname:s="/",search:m="",hash:p="",state:h=null,key:w="default"}=r,y=_.useMemo(()=>{let k=Jr(s,a);return k==null?null:{location:{pathname:k,search:m,hash:p,state:h,key:w},navigationType:l}},[a,s,m,p,h,w,l]);return y==null?null:_.createElement(Sc.Provider,{value:u},_.createElement(mo.Provider,{children:n,value:y}))}var Uu;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Uu||(Uu={}));new Promise(()=>{});function hh(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.13.0 * * Copyright (c) Remix Software Inc. @@ -41,7 +41,7 @@ var Uf=Object.defineProperty;var Bf=(e,t,n)=>t in e?Uf(e,t,{enumerable:!0,config * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[o,i]=_.useState(!1),a=()=>{i(u=>!u),l(n)};return _.useEffect(()=>{r&&i(r===n)},[n,r]),v.jsxs("div",{className:Pl.accordion,children:[v.jsxs("div",{className:Pl["accordion-title"],children:[v.jsx("h3",{children:e}),v.jsx("button",{onClick:a,className:Pl["accordion-icon"],children:o?"-":"+"})]}),o&&v.jsx("p",{children:t})]},n)},xh=[{id:1,title:"Do I have to allow the use of cookies?",info:"Unicorn vinyl poutine brooklyn, next level direct trade iceland. Shaman copper mug church-key coloring book, whatever poutine normcore fixie cred kickstarter post-ironic street art."},{id:2,title:"How do I change my My Page password?",info:"Coloring book forage photo booth gentrify lumbersexual. Migas chillwave poutine synth shoreditch, enamel pin thundercats fashion axe roof party polaroid chartreuse."},{id:3,title:"What is BankID?",info:"Enamel pin fam sustainable woke whatever venmo. Authentic asymmetrical put a bird on it, lumbersexual activated charcoal kinfolk banjo cred pickled sartorial."},{id:4,title:"Whose birth number can I use?",info:"Edison bulb direct trade gentrify beard lo-fi seitan sustainable roof party franzen occupy squid. Knausgaard cronut succulents, scenester readymade shabby chic lyft. Copper mug meh vegan gentrify."},{id:5,title:"When do I recieve a password ordered by letter?",info:"Locavore franzen fashion axe live-edge neutra irony synth af tilde shabby chic man braid chillwave waistcoat copper mug messenger bag. Banjo snackwave blog, microdosing thundercats migas vaporware viral lo-fi seitan "}];function kh(){const[e,t]=_.useState(!0),[n,r]=_.useState(null),l=(i=null)=>{r(e?null:i)},o=()=>{e&&r(-1),t(!e)};return v.jsxs("div",{className:Pl.App,children:[v.jsxs("h4",{children:[v.jsx("label",{htmlFor:"max-open",children:"Is multiple open accordion allowed?"}),v.jsx("input",{type:"checkbox",id:"max-open",checked:e,onChange:o})]}),v.jsx("div",{children:xh.map(i=>v.jsx(Sh,{multiple:e,openAccordionId:n,setIdOfOpenAccordion:l,...i},i.id))})]})}class _h{constructor(t=[]){wu(this,"trie");this.trie={},this.addWordsToTrie(t)}addWordsToTrie(t){for(let n of t){let r=this.trie;n=n.toLowerCase();for(const l of n)r.hasOwnProperty(l)||(r[l]={}),r=r[l];r.end=!0}}getWordsFromTrie(t,n){t=t.toLowerCase();let r=this.trie;for(const l of t)if(r=r[l],!r)return[];return this.getWordsByDFS(r,n,t)}getWordsByDFS(t,n=1/0,r="",l=[]){if(t.end&&(l.push(r),l.length===n))return l;for(const o in t)if(t.hasOwnProperty(o)&&(this.getWordsByDFS(t[o],n,r+o,l),l.length===n))break;return l}}const Eh=e=>{const[n,r]=_.useState(""),[l,o]=_.useState([]),[i,a]=_.useState(null),u=_.useRef(new _h(e)),s=w=>{const y=w.target.value;r(w.target.value),o(y?u.current.getWordsFromTrie(y,5):[]),a(null)};return _.useEffect(()=>{if(i!==null){const w=l[i];r(w)}},[i,l]),[n,s,i,l,w=>{if(w.key==="Enter"&&i!==null){const y=l[i];r(y),o([]),a(null)}w.key==="ArrowDown"&&(w.preventDefault(),a(y=>y===null||y===l.length-1?0:y+1)),w.key==="ArrowUp"&&(w.preventDefault(),a(y=>y===null||y===0?l.length-1:y-1))},w=>{r(w),o([]),a(null)},w=>{a(w)}]},Ch=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],Nh="_main_1uppu_1",Ph="_suggestions_1uppu_12",Rh="_highlight_1uppu_27",jh="_loader_1uppu_37",nn={main:Nh,suggestions:Ph,highlight:Rh,loader:jh},Th=()=>{const[e,t,n,r,l,o,i]=Eh(Ch),a=_.useRef(null);return v.jsxs("div",{className:nn.main,children:[v.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),v.jsx("input",{type:"search",ref:a,autoComplete:"off",spellCheck:"false",placeholder:"Search for Country","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onChange:t,onKeyDown:l}),v.jsx("ul",{className:nn.suggestions,children:r.map((u,s)=>v.jsx("li",{className:n===s?`${nn.highlight}`:"",onClick:()=>o(u),onMouseOver:()=>i(s),onMouseLeave:()=>i(null),children:u},s))})]})};function Lh(e,t=500){let n=null;return function(...l){n&&(clearTimeout(n),n=null),n=setTimeout(e,t,...l)}}const Mh=5;async function Hu(e){try{return(await(await fetch(`https://api.github.com/search/users?per_page=${Mh}&q=${e}`)).json()).items.map(r=>r.login)}catch{return[]}}function Dh(){const[e,t]=_.useState(""),[n,r]=_.useState([]),[l,o]=_.useState(null),[i,a]=_.useState(!1),[u,s]=_.useState(""),m=_.useCallback(Lh(async P=>{a(!0);try{const d=await Hu(P);d.length>0?(r(d),s("")):(r([]),s("No results found"))}catch{r([]),s("Error occurred while fetching suggestions")}a(!1)},300),[Hu]),p=()=>{r([]),o(null),s("")},h=P=>{if(P.key==="Enter"&&l!==null){const d=n[l];t(d),p()}P.key==="ArrowDown"&&(P.preventDefault(),o(d=>d===null||d===n.length-1?0:d+1)),P.key==="ArrowUp"&&(P.preventDefault(),o(d=>d===null||d===0?n.length-1:d-1))},w=P=>{const d=P.target.value;t(d),d.length>0?m(d):p()},y=P=>{t(P),p()};return _.useEffect(()=>{if(l!==null){const P=n[l];t(P)}},[l,n]),{userText:e,suggestions:n,isLoading:i,suggestionFocus:l,errorMessage:u,handleInputChange:w,handleSuggestionClick:y,handleKeyDown:h,handleSuggestionFocus:P=>{o(P)}}}function zh(){const{userText:e,suggestions:t,isLoading:n,suggestionFocus:r,errorMessage:l,handleInputChange:o,handleSuggestionClick:i,handleKeyDown:a,handleSuggestionFocus:u}=Dh();return v.jsxs("div",{className:nn.main,children:[v.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),v.jsx("input",{type:"search",id:"userInput",autoComplete:"off",spellCheck:"false",placeholder:"Search for GitHub username","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onKeyDown:a,onChange:o}),n&&v.jsx("div",{id:"loader",className:nn.loader}),l&&v.jsx("div",{id:"info",children:l}),v.jsx("ul",{className:nn.suggestions,children:t.map((s,m)=>v.jsx("li",{className:r===m?`${nn.highlight}`:"",onClick:()=>i(s),onMouseOver:()=>u(m),onMouseLeave:()=>u(null),children:s},m))})]})}const Fh="_main_6qdtw_1",Ih={main:Fh};function Oh(){const[e,t]=_.useState(0),n=_.useRef(1),r=a=>{n.current=a},l=()=>{t(a=>a+n.current)},o=()=>{t(a=>a-n.current)},i=()=>{t(0)};return v.jsxs("main",{className:Ih.main,children:[v.jsx("h2",{children:e}),v.jsxs("div",{children:[v.jsx("button",{onClick:o,children:"-"}),v.jsx("button",{onClick:l,children:"+"})]}),v.jsxs("div",{children:[v.jsx("label",{htmlFor:"step",children:"Icrement/Decrement by"}),v.jsx("input",{type:"number",id:"step",defaultValue:n.current,onChange:a=>r(a.target.valueAsNumber)})]}),v.jsx("div",{children:v.jsx("button",{onClick:i,children:"Reset"})})]})}function Sa({onComplete:e,defaultValue:t=""}){const[n,r]=_.useState(t),l=()=>{e(n)},o=i=>{i.key==="Enter"&&l()};return v.jsx("input",{type:"text",autoFocus:!0,onBlur:l,onKeyUp:o,value:n,onChange:i=>r(i.target.value)})}const Ah="_app_8fex5_1",Uh="_list_8fex5_6",Bh="_editList_8fex5_22",$h="_indent_8fex5_30",Hh="_controls_8fex5_34",Ue={app:Ah,list:Uh,editList:Bh,indent:$h,controls:Hh};function Vh({node:e,parent:t,onNodeDeletion:n,onNodeUpdate:r}){const[l,o]=_.useState(!1),i=a=>{r(t,e,a),o(!1)};return l?v.jsxs("li",{className:`${Ue.list} ${Ue.editList}`,children:["📄 ",v.jsx(Sa,{defaultValue:e.name,onComplete:i})]}):v.jsxs("li",{className:Ue.list,children:[v.jsxs("button",{className:Ue.button,children:["📄 ",e.name]}),v.jsxs("div",{className:Ue.controls,children:[v.jsx("button",{onClick:()=>o(!0),children:"✏️"}),v.jsx("button",{onClick:()=>n(t,e),children:"🗑️"})]})]})}function Wh({expanded:e,toggleExpand:t,parent:n,node:r,onNodeDeletion:l,onNodeUpdate:o,onNew:i}){const[a,u]=_.useState(!1),s=m=>{n&&(o(n,r,m),u(!1))};return a?v.jsxs("li",{className:`${Ue.list} ${Ue.editList}`,children:[e?"📂":"📁"," ",v.jsx(Sa,{defaultValue:r==null?void 0:r.name,onComplete:s})]}):v.jsxs("li",{className:Ue.list,"data-root":n===null,children:[v.jsxs("button",{onClick:t,children:[e?"📂":"📁"," ",r==null?void 0:r.name]}),v.jsxs("div",{className:Ue.controls,children:[v.jsx("button",{className:"edit",onClick:()=>u(!0),children:"✏️"}),v.jsx("button",{className:"new-file",onClick:()=>i(!1),children:"📄"}),v.jsx("button",{className:"new-folder",onClick:()=>i(!0),children:"🗂"}),v.jsx("button",{className:"delete",onClick:()=>l(n,r),children:"🗑️"})]})]})}function kc({node:e,parent:t,onNodeAdditon:n,onNodeDeletion:r,onNodeUpdate:l}){var w;const[o,i]=_.useState(!1),[a,u]=_.useState(!1),s=_.useRef(!1),m=y=>{y.stopPropagation(),i(!o)},p=y=>{s.current=y,u(!a),i(!0)},h=y=>{y&&n(e,{name:y,id:new Date().getTime().toString(),isFolder:s.current}),u(!1)};return v.jsxs(v.Fragment,{children:[v.jsx(Wh,{expanded:o,toggleExpand:m,parent:t,node:e,onNodeDeletion:r,onNodeUpdate:l,onNew:p}),o&&v.jsxs("div",{className:Ue.indent,children:[(w=e.nodes)==null?void 0:w.map(y=>y.isFolder?v.jsx(kc,{node:y,parent:e,onNodeAdditon:n,onNodeDeletion:r,onNodeUpdate:l},y.id):v.jsx(Vh,{node:y,parent:e,onNodeDeletion:r,onNodeUpdate:l},y.id)),a&&v.jsxs("li",{className:`${Ue.list} ${Ue.editList}`,children:[s.current?"📁":"📄"," ",v.jsx(Sa,{onComplete:h})]})]})]})}const Qh={id:"root",name:"root",isFolder:!0,nodes:[{id:"1",name:"public",isFolder:!0,nodes:[{id:"11",name:"images",isFolder:!0,nodes:[{id:"111",name:"cover.png"},{id:"112",name:"icons",isFolder:!0,nodes:[{id:"1121",name:"arrow.svg"}]}]},{id:"12",name:"public_nested_file"}]},{id:"2",name:"src",isFolder:!0,nodes:[{id:"21",name:"components",isFolder:!0,nodes:[{id:"21",name:"index.js"},{id:"22",name:"index.html"},{id:"23",name:"index.css"}]},{id:"22",name:"main.jsx"},{id:"23",name:"App.jsx"},{id:"24",name:"app.module.css"}]},{id:"3",name:"dist",isFolder:!0,nodes:[{id:"31",name:"index.js"},{id:"32",name:"index.html"},{id:"33",name:"index.css"}]},{id:"4",name:"package.json",nodes:[]},{id:"5",name:"package-lock.json",nodes:[]}]};function Kh(){const[e,t]=_.useState(Qh),n=(o,i)=>{const a={...e},u=[...o.nodes??[]];u.push({...i,nodes:[]}),o.id==="root"?a.nodes=u:o.nodes=u,t(a)},r=(o,i)=>{var s;const a={...e},u=(s=o.nodes)==null?void 0:s.filter(m=>m.id!==i.id);o.id==="root"?a.nodes=u:o.nodes=u,t(a)},l=(o,i,a)=>{var p;const u={...e},s=((p=o.nodes)==null?void 0:p.map(h=>h))??[],m=s.findIndex(h=>h.id===i.id);s[m]={...s[m],name:a},o.id==="root"?u.nodes=s:o.nodes=s,t(u)};return v.jsx("div",{className:Ue.app,children:v.jsx(kc,{node:e,parent:null,onNodeAdditon:n,onNodeDeletion:r,onNodeUpdate:l})})}const Gh="_app_wqhfe_1",Yh="_widget_wqhfe_13",Xh="_text_wqhfe_18",Vo={app:Gh,widget:Yh,text:Xh};function Zh(){const[e,t]=_.useState(),[n,r]=_.useState(!1),[l,o]=_.useState(1),[i,a]=_.useState(!1),[u,s]=_.useState(!1),[m,p]=_.useState(!1);_.useEffect(()=>{t(Math.round(100*Math.random()))},[]);const h=y=>{y.preventDefault(),le?(s(!0),a(!1)):(p(!0),a(!1),s(!1),r(!0))},w=()=>{t(Math.round(100*Math.random())),p(!1),a(!1),s(!1),r(!1),o(1)};return v.jsxs("div",{className:Vo.app,children:[v.jsxs("form",{onSubmit:h,children:[v.jsx("label",{htmlFor:"input",children:"Guess a Number between 0 and 100"}),v.jsx("input",{id:"input",type:"number",value:l,placeholder:"Guess-Number",onChange:y=>o(Number(y.target.value))}),v.jsxs("div",{className:Vo.widget,children:[v.jsx("button",{type:"reset",onClick:()=>w(),children:"Reset"}),v.jsx("button",{type:"submit",onClick:y=>h(y),disabled:n,children:"Check"})]})]}),v.jsxs("div",{className:Vo.text,children:[i&&v.jsxs("p",{children:["Your guess is ",v.jsx("b",{children:"Less"})," than the actual number"]}),u&&v.jsxs("p",{children:["Your guess is ",v.jsx("b",{children:"Higher"})," than the actual number"]}),m&&v.jsxs("p",{children:["Your guess is ",v.jsx("b",{children:"right"})]})]})]})}const _c=[{title:"Counter",link:"#/0/counter",difficulty:"easy",developer:"sadanandpai",tags:[]},{title:"Accordion",link:"#/1/accordion",developer:"NikhilJHA01",difficulty:"easy",tags:[]},{title:"Star Rating",link:"#/2/star-Rating",difficulty:"easy",developer:"NikhilJHA01",tags:[]},{title:"Light Dark Mode",link:"#/3/light-dark-mode",difficulty:"easy",developer:"NikhilJHA01",tags:[]},{title:"Guess the number",link:"#/4/Guess-the-number",difficulty:"easy",developer:"deepakrajkranti",tags:[]},{title:"Telephone formatter",link:"#/5/telephone-formatter",difficulty:"easy",developer:"arpansaha13",tags:[],isNew:!0},{title:"Toast Popup",link:"#/6/toast-popup",difficulty:"easy",developer:"deepu0",tags:[],isNew:!0},{title:"Password Strength",link:"#/7/password-strength",difficulty:"easy",developer:"deepu0",tags:[],isNew:!0},{title:"Todo List",link:"#/8/todo-list",difficulty:"medium",developer:"deepakrajkranti",tags:[],isNew:!0},{title:"File Explorer",link:"#/9/file-explorer",difficulty:"easy",developer:"sadanandpai",tags:[],isNew:!0},{title:"Typeahead / Autocomplete (offline)",link:"#/10/autocomplete-offline",difficulty:"hard",developer:"deepu0",tags:[],isNew:!0},{title:"Typeahead / Autocomplete (online)",link:"#/11/autocomplete-online",difficulty:"hard",developer:"deepu0",tags:[],isNew:!0}],Jh="_nav_19h5h_1",qh="_logo_19h5h_8",Vu={nav:Jh,logo:qh};function bh({heading:e="Challenge"}){return v.jsxs("nav",{className:Vu.nav,children:[v.jsx("a",{href:"#/challenges",children:"Home"}),v.jsx("h1",{children:em(e)}),v.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",children:v.jsx("img",{className:Vu.logo,src:"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",alt:"github repo"})})]})}const em=e=>{const t=_c.find(n=>n.link.includes(e));return(t==null?void 0:t.title)||"Challenge"},tm="_darkTheme_1hd3l_7",nm="_lightTheme_1hd3l_13",rm="_main_1hd3l_19",Wo={darkTheme:tm,lightTheme:nm,main:rm},lm=()=>{const[e,t]=_.useState("");return _.useEffect(()=>{const r=localStorage.getItem("theme");r&&t(r)},[]),_.useEffect(()=>{localStorage.setItem("theme",e)},[e]),{theme:e,toggleTheme:()=>{t(e==="dark-theme"?"light-theme":"dark-theme")}}};function om(){const{theme:e,toggleTheme:t}=lm();return v.jsxs("main",{className:`${Wo.main} ${e==="dark-theme"?Wo.darkTheme:Wo.lightTheme}`,children:[v.jsx("h1",{children:"Try to toggle the theme and see the change !!!"}),v.jsx("button",{onClick:t,children:"Toggle Theme"})]})}const im=()=>{const[e,t]=_.useState(""),n=/\d/,r=/[A-Z]/,l=/[a-z]/,o=/[^A-Za-z0-9]/,i=h=>h>8?"Strong":h>5?"Medium":"Weak",a=h=>{let w=0;return h.length>3&&(w=Math.min(6,Math.floor(h.length/3)),w+=+n.test(h)+ +r.test(h)+ +l.test(h)+ +o.test(h)),w},u=h=>{const w=h.target.value;t(w)},s=a(e),m=i(s),p={lc:l.test(e),uc:r.test(e),num:n.test(e),sym:o.test(e)};return[e,m,s,p,u]},am="_main_yas6p_1",um="_indicators_yas6p_6",sm="_active_yas6p_14",cm="_progressContainer_yas6p_17",dm="_progressBar_yas6p_25",Mt={main:am,indicators:um,active:sm,progressContainer:cm,progressBar:dm},fm=()=>{const[e,t,n,r,l]=im();return v.jsxs("div",{className:Mt.main,children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:"password-length",children:"Enter the password"}),v.jsx("br",{}),v.jsx("br",{}),v.jsx("input",{type:"text",id:"password",min:"8",max:"32",autoFocus:!0,autoComplete:"off",value:e,onChange:l})]}),v.jsxs("div",{className:Mt.indicators,children:[v.jsx("span",{className:r.lc?Mt.active:"",children:"Lowercase"}),v.jsx("span",{className:r.uc?Mt.active:"",children:"Uppercase"}),v.jsx("span",{className:r.num?Mt.active:"",children:"Number"}),v.jsx("span",{className:r.sym?Mt.active:"",children:"Symbols"})]}),v.jsx("div",{className:Mt.progressContainer,children:v.jsx("div",{className:Mt.progressBar,style:{width:`${n*10}%`,backgroundColor:n>5?n>8?"green":"orange":"red"}})}),v.jsxs("p",{children:["Password has ",v.jsx("strong",{children:e.length})," chars"]}),v.jsxs("p",{children:["Your password is ",v.jsx("strong",{children:t})]})]})},pm="_App_p94la_1",hm="_star_p94la_7",Ec={App:pm,star:hm},mm=({marked:e,starId:t})=>v.jsx("span",{"data-star-id":t,className:Ec.star,role:"button",children:e?"★":"☆"}),gm=({value:e,total:t})=>{const[n,r]=_.useState(e||0),[l,o]=_.useState(0),i=_.useMemo(()=>Array.from({length:t}),[t]),a=m=>{var p;o(((p=m.target.dataset)==null?void 0:p.starId)??0)},u=()=>{o(0)},s=m=>{var p;r(((p=m.target.dataset)==null?void 0:p.starId)??n)};return v.jsx("div",{onMouseLeave:u,onMouseOver:a,onClick:s,children:i.map((m,p)=>v.jsx(mm,{marked:(l||n)>p,starId:p+1},`star_${p+1}`))})};function vm(){return v.jsx("div",{className:Ec.App,children:v.jsx(gm,{value:2,total:5})})}function ym(){const[e,t]=_.useState(""),n=l=>[...l].filter(o=>Number.isInteger(+o)&&o!==" ").join(""),r=l=>{const o=n(l.target.value);t(o.length>3?"+("+o.substring(0,3)+") - "+o.substring(3):o)};return v.jsxs("div",{className:"container text-center",children:[v.jsx("input",{type:"tel",id:"phone",maxLength:16,placeholder:"Mobile number",autoComplete:"off",style:{fontSize:"1.5rem",marginBottom:"1rem"},value:e,onChange:r}),v.jsx("div",{children:v.jsx("label",{htmlFor:"phone",children:"+(123) - 4567890"})})]})}var Pn=(e=>(e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e))(Pn||{}),$l=(e=>(e.TOP="Top",e.BOTTOM="Bottom",e))($l||{}),Hl=(e=>(e.LEFT="Left",e.RIGHT="Right",e))(Hl||{});const wm=()=>{const[e,t]=_.useState(Hl.LEFT),[n,r]=_.useState($l.TOP),[l,o]=_.useState(Pn.SUCCESS),[i,a]=_.useState("This is a toast message!"),[u,s]=_.useState(5),[m,p]=_.useState([]),h=[];return _.useEffect(()=>()=>{h.forEach(k=>clearTimeout(k))},[]),{horizontalPosition:e,verticalPosition:n,type:l,message:i,duration:u,toastMessages:m,setHorizontalPosition:t,setVerticalPosition:r,setType:o,setMessage:a,setDuration:s,showToast:()=>{const k={id:Date.now(),message:i,type:l};p(d=>[...d,k]);const P=setTimeout(()=>{p(d=>d.filter(f=>f.id!==k.id))},u*1e3);h.push(P)},removeToast:k=>{p(P=>P.filter(d=>d.id!==k))}}},Sm="_main_slx1h_2",xm="_message_slx1h_1",km="_toastContainer_slx1h_28",_m="_toast_slx1h_28",Em="_success_slx1h_40",Cm="_error_slx1h_43",Nm="_warning_slx1h_46",Pm="_info_slx1h_49",Rm="_remove_slx1h_70",jm="_tcLeftTop_slx1h_75",Tm="_tcLeftBottom_slx1h_79",Lm="_tcRightTop_slx1h_83",Mm="_tcRightBottom_slx1h_87",Dm="_appearFromLeft_slx1h_1",zm="_fadeOutToLeft_slx1h_1",Fm="_appearFromRight_slx1h_1",Im="_fadeOutToRight_slx1h_1",$n={main:Sm,message:xm,toastContainer:km,toast:_m,success:Em,error:Cm,warning:Nm,info:Pm,remove:Rm,tcLeftTop:jm,tcLeftBottom:Tm,tcRightTop:Lm,tcRightBottom:Mm,appearFromLeft:Dm,"fade-out-left":"_fade-out-left_slx1h_95",fadeOutToLeft:zm,appearFromRight:Fm,"fade-out-right":"_fade-out-right_slx1h_119",fadeOutToRight:Im},Om=({id:e,message:t,type:n,removeToast:r})=>v.jsxs("div",{className:`${$n.toast} ${$n[n]}`,children:[v.jsx("span",{className:"toast-message",children:t}),v.jsx("button",{className:$n.remove,onClick:()=>r(e),children:"✕"})]}),Am=()=>{const{horizontalPosition:e,verticalPosition:t,type:n,message:r,duration:l,toastMessages:o,setHorizontalPosition:i,setVerticalPosition:a,setType:u,setMessage:s,setDuration:m,showToast:p,removeToast:h}=wm(),w=`tc${e}${t}`;return v.jsxs("div",{className:$n.main,children:[v.jsxs("form",{children:[v.jsxs("select",{name:"position",id:"horizontal-position",value:e,onChange:y=>i(y.target.value),children:[v.jsx("option",{value:Hl.LEFT,children:"Left"}),v.jsx("option",{value:Hl.RIGHT,children:"Right"})]}),v.jsxs("select",{name:"position",id:"vertical-position",value:t,onChange:y=>a(y.target.value),children:[v.jsx("option",{value:$l.TOP,children:"Top"}),v.jsx("option",{value:$l.BOTTOM,children:"Bottom"})]}),v.jsxs("select",{name:"type",id:"type",value:n,onChange:y=>u(y.target.value),children:[v.jsx("option",{value:Pn.SUCCESS,children:"Success"}),v.jsx("option",{value:Pn.ERROR,children:"Error"}),v.jsx("option",{value:Pn.WARNING,children:"Warning"}),v.jsx("option",{value:Pn.INFO,children:"Info"})]}),v.jsx("input",{type:"text",name:"message",id:"message",placeholder:"Message",value:r,onChange:y=>s(y.target.value)}),v.jsxs("label",{htmlFor:"duration",className:"flex",children:["Duration"," ",v.jsx("input",{type:"range",name:"duration",id:"duration",min:"3",max:"10",value:l,onChange:y=>m(Number(y.target.value))})]}),v.jsx("button",{type:"button",className:"btn btn-primary",onClick:p,children:"Show Toast"})]}),o.length>0&&v.jsx("div",{className:`${$n.toastContainer} ${$n[w]}`,children:o.map(y=>v.jsx(Om,{...y,removeToast:h},y.id))})]})},Um="_App_110i9_1",Bm="_item_110i9_36",$m="_editBtn_110i9_42",Hm="_deleteBtn_110i9_45",Rl={App:Um,item:Bm,editBtn:$m,deleteBtn:Hm};function Vm({items:e,handleEditClick:t,handleDeleteClick:n}){return e.map((r,l)=>v.jsxs("li",{className:Rl.item,children:[v.jsx("span",{children:r.value}),v.jsxs("div",{children:[v.jsx("button",{className:Rl.editBtn,onClick:()=>t(r),children:"Edit"}),v.jsx("button",{className:Rl.deleteBtn,onClick:()=>n(l),children:"Delete"})]})]},r.id))}const Wm=()=>{const[e,t]=_.useState(""),[n,r]=_.useState([]),[l,o]=_.useState(null),i=h=>{h.preventDefault(),l?u(e):a(e),t("")},a=h=>{r(n.concat({value:h,id:new Date().getTime()}))},u=h=>{const w=[...n],y=w.find(k=>k.id===l.id);y.value=h,r(w),o(null)},s=({id:h,value:w})=>{t(w),o({id:h,value:w})},m=()=>{t(""),o(null)},p=h=>{(l==null?void 0:l.id)===n[h].id&&(t(""),o(null)),r(n.filter((w,y)=>y!==h))};return v.jsxs("div",{className:Rl.App,children:[v.jsxs("form",{onSubmit:i,children:[v.jsx("input",{type:"text",value:e,placeholder:"Enter your todo",onChange:h=>t(h.target.value)}),v.jsx("button",{type:"submit",disabled:!e,children:l?"Update":"Submit"}),v.jsx("button",{type:"reset",onClick:m,disabled:!(e||l),children:"Cancel"})]}),v.jsx(Vm,{items:n,handleEditClick:s,handleDeleteClick:p})]})},Qm=[v.jsx(Oh,{}),v.jsx(kh,{}),v.jsx(vm,{}),v.jsx(om,{}),v.jsx(Zh,{}),v.jsx(ym,{}),v.jsx(Am,{}),v.jsx(fm,{}),v.jsx(Wm,{}),v.jsx(Kh,{}),v.jsx(Th,{}),v.jsx(zh,{})];function Km(){const e=eh(),t=(e==null?void 0:e.level)??0;return v.jsxs("div",{className:"container",children:[v.jsx(bh,{heading:e.name}),Qm[+t]]})}const Wu=new Map([["sadanandpai",{name:"Sadanand Pai",pic:"https://avatars.githubusercontent.com/u/12962887"}],["NikhilJHA01",{name:"Nikhil Jha",pic:"https://avatars.githubusercontent.com/u/63518046"}],["noorulaink00",{name:"Noor Ul Ain Khan",pic:"https://avatars.githubusercontent.com/u/65324193"}],["deepu0",{name:"Deepak Kumar",pic:"https://avatars.githubusercontent.com/u/22304384"}],["deepakRikhav",{name:"Deepak Rikhav",pic:"https://avatars.githubusercontent.com/u/97227284"}],["arpansaha13",{name:"Arpan Saha",pic:"https://avatars.githubusercontent.com/u/82361490"}],["deepakrajkranti",{name:"Deepak Raj",pic:"https://avatars.githubusercontent.com/u/88797436"}]]),Gm="_challengeGrid_k7tqa_1",Ym="_challengeCard_k7tqa_8",Xm="_disabled_k7tqa_25",Zm="_developer_k7tqa_50",Jm="_name_k7tqa_63",_n={challengeGrid:Gm,challengeCard:Ym,disabled:Xm,new:"_new_k7tqa_39",developer:Zm,name:Jm};function qm(){return v.jsx("div",{className:_n.challengeGrid,children:_c.map(e=>{var t,n;return v.jsxs("a",{className:`${_n.challengeCard} ${e.link==="#"&&_n.disabled}`,href:e.link,children:[e.isNew&&v.jsx("span",{className:_n.new,children:"New"}),v.jsxs("div",{children:[v.jsx("h3",{children:e.title}),e.developer&&v.jsxs("div",{className:_n.developer,children:[v.jsx("img",{src:(t=Wu.get(e.developer))==null?void 0:t.pic,alt:""}),v.jsx("span",{className:_n.name,children:(n=Wu.get(e.developer))==null?void 0:n.name})]})]})]},e.title)})})}function bm(){return v.jsxs("div",{className:"container text-center",children:[v.jsxs("h1",{children:["Frontend Mini Challenges ",v.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",children:v.jsx("img",{style:{width:"35px",height:"35px",verticalAlign:"text-bottom"},src:"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",alt:"github repo"})})]}),v.jsx("h4",{children:"Challenges built using React"}),v.jsx("a",{href:"/frontend-mini-challenges/native",children:"Switch to JavaScript version"}),v.jsx(qm,{})]})}const eg="_h1_12dvk_1",tg="_github_12dvk_4",ng="_hero_12dvk_11",rg="_routes_12dvk_15",ul={h1:eg,github:tg,hero:ng,routes:rg};function lg(){return v.jsxs("div",{className:"container text-center",children:[v.jsxs("h1",{className:ul.h1,children:["Frontend Mini Challenges",v.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",children:v.jsx("img",{className:ul.github,src:"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",alt:"github repo"})})]}),v.jsx("h3",{children:"Collection of frontend challenges for learning and interviews"}),v.jsx("img",{className:ul.hero,src:"https://github.com/sadanandpai/frontend-mini-challenges/raw/main/cover.png",loading:"lazy",alt:"brand"}),v.jsxs("div",{className:ul.routes,children:[v.jsxs("a",{href:"https://sadanandpai.github.io/frontend-mini-challenges/native/",children:["View challenges in",v.jsx("br",{}),"JavaScript"]}),v.jsxs("a",{href:"https://sadanandpai.github.io/frontend-mini-challenges/react/dist/#/challenges",children:["View challenges in",v.jsx("br",{}),"React"]})]})]})}var Si={},Cc={exports:{}},Ve={},Nc={exports:{}},Pc={};/** + */function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[o,i]=_.useState(!1),a=()=>{i(u=>!u),l(n)};return _.useEffect(()=>{r&&i(r===n)},[n,r]),v.jsxs("div",{className:Nl.accordion,children:[v.jsxs("div",{className:Nl["accordion-title"],children:[v.jsx("h3",{children:e}),v.jsx("button",{onClick:a,className:Nl["accordion-icon"],children:o?"-":"+"})]}),o&&v.jsx("p",{children:t})]},n)},xh=[{id:1,title:"Do I have to allow the use of cookies?",info:"Unicorn vinyl poutine brooklyn, next level direct trade iceland. Shaman copper mug church-key coloring book, whatever poutine normcore fixie cred kickstarter post-ironic street art."},{id:2,title:"How do I change my My Page password?",info:"Coloring book forage photo booth gentrify lumbersexual. Migas chillwave poutine synth shoreditch, enamel pin thundercats fashion axe roof party polaroid chartreuse."},{id:3,title:"What is BankID?",info:"Enamel pin fam sustainable woke whatever venmo. Authentic asymmetrical put a bird on it, lumbersexual activated charcoal kinfolk banjo cred pickled sartorial."},{id:4,title:"Whose birth number can I use?",info:"Edison bulb direct trade gentrify beard lo-fi seitan sustainable roof party franzen occupy squid. Knausgaard cronut succulents, scenester readymade shabby chic lyft. Copper mug meh vegan gentrify."},{id:5,title:"When do I recieve a password ordered by letter?",info:"Locavore franzen fashion axe live-edge neutra irony synth af tilde shabby chic man braid chillwave waistcoat copper mug messenger bag. Banjo snackwave blog, microdosing thundercats migas vaporware viral lo-fi seitan "}];function kh(){const[e,t]=_.useState(!0),[n,r]=_.useState(null),l=(i=null)=>{r(e?null:i)},o=()=>{e&&r(-1),t(!e)};return v.jsxs("div",{className:Nl.App,children:[v.jsxs("h4",{children:[v.jsx("label",{htmlFor:"max-open",children:"Is multiple open accordion allowed?"}),v.jsx("input",{type:"checkbox",id:"max-open",checked:e,onChange:o})]}),v.jsx("div",{children:xh.map(i=>v.jsx(Sh,{multiple:e,openAccordionId:n,setIdOfOpenAccordion:l,...i},i.id))})]})}class _h{constructor(t=[]){wu(this,"trie");this.trie={},this.addWordsToTrie(t)}addWordsToTrie(t){for(let n of t){let r=this.trie;n=n.toLowerCase();for(const l of n)r.hasOwnProperty(l)||(r[l]={}),r=r[l];r.end=!0}}getWordsFromTrie(t,n){t=t.toLowerCase();let r=this.trie;for(const l of t)if(r=r[l],!r)return[];return this.getWordsByDFS(r,n,t)}getWordsByDFS(t,n=1/0,r="",l=[]){if(t.end&&(l.push(r),l.length===n))return l;for(const o in t)if(t.hasOwnProperty(o)&&(this.getWordsByDFS(t[o],n,r+o,l),l.length===n))break;return l}}const Eh=e=>{const[n,r]=_.useState(""),[l,o]=_.useState([]),[i,a]=_.useState(null),u=_.useRef(new _h(e)),s=w=>{const y=w.target.value;r(w.target.value),o(y?u.current.getWordsFromTrie(y,5):[]),a(null)};return _.useEffect(()=>{if(i!==null){const w=l[i];r(w)}},[i,l]),[n,s,i,l,w=>{if(w.key==="Enter"&&i!==null){const y=l[i];r(y),o([]),a(null)}w.key==="ArrowDown"&&(w.preventDefault(),a(y=>y===null||y===l.length-1?0:y+1)),w.key==="ArrowUp"&&(w.preventDefault(),a(y=>y===null||y===0?l.length-1:y-1))},w=>{r(w),o([]),a(null)},w=>{a(w)}]},Ch=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],Ph="_main_1uppu_1",Nh="_suggestions_1uppu_12",Rh="_highlight_1uppu_27",jh="_loader_1uppu_37",rn={main:Ph,suggestions:Nh,highlight:Rh,loader:jh},Th=()=>{const[e,t,n,r,l,o,i]=Eh(Ch),a=_.useRef(null);return v.jsxs("div",{className:rn.main,children:[v.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),v.jsx("input",{type:"search",ref:a,autoComplete:"off",spellCheck:"false",placeholder:"Search for Country","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onChange:t,onKeyDown:l}),v.jsx("ul",{className:rn.suggestions,children:r.map((u,s)=>v.jsx("li",{className:n===s?`${rn.highlight}`:"",onClick:()=>o(u),onMouseOver:()=>i(s),onMouseLeave:()=>i(null),children:u},s))})]})};function Lh(e,t=500){let n=null;return function(...l){n&&(clearTimeout(n),n=null),n=setTimeout(e,t,...l)}}const Mh=5;async function Hu(e){try{return(await(await fetch(`https://api.github.com/search/users?per_page=${Mh}&q=${e}`)).json()).items.map(r=>r.login)}catch{return[]}}function Dh(){const[e,t]=_.useState(""),[n,r]=_.useState([]),[l,o]=_.useState(null),[i,a]=_.useState(!1),[u,s]=_.useState(""),m=_.useCallback(Lh(async N=>{a(!0);try{const d=await Hu(N);d.length>0?(r(d),s("")):(r([]),s("No results found"))}catch{r([]),s("Error occurred while fetching suggestions")}a(!1)},300),[Hu]),p=()=>{r([]),o(null),s("")},h=N=>{if(N.key==="Enter"&&l!==null){const d=n[l];t(d),p()}N.key==="ArrowDown"&&(N.preventDefault(),o(d=>d===null||d===n.length-1?0:d+1)),N.key==="ArrowUp"&&(N.preventDefault(),o(d=>d===null||d===0?n.length-1:d-1))},w=N=>{const d=N.target.value;t(d),d.length>0?m(d):p()},y=N=>{t(N),p()};return _.useEffect(()=>{if(l!==null){const N=n[l];t(N)}},[l,n]),{userText:e,suggestions:n,isLoading:i,suggestionFocus:l,errorMessage:u,handleInputChange:w,handleSuggestionClick:y,handleKeyDown:h,handleSuggestionFocus:N=>{o(N)}}}function zh(){const{userText:e,suggestions:t,isLoading:n,suggestionFocus:r,errorMessage:l,handleInputChange:o,handleSuggestionClick:i,handleKeyDown:a,handleSuggestionFocus:u}=Dh();return v.jsxs("div",{className:rn.main,children:[v.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),v.jsx("input",{type:"search",id:"userInput",autoComplete:"off",spellCheck:"false",placeholder:"Search for GitHub username","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onKeyDown:a,onChange:o}),n&&v.jsx("div",{id:"loader",className:rn.loader}),l&&v.jsx("div",{id:"info",children:l}),v.jsx("ul",{className:rn.suggestions,children:t.map((s,m)=>v.jsx("li",{className:r===m?`${rn.highlight}`:"",onClick:()=>i(s),onMouseOver:()=>u(m),onMouseLeave:()=>u(null),children:s},m))})]})}const Fh="_main_6qdtw_1",Ih={main:Fh};function Oh(){const[e,t]=_.useState(0),n=_.useRef(1),r=a=>{n.current=a},l=()=>{t(a=>a+n.current)},o=()=>{t(a=>a-n.current)},i=()=>{t(0)};return v.jsxs("main",{className:Ih.main,children:[v.jsx("h2",{children:e}),v.jsxs("div",{children:[v.jsx("button",{onClick:o,children:"-"}),v.jsx("button",{onClick:l,children:"+"})]}),v.jsxs("div",{children:[v.jsx("label",{htmlFor:"step",children:"Icrement/Decrement by"}),v.jsx("input",{type:"number",id:"step",defaultValue:n.current,onChange:a=>r(a.target.valueAsNumber)})]}),v.jsx("div",{children:v.jsx("button",{onClick:i,children:"Reset"})})]})}function Sa({onComplete:e,defaultValue:t=""}){const[n,r]=_.useState(t),l=()=>{e(n)},o=i=>{i.key==="Enter"&&l()};return v.jsx("input",{type:"text",autoFocus:!0,onBlur:l,onKeyUp:o,value:n,onChange:i=>r(i.target.value)})}const Ah="_app_8fex5_1",Uh="_list_8fex5_6",Bh="_editList_8fex5_22",$h="_indent_8fex5_30",Hh="_controls_8fex5_34",Ue={app:Ah,list:Uh,editList:Bh,indent:$h,controls:Hh};function Vh({node:e,parent:t,onNodeDeletion:n,onNodeUpdate:r}){const[l,o]=_.useState(!1),i=a=>{r(t,e,a),o(!1)};return l?v.jsxs("li",{className:`${Ue.list} ${Ue.editList}`,children:["📄 ",v.jsx(Sa,{defaultValue:e.name,onComplete:i})]}):v.jsxs("li",{className:Ue.list,children:[v.jsxs("button",{className:Ue.button,children:["📄 ",e.name]}),v.jsxs("div",{className:Ue.controls,children:[v.jsx("button",{onClick:()=>o(!0),children:"✏️"}),v.jsx("button",{onClick:()=>n(t,e),children:"🗑️"})]})]})}function Wh({expanded:e,toggleExpand:t,parent:n,node:r,onNodeDeletion:l,onNodeUpdate:o,onNew:i}){const[a,u]=_.useState(!1),s=m=>{n&&(o(n,r,m),u(!1))};return a?v.jsxs("li",{className:`${Ue.list} ${Ue.editList}`,children:[e?"📂":"📁"," ",v.jsx(Sa,{defaultValue:r==null?void 0:r.name,onComplete:s})]}):v.jsxs("li",{className:Ue.list,"data-root":n===null,children:[v.jsxs("button",{onClick:t,children:[e?"📂":"📁"," ",r==null?void 0:r.name]}),v.jsxs("div",{className:Ue.controls,children:[v.jsx("button",{className:"edit",onClick:()=>u(!0),children:"✏️"}),v.jsx("button",{className:"new-file",onClick:()=>i(!1),children:"📄"}),v.jsx("button",{className:"new-folder",onClick:()=>i(!0),children:"🗂"}),v.jsx("button",{className:"delete",onClick:()=>l(n,r),children:"🗑️"})]})]})}function kc({node:e,parent:t,onNodeAdditon:n,onNodeDeletion:r,onNodeUpdate:l}){var w;const[o,i]=_.useState(!1),[a,u]=_.useState(!1),s=_.useRef(!1),m=y=>{y.stopPropagation(),i(!o)},p=y=>{s.current=y,u(!a),i(!0)},h=y=>{y&&n(e,{name:y,id:new Date().getTime().toString(),isFolder:s.current}),u(!1)};return v.jsxs(v.Fragment,{children:[v.jsx(Wh,{expanded:o,toggleExpand:m,parent:t,node:e,onNodeDeletion:r,onNodeUpdate:l,onNew:p}),o&&v.jsxs("div",{className:Ue.indent,children:[(w=e.nodes)==null?void 0:w.map(y=>y.isFolder?v.jsx(kc,{node:y,parent:e,onNodeAdditon:n,onNodeDeletion:r,onNodeUpdate:l},y.id):v.jsx(Vh,{node:y,parent:e,onNodeDeletion:r,onNodeUpdate:l},y.id)),a&&v.jsxs("li",{className:`${Ue.list} ${Ue.editList}`,children:[s.current?"📁":"📄"," ",v.jsx(Sa,{onComplete:h})]})]})]})}const Qh={id:"root",name:"root",isFolder:!0,nodes:[{id:"1",name:"public",isFolder:!0,nodes:[{id:"11",name:"images",isFolder:!0,nodes:[{id:"111",name:"cover.png"},{id:"112",name:"icons",isFolder:!0,nodes:[{id:"1121",name:"arrow.svg"}]}]},{id:"12",name:"public_nested_file"}]},{id:"2",name:"src",isFolder:!0,nodes:[{id:"21",name:"components",isFolder:!0,nodes:[{id:"21",name:"index.js"},{id:"22",name:"index.html"},{id:"23",name:"index.css"}]},{id:"22",name:"main.jsx"},{id:"23",name:"App.jsx"},{id:"24",name:"app.module.css"}]},{id:"3",name:"dist",isFolder:!0,nodes:[{id:"31",name:"index.js"},{id:"32",name:"index.html"},{id:"33",name:"index.css"}]},{id:"4",name:"package.json",nodes:[]},{id:"5",name:"package-lock.json",nodes:[]}]};function Kh(){const[e,t]=_.useState(Qh),n=(o,i)=>{const a={...e},u=[...o.nodes??[]];u.push({...i,nodes:[]}),o.id==="root"?a.nodes=u:o.nodes=u,t(a)},r=(o,i)=>{var s;const a={...e},u=(s=o.nodes)==null?void 0:s.filter(m=>m.id!==i.id);o.id==="root"?a.nodes=u:o.nodes=u,t(a)},l=(o,i,a)=>{var p;const u={...e},s=((p=o.nodes)==null?void 0:p.map(h=>h))??[],m=s.findIndex(h=>h.id===i.id);s[m]={...s[m],name:a},o.id==="root"?u.nodes=s:o.nodes=s,t(u)};return v.jsx("div",{className:Ue.app,children:v.jsx(kc,{node:e,parent:null,onNodeAdditon:n,onNodeDeletion:r,onNodeUpdate:l})})}const Gh="_app_wqhfe_1",Yh="_widget_wqhfe_13",Xh="_text_wqhfe_18",Vo={app:Gh,widget:Yh,text:Xh};function Zh(){const[e,t]=_.useState(),[n,r]=_.useState(!1),[l,o]=_.useState(1),[i,a]=_.useState(!1),[u,s]=_.useState(!1),[m,p]=_.useState(!1);_.useEffect(()=>{t(Math.round(100*Math.random()))},[]);const h=y=>{y.preventDefault(),le?(s(!0),a(!1)):(p(!0),a(!1),s(!1),r(!0))},w=()=>{t(Math.round(100*Math.random())),p(!1),a(!1),s(!1),r(!1),o(1)};return v.jsxs("div",{className:Vo.app,children:[v.jsxs("form",{onSubmit:h,children:[v.jsx("label",{htmlFor:"input",children:"Guess a Number between 0 and 100"}),v.jsx("input",{id:"input",type:"number",value:l,placeholder:"Guess-Number",onChange:y=>o(Number(y.target.value))}),v.jsxs("div",{className:Vo.widget,children:[v.jsx("button",{type:"reset",onClick:()=>w(),children:"Reset"}),v.jsx("button",{type:"submit",onClick:y=>h(y),disabled:n,children:"Check"})]})]}),v.jsxs("div",{className:Vo.text,children:[i&&v.jsxs("p",{children:["Your guess is ",v.jsx("b",{children:"Less"})," than the actual number"]}),u&&v.jsxs("p",{children:["Your guess is ",v.jsx("b",{children:"Higher"})," than the actual number"]}),m&&v.jsxs("p",{children:["Your guess is ",v.jsx("b",{children:"right"})]})]})]})}const _c=[{title:"Counter",link:"#/0/counter",difficulty:"easy",developer:"sadanandpai",tags:[]},{title:"Accordion",link:"#/1/accordion",developer:"NikhilJHA01",difficulty:"easy",tags:[]},{title:"Star Rating",link:"#/2/star-Rating",difficulty:"easy",developer:"NikhilJHA01",tags:[]},{title:"Light Dark Mode",link:"#/3/light-dark-mode",difficulty:"easy",developer:"NikhilJHA01",tags:[]},{title:"Guess the number",link:"#/4/Guess-the-number",difficulty:"easy",developer:"deepakrajkranti",tags:[]},{title:"Telephone formatter",link:"#/5/telephone-formatter",difficulty:"easy",developer:"arpansaha13",tags:[]},{title:"Toast Popup",link:"#/6/toast-popup",difficulty:"medium",developer:"deepu0",tags:[]},{title:"Password Strength",link:"#/7/password-strength",difficulty:"medium",developer:"deepu0",tags:[]},{title:"Todo List",link:"#/8/todo-list",difficulty:"medium",developer:"deepakrajkranti",tags:[],isNew:!0},{title:"File Explorer",link:"#/9/file-explorer",difficulty:"hard",developer:"sadanandpai",tags:[],isNew:!0},{title:"Typeahead / Autocomplete (offline)",link:"#/10/autocomplete-offline",difficulty:"hard",developer:"deepu0",tags:[],isNew:!0},{title:"Typeahead / Autocomplete (online)",link:"#/11/autocomplete-online",difficulty:"hard",developer:"deepu0",tags:[],isNew:!0}],Jh="_nav_19h5h_1",qh="_logo_19h5h_8",Vu={nav:Jh,logo:qh};function bh({heading:e="Challenge"}){return v.jsxs("nav",{className:Vu.nav,children:[v.jsx("a",{href:"#/challenges",children:"Home"}),v.jsx("h1",{children:em(e)}),v.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",children:v.jsx("img",{className:Vu.logo,src:"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",alt:"github repo"})})]})}const em=e=>{const t=_c.find(n=>n.link.includes(e));return(t==null?void 0:t.title)||"Challenge"},tm="_darkTheme_1hd3l_7",nm="_lightTheme_1hd3l_13",rm="_main_1hd3l_19",Wo={darkTheme:tm,lightTheme:nm,main:rm},lm=()=>{const[e,t]=_.useState("");return _.useEffect(()=>{const r=localStorage.getItem("theme");r&&t(r)},[]),_.useEffect(()=>{localStorage.setItem("theme",e)},[e]),{theme:e,toggleTheme:()=>{t(e==="dark-theme"?"light-theme":"dark-theme")}}};function om(){const{theme:e,toggleTheme:t}=lm();return v.jsxs("main",{className:`${Wo.main} ${e==="dark-theme"?Wo.darkTheme:Wo.lightTheme}`,children:[v.jsx("h1",{children:"Try to toggle the theme and see the change !!!"}),v.jsx("button",{onClick:t,children:"Toggle Theme"})]})}const im=()=>{const[e,t]=_.useState(""),n=/\d/,r=/[A-Z]/,l=/[a-z]/,o=/[^A-Za-z0-9]/,i=h=>h>8?"Strong":h>5?"Medium":"Weak",a=h=>{let w=0;return h.length>3&&(w=Math.min(6,Math.floor(h.length/3)),w+=+n.test(h)+ +r.test(h)+ +l.test(h)+ +o.test(h)),w},u=h=>{const w=h.target.value;t(w)},s=a(e),m=i(s),p={lc:l.test(e),uc:r.test(e),num:n.test(e),sym:o.test(e)};return[e,m,s,p,u]},am="_main_yas6p_1",um="_indicators_yas6p_6",sm="_active_yas6p_14",cm="_progressContainer_yas6p_17",dm="_progressBar_yas6p_25",Mt={main:am,indicators:um,active:sm,progressContainer:cm,progressBar:dm},fm=()=>{const[e,t,n,r,l]=im();return v.jsxs("div",{className:Mt.main,children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:"password-length",children:"Enter the password"}),v.jsx("br",{}),v.jsx("br",{}),v.jsx("input",{type:"text",id:"password",min:"8",max:"32",autoFocus:!0,autoComplete:"off",value:e,onChange:l})]}),v.jsxs("div",{className:Mt.indicators,children:[v.jsx("span",{className:r.lc?Mt.active:"",children:"Lowercase"}),v.jsx("span",{className:r.uc?Mt.active:"",children:"Uppercase"}),v.jsx("span",{className:r.num?Mt.active:"",children:"Number"}),v.jsx("span",{className:r.sym?Mt.active:"",children:"Symbols"})]}),v.jsx("div",{className:Mt.progressContainer,children:v.jsx("div",{className:Mt.progressBar,style:{width:`${n*10}%`,backgroundColor:n>5?n>8?"green":"orange":"red"}})}),v.jsxs("p",{children:["Password has ",v.jsx("strong",{children:e.length})," chars"]}),v.jsxs("p",{children:["Your password is ",v.jsx("strong",{children:t})]})]})},pm="_App_p94la_1",hm="_star_p94la_7",Ec={App:pm,star:hm},mm=({marked:e,starId:t})=>v.jsx("span",{"data-star-id":t,className:Ec.star,role:"button",children:e?"★":"☆"}),gm=({value:e,total:t})=>{const[n,r]=_.useState(e||0),[l,o]=_.useState(0),i=_.useMemo(()=>Array.from({length:t}),[t]),a=m=>{var p;o(((p=m.target.dataset)==null?void 0:p.starId)??0)},u=()=>{o(0)},s=m=>{var p;r(((p=m.target.dataset)==null?void 0:p.starId)??n)};return v.jsx("div",{onMouseLeave:u,onMouseOver:a,onClick:s,children:i.map((m,p)=>v.jsx(mm,{marked:(l||n)>p,starId:p+1},`star_${p+1}`))})};function vm(){return v.jsx("div",{className:Ec.App,children:v.jsx(gm,{value:2,total:5})})}function ym(){const[e,t]=_.useState(""),n=l=>[...l].filter(o=>Number.isInteger(+o)&&o!==" ").join(""),r=l=>{const o=n(l.target.value);t(o.length>3?"+("+o.substring(0,3)+") - "+o.substring(3):o)};return v.jsxs("div",{className:"container text-center",children:[v.jsx("input",{type:"tel",id:"phone",maxLength:16,placeholder:"Mobile number",autoComplete:"off",style:{fontSize:"1.5rem",marginBottom:"1rem"},value:e,onChange:r}),v.jsx("div",{children:v.jsx("label",{htmlFor:"phone",children:"+(123) - 4567890"})})]})}var Nn=(e=>(e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e))(Nn||{}),$l=(e=>(e.TOP="Top",e.BOTTOM="Bottom",e))($l||{}),Hl=(e=>(e.LEFT="Left",e.RIGHT="Right",e))(Hl||{});const wm=()=>{const[e,t]=_.useState(Hl.LEFT),[n,r]=_.useState($l.TOP),[l,o]=_.useState(Nn.SUCCESS),[i,a]=_.useState("This is a toast message!"),[u,s]=_.useState(5),[m,p]=_.useState([]),h=[];return _.useEffect(()=>()=>{h.forEach(k=>clearTimeout(k))},[]),{horizontalPosition:e,verticalPosition:n,type:l,message:i,duration:u,toastMessages:m,setHorizontalPosition:t,setVerticalPosition:r,setType:o,setMessage:a,setDuration:s,showToast:()=>{const k={id:Date.now(),message:i,type:l};p(d=>[...d,k]);const N=setTimeout(()=>{p(d=>d.filter(f=>f.id!==k.id))},u*1e3);h.push(N)},removeToast:k=>{p(N=>N.filter(d=>d.id!==k))}}},Sm="_main_slx1h_2",xm="_message_slx1h_1",km="_toastContainer_slx1h_28",_m="_toast_slx1h_28",Em="_success_slx1h_40",Cm="_error_slx1h_43",Pm="_warning_slx1h_46",Nm="_info_slx1h_49",Rm="_remove_slx1h_70",jm="_tcLeftTop_slx1h_75",Tm="_tcLeftBottom_slx1h_79",Lm="_tcRightTop_slx1h_83",Mm="_tcRightBottom_slx1h_87",Dm="_appearFromLeft_slx1h_1",zm="_fadeOutToLeft_slx1h_1",Fm="_appearFromRight_slx1h_1",Im="_fadeOutToRight_slx1h_1",$n={main:Sm,message:xm,toastContainer:km,toast:_m,success:Em,error:Cm,warning:Pm,info:Nm,remove:Rm,tcLeftTop:jm,tcLeftBottom:Tm,tcRightTop:Lm,tcRightBottom:Mm,appearFromLeft:Dm,"fade-out-left":"_fade-out-left_slx1h_95",fadeOutToLeft:zm,appearFromRight:Fm,"fade-out-right":"_fade-out-right_slx1h_119",fadeOutToRight:Im},Om=({id:e,message:t,type:n,removeToast:r})=>v.jsxs("div",{className:`${$n.toast} ${$n[n]}`,children:[v.jsx("span",{className:"toast-message",children:t}),v.jsx("button",{className:$n.remove,onClick:()=>r(e),children:"✕"})]}),Am=()=>{const{horizontalPosition:e,verticalPosition:t,type:n,message:r,duration:l,toastMessages:o,setHorizontalPosition:i,setVerticalPosition:a,setType:u,setMessage:s,setDuration:m,showToast:p,removeToast:h}=wm(),w=`tc${e}${t}`;return v.jsxs("div",{className:$n.main,children:[v.jsxs("form",{children:[v.jsxs("select",{name:"position",id:"horizontal-position",value:e,onChange:y=>i(y.target.value),children:[v.jsx("option",{value:Hl.LEFT,children:"Left"}),v.jsx("option",{value:Hl.RIGHT,children:"Right"})]}),v.jsxs("select",{name:"position",id:"vertical-position",value:t,onChange:y=>a(y.target.value),children:[v.jsx("option",{value:$l.TOP,children:"Top"}),v.jsx("option",{value:$l.BOTTOM,children:"Bottom"})]}),v.jsxs("select",{name:"type",id:"type",value:n,onChange:y=>u(y.target.value),children:[v.jsx("option",{value:Nn.SUCCESS,children:"Success"}),v.jsx("option",{value:Nn.ERROR,children:"Error"}),v.jsx("option",{value:Nn.WARNING,children:"Warning"}),v.jsx("option",{value:Nn.INFO,children:"Info"})]}),v.jsx("input",{type:"text",name:"message",id:"message",placeholder:"Message",value:r,onChange:y=>s(y.target.value)}),v.jsxs("label",{htmlFor:"duration",className:"flex",children:["Duration"," ",v.jsx("input",{type:"range",name:"duration",id:"duration",min:"3",max:"10",value:l,onChange:y=>m(Number(y.target.value))})]}),v.jsx("button",{type:"button",className:"btn btn-primary",onClick:p,children:"Show Toast"})]}),o.length>0&&v.jsx("div",{className:`${$n.toastContainer} ${$n[w]}`,children:o.map(y=>v.jsx(Om,{...y,removeToast:h},y.id))})]})},Um="_App_110i9_1",Bm="_item_110i9_36",$m="_editBtn_110i9_42",Hm="_deleteBtn_110i9_45",Rl={App:Um,item:Bm,editBtn:$m,deleteBtn:Hm};function Vm({items:e,handleEditClick:t,handleDeleteClick:n}){return e.map((r,l)=>v.jsxs("li",{className:Rl.item,children:[v.jsx("span",{children:r.value}),v.jsxs("div",{children:[v.jsx("button",{className:Rl.editBtn,onClick:()=>t(r),children:"Edit"}),v.jsx("button",{className:Rl.deleteBtn,onClick:()=>n(l),children:"Delete"})]})]},r.id))}const Wm=()=>{const[e,t]=_.useState(""),[n,r]=_.useState([]),[l,o]=_.useState(null),i=h=>{h.preventDefault(),l?u(e):a(e),t("")},a=h=>{r(n.concat({value:h,id:new Date().getTime()}))},u=h=>{const w=[...n],y=w.find(k=>k.id===l.id);y.value=h,r(w),o(null)},s=({id:h,value:w})=>{t(w),o({id:h,value:w})},m=()=>{t(""),o(null)},p=h=>{(l==null?void 0:l.id)===n[h].id&&(t(""),o(null)),r(n.filter((w,y)=>y!==h))};return v.jsxs("div",{className:Rl.App,children:[v.jsxs("form",{onSubmit:i,children:[v.jsx("input",{type:"text",value:e,placeholder:"Enter your todo",onChange:h=>t(h.target.value)}),v.jsx("button",{type:"submit",disabled:!e,children:l?"Update":"Submit"}),v.jsx("button",{type:"reset",onClick:m,disabled:!(e||l),children:"Cancel"})]}),v.jsx(Vm,{items:n,handleEditClick:s,handleDeleteClick:p})]})},Qm=[v.jsx(Oh,{}),v.jsx(kh,{}),v.jsx(vm,{}),v.jsx(om,{}),v.jsx(Zh,{}),v.jsx(ym,{}),v.jsx(Am,{}),v.jsx(fm,{}),v.jsx(Wm,{}),v.jsx(Kh,{}),v.jsx(Th,{}),v.jsx(zh,{})];function Km(){const e=eh(),t=(e==null?void 0:e.level)??0;return v.jsxs("div",{className:"container",children:[v.jsx(bh,{heading:e.name}),Qm[+t]]})}const Wu=new Map([["sadanandpai",{name:"Sadanand Pai",pic:"https://avatars.githubusercontent.com/u/12962887"}],["NikhilJHA01",{name:"Nikhil Jha",pic:"https://avatars.githubusercontent.com/u/63518046"}],["noorulaink00",{name:"Noor Ul Ain Khan",pic:"https://avatars.githubusercontent.com/u/65324193"}],["deepu0",{name:"Deepak Kumar",pic:"https://avatars.githubusercontent.com/u/22304384"}],["deepakRikhav",{name:"Deepak Rikhav",pic:"https://avatars.githubusercontent.com/u/97227284"}],["arpansaha13",{name:"Arpan Saha",pic:"https://avatars.githubusercontent.com/u/82361490"}],["deepakrajkranti",{name:"Deepak Raj",pic:"https://avatars.githubusercontent.com/u/88797436"}]]),Gm="_challengeGrid_1uxoo_1",Ym="_challengeCard_1uxoo_8",Xm="_disabled_1uxoo_25",Zm="_developer_1uxoo_50",Jm="_name_1uxoo_63",qm="_easy_1uxoo_66",bm="_medium_1uxoo_69",eg="_hard_1uxoo_72",bt={challengeGrid:Gm,challengeCard:Ym,disabled:Xm,new:"_new_1uxoo_39",developer:Zm,name:Jm,easy:qm,medium:bm,hard:eg};function tg(){return v.jsx("div",{className:bt.challengeGrid,children:_c.map(e=>{var t,n;return v.jsxs("a",{className:`${bt.challengeCard} ${e.link==="#"&&bt.disabled} ${bt[e.difficulty]}`,href:e.link,children:[e.isNew&&v.jsx("span",{className:bt.new,children:"New"}),v.jsxs("div",{children:[v.jsx("h3",{children:e.title}),e.developer&&v.jsxs("div",{className:bt.developer,children:[v.jsx("img",{src:(t=Wu.get(e.developer))==null?void 0:t.pic,alt:""}),v.jsx("span",{className:bt.name,children:(n=Wu.get(e.developer))==null?void 0:n.name})]})]})]},e.title)})})}function ng(){return v.jsxs("div",{className:"container text-center",children:[v.jsxs("h1",{children:["Frontend Mini Challenges ",v.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",children:v.jsx("img",{style:{width:"35px",height:"35px",verticalAlign:"text-bottom"},src:"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",alt:"github repo"})})]}),v.jsx("h4",{children:"Challenges built using React"}),v.jsx("a",{href:"/frontend-mini-challenges/native",children:"Switch to JavaScript version"}),v.jsx(tg,{})]})}const rg="_h1_12dvk_1",lg="_github_12dvk_4",og="_hero_12dvk_11",ig="_routes_12dvk_15",ul={h1:rg,github:lg,hero:og,routes:ig};function ag(){return v.jsxs("div",{className:"container text-center",children:[v.jsxs("h1",{className:ul.h1,children:["Frontend Mini Challenges",v.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",children:v.jsx("img",{className:ul.github,src:"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",alt:"github repo"})})]}),v.jsx("h3",{children:"Collection of frontend challenges for learning and interviews"}),v.jsx("img",{className:ul.hero,src:"https://github.com/sadanandpai/frontend-mini-challenges/raw/main/cover.png",loading:"lazy",alt:"brand"}),v.jsxs("div",{className:ul.routes,children:[v.jsxs("a",{href:"https://sadanandpai.github.io/frontend-mini-challenges/native/",children:["View challenges in",v.jsx("br",{}),"JavaScript"]}),v.jsxs("a",{href:"https://sadanandpai.github.io/frontend-mini-challenges/react/dist/#/challenges",children:["View challenges in",v.jsx("br",{}),"React"]})]})]})}var Si={},Cc={exports:{}},Ve={},Pc={exports:{}},Nc={};/** * @license React * scheduler.production.min.js * @@ -49,7 +49,7 @@ var Uf=Object.defineProperty;var Bf=(e,t,n)=>t in e?Uf(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(L,F){var B=L.length;L.push(F);e:for(;0>>1,se=L[ne];if(0>>1;nel(gt,B))atl(Sn,gt)?(L[ne]=Sn,L[at]=B,ne=at):(L[ne]=gt,L[ee]=B,ne=ee);else if(atl(Sn,B))L[ne]=Sn,L[at]=B,ne=at;else break e}}return F}function l(L,F){var B=L.sortIndex-F.sortIndex;return B!==0?B:L.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],s=[],m=1,p=null,h=3,w=!1,y=!1,k=!1,P=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(L){for(var F=n(s);F!==null;){if(F.callback===null)r(s);else if(F.startTime<=L)r(s),F.sortIndex=F.expirationTime,t(u,F);else break;F=n(s)}}function c(L){if(k=!1,g(L),!y)if(n(u)!==null)y=!0,mt(N);else{var F=n(s);F!==null&&it(c,F.startTime-L)}}function N(L,F){y=!1,k&&(k=!1,d(D),D=-1),w=!0;var B=h;try{for(g(F),p=n(u);p!==null&&(!(p.expirationTime>F)||L&&!_e());){var ne=p.callback;if(typeof ne=="function"){p.callback=null,h=p.priorityLevel;var se=ne(p.expirationTime<=F);F=e.unstable_now(),typeof se=="function"?p.callback=se:p===n(u)&&r(u),g(F)}else r(u);p=n(u)}if(p!==null)var wn=!0;else{var ee=n(s);ee!==null&&it(c,ee.startTime-F),wn=!1}return wn}finally{p=null,h=B,w=!1}}var j=!1,R=null,D=-1,K=5,$=-1;function _e(){return!(e.unstable_now()-$L||125ne?(L.sortIndex=B,t(s,L),n(u)===null&&L===n(s)&&(k?(d(D),D=-1):k=!0,it(c,B-ne))):(L.sortIndex=se,t(u,L),y||w||(y=!0,mt(N))),L},e.unstable_shouldYield=_e,e.unstable_wrapCallback=function(L){var F=h;return function(){var B=h;h=F;try{return L.apply(this,arguments)}finally{h=B}}}})(Pc);Nc.exports=Pc;var og=Nc.exports;/** + */(function(e){function t(L,F){var B=L.length;L.push(F);e:for(;0>>1,se=L[ne];if(0>>1;nel(gt,B))atl(xn,gt)?(L[ne]=xn,L[at]=B,ne=at):(L[ne]=gt,L[ee]=B,ne=ee);else if(atl(xn,B))L[ne]=xn,L[at]=B,ne=at;else break e}}return F}function l(L,F){var B=L.sortIndex-F.sortIndex;return B!==0?B:L.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],s=[],m=1,p=null,h=3,w=!1,y=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(L){for(var F=n(s);F!==null;){if(F.callback===null)r(s);else if(F.startTime<=L)r(s),F.sortIndex=F.expirationTime,t(u,F);else break;F=n(s)}}function c(L){if(k=!1,g(L),!y)if(n(u)!==null)y=!0,mt(P);else{var F=n(s);F!==null&&it(c,F.startTime-L)}}function P(L,F){y=!1,k&&(k=!1,d(D),D=-1),w=!0;var B=h;try{for(g(F),p=n(u);p!==null&&(!(p.expirationTime>F)||L&&!_e());){var ne=p.callback;if(typeof ne=="function"){p.callback=null,h=p.priorityLevel;var se=ne(p.expirationTime<=F);F=e.unstable_now(),typeof se=="function"?p.callback=se:p===n(u)&&r(u),g(F)}else r(u);p=n(u)}if(p!==null)var Sn=!0;else{var ee=n(s);ee!==null&&it(c,ee.startTime-F),Sn=!1}return Sn}finally{p=null,h=B,w=!1}}var j=!1,R=null,D=-1,K=5,$=-1;function _e(){return!(e.unstable_now()-$L||125ne?(L.sortIndex=B,t(s,L),n(u)===null&&L===n(s)&&(k?(d(D),D=-1):k=!0,it(c,B-ne))):(L.sortIndex=se,t(u,L),y||w||(y=!0,mt(P))),L},e.unstable_shouldYield=_e,e.unstable_wrapCallback=function(L){var F=h;return function(){var B=h;h=F;try{return L.apply(this,arguments)}finally{h=B}}}})(Nc);Pc.exports=Nc;var ug=Pc.exports;/** * @license React * react-dom.production.min.js * @@ -57,11 +57,11 @@ var Uf=Object.defineProperty;var Bf=(e,t,n)=>t in e?Uf(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Rc=_,He=og;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xi=Object.prototype.hasOwnProperty,ig=/^[: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]*$/,Qu={},Ku={};function ag(e){return xi.call(Ku,e)?!0:xi.call(Qu,e)?!1:ig.test(e)?Ku[e]=!0:(Qu[e]=!0,!1)}function ug(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 sg(e,t,n,r){if(t===null||typeof t>"u"||ug(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 Me(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Me(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){ke[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var xa=/[\-:]([a-z])/g;function ka(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(xa,ka);ke[t]=new Me(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(xa,ka);ke[t]=new Me(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(xa,ka);ke[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function _a(e,t,n,r){var l=ke.hasOwnProperty(t)?ke[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xi=Object.prototype.hasOwnProperty,sg=/^[: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]*$/,Qu={},Ku={};function cg(e){return xi.call(Ku,e)?!0:xi.call(Qu,e)?!1:sg.test(e)?Ku[e]=!0:(Qu[e]=!0,!1)}function dg(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 fg(e,t,n,r){if(t===null||typeof t>"u"||dg(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 Me(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Me(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){ke[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var xa=/[\-:]([a-z])/g;function ka(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(xa,ka);ke[t]=new Me(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(xa,ka);ke[t]=new Me(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(xa,ka);ke[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function _a(e,t,n,r){var l=ke.hasOwnProperty(t)?ke[t]:null;(l!==null?l.type!==0:r||!(2a||l[i]!==o[a]){var u=` -`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{Ko=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function cg(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=Go(e.type,!1),e;case 11:return e=Go(e.type.render,!1),e;case 1:return e=Go(e.type,!0),e;default:return""}}function Ci(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 jn:return"Fragment";case Rn:return"Portal";case ki:return"Profiler";case Ea:return"StrictMode";case _i:return"Suspense";case Ei:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lc:return(e.displayName||"Context")+".Consumer";case Tc:return(e._context.displayName||"Context")+".Provider";case Ca:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Na:return t=e.displayName||null,t!==null?t:Ci(e.type)||"Memo";case zt:t=e._payload,e=e._init;try{return Ci(e(t))}catch{}}return null}function dg(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 Ci(t);case 8:return t===Ea?"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 Yt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fg(e){var t=Dc(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cl(e){e._valueTracker||(e._valueTracker=fg(e))}function zc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vl(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 Ni(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yt(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 Fc(e,t){t=t.checked,t!=null&&_a(e,"checked",t,!1)}function Pi(e,t){Fc(e,t);var n=Yt(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")?Ri(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ri(e,t.type,Yt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xu(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 Ri(e,t,n){(t!=="number"||Vl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function Hn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=dl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pg=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){pg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function Uc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function Bc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Uc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var hg=ie({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 Li(e,t){if(t){if(hg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Mi(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 Di=null;function Pa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zi=null,Vn=null,Wn=null;function qu(e){if(e=tl(e)){if(typeof zi!="function")throw Error(C(280));var t=e.stateNode;t&&(t=So(t),zi(e.stateNode,e.type,t))}}function $c(e){Vn?Wn?Wn.push(e):Wn=[e]:Vn=e}function Hc(){if(Vn){var e=Vn,t=Wn;if(Wn=Vn=null,qu(e),t)for(e=0;e>>=0,e===0?32:31-(Cg(e)/Ng|0)|0}var fl=64,pl=4194304;function wr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~l;a!==0?r=wr(a):(o&=i,o!==0&&(r=wr(o)))}else i=n&~l,i!==0?r=wr(i):o!==0&&(r=wr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 br(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function Tg(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=Er),as=String.fromCharCode(32),us=!1;function ud(e,t){switch(e){case"keyup":return lv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function iv(e,t){switch(e){case"compositionend":return sd(t);case"keypress":return t.which!==32?null:(us=!0,as);case"textInput":return e=t.data,e===as&&us?null:e;default:return null}}function av(e,t){if(Tn)return e==="compositionend"||!Fa&&ud(e,t)?(e=id(),Tl=Ma=At=null,Tn=!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=fs(n)}}function pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hd(){for(var e=window,t=Vl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vl(e.document)}return t}function Ia(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 gv(e){var t=hd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pd(n.ownerDocument.documentElement,n)){if(r!==null&&Ia(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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ps(n,o);var i=ps(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,Ln=null,Bi=null,Nr=null,$i=!1;function hs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$i||Ln==null||Ln!==Vl(r)||(r=Ln,"selectionStart"in r&&Ia(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}),Nr&&Ur(Nr,r)||(Nr=r,r=Zl(Bi,"onSelect"),0zn||(e.current=Gi[zn],Gi[zn]=null,zn--)}function Z(e,t){zn++,Gi[zn]=e.current,e.current=t}var Xt={},Re=Jt(Xt),Fe=Jt(!1),dn=Xt;function Xn(e,t){var n=e.type.contextTypes;if(!n)return Xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ie(e){return e=e.childContextTypes,e!=null}function ql(){q(Fe),q(Re)}function xs(e,t,n){if(Re.current!==Xt)throw Error(C(168));Z(Re,t),Z(Fe,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 l in r)if(!(l in t))throw Error(C(108,dg(e)||"Unknown",l));return ie({},n,r)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xt,dn=Re.current,Z(Re,e),Z(Fe,Fe.current),!0}function ks(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=_d(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,q(Fe),q(Re),Z(Re,e)):q(Fe),Z(Fe,n)}var St=null,xo=!1,ai=!1;function Ed(e){St===null?St=[e]:St.push(e)}function Rv(e){xo=!0,Ed(e)}function qt(){if(!ai&&St!==null){ai=!0;var e=0,t=Y;try{var n=St;for(Y=1;e>=i,l-=i,xt=1<<32-rt(t)+l|n<D?(K=R,R=null):K=R.sibling;var $=h(d,R,g[D],c);if($===null){R===null&&(R=K);break}e&&R&&$.alternate===null&&t(d,R),f=o($,f,D),j===null?N=$:j.sibling=$,j=$,R=K}if(D===g.length)return n(d,R),te&&bt(d,D),N;if(R===null){for(;DD?(K=R,R=null):K=R.sibling;var _e=h(d,R,$.value,c);if(_e===null){R===null&&(R=K);break}e&&R&&_e.alternate===null&&t(d,R),f=o(_e,f,D),j===null?N=_e:j.sibling=_e,j=_e,R=K}if($.done)return n(d,R),te&&bt(d,D),N;if(R===null){for(;!$.done;D++,$=g.next())$=p(d,$.value,c),$!==null&&(f=o($,f,D),j===null?N=$:j.sibling=$,j=$);return te&&bt(d,D),N}for(R=r(d,R);!$.done;D++,$=g.next())$=w(R,d,D,$.value,c),$!==null&&(e&&$.alternate!==null&&R.delete($.key===null?D:$.key),f=o($,f,D),j===null?N=$:j.sibling=$,j=$);return e&&R.forEach(function(b){return t(d,b)}),te&&bt(d,D),N}function P(d,f,g,c){if(typeof g=="object"&&g!==null&&g.type===jn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case sl:e:{for(var N=g.key,j=f;j!==null;){if(j.key===N){if(N=g.type,N===jn){if(j.tag===7){n(d,j.sibling),f=l(j,g.props.children),f.return=d,d=f;break e}}else if(j.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===zt&&js(N)===j.type){n(d,j.sibling),f=l(j,g.props),f.ref=hr(d,j,g),f.return=d,d=f;break e}n(d,j);break}else t(d,j);j=j.sibling}g.type===jn?(f=sn(g.props.children,d.mode,c,g.key),f.return=d,d=f):(c=Al(g.type,g.key,g.props,null,d.mode,c),c.ref=hr(d,f,g),c.return=d,d=c)}return i(d);case Rn:e:{for(j=g.key;f!==null;){if(f.key===j)if(f.tag===4&&f.stateNode.containerInfo===g.containerInfo&&f.stateNode.implementation===g.implementation){n(d,f.sibling),f=l(f,g.children||[]),f.return=d,d=f;break e}else{n(d,f);break}else t(d,f);f=f.sibling}f=mi(g,d.mode,c),f.return=d,d=f}return i(d);case zt:return j=g._init,P(d,f,j(g._payload),c)}if(yr(g))return y(d,f,g,c);if(sr(g))return k(d,f,g,c);Sl(d,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,f!==null&&f.tag===6?(n(d,f.sibling),f=l(f,g),f.return=d,d=f):(n(d,f),f=hi(g,d.mode,c),f.return=d,d=f),i(d)):n(d,f)}return P}var Jn=Md(!0),Dd=Md(!1),nl={},pt=Jt(nl),Vr=Jt(nl),Wr=Jt(nl);function on(e){if(e===nl)throw Error(C(174));return e}function Qa(e,t){switch(Z(Wr,t),Z(Vr,e),Z(pt,nl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ti(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ti(t,e)}q(pt),Z(pt,t)}function qn(){q(pt),q(Vr),q(Wr)}function zd(e){on(Wr.current);var t=on(pt.current),n=Ti(t,e.type);t!==n&&(Z(Vr,e),Z(pt,n))}function Ka(e){Vr.current===e&&(q(pt),q(Vr))}var le=Jt(0);function oo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function Ga(){for(var e=0;en?n:4,e(!0);var r=si.transition;si.transition={};try{e(!1),t()}finally{Y=n,si.transition=r}}function Zd(){return Je().memoizedState}function Mv(e,t,n){var r=Kt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jd(e))qd(t,n);else if(n=Rd(e,t,n,r),n!==null){var l=Te();lt(n,e,r,l),bd(n,t,r)}}function Dv(e,t,n){var r=Kt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jd(e))qd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(l.hasEagerState=!0,l.eagerState=a,ot(a,i)){var u=t.interleaved;u===null?(l.next=l,Va(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Rd(e,t,l,r),n!==null&&(l=Te(),lt(n,e,r,l),bd(n,t,r))}}function Jd(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function qd(e,t){Pr=io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ja(e,n)}}var ao={readContext:Ze,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},zv={readContext:Ze,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Ls,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zl(4194308,4,Qd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){return zl(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();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=Mv.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:Ts,useDebugValue:qa,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=Ts(!1),t=e[0];return e=Lv.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,l=ct();if(te){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ve===null)throw Error(C(349));pn&30||Od(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ls(Ud.bind(null,r,o,e),[e]),r.flags|=2048,Gr(9,Ad.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ct(),t=ve.identifierPrefix;if(te){var n=kt,r=xt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qr++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{Ko=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function pg(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=Go(e.type,!1),e;case 11:return e=Go(e.type.render,!1),e;case 1:return e=Go(e.type,!0),e;default:return""}}function Ci(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 jn:return"Fragment";case Rn:return"Portal";case ki:return"Profiler";case Ea:return"StrictMode";case _i:return"Suspense";case Ei:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lc:return(e.displayName||"Context")+".Consumer";case Tc:return(e._context.displayName||"Context")+".Provider";case Ca:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pa:return t=e.displayName||null,t!==null?t:Ci(e.type)||"Memo";case zt:t=e._payload,e=e._init;try{return Ci(e(t))}catch{}}return null}function hg(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 Ci(t);case 8:return t===Ea?"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 Yt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mg(e){var t=Dc(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cl(e){e._valueTracker||(e._valueTracker=mg(e))}function zc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vl(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 Pi(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yt(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 Fc(e,t){t=t.checked,t!=null&&_a(e,"checked",t,!1)}function Ni(e,t){Fc(e,t);var n=Yt(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")?Ri(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ri(e,t.type,Yt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xu(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 Ri(e,t,n){(t!=="number"||Vl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function Hn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=dl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gg=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){gg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function Uc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function Bc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Uc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var vg=ie({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 Li(e,t){if(t){if(vg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Mi(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 Di=null;function Na(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zi=null,Vn=null,Wn=null;function qu(e){if(e=tl(e)){if(typeof zi!="function")throw Error(C(280));var t=e.stateNode;t&&(t=So(t),zi(e.stateNode,e.type,t))}}function $c(e){Vn?Wn?Wn.push(e):Wn=[e]:Vn=e}function Hc(){if(Vn){var e=Vn,t=Wn;if(Wn=Vn=null,qu(e),t)for(e=0;e>>=0,e===0?32:31-(Rg(e)/jg|0)|0}var fl=64,pl=4194304;function wr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~l;a!==0?r=wr(a):(o&=i,o!==0&&(r=wr(o)))}else i=n&~l,i!==0?r=wr(i):o!==0&&(r=wr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 br(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function Dg(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=Er),as=String.fromCharCode(32),us=!1;function ud(e,t){switch(e){case"keyup":return av.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function sv(e,t){switch(e){case"compositionend":return sd(t);case"keypress":return t.which!==32?null:(us=!0,as);case"textInput":return e=t.data,e===as&&us?null:e;default:return null}}function cv(e,t){if(Tn)return e==="compositionend"||!Fa&&ud(e,t)?(e=id(),Tl=Ma=At=null,Tn=!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=fs(n)}}function pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hd(){for(var e=window,t=Vl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vl(e.document)}return t}function Ia(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 wv(e){var t=hd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pd(n.ownerDocument.documentElement,n)){if(r!==null&&Ia(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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ps(n,o);var i=ps(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,Ln=null,Bi=null,Pr=null,$i=!1;function hs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$i||Ln==null||Ln!==Vl(r)||(r=Ln,"selectionStart"in r&&Ia(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pr&&Ur(Pr,r)||(Pr=r,r=Zl(Bi,"onSelect"),0zn||(e.current=Gi[zn],Gi[zn]=null,zn--)}function Z(e,t){zn++,Gi[zn]=e.current,e.current=t}var Xt={},Re=Jt(Xt),Fe=Jt(!1),fn=Xt;function Xn(e,t){var n=e.type.contextTypes;if(!n)return Xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ie(e){return e=e.childContextTypes,e!=null}function ql(){q(Fe),q(Re)}function xs(e,t,n){if(Re.current!==Xt)throw Error(C(168));Z(Re,t),Z(Fe,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 l in r)if(!(l in t))throw Error(C(108,hg(e)||"Unknown",l));return ie({},n,r)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xt,fn=Re.current,Z(Re,e),Z(Fe,Fe.current),!0}function ks(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=_d(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,q(Fe),q(Re),Z(Re,e)):q(Fe),Z(Fe,n)}var St=null,xo=!1,ai=!1;function Ed(e){St===null?St=[e]:St.push(e)}function Lv(e){xo=!0,Ed(e)}function qt(){if(!ai&&St!==null){ai=!0;var e=0,t=Y;try{var n=St;for(Y=1;e>=i,l-=i,xt=1<<32-rt(t)+l|n<D?(K=R,R=null):K=R.sibling;var $=h(d,R,g[D],c);if($===null){R===null&&(R=K);break}e&&R&&$.alternate===null&&t(d,R),f=o($,f,D),j===null?P=$:j.sibling=$,j=$,R=K}if(D===g.length)return n(d,R),te&&en(d,D),P;if(R===null){for(;DD?(K=R,R=null):K=R.sibling;var _e=h(d,R,$.value,c);if(_e===null){R===null&&(R=K);break}e&&R&&_e.alternate===null&&t(d,R),f=o(_e,f,D),j===null?P=_e:j.sibling=_e,j=_e,R=K}if($.done)return n(d,R),te&&en(d,D),P;if(R===null){for(;!$.done;D++,$=g.next())$=p(d,$.value,c),$!==null&&(f=o($,f,D),j===null?P=$:j.sibling=$,j=$);return te&&en(d,D),P}for(R=r(d,R);!$.done;D++,$=g.next())$=w(R,d,D,$.value,c),$!==null&&(e&&$.alternate!==null&&R.delete($.key===null?D:$.key),f=o($,f,D),j===null?P=$:j.sibling=$,j=$);return e&&R.forEach(function(b){return t(d,b)}),te&&en(d,D),P}function N(d,f,g,c){if(typeof g=="object"&&g!==null&&g.type===jn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case sl:e:{for(var P=g.key,j=f;j!==null;){if(j.key===P){if(P=g.type,P===jn){if(j.tag===7){n(d,j.sibling),f=l(j,g.props.children),f.return=d,d=f;break e}}else if(j.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===zt&&js(P)===j.type){n(d,j.sibling),f=l(j,g.props),f.ref=hr(d,j,g),f.return=d,d=f;break e}n(d,j);break}else t(d,j);j=j.sibling}g.type===jn?(f=cn(g.props.children,d.mode,c,g.key),f.return=d,d=f):(c=Al(g.type,g.key,g.props,null,d.mode,c),c.ref=hr(d,f,g),c.return=d,d=c)}return i(d);case Rn:e:{for(j=g.key;f!==null;){if(f.key===j)if(f.tag===4&&f.stateNode.containerInfo===g.containerInfo&&f.stateNode.implementation===g.implementation){n(d,f.sibling),f=l(f,g.children||[]),f.return=d,d=f;break e}else{n(d,f);break}else t(d,f);f=f.sibling}f=mi(g,d.mode,c),f.return=d,d=f}return i(d);case zt:return j=g._init,N(d,f,j(g._payload),c)}if(yr(g))return y(d,f,g,c);if(sr(g))return k(d,f,g,c);Sl(d,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,f!==null&&f.tag===6?(n(d,f.sibling),f=l(f,g),f.return=d,d=f):(n(d,f),f=hi(g,d.mode,c),f.return=d,d=f),i(d)):n(d,f)}return N}var Jn=Md(!0),Dd=Md(!1),nl={},pt=Jt(nl),Vr=Jt(nl),Wr=Jt(nl);function an(e){if(e===nl)throw Error(C(174));return e}function Qa(e,t){switch(Z(Wr,t),Z(Vr,e),Z(pt,nl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ti(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ti(t,e)}q(pt),Z(pt,t)}function qn(){q(pt),q(Vr),q(Wr)}function zd(e){an(Wr.current);var t=an(pt.current),n=Ti(t,e.type);t!==n&&(Z(Vr,e),Z(pt,n))}function Ka(e){Vr.current===e&&(q(pt),q(Vr))}var le=Jt(0);function oo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function Ga(){for(var e=0;en?n:4,e(!0);var r=si.transition;si.transition={};try{e(!1),t()}finally{Y=n,si.transition=r}}function Zd(){return Je().memoizedState}function Fv(e,t,n){var r=Kt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jd(e))qd(t,n);else if(n=Rd(e,t,n,r),n!==null){var l=Te();lt(n,e,r,l),bd(n,t,r)}}function Iv(e,t,n){var r=Kt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jd(e))qd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(l.hasEagerState=!0,l.eagerState=a,ot(a,i)){var u=t.interleaved;u===null?(l.next=l,Va(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Rd(e,t,l,r),n!==null&&(l=Te(),lt(n,e,r,l),bd(n,t,r))}}function Jd(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function qd(e,t){Nr=io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ja(e,n)}}var ao={readContext:Ze,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},Ov={readContext:Ze,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Ls,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zl(4194308,4,Qd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){return zl(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();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=Fv.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:Ts,useDebugValue:qa,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=Ts(!1),t=e[0];return e=zv.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,l=ct();if(te){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ve===null)throw Error(C(349));hn&30||Od(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ls(Ud.bind(null,r,o,e),[e]),r.flags|=2048,Gr(9,Ad.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ct(),t=ve.identifierPrefix;if(te){var n=kt,r=xt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[dt]=t,e[Hr]=r,sf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Mi(n,r),n){case"dialog":J("cancel",e),J("close",e),l=r;break;case"iframe":case"object":case"embed":J("load",e),l=r;break;case"video":case"audio":for(l=0;ler&&(t.flags|=128,r=!0,mr(o,!1),t.lanes=4194304)}else{if(!r)if(e=oo(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!te)return Ne(t),null}else 2*ue()-o.renderingStartTime>er&&n!==1073741824&&(t.flags|=128,r=!0,mr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ue(),t.sibling=null,n=le.current,Z(le,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return lu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ae&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Hv(e,t){switch(Aa(t),t.tag){case 1:return Ie(t.type)&&ql(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qn(),q(Fe),q(Re),Ga(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ka(t),null;case 13:if(q(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(le),null;case 4:return qn(),null;case 10:return Ha(t.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var kl=!1,Pe=!1,Vv=typeof WeakSet=="function"?WeakSet:Set,M=null;function An(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ae(e,t,r)}else n.current=null}function oa(e,t,n){try{n()}catch(r){ae(e,t,r)}}var Bs=!1;function Wv(e,t){if(Hi=Yl,e=hd(),Ia(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 l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,u=-1,s=0,m=0,p=e,h=null;t:for(;;){for(var w;p!==n||l!==0&&p.nodeType!==3||(a=i+l),p!==o||r!==0&&p.nodeType!==3||(u=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(w=p.firstChild)!==null;)h=p,p=w;for(;;){if(p===e)break t;if(h===n&&++s===l&&(a=i),h===o&&++m===r&&(u=i),(w=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=w}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vi={focusedElem:e,selectionRange:n},Yl=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var k=y.memoizedProps,P=y.memoizedState,d=t.stateNode,f=d.getSnapshotBeforeUpdate(t.elementType===t.type?k:et(t.type,k),P);d.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(c){ae(t,t.return,c)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return y=Bs,Bs=!1,y}function Rr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&oa(t,n,o)}l=l.next}while(l!==r)}}function Eo(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 ia(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 ff(e){var t=e.alternate;t!==null&&(e.alternate=null,ff(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[Hr],delete t[Ki],delete t[Nv],delete t[Pv])),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 pf(e){return e.tag===5||e.tag===3||e.tag===4}function $s(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pf(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 aa(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=Jl));else if(r!==4&&(e=e.child,e!==null))for(aa(e,t,n),e=e.sibling;e!==null;)aa(e,t,n),e=e.sibling}function ua(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(ua(e,t,n),e=e.sibling;e!==null;)ua(e,t,n),e=e.sibling}var Se=null,tt=!1;function Dt(e,t,n){for(n=n.child;n!==null;)hf(e,t,n),n=n.sibling}function hf(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(go,n)}catch{}switch(n.tag){case 5:Pe||An(n,t);case 6:var r=Se,l=tt;Se=null,Dt(e,t,n),Se=r,tt=l,Se!==null&&(tt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(tt?(e=Se,n=n.stateNode,e.nodeType===8?ii(e.parentNode,n):e.nodeType===1&&ii(e,n),Or(e)):ii(Se,n.stateNode));break;case 4:r=Se,l=tt,Se=n.stateNode.containerInfo,tt=!0,Dt(e,t,n),Se=r,tt=l;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&oa(n,t,i),l=l.next}while(l!==r)}Dt(e,t,n);break;case 1:if(!Pe&&(An(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ae(n,t,a)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,Dt(e,t,n),Pe=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function Hs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vv),t.forEach(function(r){var l=bv.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function qe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kv(r/1960))-r,10e?16:e,Ut===null)var r=!1;else{if(e=Ut,Ut=null,co=0,W&6)throw Error(C(331));var l=W;for(W|=4,M=e.current;M!==null;){var o=M,i=o.child;if(M.flags&16){var a=o.deletions;if(a!==null){for(var u=0;uue()-nu?un(e,0):tu|=n),Oe(e,t)}function kf(e,t){t===0&&(e.mode&1?(t=pl,pl<<=1,!(pl&130023424)&&(pl=4194304)):t=1);var n=Te();e=Nt(e,t),e!==null&&(br(e,t,n),Oe(e,n))}function qv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kf(e,n)}function bv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),kf(e,n)}var _f;_f=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ze=!1,Bv(e,t,n);ze=!!(e.flags&131072)}else ze=!1,te&&t.flags&1048576&&Cd(t,to,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fl(e,t),e=t.pendingProps;var l=Xn(t,Re.current);Kn(t,n),l=Xa(null,t,r,e,l,n);var o=Za();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ie(r)?(o=!0,bl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Wa(t),l.updater=ko,t.stateNode=l,l._reactInternals=t,qi(t,r,e,n),t=ta(null,t,r,!0,o,n)):(t.tag=0,te&&o&&Oa(t),je(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ty(r),e=et(r,e),l){case 0:t=ea(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=Fs(null,t,r,e,n);break e;case 14:t=Is(null,t,r,et(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),ea(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),Os(e,t,r,l,n);case 3:e:{if(of(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,l=o.element,jd(e,t),lo(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=bn(Error(C(423)),t),t=As(e,t,r,n,l);break e}else if(r!==l){l=bn(Error(C(424)),t),t=As(e,t,r,n,l);break e}else for(Be=Vt(t.stateNode.containerInfo.firstChild),$e=t,te=!0,nt=null,n=Dd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zn(),r===l){t=Pt(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return zd(t),e===null&&Xi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Wi(r,l)?i=null:o!==null&&Wi(r,o)&&(t.flags|=32),lf(e,t),je(e,t,i,n),t.child;case 6:return e===null&&Xi(t),null;case 13:return af(e,t,n);case 4:return Qa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Jn(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),Fs(e,t,r,l,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,Z(no,r._currentValue),r._currentValue=i,o!==null)if(ot(o.value,i)){if(o.children===l.children&&!Fe.current){t=Pt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=_t(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var m=s.pending;m===null?u.next=u:(u.next=m.next,m.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Zi(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(C(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Zi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}je(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Kn(t,n),l=Ze(l),r=r(l),t.flags|=1,je(e,t,r,n),t.child;case 14:return r=t.type,l=et(r,t.pendingProps),l=et(r.type,l),Is(e,t,r,l,n);case 15:return nf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),Fl(e,t),t.tag=1,Ie(r)?(e=!0,bl(t)):e=!1,Kn(t,n),Ld(t,r,l),qi(t,r,l,n),ta(null,t,r,!0,e,n);case 19:return uf(e,t,n);case 22:return rf(e,t,n)}throw Error(C(156,t.tag))};function Ef(e,t){return Xc(e,t)}function ey(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 Ye(e,t,n,r){return new ey(e,t,n,r)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ty(e){if(typeof e=="function")return iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ca)return 11;if(e===Na)return 14}return 2}function Gt(e,t){var n=e.alternate;return n===null?(n=Ye(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 Al(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")iu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case jn:return sn(n.children,l,o,t);case Ea:i=8,l|=8;break;case ki:return e=Ye(12,n,t,l|2),e.elementType=ki,e.lanes=o,e;case _i:return e=Ye(13,n,t,l),e.elementType=_i,e.lanes=o,e;case Ei:return e=Ye(19,n,t,l),e.elementType=Ei,e.lanes=o,e;case Mc:return No(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Tc:i=10;break e;case Lc:i=9;break e;case Ca:i=11;break e;case Na:i=14;break e;case zt:i=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Ye(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function sn(e,t,n,r){return e=Ye(7,e,r,t),e.lanes=n,e}function No(e,t,n,r){return e=Ye(22,e,r,t),e.elementType=Mc,e.lanes=n,e.stateNode={isHidden:!1},e}function hi(e,t,n){return e=Ye(6,e,null,t),e.lanes=n,e}function mi(e,t,n){return t=Ye(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ny(e,t,n,r,l){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=Xo(0),this.expirationTimes=Xo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function au(e,t,n,r,l,o,i,a,u){return e=new ny(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ye(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wa(o),e}function ry(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rf)}catch(e){console.error(e)}}Rf(),Cc.exports=Ve;var uy=Cc.exports,Zs=uy;Si.createRoot=Zs.createRoot,Si.hydrateRoot=Zs.hydrateRoot;const sy=mh([{path:"/:level/:name",element:v.jsx(Km,{})},{path:"/challenges",element:v.jsx(bm,{})},{path:"/",element:v.jsx(lg,{})}]);Si.createRoot(document.getElementById("root")).render(v.jsx(ic.StrictMode,{children:v.jsx(dh,{router:sy})})); +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function fi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bv=typeof WeakMap=="function"?WeakMap:Map;function ef(e,t,n){n=_t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){so||(so=!0,sa=r),bi(e,t)},n}function tf(e,t,n){n=_t(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){bi(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bi(e,t),typeof r!="function"&&(Qt===null?Qt=new Set([this]):Qt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bv;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=ey.bind(null,e,t,n),t.then(e,e))}function Ds(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 zs(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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=_t(-1,1),t.tag=2,Wt(n,t,1))),n.lanes|=1),e)}var $v=Rt.ReactCurrentOwner,ze=!1;function je(e,t,n,r){t.child=e===null?Dd(t,null,n,r):Jn(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var o=t.ref;return Kn(t,l),r=Xa(e,t,n,r,o,l),n=Za(),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Nt(e,t,l)):(te&&n&&Oa(t),t.flags|=1,je(e,t,r,l),t.child)}function Is(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!iu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,nf(e,t,o,r,l)):(e=Al(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ur,n(i,r)&&e.ref===t.ref)return Nt(e,t,l)}return t.flags|=1,e=Gt(o,r),e.ref=t.ref,e.return=t,t.child=e}function nf(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Ur(o,r)&&e.ref===t.ref)if(ze=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(ze=!0);else return t.lanes=e.lanes,Nt(e,t,l)}return ea(e,t,n,r,l)}function rf(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Z(Un,Ae),Ae|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Z(Un,Ae),Ae|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Z(Un,Ae),Ae|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Z(Un,Ae),Ae|=r;return je(e,t,l,n),t.child}function lf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ea(e,t,n,r,l){var o=Ie(n)?fn:Re.current;return o=Xn(t,o),Kn(t,l),n=Xa(e,t,n,r,o,l),r=Za(),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Nt(e,t,l)):(te&&r&&Oa(t),t.flags|=1,je(e,t,n,l),t.child)}function Os(e,t,n,r,l){if(Ie(n)){var o=!0;bl(t)}else o=!1;if(Kn(t,l),t.stateNode===null)Fl(e,t),Ld(t,n,r),qi(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var u=i.context,s=n.contextType;typeof s=="object"&&s!==null?s=Ze(s):(s=Ie(n)?fn:Re.current,s=Xn(t,s));var m=n.getDerivedStateFromProps,p=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||u!==s)&&Rs(t,i,r,s),Ft=!1;var h=t.memoizedState;i.state=h,lo(t,r,i,l),u=t.memoizedState,a!==r||h!==u||Fe.current||Ft?(typeof m=="function"&&(Ji(t,n,m,r),u=t.memoizedState),(a=Ft||Ns(t,n,a,r,h,u,s))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,jd(e,t),a=t.memoizedProps,s=t.type===t.elementType?a:et(t.type,a),i.props=s,p=t.pendingProps,h=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ze(u):(u=Ie(n)?fn:Re.current,u=Xn(t,u));var w=n.getDerivedStateFromProps;(m=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==p||h!==u)&&Rs(t,i,r,u),Ft=!1,h=t.memoizedState,i.state=h,lo(t,r,i,l);var y=t.memoizedState;a!==p||h!==y||Fe.current||Ft?(typeof w=="function"&&(Ji(t,n,w,r),y=t.memoizedState),(s=Ft||Ns(t,n,s,r,h,y,u)||!1)?(m||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=u,r=s):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ta(e,t,n,r,o,l)}function ta(e,t,n,r,l,o){lf(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&ks(t,n,!1),Nt(e,t,o);r=t.stateNode,$v.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Jn(t,e.child,null,o),t.child=Jn(t,null,a,o)):je(e,t,a,o),t.memoizedState=r.state,l&&ks(t,n,!0),t.child}function of(e){var t=e.stateNode;t.pendingContext?xs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xs(e,t.context,!1),Qa(e,t.containerInfo)}function As(e,t,n,r,l){return Zn(),Ua(l),t.flags|=256,je(e,t,n,r),t.child}var na={dehydrated:null,treeContext:null,retryLane:0};function ra(e){return{baseLanes:e,cachePool:null,transitions:null}}function af(e,t,n){var r=t.pendingProps,l=le.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Z(le,l&1),e===null)return Xi(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):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Po(i,r,0,null),e=cn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ra(n),t.memoizedState=na,e):ba(t,i));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Hv(e,t,i,r,a,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Gt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?o=Gt(a,o):(o=cn(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?ra(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=na,r}return o=e.child,e=o.sibling,r=Gt(o,{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 ba(e,t){return t=Po({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xl(e,t,n,r){return r!==null&&Ua(r),Jn(t,e.child,null,n),e=ba(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hv(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=fi(Error(C(422))),xl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Po({mode:"visible",children:r.children},l,0,null),o=cn(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Jn(t,e.child,null,i),t.child.memoizedState=ra(i),t.memoizedState=na,o);if(!(t.mode&1))return xl(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(C(419)),r=fi(o,r,void 0),xl(e,t,i,r)}if(a=(i&e.childLanes)!==0,ze||a){if(r=ve,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Pt(e,l),lt(r,e,l,-1))}return ou(),r=fi(Error(C(421))),xl(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=ty.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Be=Vt(l.nextSibling),$e=t,te=!0,nt=null,e!==null&&(Ke[Ge++]=xt,Ke[Ge++]=kt,Ke[Ge++]=pn,xt=e.id,kt=e.overflow,pn=t),t=ba(t,r.children),t.flags|=4096,t)}function Us(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zi(e.return,t,n)}function pi(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function uf(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(je(e,t,r.children,n),r=le.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&&Us(e,n,t);else if(e.tag===19)Us(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(Z(le,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&oo(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),pi(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&oo(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}pi(t,!0,n,null,o);break;case"together":pi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Nt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=Gt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vv(e,t,n){switch(t.tag){case 3:of(t),Zn();break;case 5:zd(t);break;case 1:Ie(t.type)&&bl(t);break;case 4:Qa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Z(no,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Z(le,le.current&1),t.flags|=128,null):n&t.child.childLanes?af(e,t,n):(Z(le,le.current&1),e=Nt(e,t,n),e!==null?e.sibling:null);Z(le,le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Z(le,le.current),r)break;return null;case 22:case 23:return t.lanes=0,rf(e,t,n)}return Nt(e,t,n)}var sf,la,cf,df;sf=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}};la=function(){};cf=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,an(pt.current);var o=null;switch(n){case"input":l=Pi(e,l),r=Pi(e,r),o=[];break;case"select":l=ie({},l,{value:void 0}),r=ie({},r,{value:void 0}),o=[];break;case"textarea":l=ji(e,l),r=ji(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Jl)}Li(n,r);var i;n=null;for(s in l)if(!r.hasOwnProperty(s)&&l.hasOwnProperty(s)&&l[s]!=null)if(s==="style"){var a=l[s];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Mr.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in r){var u=r[s];if(a=l!=null?l[s]:void 0,r.hasOwnProperty(s)&&u!==a&&(u!=null||a!=null))if(s==="style")if(a){for(i in a)!a.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&a[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(s,n)),n=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Mr.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&J("scroll",e),o||a===u||(o=[])):(o=o||[]).push(s,u))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};df=function(e,t,n,r){n!==r&&(t.flags|=4)};function mr(e,t){if(!te)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 Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wv(e,t,n){var r=t.pendingProps;switch(Aa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Ie(t.type)&&ql(),Pe(t),null;case 3:return r=t.stateNode,qn(),q(Fe),q(Re),Ga(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(fa(nt),nt=null))),la(e,t),Pe(t),null;case 5:Ka(t);var l=an(Wr.current);if(n=t.type,e!==null&&t.stateNode!=null)cf(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return Pe(t),null}if(e=an(pt.current),wl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[dt]=t,r[Hr]=o,e=(t.mode&1)!==0,n){case"dialog":J("cancel",r),J("close",r);break;case"iframe":case"object":case"embed":J("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[dt]=t,e[Hr]=r,sf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Mi(n,r),n){case"dialog":J("cancel",e),J("close",e),l=r;break;case"iframe":case"object":case"embed":J("load",e),l=r;break;case"video":case"audio":for(l=0;ler&&(t.flags|=128,r=!0,mr(o,!1),t.lanes=4194304)}else{if(!r)if(e=oo(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!te)return Pe(t),null}else 2*ue()-o.renderingStartTime>er&&n!==1073741824&&(t.flags|=128,r=!0,mr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ue(),t.sibling=null,n=le.current,Z(le,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return lu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ae&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Qv(e,t){switch(Aa(t),t.tag){case 1:return Ie(t.type)&&ql(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qn(),q(Fe),q(Re),Ga(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ka(t),null;case 13:if(q(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(le),null;case 4:return qn(),null;case 10:return Ha(t.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var kl=!1,Ne=!1,Kv=typeof WeakSet=="function"?WeakSet:Set,M=null;function An(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ae(e,t,r)}else n.current=null}function oa(e,t,n){try{n()}catch(r){ae(e,t,r)}}var Bs=!1;function Gv(e,t){if(Hi=Yl,e=hd(),Ia(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 l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,u=-1,s=0,m=0,p=e,h=null;t:for(;;){for(var w;p!==n||l!==0&&p.nodeType!==3||(a=i+l),p!==o||r!==0&&p.nodeType!==3||(u=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(w=p.firstChild)!==null;)h=p,p=w;for(;;){if(p===e)break t;if(h===n&&++s===l&&(a=i),h===o&&++m===r&&(u=i),(w=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=w}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vi={focusedElem:e,selectionRange:n},Yl=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var k=y.memoizedProps,N=y.memoizedState,d=t.stateNode,f=d.getSnapshotBeforeUpdate(t.elementType===t.type?k:et(t.type,k),N);d.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(c){ae(t,t.return,c)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return y=Bs,Bs=!1,y}function Rr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&oa(t,n,o)}l=l.next}while(l!==r)}}function Eo(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 ia(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 ff(e){var t=e.alternate;t!==null&&(e.alternate=null,ff(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[Hr],delete t[Ki],delete t[jv],delete t[Tv])),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 pf(e){return e.tag===5||e.tag===3||e.tag===4}function $s(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pf(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 aa(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=Jl));else if(r!==4&&(e=e.child,e!==null))for(aa(e,t,n),e=e.sibling;e!==null;)aa(e,t,n),e=e.sibling}function ua(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(ua(e,t,n),e=e.sibling;e!==null;)ua(e,t,n),e=e.sibling}var Se=null,tt=!1;function Dt(e,t,n){for(n=n.child;n!==null;)hf(e,t,n),n=n.sibling}function hf(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(go,n)}catch{}switch(n.tag){case 5:Ne||An(n,t);case 6:var r=Se,l=tt;Se=null,Dt(e,t,n),Se=r,tt=l,Se!==null&&(tt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(tt?(e=Se,n=n.stateNode,e.nodeType===8?ii(e.parentNode,n):e.nodeType===1&&ii(e,n),Or(e)):ii(Se,n.stateNode));break;case 4:r=Se,l=tt,Se=n.stateNode.containerInfo,tt=!0,Dt(e,t,n),Se=r,tt=l;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&oa(n,t,i),l=l.next}while(l!==r)}Dt(e,t,n);break;case 1:if(!Ne&&(An(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ae(n,t,a)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,Dt(e,t,n),Ne=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function Hs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kv),t.forEach(function(r){var l=ny.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function qe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xv(r/1960))-r,10e?16:e,Ut===null)var r=!1;else{if(e=Ut,Ut=null,co=0,W&6)throw Error(C(331));var l=W;for(W|=4,M=e.current;M!==null;){var o=M,i=o.child;if(M.flags&16){var a=o.deletions;if(a!==null){for(var u=0;uue()-nu?sn(e,0):tu|=n),Oe(e,t)}function kf(e,t){t===0&&(e.mode&1?(t=pl,pl<<=1,!(pl&130023424)&&(pl=4194304)):t=1);var n=Te();e=Pt(e,t),e!==null&&(br(e,t,n),Oe(e,n))}function ty(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kf(e,n)}function ny(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),kf(e,n)}var _f;_f=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ze=!1,Vv(e,t,n);ze=!!(e.flags&131072)}else ze=!1,te&&t.flags&1048576&&Cd(t,to,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fl(e,t),e=t.pendingProps;var l=Xn(t,Re.current);Kn(t,n),l=Xa(null,t,r,e,l,n);var o=Za();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ie(r)?(o=!0,bl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Wa(t),l.updater=ko,t.stateNode=l,l._reactInternals=t,qi(t,r,e,n),t=ta(null,t,r,!0,o,n)):(t.tag=0,te&&o&&Oa(t),je(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ly(r),e=et(r,e),l){case 0:t=ea(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=Fs(null,t,r,e,n);break e;case 14:t=Is(null,t,r,et(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),ea(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),Os(e,t,r,l,n);case 3:e:{if(of(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,l=o.element,jd(e,t),lo(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=bn(Error(C(423)),t),t=As(e,t,r,n,l);break e}else if(r!==l){l=bn(Error(C(424)),t),t=As(e,t,r,n,l);break e}else for(Be=Vt(t.stateNode.containerInfo.firstChild),$e=t,te=!0,nt=null,n=Dd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zn(),r===l){t=Nt(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return zd(t),e===null&&Xi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Wi(r,l)?i=null:o!==null&&Wi(r,o)&&(t.flags|=32),lf(e,t),je(e,t,i,n),t.child;case 6:return e===null&&Xi(t),null;case 13:return af(e,t,n);case 4:return Qa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Jn(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),Fs(e,t,r,l,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,Z(no,r._currentValue),r._currentValue=i,o!==null)if(ot(o.value,i)){if(o.children===l.children&&!Fe.current){t=Nt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=_t(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var m=s.pending;m===null?u.next=u:(u.next=m.next,m.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Zi(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(C(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Zi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}je(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Kn(t,n),l=Ze(l),r=r(l),t.flags|=1,je(e,t,r,n),t.child;case 14:return r=t.type,l=et(r,t.pendingProps),l=et(r.type,l),Is(e,t,r,l,n);case 15:return nf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),Fl(e,t),t.tag=1,Ie(r)?(e=!0,bl(t)):e=!1,Kn(t,n),Ld(t,r,l),qi(t,r,l,n),ta(null,t,r,!0,e,n);case 19:return uf(e,t,n);case 22:return rf(e,t,n)}throw Error(C(156,t.tag))};function Ef(e,t){return Xc(e,t)}function ry(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 Ye(e,t,n,r){return new ry(e,t,n,r)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ly(e){if(typeof e=="function")return iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ca)return 11;if(e===Pa)return 14}return 2}function Gt(e,t){var n=e.alternate;return n===null?(n=Ye(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 Al(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")iu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case jn:return cn(n.children,l,o,t);case Ea:i=8,l|=8;break;case ki:return e=Ye(12,n,t,l|2),e.elementType=ki,e.lanes=o,e;case _i:return e=Ye(13,n,t,l),e.elementType=_i,e.lanes=o,e;case Ei:return e=Ye(19,n,t,l),e.elementType=Ei,e.lanes=o,e;case Mc:return Po(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Tc:i=10;break e;case Lc:i=9;break e;case Ca:i=11;break e;case Pa:i=14;break e;case zt:i=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Ye(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function cn(e,t,n,r){return e=Ye(7,e,r,t),e.lanes=n,e}function Po(e,t,n,r){return e=Ye(22,e,r,t),e.elementType=Mc,e.lanes=n,e.stateNode={isHidden:!1},e}function hi(e,t,n){return e=Ye(6,e,null,t),e.lanes=n,e}function mi(e,t,n){return t=Ye(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oy(e,t,n,r,l){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=Xo(0),this.expirationTimes=Xo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function au(e,t,n,r,l,o,i,a,u){return e=new oy(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ye(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wa(o),e}function iy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rf)}catch(e){console.error(e)}}Rf(),Cc.exports=Ve;var dy=Cc.exports,Zs=dy;Si.createRoot=Zs.createRoot,Si.hydrateRoot=Zs.hydrateRoot;const fy=mh([{path:"/:level/:name",element:v.jsx(Km,{})},{path:"/challenges",element:v.jsx(ng,{})},{path:"/",element:v.jsx(ag,{})}]);Si.createRoot(document.getElementById("root")).render(v.jsx(ic.StrictMode,{children:v.jsx(dh,{router:fy})})); diff --git a/react/dist/index.html b/react/dist/index.html index 94872eac6..02af923f3 100644 --- a/react/dist/index.html +++ b/react/dist/index.html @@ -10,8 +10,8 @@ name="description" content="Frontend Mini Challenges is a collection of frontend interview coding challenges" /> - - + +