From 69ac0fb68dc1c0ecd9780860ca9f483d242e80ef Mon Sep 17 00:00:00 2001 From: pgarr Date: Sun, 26 Jan 2025 12:02:42 +0100 Subject: [PATCH 1/2] add ci workflow --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d5b4d0f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm ci + - run: npm run lint + - run: npm test + - run: npm run build --if-present From 82314d83109f10c5c6ffc33c9dc177ada748f4c8 Mon Sep 17 00:00:00 2001 From: pgarr Date: Sun, 26 Jan 2025 15:20:20 +0100 Subject: [PATCH 2/2] fix typing --- dist/assets/CategoriesBar-BbRhE4Cs.js | 3 + dist/assets/Home-Bi34brdX.js | 1 + dist/assets/RecipeDetails-BJWCttBR.js | 50 + dist/assets/RecipesList-d9SdWYK4.js | 56 + dist/assets/index-BXnzDVwr.js | 3304 +++++++++++++++++ dist/assets/index-BcJajN2L.css | 5 + dist/index.html | 20 + dist/manifest.json | 15 + dist/robots.txt | 3 + .../Recipes/RecipesDetails/RecipeDetails.tsx | 5 +- .../Recipes/RecipesList/FiltersBar.tsx | 16 +- .../Recipes/RecipesList/RecipesList.tsx | 6 +- src/types.ts | 5 + src/vite-env.d.ts | 1 + vite.config.ts | 2 +- 15 files changed, 3481 insertions(+), 11 deletions(-) create mode 100644 dist/assets/CategoriesBar-BbRhE4Cs.js create mode 100644 dist/assets/Home-Bi34brdX.js create mode 100644 dist/assets/RecipeDetails-BJWCttBR.js create mode 100644 dist/assets/RecipesList-d9SdWYK4.js create mode 100644 dist/assets/index-BXnzDVwr.js create mode 100644 dist/assets/index-BcJajN2L.css create mode 100644 dist/index.html create mode 100644 dist/manifest.json create mode 100644 dist/robots.txt diff --git a/dist/assets/CategoriesBar-BbRhE4Cs.js b/dist/assets/CategoriesBar-BbRhE4Cs.js new file mode 100644 index 0000000..063bef6 --- /dev/null +++ b/dist/assets/CategoriesBar-BbRhE4Cs.js @@ -0,0 +1,3 @@ +import{j as a,S as i,H as r,g as l,O as c,T as p,F as d,p as x,q as g,s as f,t as j,v as u,w as m,x as y}from"./index-BXnzDVwr.js";const k=({isLoading:s,children:n})=>s?a.jsx(i,{}):n,C=r.span` + margin: 0 5px; +`,v={main:x,snack:g,vegetarian:f,drink:j,sweet:u,spicy:m,sauce:y},S=({categoryName:s})=>{const{t:n}=l("translation",{keyPrefix:"categories"});return a.jsx(c,{placement:"top",overlay:a.jsx(p,{id:`tooltip-${s}`,children:n(s)}),children:a.jsx(C,{children:a.jsx(d,{icon:v[s]})})},s)},H=({categories:s,className:n})=>{const t=[...s];return t.sort(),a.jsx("div",{className:n,children:t.map((e,o)=>a.jsx(S,{categoryName:e},o))})};export{H as C,k as L}; diff --git a/dist/assets/Home-Bi34brdX.js b/dist/assets/Home-Bi34brdX.js new file mode 100644 index 0000000..ca93c7e --- /dev/null +++ b/dist/assets/Home-Bi34brdX.js @@ -0,0 +1 @@ +import{k as s,r as t,j as a}from"./index-BXnzDVwr.js";const o=()=>{const e=s();return t.useEffect(()=>{e("/recipes")}),a.jsx("div",{})};export{o as default}; diff --git a/dist/assets/RecipeDetails-BJWCttBR.js b/dist/assets/RecipeDetails-BJWCttBR.js new file mode 100644 index 0000000..a58649c --- /dev/null +++ b/dist/assets/RecipeDetails-BJWCttBR.js @@ -0,0 +1,50 @@ +import{H as t,g as d,j as n,m as c,l as p,F as m,n as h,f as o,o as g}from"./index-BXnzDVwr.js";import{C as j,L as u}from"./CategoriesBar-BbRhE4Cs.js";const f=t.div` + margin: 0 20px; +`,w=t.div` + display: flex; + flex-flow: row wrap; + max-width: 600px; + width: auto; + + @media only all and (min-width: 1000px) { + min-width: 400px; + } +`,x=t.div` + line-height: 1; + margin-bottom: 15px; + min-width: 100px; + + @media only all and (max-width: 420px) { + min-width: 80px; + } +`,y=t(x)` + flex: 3 1 70%; + padding-right: 10px; + + @media only all and (max-width: 420px) { + flex: 3 1 55%; +`,C=t(x)` + flex: 1 1 30%; + + @media only all and (max-width: 420px) { + flex: 1 1 45%; +`,v=({ingredients:i})=>{const{t:e}=d();return n.jsxs(f,{children:[n.jsx("h3",{children:e("ingredients_head")}),n.jsx(w,{children:i.map((s,l)=>n.jsxs(c.Fragment,{children:[n.jsx(y,{children:s.title}),n.jsx(C,{children:`${s.amount||""} ${p.toLower(s.unit)}`})]},l))})]})},L=t.div` + margin: 0 10px; +`,R=t.p` + text-align: justify; + text-justify: inter-word; +`,F=({preparation:i})=>{const{t:e}=d();return n.jsxs(L,{children:[n.jsx("h3",{children:e("preparation")}),n.jsx(R,{children:i})]})},T=t.div` + display: flex; + flex-direction: column; + gap: 50px; + align-items: center; + margin-top: 40px; + + @media only all and (min-width: 1000px) { + align-items: flex-start; + flex-direction: row; + } +`,b=t(j)` + display: inline; + margin-right: 20px; +`,A=({recipe:i})=>n.jsxs(n.Fragment,{children:[n.jsx("h2",{children:i.title}),n.jsx(b,{categories:i.categories}),i.time?n.jsxs("span",{children:[n.jsx(m,{icon:h})," ",i.time,"'"]}):null,n.jsxs(T,{children:[i.ingredients.length>0?n.jsx(v,{ingredients:i.ingredients}):null,i.preparation&&n.jsx(F,{preparation:i.preparation})]})]}),D=()=>{const i=o(a=>a.recipes.recipes),e=o(a=>a.recipes.loading),s=g(),l=Number(s.id)||-1,r=i.find(a=>a.id===l);return n.jsx(u,{isLoading:e,children:r&&n.jsx(A,{recipe:r})})};export{D as default}; diff --git a/dist/assets/RecipesList-d9SdWYK4.js b/dist/assets/RecipesList-d9SdWYK4.js new file mode 100644 index 0000000..e3a2794 --- /dev/null +++ b/dist/assets/RecipesList-d9SdWYK4.js @@ -0,0 +1,56 @@ +import{r as v,u as Un,c as zn,j as $,_ as Wn,a as Gn,R as Ct,b as x,d as Yn,H as je,e as qn,f as le,g as Kn,h as Xn,i as Jn,k as Zn,l as Ot}from"./index-BXnzDVwr.js";import{C as Qn,L as er}from"./CategoriesBar-BbRhE4Cs.js";function tr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}const nr=v.forwardRef(({bsPrefix:t,className:e,striped:r,bordered:i,borderless:n,hover:a,size:s,variant:l,responsive:o,...u},c)=>{const d=Un(t,"table"),m=zn(e,d,l&&`${d}-${l}`,s&&`${d}-${s}`,r&&`${d}-${typeof r=="string"?`striped-${r}`:"striped"}`,i&&`${d}-bordered`,n&&`${d}-borderless`,a&&`${d}-hover`),g=$.jsx("table",{...u,className:m,ref:c});if(o){let b=`${d}-responsive`;return typeof o=="string"&&(b=`${b}-${o}`),$.jsx("div",{className:b,children:g})}return g});function ce(t){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(t)}function rr(t,e){if(ce(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(ce(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Jt(t){var e=rr(t,"string");return ce(e)=="symbol"?e:e+""}function ge(t,e,r){return(e=Jt(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function w(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,i=Array(e);r0?H(he,--U):0,pe--,D===10&&(pe=1,Ue--),D}function W(){return D=U2||Se(D)>3?"":" "}function Rr(t,e){for(;--e&&W()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return Ce(t,Ee()+(e<6&&J()==32&&W()==32))}function nt(t){for(;W();)switch(D){case t:return U;case 34:case 39:t!==34&&t!==39&&nt(D);break;case 40:t===41&&nt(t);break;case 92:W();break}return U}function Lr(t,e){for(;W()&&t+D!==57;)if(t+D===84&&J()===47)break;return"/*"+Ce(e,U-1)+"*"+Be(t===47?t:W())}function Fr(t){for(;!Se(J());)W();return Ce(t,U)}function Dr(t){return on(Le("",null,null,null,[""],t=an(t),0,[0],t))}function Le(t,e,r,i,n,a,s,l,o){for(var u=0,c=0,d=s,m=0,g=0,b=0,h=1,f=1,p=1,y=0,C="",I=n,V=a,M=i,S=C;f;)switch(b=y,y=W()){case 40:if(b!=108&&H(S,d-1)==58){tt(S+=R(Re(y),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:S+=Re(y);break;case 9:case 10:case 13:case 32:S+=Er(b);break;case 92:S+=Rr(Ee()-1,7);continue;case 47:switch(J()){case 42:case 47:xe(Tr(Lr(W(),Ee()),e,r),o);break;default:S+="/"}break;case 123*h:l[u++]=K(S)*p;case 125*h:case 59:case 0:switch(y){case 0:case 125:f=0;case 59+c:p==-1&&(S=R(S,/\f/g,"")),g>0&&K(S)-d&&xe(g>32?Mt(S+";",i,r,d-1):Mt(R(S," ","")+";",i,r,d-2),o);break;case 59:S+=";";default:if(xe(M=It(S,e,r,u,c,n,l,C,I=[],V=[],d),a),y===123)if(c===0)Le(S,e,M,M,I,a,d,l,V);else switch(m===99&&H(S,3)===110?100:m){case 100:case 108:case 109:case 115:Le(t,M,M,i&&xe(It(t,M,M,0,0,n,l,C,n,I=[],d),V),n,V,d,l,i?I:V);break;default:Le(S,M,M,M,[""],V,0,l,V)}}u=c=g=0,h=p=1,C=S="",d=s;break;case 58:d=1+K(S),g=b;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Vr()==125)continue}switch(S+=Be(y),y*h){case 38:p=c>0?1:(S+="\f",-1);break;case 44:l[u++]=(K(S)-1)*p,p=1;break;case 64:J()===45&&(S+=Re(W())),m=J(),c=d=K(C=S+=Fr(Ee())),y++;break;case 45:b===45&&K(S)==2&&(h=0)}}return a}function It(t,e,r,i,n,a,s,l,o,u,c){for(var d=n-1,m=n===0?a:[""],g=ct(m),b=0,h=0,f=0;b0?m[p]+" "+y:R(y,/&\f/g,m[p])))&&(o[f++]=C);return ze(t,e,r,n===0?ut:l,o,u,c)}function Tr(t,e,r){return ze(t,e,r,en,Be(Pr()),be(t,2,-2),0)}function Mt(t,e,r,i){return ze(t,e,r,lt,be(t,0,i),be(t,i+1,-1),i)}function fe(t,e){for(var r="",i=ct(t),n=0;n6)switch(H(t,e+1)){case 109:if(H(t,e+4)!==45)break;case 102:return R(t,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+Te+(H(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~tt(t,"stretch")?sn(R(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(H(t,e+1)!==115)break;case 6444:switch(H(t,K(t)-3-(~tt(t,"!important")&&10))){case 107:return R(t,":",":"+E)+t;case 101:return R(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+E+(H(t,14)===45?"inline-":"")+"box$3$1"+E+"$2$3$1"+j+"$2box$3")+t}break;case 5936:switch(H(t,e+11)){case 114:return E+t+j+R(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return E+t+j+R(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return E+t+j+R(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return E+t+j+t+t}return t}var Ur=function(e,r,i,n){if(e.length>-1&&!e.return)switch(e.type){case lt:e.return=sn(e.value,e.length);break;case tn:return fe([ve(e,{value:R(e.value,"@","@"+E)})],n);case ut:if(e.length)return Mr(e.props,function(a){switch(Ir(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fe([ve(e,{props:[R(a,/:(read-\w+)/,":"+Te+"$1")]})],n);case"::placeholder":return fe([ve(e,{props:[R(a,/:(plac\w+)/,":"+E+"input-$1")]}),ve(e,{props:[R(a,/:(plac\w+)/,":"+Te+"$1")]}),ve(e,{props:[R(a,/:(plac\w+)/,j+"input-$1")]})],n)}return""})}},zr=[Ur],Wr=function(e){var r=e.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(h){var f=h.getAttribute("data-emotion");f.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||zr,a={},s,l=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var f=h.getAttribute("data-emotion").split(" "),p=1;p=4;++i,n-=4)r=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Xr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Jr(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Zr=/[A-Z]|^ms/g,Qr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ln=function(e){return e.charCodeAt(1)===45},Vt=function(e){return e!=null&&typeof e!="boolean"},Ye=Jr(function(t){return ln(t)?t:t.replace(Zr,"-$&").toLowerCase()}),Et=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Qr,function(i,n,a){return X={name:n,styles:a,next:X},n})}return Xr[e]!==1&&!ln(e)&&typeof r=="number"&&r!==0?r+"px":r};function ye(t,e,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return X={name:n.name,styles:n.styles,next:X},n.name;var a=r;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)X={name:s.name,styles:s.styles,next:X},s=s.next;var l=a.styles+";";return l}return ei(t,e,r)}case"function":{if(t!==void 0){var o=X,u=r(t);return X=o,ye(t,e,u)}break}}var c=r;return c}function ei(t,e,r){var i="";if(Array.isArray(r))for(var n=0;n({x:t,y:t});function hi(t){const{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function We(){return typeof window<"u"}function fn(t){return hn(t)?(t.nodeName||"").toLowerCase():"#document"}function re(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function pn(t){var e;return(e=(hn(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function hn(t){return We()?t instanceof Node||t instanceof re(t).Node:!1}function vi(t){return We()?t instanceof Element||t instanceof re(t).Element:!1}function pt(t){return We()?t instanceof HTMLElement||t instanceof re(t).HTMLElement:!1}function Lt(t){return!We()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof re(t).ShadowRoot}function vn(t){const{overflow:e,overflowX:r,overflowY:i,display:n}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function mi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gi(t){return["html","body","#document"].includes(fn(t))}function ht(t){return re(t).getComputedStyle(t)}function bi(t){if(fn(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Lt(t)&&t.host||pn(t);return Lt(e)?e.host:e}function mn(t){const e=bi(t);return gi(e)?t.ownerDocument?t.ownerDocument.body:t.body:pt(e)&&vn(e)?e:mn(e)}function $e(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=mn(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=re(n);if(a){const l=it(s);return e.concat(s,s.visualViewport||[],vn(n)?n:[],l&&r?$e(l):[])}return e.concat(n,$e(n,[],r))}function it(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Si(t){const e=ht(t);let r=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=pt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=ke(r)!==a||ke(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function vt(t){return vi(t)?t:t.contextElement}function Ft(t){const e=vt(t);if(!pt(e))return Ae(1);const r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Si(e);let s=(a?ke(r.width):r.width)/i,l=(a?ke(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const yi=Ae(0);function Ci(t){const e=re(t);return!mi()||!e.visualViewport?yi:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Oi(t,e,r){return!1}function Dt(t,e,r,i){e===void 0&&(e=!1);const n=t.getBoundingClientRect(),a=vt(t);let s=Ae(1);e&&(s=Ft(t));const l=Oi()?Ci(a):Ae(0);let o=(n.left+l.x)/s.x,u=(n.top+l.y)/s.y,c=n.width/s.x,d=n.height/s.y;if(a){const m=re(a),g=i;let b=m,h=it(b);for(;h&&i&&g!==b;){const f=Ft(h),p=h.getBoundingClientRect(),y=ht(h),C=p.left+(h.clientLeft+parseFloat(y.paddingLeft))*f.x,I=p.top+(h.clientTop+parseFloat(y.paddingTop))*f.y;o*=f.x,u*=f.y,c*=f.x,d*=f.y,o+=C,u+=I,b=re(h),h=it(b)}}return hi({width:c,height:d,x:o,y:u})}function gn(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function wi(t,e){let r=null,i;const n=pn(t);function a(){var l;clearTimeout(i),(l=r)==null||l.disconnect(),r=null}function s(l,o){l===void 0&&(l=!1),o===void 0&&(o=1),a();const u=t.getBoundingClientRect(),{left:c,top:d,width:m,height:g}=u;if(l||e(),!m||!g)return;const b=Ie(d),h=Ie(n.clientWidth-(c+m)),f=Ie(n.clientHeight-(d+g)),p=Ie(c),C={rootMargin:-b+"px "+-h+"px "+-f+"px "+-p+"px",threshold:pi(0,fi(1,o))||1};let I=!0;function V(M){const S=M[0].intersectionRatio;if(S!==o){if(!I)return s();S?s(!1,S):i=setTimeout(()=>{s(!1,1e-7)},1e3)}S===1&&!gn(u,t.getBoundingClientRect())&&s(),I=!1}try{r=new IntersectionObserver(V,{...C,root:n.ownerDocument})}catch{r=new IntersectionObserver(V,C)}r.observe(t)}return s(!0),a}function xi(t,e,r,i){i===void 0&&(i={});const{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:o=!1}=i,u=vt(t),c=n||a?[...u?$e(u):[],...$e(e)]:[];c.forEach(p=>{n&&p.addEventListener("scroll",r,{passive:!0}),a&&p.addEventListener("resize",r)});const d=u&&l?wi(u,r):null;let m=-1,g=null;s&&(g=new ResizeObserver(p=>{let[y]=p;y&&y.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(e)})),r()}),u&&!o&&g.observe(u),g.observe(e));let b,h=o?Dt(t):null;o&&f();function f(){const p=Dt(t);h&&!gn(h,p)&&r(),h=p,b=requestAnimationFrame(f)}return r(),()=>{var p;c.forEach(y=>{n&&y.removeEventListener("scroll",r),a&&y.removeEventListener("resize",r)}),d==null||d(),(p=g)==null||p.disconnect(),g=null,o&&cancelAnimationFrame(b)}}var at=v.useLayoutEffect,Ii=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],He=function(){};function Mi(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function Pi(t,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n-1}function Vi(t){return Ge(t)?window.innerHeight:t.clientHeight}function Sn(t){return Ge(t)?window.pageYOffset:t.scrollTop}function Ne(t,e){if(Ge(t)){window.scrollTo(0,e);return}t.scrollTop=e}function Ei(t){var e=getComputedStyle(t),r=e.position==="absolute",i=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var n=t;n=n.parentElement;)if(e=getComputedStyle(n),!(r&&e.position==="static")&&i.test(e.overflow+e.overflowY+e.overflowX))return n;return document.documentElement}function Ri(t,e,r,i){return r*((t=t/i-1)*t*t+1)+e}function Me(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:He,n=Sn(t),a=e-n,s=10,l=0;function o(){l+=s;var u=Ri(l,n,a,r);Ne(t,u),lr.bottom?Ne(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+n,t.scrollHeight)):i.top-n1?r-1:0),n=1;n=b)return{placement:"bottom",maxHeight:e};if(L>=b&&!s)return a&&Me(o,N,_),{placement:"bottom",maxHeight:e};if(!s&&L>=i||s&&S>=i){a&&Me(o,N,_);var Z=s?S-I:L-I;return{placement:"bottom",maxHeight:Z}}if(n==="auto"||s){var Q=e,A=s?M:P;return A>=i&&(Q=Math.min(A-I-l,e)),{placement:"top",maxHeight:Q}}if(n==="bottom")return a&&Ne(o,N),{placement:"bottom",maxHeight:e};break;case"top":if(M>=b)return{placement:"top",maxHeight:e};if(P>=b&&!s)return a&&Me(o,B,_),{placement:"top",maxHeight:e};if(!s&&P>=i||s&&M>=i){var T=e;return(!s&&P>=i||s&&M>=i)&&(T=s?M-V:P-V),a&&Me(o,B,_),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return u}function ji(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var Cn=function(e){return e==="auto"?"bottom":e},Bi=function(e,r){var i,n=e.placement,a=e.theme,s=a.borderRadius,l=a.spacing,o=a.colors;return w((i={label:"menu"},ge(i,ji(n),"100%"),ge(i,"position","absolute"),ge(i,"width","100%"),ge(i,"zIndex",1),i),r?{}:{backgroundColor:o.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},On=v.createContext(null),Ui=function(e){var r=e.children,i=e.minMenuHeight,n=e.maxMenuHeight,a=e.menuPlacement,s=e.menuPosition,l=e.menuShouldScrollIntoView,o=e.theme,u=v.useContext(On)||{},c=u.setPortalPlacement,d=v.useRef(null),m=v.useState(n),g=ne(m,2),b=g[0],h=g[1],f=v.useState(null),p=ne(f,2),y=p[0],C=p[1],I=o.spacing.controlHeight;return at(function(){var V=d.current;if(V){var M=s==="fixed",S=l&&!M,P=_i({maxHeight:n,menuEl:V,minHeight:i,placement:a,shouldScroll:S,isFixedPosition:M,controlHeight:I});h(P.maxHeight),C(P.placement),c==null||c(P.placement)}},[n,a,s,l,i,c,I]),r({ref:d,placerProps:w(w({},e),{},{placement:y||Cn(a),maxHeight:b})})},zi=function(e){var r=e.children,i=e.innerRef,n=e.innerProps;return O("div",x({},F(e,"menu",{menu:!0}),{ref:i},n),r)},Wi=zi,Gi=function(e,r){var i=e.maxHeight,n=e.theme.spacing.baseUnit;return w({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},Yi=function(e){var r=e.children,i=e.innerProps,n=e.innerRef,a=e.isMulti;return O("div",x({},F(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:n},i),r)},wn=function(e,r){var i=e.theme,n=i.spacing.baseUnit,a=i.colors;return w({textAlign:"center"},r?{}:{color:a.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},qi=wn,Ki=wn,Xi=function(e){var r=e.children,i=r===void 0?"No options":r,n=e.innerProps,a=ie(e,Hi);return O("div",x({},F(w(w({},a),{},{children:i,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),i)},Ji=function(e){var r=e.children,i=r===void 0?"Loading...":r,n=e.innerProps,a=ie(e,Ni);return O("div",x({},F(w(w({},a),{},{children:i,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),i)},Zi=function(e){var r=e.rect,i=e.offset,n=e.position;return{left:r.left,position:n,top:i,width:r.width,zIndex:1}},Qi=function(e){var r=e.appendTo,i=e.children,n=e.controlElement,a=e.innerProps,s=e.menuPlacement,l=e.menuPosition,o=v.useRef(null),u=v.useRef(null),c=v.useState(Cn(s)),d=ne(c,2),m=d[0],g=d[1],b=v.useMemo(function(){return{setPortalPlacement:g}},[]),h=v.useState(null),f=ne(h,2),p=f[0],y=f[1],C=v.useCallback(function(){if(n){var S=Li(n),P=l==="fixed"?0:window.pageYOffset,L=S[m]+P;(L!==(p==null?void 0:p.offset)||S.left!==(p==null?void 0:p.rect.left)||S.width!==(p==null?void 0:p.rect.width))&&y({offset:L,rect:S})}},[n,l,m,p==null?void 0:p.offset,p==null?void 0:p.rect.left,p==null?void 0:p.rect.width]);at(function(){C()},[C]);var I=v.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),n&&o.current&&(u.current=xi(n,o.current,C,{elementResize:"ResizeObserver"in window}))},[n,C]);at(function(){I()},[I]);var V=v.useCallback(function(S){o.current=S,I()},[I]);if(!r&&l!=="fixed"||!p)return null;var M=O("div",x({ref:V},F(w(w({},e),{},{offset:p.offset,position:l,rect:p.rect}),"menuPortal",{"menu-portal":!0}),a),i);return O(On.Provider,{value:b},r?Yn.createPortal(M,r):M)},ea=function(e){var r=e.isDisabled,i=e.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},ta=function(e){var r=e.children,i=e.innerProps,n=e.isDisabled,a=e.isRtl;return O("div",x({},F(e,"container",{"--is-disabled":n,"--is-rtl":a}),i),r)},na=function(e,r){var i=e.theme.spacing,n=e.isMulti,a=e.hasValue,s=e.selectProps.controlShouldRenderValue;return w({alignItems:"center",display:n&&a&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},ra=function(e){var r=e.children,i=e.innerProps,n=e.isMulti,a=e.hasValue;return O("div",x({},F(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":a}),i),r)},ia=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},aa=function(e){var r=e.children,i=e.innerProps;return O("div",x({},F(e,"indicatorsContainer",{indicators:!0}),i),r)},$t,oa=["size"],sa=["innerProps","isRtl","size"],ua={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},xn=function(e){var r=e.size,i=ie(e,oa);return O("svg",x({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ua},i))},mt=function(e){return O(xn,x({size:20},e),O("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},In=function(e){return O(xn,x({size:20},e),O("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Mn=function(e,r){var i=e.isFocused,n=e.theme,a=n.spacing.baseUnit,s=n.colors;return w({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:i?s.neutral60:s.neutral20,padding:a*2,":hover":{color:i?s.neutral80:s.neutral40}})},la=Mn,ca=function(e){var r=e.children,i=e.innerProps;return O("div",x({},F(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),r||O(In,null))},da=Mn,fa=function(e){var r=e.children,i=e.innerProps;return O("div",x({},F(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),r||O(mt,null))},pa=function(e,r){var i=e.isDisabled,n=e.theme,a=n.spacing.baseUnit,s=n.colors;return w({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:i?s.neutral10:s.neutral20,marginBottom:a*2,marginTop:a*2})},ha=function(e){var r=e.innerProps;return O("span",x({},r,F(e,"indicatorSeparator",{"indicator-separator":!0})))},va=ci($t||($t=di([` + 0%, 80%, 100% { opacity: 0; } + 40% { opacity: 1; } +`]))),ma=function(e,r){var i=e.isFocused,n=e.size,a=e.theme,s=a.colors,l=a.spacing.baseUnit;return w({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},r?{}:{color:i?s.neutral60:s.neutral20,padding:l*2})},qe=function(e){var r=e.delay,i=e.offset;return O("span",{css:ft({animation:"".concat(va," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ga=function(e){var r=e.innerProps,i=e.isRtl,n=e.size,a=n===void 0?4:n,s=ie(e,sa);return O("div",x({},F(w(w({},s),{},{innerProps:r,isRtl:i,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),O(qe,{delay:0,offset:i}),O(qe,{delay:160,offset:!0}),O(qe,{delay:320,offset:!i}))},ba=function(e,r){var i=e.isDisabled,n=e.isFocused,a=e.theme,s=a.colors,l=a.borderRadius,o=a.spacing;return w({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:i?s.neutral5:s.neutral0,borderColor:i?s.neutral10:n?s.primary:s.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:n?s.primary:s.neutral30}})},Sa=function(e){var r=e.children,i=e.isDisabled,n=e.isFocused,a=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return O("div",x({ref:a},F(e,"control",{control:!0,"control--is-disabled":i,"control--is-focused":n,"control--menu-is-open":l}),s,{"aria-disabled":i||void 0}),r)},ya=Sa,Ca=["data"],Oa=function(e,r){var i=e.theme.spacing;return r?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},wa=function(e){var r=e.children,i=e.cx,n=e.getStyles,a=e.getClassNames,s=e.Heading,l=e.headingProps,o=e.innerProps,u=e.label,c=e.theme,d=e.selectProps;return O("div",x({},F(e,"group",{group:!0}),o),O(s,x({},l,{selectProps:d,theme:c,getStyles:n,getClassNames:a,cx:i}),u),O("div",null,r))},xa=function(e,r){var i=e.theme,n=i.colors,a=i.spacing;return w({label:"group",cursor:"default",display:"block"},r?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},Ia=function(e){var r=bn(e);r.data;var i=ie(r,Ca);return O("div",x({},F(e,"groupHeading",{"group-heading":!0}),i))},Ma=wa,Pa=["innerRef","isDisabled","isHidden","inputClassName"],Va=function(e,r){var i=e.isDisabled,n=e.value,a=e.theme,s=a.spacing,l=a.colors;return w(w({visibility:i?"hidden":"visible",transform:n?"translateZ(0)":""},Ea),r?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:l.neutral80})},Pn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ea={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":w({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Pn)},Ra=function(e){return w({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Pn)},La=function(e){var r=e.cx,i=e.value,n=bn(e),a=n.innerRef,s=n.isDisabled,l=n.isHidden,o=n.inputClassName,u=ie(n,Pa);return O("div",x({},F(e,"input",{"input-container":!0}),{"data-value":i||""}),O("input",x({className:r({input:!0},o),ref:a,style:Ra(l),disabled:s},u)))},Fa=La,Da=function(e,r){var i=e.theme,n=i.spacing,a=i.borderRadius,s=i.colors;return w({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:s.neutral10,borderRadius:a/2,margin:n.baseUnit/2})},Ta=function(e,r){var i=e.theme,n=i.borderRadius,a=i.colors,s=e.cropWithEllipsis;return w({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:n/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},ka=function(e,r){var i=e.theme,n=i.spacing,a=i.borderRadius,s=i.colors,l=e.isFocused;return w({alignItems:"center",display:"flex"},r?{}:{borderRadius:a/2,backgroundColor:l?s.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},Vn=function(e){var r=e.children,i=e.innerProps;return O("div",i,r)},Aa=Vn,$a=Vn;function Ha(t){var e=t.children,r=t.innerProps;return O("div",x({role:"button"},r),e||O(mt,{size:14}))}var Na=function(e){var r=e.children,i=e.components,n=e.data,a=e.innerProps,s=e.isDisabled,l=e.removeProps,o=e.selectProps,u=i.Container,c=i.Label,d=i.Remove;return O(u,{data:n,innerProps:w(w({},F(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:o},O(c,{data:n,innerProps:w({},F(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:o},r),O(d,{data:n,innerProps:w(w({},F(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:o}))},_a=Na,ja=function(e,r){var i=e.isDisabled,n=e.isFocused,a=e.isSelected,s=e.theme,l=s.spacing,o=s.colors;return w({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:a?o.primary:n?o.primary25:"transparent",color:i?o.neutral20:a?o.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:a?o.primary:o.primary50}})},Ba=function(e){var r=e.children,i=e.isDisabled,n=e.isFocused,a=e.isSelected,s=e.innerRef,l=e.innerProps;return O("div",x({},F(e,"option",{option:!0,"option--is-disabled":i,"option--is-focused":n,"option--is-selected":a}),{ref:s,"aria-disabled":i},l),r)},Ua=Ba,za=function(e,r){var i=e.theme,n=i.spacing,a=i.colors;return w({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:a.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},Wa=function(e){var r=e.children,i=e.innerProps;return O("div",x({},F(e,"placeholder",{placeholder:!0}),i),r)},Ga=Wa,Ya=function(e,r){var i=e.isDisabled,n=e.theme,a=n.spacing,s=n.colors;return w({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:i?s.neutral40:s.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},qa=function(e){var r=e.children,i=e.isDisabled,n=e.innerProps;return O("div",x({},F(e,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),n),r)},Ka=qa,Xa={ClearIndicator:fa,Control:ya,DropdownIndicator:ca,DownChevron:In,CrossIcon:mt,Group:Ma,GroupHeading:Ia,IndicatorsContainer:aa,IndicatorSeparator:ha,Input:Fa,LoadingIndicator:ga,Menu:Wi,MenuList:Yi,MenuPortal:Qi,LoadingMessage:Ji,NoOptionsMessage:Xi,MultiValue:_a,MultiValueContainer:Aa,MultiValueLabel:$a,MultiValueRemove:Ha,Option:Ua,Placeholder:Ga,SelectContainer:ta,SingleValue:Ka,ValueContainer:ra},Ja=function(e){return w(w({},Xa),e.components)},Ht=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Za(t,e){return!!(t===e||Ht(t)&&Ht(e))}function Qa(t,e){if(t.length!==e.length)return!1;for(var r=0;r1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return s?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(e){var r=e.context,i=e.focused,n=e.options,a=e.label,s=a===void 0?"":a,l=e.selectValue,o=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,d=function(h,f){return h&&h.length?"".concat(h.indexOf(f)+1," of ").concat(h.length):""};if(r==="value"&&l)return"value ".concat(s," focused, ").concat(d(l,i),".");if(r==="menu"&&c){var m=o?" disabled":"",g="".concat(u?" selected":"").concat(m);return"".concat(s).concat(g,", ").concat(d(n,i),".")}return""},onFilter:function(e){var r=e.inputValue,i=e.resultsMessage;return"".concat(i).concat(r?" for search term "+r:"",".")}},io=function(e){var r=e.ariaSelection,i=e.focusedOption,n=e.focusedValue,a=e.focusableOptions,s=e.isFocused,l=e.selectValue,o=e.selectProps,u=e.id,c=e.isAppleDevice,d=o.ariaLiveMessages,m=o.getOptionLabel,g=o.inputValue,b=o.isMulti,h=o.isOptionDisabled,f=o.isSearchable,p=o.menuIsOpen,y=o.options,C=o.screenReaderStatus,I=o.tabSelectsValue,V=o.isLoading,M=o["aria-label"],S=o["aria-live"],P=v.useMemo(function(){return w(w({},ro),d||{})},[d]),L=v.useMemo(function(){var A="";if(r&&P.onChange){var T=r.option,q=r.options,G=r.removedValue,ae=r.removedValues,oe=r.value,Oe=function(te){return Array.isArray(te)?null:te},k=G||T||Oe(oe),z=k?m(k):"",ee=q||ae||void 0,se=ee?ee.map(m):[],Y=w({isDisabled:k&&h(k,l),label:z,labels:se},r);A=P.onChange(Y)}return A},[r,P,h,l,m]),N=v.useMemo(function(){var A="",T=i||n,q=!!(i&&l&&l.includes(i));if(T&&P.onFocus){var G={focused:T,label:m(T),isDisabled:h(T,l),isSelected:q,options:a,context:T===i?"menu":"value",selectValue:l,isAppleDevice:c};A=P.onFocus(G)}return A},[i,n,m,h,P,a,l,c]),B=v.useMemo(function(){var A="";if(p&&y.length&&!V&&P.onFilter){var T=C({count:a.length});A=P.onFilter({inputValue:g,resultsMessage:T})}return A},[a,g,p,P,y,C,V]),_=(r==null?void 0:r.action)==="initial-input-focus",Z=v.useMemo(function(){var A="";if(P.guidance){var T=n?"value":p?"menu":"input";A=P.guidance({"aria-label":M,context:T,isDisabled:i&&h(i,l),isMulti:b,isSearchable:f,tabSelectsValue:I,isInitialFocus:_})}return A},[M,i,n,b,h,f,p,P,l,I,_]),Q=O(v.Fragment,null,O("span",{id:"aria-selection"},L),O("span",{id:"aria-focused"},N),O("span",{id:"aria-results"},B),O("span",{id:"aria-guidance"},Z));return O(v.Fragment,null,O(Nt,{id:u},_&&Q),O(Nt,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!_&&Q))},ao=io,ot=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],oo=new RegExp("["+ot.map(function(t){return t.letters}).join("")+"]","g"),En={};for(var Ke=0;Ke-1}},co=["innerRef"];function fo(t){var e=t.innerRef,r=ie(t,co),i=$i(r,"onExited","in","enter","exit","appear");return O("input",x({ref:e},i,{css:ft({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var po=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function ho(t){var e=t.isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,n=t.onTopArrive,a=t.onTopLeave,s=v.useRef(!1),l=v.useRef(!1),o=v.useRef(0),u=v.useRef(null),c=v.useCallback(function(f,p){if(u.current!==null){var y=u.current,C=y.scrollTop,I=y.scrollHeight,V=y.clientHeight,M=u.current,S=p>0,P=I-V-C,L=!1;P>p&&s.current&&(i&&i(f),s.current=!1),S&&l.current&&(a&&a(f),l.current=!1),S&&p>P?(r&&!s.current&&r(f),M.scrollTop=I,L=!0,s.current=!0):!S&&-p>C&&(n&&!l.current&&n(f),M.scrollTop=0,L=!0,l.current=!0),L&&po(f)}},[r,i,n,a]),d=v.useCallback(function(f){c(f,f.deltaY)},[c]),m=v.useCallback(function(f){o.current=f.changedTouches[0].clientY},[]),g=v.useCallback(function(f){var p=o.current-f.changedTouches[0].clientY;c(f,p)},[c]),b=v.useCallback(function(f){if(f){var p=Ti?{passive:!1}:!1;f.addEventListener("wheel",d,p),f.addEventListener("touchstart",m,p),f.addEventListener("touchmove",g,p)}},[g,m,d]),h=v.useCallback(function(f){f&&(f.removeEventListener("wheel",d,!1),f.removeEventListener("touchstart",m,!1),f.removeEventListener("touchmove",g,!1))},[g,m,d]);return v.useEffect(function(){if(e){var f=u.current;return b(f),function(){h(f)}}},[e,b,h]),function(f){u.current=f}}var jt=["boxSizing","height","overflow","paddingRight","position"],Bt={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ut(t){t.cancelable&&t.preventDefault()}function zt(t){t.stopPropagation()}function Wt(){var t=this.scrollTop,e=this.scrollHeight,r=t+this.offsetHeight;t===0?this.scrollTop=1:r===e&&(this.scrollTop=t-1)}function Gt(){return"ontouchstart"in window||navigator.maxTouchPoints}var Yt=!!(typeof window<"u"&&window.document&&window.document.createElement),me=0,de={capture:!1,passive:!1};function vo(t){var e=t.isEnabled,r=t.accountForScrollbars,i=r===void 0?!0:r,n=v.useRef({}),a=v.useRef(null),s=v.useCallback(function(o){if(Yt){var u=document.body,c=u&&u.style;if(i&&jt.forEach(function(b){var h=c&&c[b];n.current[b]=h}),i&&me<1){var d=parseInt(n.current.paddingRight,10)||0,m=document.body?document.body.clientWidth:0,g=window.innerWidth-m+d||0;Object.keys(Bt).forEach(function(b){var h=Bt[b];c&&(c[b]=h)}),c&&(c.paddingRight="".concat(g,"px"))}u&&Gt()&&(u.addEventListener("touchmove",Ut,de),o&&(o.addEventListener("touchstart",Wt,de),o.addEventListener("touchmove",zt,de))),me+=1}},[i]),l=v.useCallback(function(o){if(Yt){var u=document.body,c=u&&u.style;me=Math.max(me-1,0),i&&me<1&&jt.forEach(function(d){var m=n.current[d];c&&(c[d]=m)}),u&&Gt()&&(u.removeEventListener("touchmove",Ut,de),o&&(o.removeEventListener("touchstart",Wt,de),o.removeEventListener("touchmove",zt,de)))}},[i]);return v.useEffect(function(){if(e){var o=a.current;return s(o),function(){l(o)}}},[e,s,l]),function(o){a.current=o}}var mo=function(e){var r=e.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},go={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function bo(t){var e=t.children,r=t.lockEnabled,i=t.captureEnabled,n=i===void 0?!0:i,a=t.onBottomArrive,s=t.onBottomLeave,l=t.onTopArrive,o=t.onTopLeave,u=ho({isEnabled:n,onBottomArrive:a,onBottomLeave:s,onTopArrive:l,onTopLeave:o}),c=vo({isEnabled:r}),d=function(g){u(g),c(g)};return O(v.Fragment,null,r&&O("div",{onClick:mo,css:go}),e(d))}var So={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},yo=function(e){var r=e.name,i=e.onFocus;return O("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:So,value:"",onChange:function(){}})},Co=yo;function gt(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Oo(){return gt(/^iPhone/i)}function Ln(){return gt(/^Mac/i)}function wo(){return gt(/^iPad/i)||Ln()&&navigator.maxTouchPoints>1}function xo(){return Oo()||wo()}function Io(){return Ln()||xo()}var Mo=function(e){return e.label},Po=function(e){return e.label},Vo=function(e){return e.value},Eo=function(e){return!!e.isDisabled},Ro={clearIndicator:da,container:ea,control:ba,dropdownIndicator:la,group:Oa,groupHeading:xa,indicatorsContainer:ia,indicatorSeparator:pa,input:Va,loadingIndicator:ma,loadingMessage:Ki,menu:Bi,menuList:Gi,menuPortal:Zi,multiValue:Da,multiValueLabel:Ta,multiValueRemove:ka,noOptionsMessage:qi,option:ja,placeholder:za,singleValue:Ya,valueContainer:na},Lo={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Fo=4,Fn=4,Do=38,To=Fn*2,ko={baseUnit:Fn,controlHeight:Do,menuGutter:To},Ze={borderRadius:Fo,colors:Lo,spacing:ko},Ao={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:At(),captureMenuScroll:!At(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:lo(),formatGroupLabel:Mo,getOptionLabel:Po,getOptionValue:Vo,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Eo,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Fi(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var r=e.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function qt(t,e,r,i){var n=kn(t,e,r),a=An(t,e,r),s=Tn(t,e),l=_e(t,e);return{type:"option",data:e,isDisabled:n,isSelected:a,label:s,value:l,index:i}}function Fe(t,e){return t.options.map(function(r,i){if("options"in r){var n=r.options.map(function(s,l){return qt(t,s,e,l)}).filter(function(s){return Xt(t,s)});return n.length>0?{type:"group",data:r,options:n,index:i}:void 0}var a=qt(t,r,e,i);return Xt(t,a)?a:void 0}).filter(ki)}function Dn(t){return t.reduce(function(e,r){return r.type==="group"?e.push.apply(e,st(r.options.map(function(i){return i.data}))):e.push(r.data),e},[])}function Kt(t,e){return t.reduce(function(r,i){return i.type==="group"?r.push.apply(r,st(i.options.map(function(n){return{data:n.data,id:"".concat(e,"-").concat(i.index,"-").concat(n.index)}}))):r.push({data:i.data,id:"".concat(e,"-").concat(i.index)}),r},[])}function $o(t,e){return Dn(Fe(t,e))}function Xt(t,e){var r=t.inputValue,i=r===void 0?"":r,n=e.data,a=e.isSelected,s=e.label,l=e.value;return(!Hn(t)||!a)&&$n(t,{label:s,value:l,data:n},i)}function Ho(t,e){var r=t.focusedValue,i=t.selectValue,n=i.indexOf(r);if(n>-1){var a=e.indexOf(r);if(a>-1)return r;if(n-1?r:e[0]}var Qe=function(e,r){var i,n=(i=e.find(function(a){return a.data===r}))===null||i===void 0?void 0:i.id;return n||null},Tn=function(e,r){return e.getOptionLabel(r)},_e=function(e,r){return e.getOptionValue(r)};function kn(t,e,r){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,r):!1}function An(t,e,r){if(r.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,r);var i=_e(t,e);return r.some(function(n){return _e(t,n)===i})}function $n(t,e,r){return t.filterOption?t.filterOption(e,r):!0}var Hn=function(e){var r=e.hideSelectedOptions,i=e.isMulti;return r===void 0?i:r},_o=1,Nn=function(t){dr(r,t);var e=pr(r);function r(i){var n;if(lr(this,r),n=e.call(this,i),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.isAppleDevice=Io(),n.controlRef=null,n.getControlRef=function(o){n.controlRef=o},n.focusedOptionRef=null,n.getFocusedOptionRef=function(o){n.focusedOptionRef=o},n.menuListRef=null,n.getMenuListRef=function(o){n.menuListRef=o},n.inputRef=null,n.getInputRef=function(o){n.inputRef=o},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(o,u){var c=n.props,d=c.onChange,m=c.name;u.name=m,n.ariaOnChange(o,u),d(o,u)},n.setValue=function(o,u,c){var d=n.props,m=d.closeMenuOnSelect,g=d.isMulti,b=d.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:b}),m&&(n.setState({inputIsHiddenAfterUpdate:!g}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(o,{action:u,option:c})},n.selectOption=function(o){var u=n.props,c=u.blurInputOnSelect,d=u.isMulti,m=u.name,g=n.state.selectValue,b=d&&n.isOptionSelected(o,g),h=n.isOptionDisabled(o,g);if(b){var f=n.getOptionValue(o);n.setValue(g.filter(function(p){return n.getOptionValue(p)!==f}),"deselect-option",o)}else if(!h)d?n.setValue([].concat(st(g),[o]),"select-option",o):n.setValue(o,"select-option");else{n.ariaOnChange(o,{action:"select-option",option:o,name:m});return}c&&n.blurInput()},n.removeValue=function(o){var u=n.props.isMulti,c=n.state.selectValue,d=n.getOptionValue(o),m=c.filter(function(b){return n.getOptionValue(b)!==d}),g=Ve(u,m,m[0]||null);n.onChange(g,{action:"remove-value",removedValue:o}),n.focusInput()},n.clearValue=function(){var o=n.state.selectValue;n.onChange(Ve(n.props.isMulti,[],null),{action:"clear",removedValues:o})},n.popValue=function(){var o=n.props.isMulti,u=n.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),m=Ve(o,d,d[0]||null);c&&n.onChange(m,{action:"pop-value",removedValue:c})},n.getFocusedOptionId=function(o){return Qe(n.state.focusableOptionsWithIds,o)},n.getFocusableOptionsWithIds=function(){return Kt(Fe(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var o=arguments.length,u=new Array(o),c=0;cg||m>g}},n.onTouchEnd=function(o){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(o.target)&&n.menuListRef&&!n.menuListRef.contains(o.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(o){n.userIsDragging||n.onControlMouseDown(o)},n.onClearIndicatorTouchEnd=function(o){n.userIsDragging||n.onClearIndicatorMouseDown(o)},n.onDropdownIndicatorTouchEnd=function(o){n.userIsDragging||n.onDropdownIndicatorMouseDown(o)},n.handleInputChange=function(o){var u=n.props.inputValue,c=o.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(c,{action:"input-change",prevInputValue:u}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(o){n.props.onFocus&&n.props.onFocus(o),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(o){var u=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(o),n.onInputChange("",{action:"input-blur",prevInputValue:u}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(o){if(!(n.blockOptionHover||n.state.focusedOption===o)){var u=n.getFocusableOptions(),c=u.indexOf(o);n.setState({focusedOption:o,focusedOptionId:c>-1?n.getFocusedOptionId(o):null})}},n.shouldHideSelectedOptions=function(){return Hn(n.props)},n.onValueInputFocus=function(o){o.preventDefault(),o.stopPropagation(),n.focus()},n.onKeyDown=function(o){var u=n.props,c=u.isMulti,d=u.backspaceRemovesValue,m=u.escapeClearsValue,g=u.inputValue,b=u.isClearable,h=u.isDisabled,f=u.menuIsOpen,p=u.onKeyDown,y=u.tabSelectsValue,C=u.openMenuOnFocus,I=n.state,V=I.focusedOption,M=I.focusedValue,S=I.selectValue;if(!h&&!(typeof p=="function"&&(p(o),o.defaultPrevented))){switch(n.blockOptionHover=!0,o.key){case"ArrowLeft":if(!c||g)return;n.focusValue("previous");break;case"ArrowRight":if(!c||g)return;n.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(M)n.removeValue(M);else{if(!d)return;c?n.popValue():b&&n.clearValue()}break;case"Tab":if(n.isComposing||o.shiftKey||!f||!y||!V||C&&n.isOptionSelected(V,S))return;n.selectOption(V);break;case"Enter":if(o.keyCode===229)break;if(f){if(!V||n.isComposing)return;n.selectOption(V);break}return;case"Escape":f?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:g}),n.onMenuClose()):b&&m&&n.clearValue();break;case" ":if(g)return;if(!f){n.openMenu("first");break}if(!V)return;n.selectOption(V);break;case"ArrowUp":f?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":f?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!f)return;n.focusOption("pageup");break;case"PageDown":if(!f)return;n.focusOption("pagedown");break;case"Home":if(!f)return;n.focusOption("first");break;case"End":if(!f)return;n.focusOption("last");break;default:return}o.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++_o),n.state.selectValue=Tt(i.value),i.menuIsOpen&&n.state.selectValue.length){var a=n.getFocusableOptionsWithIds(),s=n.buildFocusableOptions(),l=s.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=a,n.state.focusedOption=s[l],n.state.focusedOptionId=Qe(a,s[l])}return n}return cr(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&kt(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(n){var a=this.props,s=a.isDisabled,l=a.menuIsOpen,o=this.state.isFocused;(o&&!s&&n.isDisabled||o&&l&&!n.menuIsOpen)&&this.focusInput(),o&&s&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!o&&!s&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(kt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,a){this.props.onInputChange(n,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var a=this,s=this.state,l=s.selectValue,o=s.isFocused,u=this.buildFocusableOptions(),c=n==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(l[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(n){var a=this.state,s=a.selectValue,l=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=s.indexOf(l);l||(o=-1);var u=s.length-1,c=-1;if(s.length){switch(n){case"previous":o===0?c=0:o===-1?c=u:c=o-1;break;case"next":o>-1&&o0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,s=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var o=0,u=l.indexOf(s);s||(u=-1),n==="up"?o=u>0?u-1:l.length-1:n==="down"?o=(u+1)%l.length:n==="pageup"?(o=u-a,o<0&&(o=0)):n==="pagedown"?(o=u+a,o>l.length-1&&(o=l.length-1)):n==="last"&&(o=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[o])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ze):w(w({},Ze),this.props.theme):Ze}},{key:"getCommonProps",value:function(){var n=this.clearValue,a=this.cx,s=this.getStyles,l=this.getClassNames,o=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,m=d.isMulti,g=d.isRtl,b=d.options,h=this.hasValue();return{clearValue:n,cx:a,getStyles:s,getClassNames:l,getValue:o,hasValue:h,isMulti:m,isRtl:g,options:b,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,a=n.isClearable,s=n.isMulti;return a===void 0?s:a}},{key:"isOptionDisabled",value:function(n,a){return kn(this.props,n,a)}},{key:"isOptionSelected",value:function(n,a){return An(this.props,n,a)}},{key:"filterOption",value:function(n,a){return $n(this.props,n,a)}},{key:"formatOptionLabel",value:function(n,a){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(n,{context:a,inputValue:s,selectValue:l})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var n=this.props,a=n.isDisabled,s=n.isSearchable,l=n.inputId,o=n.inputValue,u=n.tabIndex,c=n.form,d=n.menuIsOpen,m=n.required,g=this.getComponents(),b=g.Input,h=this.state,f=h.inputIsHidden,p=h.ariaSelection,y=this.commonProps,C=l||this.getElementId("input"),I=w(w(w({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":m,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(p==null?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?v.createElement(b,x({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:a,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:o},I)):v.createElement(fo,x({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:He,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},I))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,a=this.getComponents(),s=a.MultiValue,l=a.MultiValueContainer,o=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,d=a.Placeholder,m=this.commonProps,g=this.props,b=g.controlShouldRenderValue,h=g.isDisabled,f=g.isMulti,p=g.inputValue,y=g.placeholder,C=this.state,I=C.selectValue,V=C.focusedValue,M=C.isFocused;if(!this.hasValue()||!b)return p?null:v.createElement(d,x({},m,{key:"placeholder",isDisabled:h,isFocused:M,innerProps:{id:this.getElementId("placeholder")}}),y);if(f)return I.map(function(P,L){var N=P===V,B="".concat(n.getOptionLabel(P),"-").concat(n.getOptionValue(P));return v.createElement(s,x({},m,{components:{Container:l,Label:o,Remove:u},isFocused:N,isDisabled:h,key:B,index:L,removeProps:{onClick:function(){return n.removeValue(P)},onTouchEnd:function(){return n.removeValue(P)},onMouseDown:function(Z){Z.preventDefault()}},data:P}),n.formatOptionLabel(P,"value"))});if(p)return null;var S=I[0];return v.createElement(c,x({},m,{data:S,isDisabled:h}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),a=n.ClearIndicator,s=this.commonProps,l=this.props,o=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||o||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(a,x({},s,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),a=n.LoadingIndicator,s=this.commonProps,l=this.props,o=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!a||!u)return null;var d={"aria-hidden":"true"};return v.createElement(a,x({},s,{innerProps:d,isDisabled:o,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),a=n.DropdownIndicator,s=n.IndicatorSeparator;if(!a||!s)return null;var l=this.commonProps,o=this.props.isDisabled,u=this.state.isFocused;return v.createElement(s,x({},l,{isDisabled:o,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),a=n.DropdownIndicator;if(!a)return null;var s=this.commonProps,l=this.props.isDisabled,o=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(a,x({},s,{innerProps:u,isDisabled:l,isFocused:o}))}},{key:"renderMenu",value:function(){var n=this,a=this.getComponents(),s=a.Group,l=a.GroupHeading,o=a.Menu,u=a.MenuList,c=a.MenuPortal,d=a.LoadingMessage,m=a.NoOptionsMessage,g=a.Option,b=this.commonProps,h=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,y=f.inputValue,C=f.isLoading,I=f.loadingMessage,V=f.minMenuHeight,M=f.maxMenuHeight,S=f.menuIsOpen,P=f.menuPlacement,L=f.menuPosition,N=f.menuPortalTarget,B=f.menuShouldBlockScroll,_=f.menuShouldScrollIntoView,Z=f.noOptionsMessage,Q=f.onMenuScrollToTop,A=f.onMenuScrollToBottom;if(!S)return null;var T=function(z,ee){var se=z.type,Y=z.data,ue=z.isDisabled,te=z.isSelected,we=z.label,_n=z.value,bt=h===Y,St=ue?void 0:function(){return n.onOptionHover(Y)},jn=ue?void 0:function(){return n.selectOption(Y)},yt="".concat(n.getElementId("option"),"-").concat(ee),Bn={id:yt,onClick:jn,onMouseMove:St,onMouseOver:St,tabIndex:-1,role:"option","aria-selected":n.isAppleDevice?void 0:te};return v.createElement(g,x({},b,{innerProps:Bn,data:Y,isDisabled:ue,isSelected:te,key:yt,label:we,type:se,value:_n,isFocused:bt,innerRef:bt?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(z.data,"menu"))},q;if(this.hasOptions())q=this.getCategorizedOptions().map(function(k){if(k.type==="group"){var z=k.data,ee=k.options,se=k.index,Y="".concat(n.getElementId("group"),"-").concat(se),ue="".concat(Y,"-heading");return v.createElement(s,x({},b,{key:Y,data:z,options:ee,Heading:l,headingProps:{id:ue,data:k.data},label:n.formatGroupLabel(k.data)}),k.options.map(function(te){return T(te,"".concat(se,"-").concat(te.index))}))}else if(k.type==="option")return T(k,"".concat(k.index))});else if(C){var G=I({inputValue:y});if(G===null)return null;q=v.createElement(d,b,G)}else{var ae=Z({inputValue:y});if(ae===null)return null;q=v.createElement(m,b,ae)}var oe={minMenuHeight:V,maxMenuHeight:M,menuPlacement:P,menuPosition:L,menuShouldScrollIntoView:_},Oe=v.createElement(Ui,x({},b,oe),function(k){var z=k.ref,ee=k.placerProps,se=ee.placement,Y=ee.maxHeight;return v.createElement(o,x({},b,oe,{innerRef:z,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:C,placement:se}),v.createElement(bo,{captureEnabled:p,onTopArrive:Q,onBottomArrive:A,lockEnabled:B},function(ue){return v.createElement(u,x({},b,{innerRef:function(we){n.getMenuListRef(we),ue(we)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:n.getElementId("listbox")},isLoading:C,maxHeight:Y,focusedOption:h}),q)}))});return N||L==="fixed"?v.createElement(c,x({},b,{appendTo:N,controlElement:this.controlRef,menuPlacement:P,menuPosition:L}),Oe):Oe}},{key:"renderFormField",value:function(){var n=this,a=this.props,s=a.delimiter,l=a.isDisabled,o=a.isMulti,u=a.name,c=a.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!l)return v.createElement(Co,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(o)if(s){var m=d.map(function(h){return n.getOptionValue(h)}).join(s);return v.createElement("input",{name:u,type:"hidden",value:m})}else{var g=d.length>0?d.map(function(h,f){return v.createElement("input",{key:"i-".concat(f),name:u,type:"hidden",value:n.getOptionValue(h)})}):v.createElement("input",{name:u,type:"hidden",value:""});return v.createElement("div",null,g)}else{var b=d[0]?this.getOptionValue(d[0]):"";return v.createElement("input",{name:u,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,a=this.state,s=a.ariaSelection,l=a.focusedOption,o=a.focusedValue,u=a.isFocused,c=a.selectValue,d=this.getFocusableOptions();return v.createElement(ao,x({},n,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:l,focusedValue:o,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),a=n.Control,s=n.IndicatorsContainer,l=n.SelectContainer,o=n.ValueContainer,u=this.props,c=u.className,d=u.id,m=u.isDisabled,g=u.menuIsOpen,b=this.state.isFocused,h=this.commonProps=this.getCommonProps();return v.createElement(l,x({},h,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:m,isFocused:b}),this.renderLiveRegion(),v.createElement(a,x({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:m,isFocused:b,menuIsOpen:g}),v.createElement(o,x({},h,{isDisabled:m}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(s,x({},h,{isDisabled:m}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,a){var s=a.prevProps,l=a.clearFocusValueOnUpdate,o=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,d=a.prevWasFocused,m=a.instancePrefix,g=n.options,b=n.value,h=n.menuIsOpen,f=n.inputValue,p=n.isMulti,y=Tt(b),C={};if(s&&(b!==s.value||g!==s.options||h!==s.menuIsOpen||f!==s.inputValue)){var I=h?$o(n,y):[],V=h?Kt(Fe(n,y),"".concat(m,"-option")):[],M=l?Ho(a,y):null,S=No(a,I),P=Qe(V,S);C={selectValue:y,focusedOption:S,focusedOptionId:P,focusableOptionsWithIds:V,focusedValue:M,clearFocusValueOnUpdate:!1}}var L=o!=null&&n!==s?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},N=u,B=c&&d;return c&&!B&&(N={value:Ve(p,y,y[0]||null),options:y,action:"initial-input-focus"},B=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(N=null),w(w(w({},C),L),{},{prevProps:n,ariaSelection:N,prevWasFocused:B})}}]),r}(v.Component);Nn.defaultProps=Ao;var jo=v.forwardRef(function(t,e){var r=ur(t);return v.createElement(Nn,x({ref:e},r))}),Bo=jo;const Uo=je.button` + background-color: #3d94f6; + border-radius: 2px; + border: 1px solid #337fed; + cursor: pointer; + color: #ffffff; + font-size: 12px; + font-weight: bold; + padding: 1px 30px; + text-decoration: none; + text-shadow: 0px 1px 0px #1570cd; + margin: 8px; + + &:hover { + background: linear-gradient(to bottom, #1e62d0 5%, #3d94f6 100%); + background-color: #1e62d0; + } + + &:active { + position: relative; + top: 1px; + } +`,zo=je.div` + display: flex; + gap: 10px; + margin-bottom: 30px; + padding-bottom: 15px; + + @media (max-width: 1100px) { + flex-direction: column; + } +`,Wo=je.input`np + border-color: hsl(0, 0%, 80%); + border-radius: 4px; + border-style: solid; + border-width: 1px; + height: 48px; + padding: 10px; + width: 50%; + + &:focus { + border-color: #2684ff; + border-width: 2px; + } + + @media (max-width: 1100px) { + width: 100%; + } +`,Go={container:t=>({...t,flexGrow:1,height:"49px"})},Yo=()=>{const t=qn(),e=le(d=>d.filters.name),r=le(d=>d.recipes.categories),i=le(d=>d.filters.categories),{t:n}=Kn(),[a,s]=v.useState([]),[l,o]=v.useState(!1),u=d=>{t(Xn(d.target.value))},c=d=>{t(Jn(d))};return v.useEffect(()=>{const d=r.map(m=>({value:m,label:n(`categories.${m}`)}));s(d)},[r,n]),$.jsxs($.Fragment,{children:[$.jsx(Uo,{onClick:()=>{o(d=>!d)},children:n("show_filters")}),l&&$.jsxs(zo,{children:[$.jsx(Wo,{type:"text",placeholder:n("name"),value:e,onChange:u}),$.jsx(Bo,{styles:Go,placeholder:n("categories_name")+"...",closeMenuOnSelect:!1,isMulti:!0,options:a,onChange:c,value:i})]})]})},qo=({title:t,time:e,categories:r,onClick:i})=>$.jsxs("tr",{onClick:i,children:[$.jsx("td",{children:t}),$.jsx("td",{children:$.jsx(Qn,{categories:r})}),$.jsx("td",{children:e?`${e.toString()}'`:null})]}),Ko=je(nr)` + border-top: solid 1px; +`,Xo=({recipes:t,onSelectRecipe:e})=>$.jsx(Ko,{hover:!0,children:$.jsx("tbody",{children:t.map(r=>v.createElement(qo,{...r,key:r.id,onClick:()=>{e(r.id)}}))})}),Jo=(t,e)=>{if(t.length===0)return!0;const r=t.map(i=>i.value);return e.some(i=>r.indexOf(i)>=0)},es=()=>{const t=Zn(),e=le(o=>o.recipes.recipes),r=le(o=>o.recipes.loading),i=le(o=>o.filters.name),n=le(o=>o.filters.categories),[a,s]=v.useState([]);v.useEffect(()=>{const o=e.filter(u=>Ot.toLower(u.title).includes(Ot.toLower(i))&&Jo(n,u.categories));s(o)},[e,i,n]);const l=o=>{t("/recipes/"+o.toString())};return $.jsxs(er,{isLoading:r,children:[$.jsx(Yo,{}),$.jsx(Xo,{recipes:a,onSelectRecipe:l})]})};export{es as default}; diff --git a/dist/assets/index-BXnzDVwr.js b/dist/assets/index-BXnzDVwr.js new file mode 100644 index 0000000..6c75eca --- /dev/null +++ b/dist/assets/index-BXnzDVwr.js @@ -0,0 +1,3304 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RecipesList-d9SdWYK4.js","assets/CategoriesBar-BbRhE4Cs.js","assets/RecipeDetails-BJWCttBR.js"])))=>i.map(i=>d[i]); +function KN(t,e){for(var n=0;ni[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function n(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(a){if(a.ep)return;a.ep=!0;const u=n(a);fetch(a.href,u)}})();var Ky=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function id(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var t1={exports:{}},_p={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var iw;function XN(){if(iw)return _p;iw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,a,u){var d=null;if(u!==void 0&&(d=""+u),a.key!==void 0&&(d=""+a.key),"key"in a){u={};for(var h in a)h!=="key"&&(u[h]=a[h])}else u=a;return a=u.ref,{$$typeof:t,type:i,key:d,ref:a!==void 0?a:null,props:u}}return _p.Fragment=e,_p.jsx=n,_p.jsxs=n,_p}var rw;function QN(){return rw||(rw=1,t1.exports=XN()),t1.exports}var ye=QN(),n1={exports:{}},st={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var sw;function ZN(){if(sw)return st;sw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.iterator;function S(F){return F===null||typeof F!="object"?null:(F=E&&F[E]||F["@@iterator"],typeof F=="function"?F:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,D={};function O(F,oe,ce){this.props=F,this.context=oe,this.refs=D,this.updater=ce||R}O.prototype.isReactComponent={},O.prototype.setState=function(F,oe){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,oe,"setState")},O.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function L(){}L.prototype=O.prototype;function k(F,oe,ce){this.props=F,this.context=oe,this.refs=D,this.updater=ce||R}var z=k.prototype=new L;z.constructor=k,T(z,O.prototype),z.isPureReactComponent=!0;var B=Array.isArray,M={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function Q(F,oe,ce,ie,ee,ve){return ce=ve.ref,{$$typeof:t,type:F,key:oe,ref:ce!==void 0?ce:null,props:ve}}function W(F,oe){return Q(F.type,oe,void 0,void 0,void 0,F.props)}function J(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function ne(F){var oe={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(ce){return oe[ce]})}var re=/\/+/g;function Ie(F,oe){return typeof F=="object"&&F!==null&&F.key!=null?ne(""+F.key):oe.toString(36)}function Ae(){}function Ne(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(Ae,Ae):(F.status="pending",F.then(function(oe){F.status==="pending"&&(F.status="fulfilled",F.value=oe)},function(oe){F.status==="pending"&&(F.status="rejected",F.reason=oe)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function we(F,oe,ce,ie,ee){var ve=typeof F;(ve==="undefined"||ve==="boolean")&&(F=null);var q=!1;if(F===null)q=!0;else switch(ve){case"bigint":case"string":case"number":q=!0;break;case"object":switch(F.$$typeof){case t:case e:q=!0;break;case _:return q=F._init,we(q(F._payload),oe,ce,ie,ee)}}if(q)return ee=ee(F),q=ie===""?"."+Ie(F,0):ie,B(ee)?(ce="",q!=null&&(ce=q.replace(re,"$&/")+"/"),we(ee,oe,ce,"",function(ze){return ze})):ee!=null&&(J(ee)&&(ee=W(ee,ce+(ee.key==null||F&&F.key===ee.key?"":(""+ee.key).replace(re,"$&/")+"/")+q)),oe.push(ee)),1;q=0;var He=ie===""?".":ie+":";if(B(F))for(var ue=0;ue>>1,F=fe[Le];if(0>>1;Lea(ie,_e))eea(ve,ie)?(fe[Le]=ve,fe[ee]=_e,Le=ee):(fe[Le]=ie,fe[ce]=_e,Le=ce);else if(eea(ve,_e))fe[Le]=ve,fe[ee]=_e,Le=ee;else break e}}return be}function a(fe,be){var _e=fe.sortIndex-be.sortIndex;return _e!==0?_e:fe.id-be.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var p=[],m=[],_=1,E=null,S=3,R=!1,T=!1,D=!1,O=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function z(fe){for(var be=n(m);be!==null;){if(be.callback===null)i(m);else if(be.startTime<=fe)i(m),be.sortIndex=be.expirationTime,e(p,be);else break;be=n(m)}}function B(fe){if(D=!1,z(fe),!T)if(n(p)!==null)T=!0,Ne();else{var be=n(m);be!==null&&we(B,be.startTime-fe)}}var M=!1,K=-1,Q=5,W=-1;function J(){return!(t.unstable_now()-Wfe&&J());){var Le=E.callback;if(typeof Le=="function"){E.callback=null,S=E.priorityLevel;var F=Le(E.expirationTime<=fe);if(fe=t.unstable_now(),typeof F=="function"){E.callback=F,z(fe),be=!0;break t}E===n(p)&&i(p),z(fe)}else i(p);E=n(p)}if(E!==null)be=!0;else{var oe=n(m);oe!==null&&we(B,oe.startTime-fe),be=!1}}break e}finally{E=null,S=_e,R=!1}be=void 0}}finally{be?re():M=!1}}}var re;if(typeof k=="function")re=function(){k(ne)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,Ae=Ie.port2;Ie.port1.onmessage=ne,re=function(){Ae.postMessage(null)}}else re=function(){O(ne,0)};function Ne(){M||(M=!0,re())}function we(fe,be){K=O(function(){fe(t.unstable_now())},be)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(fe){fe.callback=null},t.unstable_continueExecution=function(){T||R||(T=!0,Ne())},t.unstable_forceFrameRate=function(fe){0>fe||125Le?(fe.sortIndex=_e,e(m,fe),n(p)===null&&fe===n(m)&&(D?(L(K),K=-1):D=!0,we(B,_e-Le))):(fe.sortIndex=F,e(p,fe),T||R||(T=!0,Ne())),fe},t.unstable_shouldYield=J,t.unstable_wrapCallback=function(fe){var be=S;return function(){var _e=S;S=be;try{return fe.apply(this,arguments)}finally{S=_e}}}}(s1)),s1}var lw;function eI(){return lw||(lw=1,r1.exports=JN()),r1.exports}var a1={exports:{}},ei={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var uw;function tI(){if(uw)return ei;uw=1;var t=f_();function e(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),a1.exports=tI(),a1.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fw;function nI(){if(fw)return bp;fw=1;var t=eI(),e=f_(),n=Rx();function i(r){var s="https://react.dev/errors/"+r;if(1)":-1g||P[f]!==$[g]){var le=` +`+P[f].replace(" at new "," at ");return r.displayName&&le.includes("")&&(le=le.replace("",r.displayName)),le}while(1<=f&&0<=g);break}}}finally{Ne=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Ae(o):""}function fe(r){switch(r.tag){case 26:case 27:case 5:return Ae(r.type);case 16:return Ae("Lazy");case 13:return Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 15:return r=we(r.type,!1),r;case 11:return r=we(r.type.render,!1),r;case 1:return r=we(r.type,!0),r;default:return""}}function be(r){try{var s="";do s+=fe(r),r=r.return;while(r);return s}catch(o){return` +Error generating stack: `+o.message+` +`+o.stack}}function _e(r){var s=r,o=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,s.flags&4098&&(o=s.return),r=s.return;while(r)}return s.tag===3?o:null}function Le(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function F(r){if(_e(r)!==r)throw Error(i(188))}function oe(r){var s=r.alternate;if(!s){if(s=_e(r),s===null)throw Error(i(188));return s!==r?null:r}for(var o=r,f=s;;){var g=o.return;if(g===null)break;var v=g.alternate;if(v===null){if(f=g.return,f!==null){o=f;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===o)return F(g),r;if(v===f)return F(g),s;v=v.sibling}throw Error(i(188))}if(o.return!==f.return)o=g,f=v;else{for(var w=!1,N=g.child;N;){if(N===o){w=!0,o=g,f=v;break}if(N===f){w=!0,f=g,o=v;break}N=N.sibling}if(!w){for(N=v.child;N;){if(N===o){w=!0,o=v,f=g;break}if(N===f){w=!0,f=v,o=g;break}N=N.sibling}if(!w)throw Error(i(189))}}if(o.alternate!==f)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?r:s}function ce(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=ce(r),s!==null)return s;r=r.sibling}return null}var ie=Array.isArray,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},q=[],He=-1;function ue(r){return{current:r}}function ze(r){0>He||(r.current=q[He],q[He]=null,He--)}function Oe(r,s){He++,q[He]=r.current,r.current=s}var Ve=ue(null),Be=ue(null),vt=ue(null),ct=ue(null);function Re(r,s){switch(Oe(vt,s),Oe(Be,r),Oe(Ve,null),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?Iy(s):0;break;default:if(r=r===8?s.parentNode:s,s=r.tagName,r=r.namespaceURI)r=Iy(r),s=Dy(r,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}ze(Ve),Oe(Ve,s)}function At(){ze(Ve),ze(Be),ze(vt)}function qe(r){r.memoizedState!==null&&Oe(ct,r);var s=Ve.current,o=Dy(s,r.type);s!==o&&(Oe(Be,r),Oe(Ve,o))}function Bt(r){Be.current===r&&(ze(Ve),ze(Be)),ct.current===r&&(ze(ct),Su._currentValue=ve)}var $i=Object.prototype.hasOwnProperty,Et=t.unstable_scheduleCallback,Gt=t.unstable_cancelCallback,Gn=t.unstable_shouldYield,gn=t.unstable_requestPaint,De=t.unstable_now,Tt=t.unstable_getCurrentPriorityLevel,Br=t.unstable_ImmediatePriority,ai=t.unstable_UserBlockingPriority,sn=t.unstable_NormalPriority,pd=t.unstable_LowPriority,nc=t.unstable_IdlePriority,gd=t.log,md=t.unstable_setDisableYieldValue,la=null,Pn=null;function yd(r){if(Pn&&typeof Pn.onCommitFiberRoot=="function")try{Pn.onCommitFiberRoot(la,r,void 0,(r.current.flags&128)===128)}catch{}}function hr(r){if(typeof gd=="function"&&md(r),Pn&&typeof Pn.setStrictMode=="function")try{Pn.setStrictMode(la,r)}catch{}}var Un=Math.clz32?Math.clz32:H_,B_=Math.log,F_=Math.LN2;function H_(r){return r>>>=0,r===0?32:31-(B_(r)/F_|0)|0}var El=128,Sl=4194304;function ua(r){var s=r&42;if(s!==0)return s;switch(r&-r){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:return 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 r&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function ic(r,s){var o=r.pendingLanes;if(o===0)return 0;var f=0,g=r.suspendedLanes,v=r.pingedLanes,w=r.warmLanes;r=r.finishedLanes!==0;var N=o&134217727;return N!==0?(o=N&~g,o!==0?f=ua(o):(v&=N,v!==0?f=ua(v):r||(w=N&~w,w!==0&&(f=ua(w))))):(N=o&~g,N!==0?f=ua(N):v!==0?f=ua(v):r||(w=o&~w,w!==0&&(f=ua(w)))),f===0?0:s!==0&&s!==f&&!(s&g)&&(g=f&-f,w=s&-s,g>=w||g===32&&(w&4194176)!==0)?s:f}function wl(r,s){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&s)===0}function j_(r,s){switch(r){case 1:case 2:case 4:case 8:return s+250;case 16:case 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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vd(){var r=El;return El<<=1,!(El&4194176)&&(El=128),r}function Bg(){var r=Sl;return Sl<<=1,!(Sl&62914560)&&(Sl=4194304),r}function _d(r){for(var s=[],o=0;31>o;o++)s.push(r);return s}function Cl(r,s){r.pendingLanes|=s,s!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function bd(r,s,o,f,g,v){var w=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var N=r.entanglements,P=r.expirationTimes,$=r.hiddenUpdates;for(o=w&~o;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wg=RegExp("^[: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]*$"),Yg={},Kg={};function q_(r){return $i.call(Kg,r)?!0:$i.call(Yg,r)?!1:Wg.test(r)?Kg[r]=!0:(Yg[r]=!0,!1)}function sc(r,s,o){if(q_(s))if(o===null)r.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(s);return;case"boolean":var f=s.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){r.removeAttribute(s);return}}r.setAttribute(s,""+o)}}function xl(r,s,o){if(o===null)r.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttribute(s,""+o)}}function gr(r,s,o,f){if(f===null)r.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(s,o,""+f)}}function oi(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function ac(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function G_(r){var s=ac(r)?"checked":"value",o=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),f=""+r[s];if(!r.hasOwnProperty(s)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var g=o.get,v=o.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return g.call(this)},set:function(w){f=""+w,v.call(this,w)}}),Object.defineProperty(r,s,{enumerable:o.enumerable}),{getValue:function(){return f},setValue:function(w){f=""+w},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Rl(r){r._valueTracker||(r._valueTracker=G_(r))}function Ol(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var o=s.getValue(),f="";return r&&(f=ac(r)?r.checked?"true":"false":r.value),r=f,r!==o?(s.setValue(r),!0):!1}function Al(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var W_=/[\n"\\]/g;function li(r){return r.replace(W_,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function oc(r,s,o,f,g,v,w,N){r.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?r.type=w:r.removeAttribute("type"),s!=null?w==="number"?(s===0&&r.value===""||r.value!=s)&&(r.value=""+oi(s)):r.value!==""+oi(s)&&(r.value=""+oi(s)):w!=="submit"&&w!=="reset"||r.removeAttribute("value"),s!=null?wd(r,w,oi(s)):o!=null?wd(r,w,oi(o)):f!=null&&r.removeAttribute("value"),g==null&&v!=null&&(r.defaultChecked=!!v),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?r.name=""+oi(N):r.removeAttribute("name")}function lc(r,s,o,f,g,v,w,N){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(r.type=v),s!=null||o!=null){if(!(v!=="submit"&&v!=="reset"||s!=null))return;o=o!=null?""+oi(o):"",s=s!=null?""+oi(s):o,N||s===r.value||(r.value=s),r.defaultValue=s}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,r.checked=N?r.checked:!!f,r.defaultChecked=!!f,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(r.name=w)}function wd(r,s,o){s==="number"&&Al(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function ha(r,s,o,f){if(r=r.options,s){s={};for(var g=0;g=ho),_c=" ",kd=!1;function hm(r,s){switch(r){case"keyup":return fo.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bc(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Es=!1;function t0(r,s){switch(r){case"compositionend":return bc(s);case"keypress":return s.which!==32?null:(kd=!0,_c);case"textInput":return r=s.data,r===_c&&kd?null:r;default:return null}}function pm(r,s){if(Es)return r==="compositionend"||!Ld&&hm(r,s)?(r=nm(),dc=Od=_s=null,Es=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:o,offset:s-r};r=f}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Oi(o)}}function bm(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?bm(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Em(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var s=Al(r.document);s instanceof r.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)r=s.contentWindow;else break;s=Al(r.document)}return s}function zd(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function s0(r,s){var o=Em(s);s=r.focusedElem;var f=r.selectionRange;if(o!==s&&s&&s.ownerDocument&&bm(s.ownerDocument.documentElement,s)){if(f!==null&&zd(s)){if(r=f.start,o=f.end,o===void 0&&(o=r),"selectionStart"in s)s.selectionStart=r,s.selectionEnd=Math.min(o,s.value.length);else if(o=(r=s.ownerDocument||document)&&r.defaultView||window,o.getSelection){o=o.getSelection();var g=s.textContent.length,v=Math.min(f.start,g);f=f.end===void 0?v:Math.min(f.end,g),!o.extend&&v>f&&(g=f,f=v,v=g),g=Ud(s,v);var w=Ud(s,f);g&&w&&(o.rangeCount!==1||o.anchorNode!==g.node||o.anchorOffset!==g.offset||o.focusNode!==w.node||o.focusOffset!==w.offset)&&(r=r.createRange(),r.setStart(g.node,g.offset),o.removeAllRanges(),v>f?(o.addRange(r),o.extend(w.node,w.offset)):(r.setEnd(w.node,w.offset),o.addRange(r)))}}for(r=[],o=s;o=o.parentNode;)o.nodeType===1&&r.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,qi=null,V=null,se=null,te=!1;function Te(r,s,o){var f=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;te||qi==null||qi!==Al(f)||(f=qi,"selectionStart"in f&&zd(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),se&&yr(se,f)||(se=f,f=lf(V,"onSelect"),0>=w,g-=w,Di=1<<32-Un(s)+g|o<$e?(Ct=Pe,Pe=null):Ct=Pe.sibling;var bt=Z(Y,Pe,X[$e],he);if(bt===null){Pe===null&&(Pe=Ct);break}r&&Pe&&bt.alternate===null&&s(Y,Pe),j=v(bt,j,$e),ot===null?xe=bt:ot.sibling=bt,ot=bt,Pe=Ct}if($e===X.length)return o(Y,Pe),Ye&&jr(Y,$e),xe;if(Pe===null){for(;$e$e?(Ct=Pe,Pe=null):Ct=Pe.sibling;var Ws=Z(Y,Pe,bt.value,he);if(Ws===null){Pe===null&&(Pe=Ct);break}r&&Pe&&Ws.alternate===null&&s(Y,Pe),j=v(Ws,j,$e),ot===null?xe=Ws:ot.sibling=Ws,ot=Ws,Pe=Ct}if(bt.done)return o(Y,Pe),Ye&&jr(Y,$e),xe;if(Pe===null){for(;!bt.done;$e++,bt=X.next())bt=ge(Y,bt.value,he),bt!==null&&(j=v(bt,j,$e),ot===null?xe=bt:ot.sibling=bt,ot=bt);return Ye&&jr(Y,$e),xe}for(Pe=f(Pe);!bt.done;$e++,bt=X.next())bt=ae(Pe,Y,$e,bt.value,he),bt!==null&&(r&&bt.alternate!==null&&Pe.delete(bt.key===null?$e:bt.key),j=v(bt,j,$e),ot===null?xe=bt:ot.sibling=bt,ot=bt);return r&&Pe.forEach(function(X0){return s(Y,X0)}),Ye&&jr(Y,$e),xe}function Xt(Y,j,X,he){if(typeof X=="object"&&X!==null&&X.type===p&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case d:e:{for(var xe=X.key;j!==null;){if(j.key===xe){if(xe=X.type,xe===p){if(j.tag===7){o(Y,j.sibling),he=g(j,X.props.children),he.return=Y,Y=he;break e}}else if(j.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===k&&Fl(xe)===j.type){o(Y,j.sibling),he=g(j,X.props),A(he,X),he.return=Y,Y=he;break e}o(Y,j);break}else s(Y,j);j=j.sibling}X.type===p?(he=Ia(X.props.children,Y.mode,he,X.key),he.return=Y,Y=he):(he=uu(X.type,X.key,X.props,null,Y.mode,he),A(he,X),he.return=Y,Y=he)}return w(Y);case h:e:{for(xe=X.key;j!==null;){if(j.key===xe)if(j.tag===4&&j.stateNode.containerInfo===X.containerInfo&&j.stateNode.implementation===X.implementation){o(Y,j.sibling),he=g(j,X.children||[]),he.return=Y,Y=he;break e}else{o(Y,j);break}else s(Y,j);j=j.sibling}he=Dh(X,Y.mode,he),he.return=Y,Y=he}return w(Y);case k:return xe=X._init,X=xe(X._payload),Xt(Y,j,X,he)}if(ie(X))return Me(Y,j,X,he);if(K(X)){if(xe=K(X),typeof xe!="function")throw Error(i(150));return X=xe.call(X),Ke(Y,j,X,he)}if(typeof X.then=="function")return Xt(Y,j,Bl(X),he);if(X.$$typeof===R)return Xt(Y,j,Xc(Y,X),he);Wr(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,j!==null&&j.tag===6?(o(Y,j.sibling),he=g(j,X),he.return=Y,Y=he):(o(Y,j),he=Ih(X,Y.mode,he),he.return=Y,Y=he),w(Y)):o(Y,j)}return function(Y,j,X,he){try{Gr=0;var xe=Xt(Y,j,X,he);return qr=null,xe}catch(Pe){if(Pe===Vr)throw Pe;var ot=_i(29,Pe,null,Y.mode);return ot.lanes=he,ot.return=Y,ot}finally{}}}var et=di(!0),Om=di(!1),bo=ue(null),Ic=ue(0);function Ts(r,s){r=rs,Oe(Ic,r),Oe(bo,s),rs=r|s.baseLanes}function $d(){Oe(Ic,rs),Oe(bo,bo.current)}function Vd(){rs=Ic.current,ze(bo),ze(Ic)}var Li=ue(null),wr=null;function xs(r){var s=r.alternate;Oe(mn,mn.current&1),Oe(Li,r),wr===null&&(s===null||bo.current!==null||s.memoizedState!==null)&&(wr=r)}function Cr(r){if(r.tag===22){if(Oe(mn,mn.current),Oe(Li,r),wr===null){var s=r.alternate;s!==null&&s.memoizedState!==null&&(wr=r)}}else Rs()}function Rs(){Oe(mn,mn.current),Oe(Li,Li.current)}function Yr(r){ze(Li),wr===r&&(wr=null),ze(mn)}var mn=ue(0);function Dc(r){for(var s=r;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var l0=typeof AbortController<"u"?AbortController:function(){var r=[],s=this.signal={aborted:!1,addEventListener:function(o,f){r.push(f)}};this.abort=function(){s.aborted=!0,r.forEach(function(o){return o()})}},Kr=t.unstable_scheduleCallback,u0=t.unstable_NormalPriority,yn={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qd(){return{controller:new l0,data:new Map,refCount:0}}function Hl(r){r.refCount--,r.refCount===0&&Kr(u0,function(){r.controller.abort()})}var jl=null,Xr=0,Eo=0,So=null;function Yi(r,s){if(jl===null){var o=jl=[];Xr=0,Eo=Kh(),So={status:"pending",value:void 0,then:function(f){o.push(f)}}}return Xr++,s.then(Am,Am),s}function Am(){if(--Xr===0&&jl!==null){So!==null&&(So.status="fulfilled");var r=jl;jl=null,Eo=0,So=null;for(var s=0;sv?v:8;var w=J.T,N={};J.T=N,No(r,!1,s,o);try{var P=g(),$=J.S;if($!==null&&$(N,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var le=c0(P,f);Kl(r,s,le,Ei(r))}else Kl(r,s,f,Ei(r))}catch(ge){Kl(r,s,{then:function(){},status:"rejected",reason:ge},Ei())}finally{ee.p=v,J.T=w}}function d0(){}function Yl(r,s,o,f){if(r.tag!==5)throw Error(i(476));var g=it(r).queue;Hc(r,g,s,ve,o===null?d0:function(){return $m(r),o(f)})}function it(r){var s=r.memoizedState;if(s!==null)return s;s={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:ve},next:null};var o={};return s.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:o},next:null},r.memoizedState=s,r=r.alternate,r!==null&&(r.memoizedState=s),s}function $m(r){var s=it(r).next.queue;Kl(r,s,{},Ei())}function oh(){return An(Su)}function Ao(){return un().memoizedState}function lh(){return un().memoizedState}function h0(r){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var o=Ei();r=er(o);var f=gi(s,r,o);f!==null&&(In(f,s,o),Fe(f,s,o)),s={cache:qd()},r.payload=s;return}s=s.return}}function p0(r,s,o){var f=Ei();o={lane:f,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},Io(r)?uh(s,o):(o=vr(r,s,o,f),o!==null&&(In(o,r,f),ch(o,s,f)))}function pi(r,s,o){var f=Ei();Kl(r,s,o,f)}function Kl(r,s,o,f){var g={lane:f,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(Io(r))uh(s,g);else{var v=r.alternate;if(r.lanes===0&&(v===null||v.lanes===0)&&(v=s.lastRenderedReducer,v!==null))try{var w=s.lastRenderedState,N=v(w,o);if(g.hasEagerState=!0,g.eagerState=N,ci(N,w))return ma(r,s,g,0),Lt===null&&xc(),!1}catch{}finally{}if(o=vr(r,s,g,f),o!==null)return In(o,r,f),ch(o,s,f),!0}return!1}function No(r,s,o,f){if(f={lane:2,revertLane:Kh(),action:f,hasEagerState:!1,eagerState:null,next:null},Io(r)){if(s)throw Error(i(479))}else s=vr(r,o,f,2),s!==null&&In(s,r,2)}function Io(r){var s=r.alternate;return r===rt||s!==null&&s===rt}function uh(r,s){wo=Ta=!0;var o=r.pending;o===null?s.next=s:(s.next=o.next,o.next=s),r.pending=s}function ch(r,s,o){if(o&4194176){var f=s.lanes;f&=r.pendingLanes,o|=f,s.lanes=o,rc(r,o)}}var Jt={readContext:An,use:Vl,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt};Jt.useCacheRefresh=wt,Jt.useMemoCache=wt,Jt.useHostTransitionStatus=wt,Jt.useFormState=wt,Jt.useActionState=wt,Jt.useOptimistic=wt;var Qn={readContext:An,use:Vl,useCallback:function(r,s){return Xn().memoizedState=[r,s===void 0?null:s],r},useContext:An,useEffect:th,useImperativeHandle:function(r,s,o){o=o!=null?o.concat([r]):null,Oo(4194308,4,nh.bind(null,s,r),o)},useLayoutEffect:function(r,s){return Oo(4194308,4,r,s)},useInsertionEffect:function(r,s){Oo(4,2,r,s)},useMemo:function(r,s){var o=Xn();s=s===void 0?null:s;var f=r();if(As){hr(!0);try{r()}finally{hr(!1)}}return o.memoizedState=[f,s],f},useReducer:function(r,s,o){var f=Xn();if(o!==void 0){var g=o(s);if(As){hr(!0);try{o(s)}finally{hr(!1)}}}else g=s;return f.memoizedState=f.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},f.queue=r,r=r.dispatch=p0.bind(null,rt,r),[f.memoizedState,r]},useRef:function(r){var s=Xn();return r={current:r},s.memoizedState=r},useState:function(r){r=Qd(r);var s=r.queue,o=pi.bind(null,rt,s);return s.dispatch=o,[r.memoizedState,o]},useDebugValue:rh,useDeferredValue:function(r,s){var o=Xn();return Wl(o,r,s)},useTransition:function(){var r=Qd(!1);return r=Hc.bind(null,rt,r.queue,!0,!1),Xn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,s,o){var f=rt,g=Xn();if(Ye){if(o===void 0)throw Error(i(407));o=o()}else{if(o=s(),Lt===null)throw Error(i(349));_t&60||Uc(f,s,o)}g.memoizedState=o;var v={value:o,getSnapshot:s};return g.queue=v,th(Dm.bind(null,f,v,r),[r]),f.flags|=2048,Ds(9,Im.bind(null,f,v,o,s),{destroy:void 0},null),o},useId:function(){var r=Xn(),s=Lt.identifierPrefix;if(Ye){var o=Mi,f=Di;o=(f&~(1<<32-Un(f)-1)).toString(32)+o,s=":"+s+"R"+o,o=Mc++,0 title"))),Cn(v,f,o),v[Rn]=r,an(v),f=v;break e;case"link":var w=zy("link","href",g).get(f+(o.href||""));if(w){for(var N=0;N<\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof f.is=="string"?g.createElement("select",{is:f.is}):g.createElement("select"),f.multiple?r.multiple=!0:f.size&&(r.size=f.size);break;default:r=typeof f.is=="string"?g.createElement(o,{is:f.is}):g.createElement(o)}}r[Rn]=s,r[Wn]=f;e:for(g=s.child;g!==null;){if(g.tag===5||g.tag===6)r.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===s)break e;for(;g.sibling===null;){if(g.return===null||g.return===s)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}s.stateNode=r;e:switch(Cn(r,o,f),o){case"button":case"input":case"select":case"textarea":r=!!f.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ns(s)}}return Wt(s),s.flags&=-16777217,null;case 6:if(r&&s.stateNode!=null)r.memoizedProps!==f&&ns(s);else{if(typeof f!="string"&&s.stateNode===null)throw Error(i(166));if(r=vt.current,wa(s)){if(r=s.stateNode,o=s.memoizedProps,f=null,g=Fn,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}r[Rn]=s,r=!!(r.nodeValue===o||f!==null&&f.suppressHydrationWarning===!0||Qe(r.nodeValue,o)),r||Sa(s)}else r=cf(r).createTextNode(f),r[Rn]=s,s.stateNode=r}return Wt(s),null;case 13:if(f=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=wa(s),f!==null&&f.dehydrated!==null){if(r===null){if(!g)throw Error(i(318));if(g=s.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[Rn]=s}else Sr(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;Wt(s),g=!1}else Wi!==null&&(qo(Wi),Wi=null),g=!0;if(!g)return s.flags&256?(Yr(s),s):(Yr(s),null)}if(Yr(s),s.flags&128)return s.lanes=o,s;if(o=f!==null,r=r!==null&&r.memoizedState!==null,o){f=s.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool);var v=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==g&&(f.flags|=2048)}return o!==r&&o&&(s.child.flags|=8192),$n(s,s.updateQueue),Wt(s),null;case 4:return At(),r===null&&ep(s.stateNode.containerInfo),Wt(s),null;case 10:return xr(s.type),Wt(s),null;case 19:if(ze(mn),g=s.memoizedState,g===null)return Wt(s),null;if(f=(s.flags&128)!==0,v=g.rendering,v===null)if(f)cu(g,!1);else{if(tn!==0||r!==null&&r.flags&128)for(r=s.child;r!==null;){if(v=Dc(r),v!==null){for(s.flags|=128,cu(g,!1),r=v.updateQueue,s.updateQueue=r,$n(s,r),s.subtreeFlags=0,r=o,o=s.child;o!==null;)ly(o,r),o=o.sibling;return Oe(mn,mn.current&1|2),s.child}r=r.sibling}g.tail!==null&&De()>tf&&(s.flags|=128,f=!0,cu(g,!1),s.lanes=4194304)}else{if(!f)if(r=Dc(v),r!==null){if(s.flags|=128,f=!0,r=r.updateQueue,s.updateQueue=r,$n(s,r),cu(g,!0),g.tail===null&&g.tailMode==="hidden"&&!v.alternate&&!Ye)return Wt(s),null}else 2*De()-g.renderingStartTime>tf&&o!==536870912&&(s.flags|=128,f=!0,cu(g,!1),s.lanes=4194304);g.isBackwards?(v.sibling=s.child,s.child=v):(r=g.last,r!==null?r.sibling=v:s.child=v,g.last=v)}return g.tail!==null?(s=g.tail,g.rendering=s,g.tail=s.sibling,g.renderingStartTime=De(),s.sibling=null,r=mn.current,Oe(mn,f?r&1|2:r&1),s):(Wt(s),null);case 22:case 23:return Yr(s),Vd(),f=s.memoizedState!==null,r!==null?r.memoizedState!==null!==f&&(s.flags|=8192):f&&(s.flags|=8192),f?o&536870912&&!(s.flags&128)&&(Wt(s),s.subtreeFlags&6&&(s.flags|=8192)):Wt(s),o=s.updateQueue,o!==null&&$n(s,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),f=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==o&&(s.flags|=2048),r!==null&&ze(Ca),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),s.memoizedState.cache!==o&&(s.flags|=2048),xr(yn),Wt(s),null;case 25:return null}throw Error(i(156,s.tag))}function fy(r,s){switch(jd(s),s.tag){case 1:return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return xr(yn),At(),r=s.flags,r&65536&&!(r&128)?(s.flags=r&-65537|128,s):null;case 26:case 27:case 5:return Bt(s),null;case 13:if(Yr(s),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(i(340));Sr()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return ze(mn),null;case 4:return At(),null;case 10:return xr(s.type),null;case 22:case 23:return Yr(s),Vd(),r!==null&&ze(Ca),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 24:return xr(yn),null;case 25:return null;default:return null}}function dy(r,s){switch(jd(s),s.tag){case 3:xr(yn),At();break;case 26:case 27:case 5:Bt(s);break;case 4:At();break;case 13:Yr(s);break;case 19:ze(mn);break;case 10:xr(s.type);break;case 22:case 23:Yr(s),Vd(),r!==null&&ze(Ca);break;case 24:xr(yn)}}var v0={getCacheForType:function(r){var s=An(yn),o=s.data.get(r);return o===void 0&&(o=r(),s.data.set(r,o)),o}},_0=typeof WeakMap=="function"?WeakMap:Map,Yt=0,Lt=null,ut=null,_t=0,Ut=0,bi=null,is=!1,$o=!1,Mh=!1,rs=0,tn=0,Hs=0,Da=0,Lh=0,Pi=0,Vo=0,fu=null,Ir=null,kh=!1,Ph=0,tf=1/0,nf=null,Dr=null,du=!1,Ma=null,hu=0,Uh=0,zh=null,pu=0,Bh=null;function Ei(){if(Yt&2&&_t!==0)return _t&-_t;if(J.T!==null){var r=Eo;return r!==0?r:Kh()}return jg()}function hy(){Pi===0&&(Pi=!(_t&536870912)||Ye?vd():536870912);var r=Li.current;return r!==null&&(r.flags|=32),Pi}function In(r,s,o){(r===Lt&&Ut===2||r.cancelPendingCommit!==null)&&(Go(r,0),ss(r,_t,Pi,!1)),Cl(r,o),(!(Yt&2)||r!==Lt)&&(r===Lt&&(!(Yt&2)&&(Da|=o),tn===4&&ss(r,_t,Pi,!1)),ir(r))}function py(r,s,o){if(Yt&6)throw Error(i(327));var f=!o&&(s&60)===0&&(s&r.expiredLanes)===0||wl(r,s),g=f?S0(r,s):jh(r,s,!0),v=f;do{if(g===0){$o&&!f&&ss(r,s,0,!1);break}else if(g===6)ss(r,s,0,!is);else{if(o=r.current.alternate,v&&!b0(o)){g=jh(r,s,!1),v=!1;continue}if(g===2){if(v=s,r.errorRecoveryDisabledLanes&v)var w=0;else w=r.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){s=w;e:{var N=r;g=fu;var P=N.current.memoizedState.isDehydrated;if(P&&(Go(N,w).flags|=256),w=jh(N,w,!1),w!==2){if(Mh&&!P){N.errorRecoveryDisabledLanes|=v,Da|=v,g=4;break e}v=Ir,Ir=g,v!==null&&qo(v)}g=w}if(v=!1,g!==2)continue}}if(g===1){Go(r,0),ss(r,s,0,!0);break}e:{switch(f=r,g){case 0:case 1:throw Error(i(345));case 4:if((s&4194176)===s){ss(f,s,Pi,!is);break e}break;case 2:Ir=null;break;case 3:case 5:break;default:throw Error(i(329))}if(f.finishedWork=o,f.finishedLanes=s,(s&62914560)===s&&(v=Ph+300-De(),10o?32:o,J.T=null,Ma===null)var v=!1;else{o=zh,zh=null;var w=Ma,N=hu;if(Ma=null,hu=0,Yt&6)throw Error(i(331));var P=Yt;if(Yt|=4,ay(w.current),iy(w,w.current,N,o),Yt=P,Pa(0,!1),Pn&&typeof Pn.onPostCommitFiberRoot=="function")try{Pn.onPostCommitFiberRoot(la,w)}catch{}v=!0}return v}finally{ee.p=g,J.T=f,wy(r,s)}}return!1}function Cy(r,s,o){s=Bn(o,s),s=Ql(r.stateNode,s,2),r=gi(r,s,2),r!==null&&(Cl(r,2),ir(r))}function Pt(r,s,o){if(r.tag===3)Cy(r,r,o);else for(;s!==null;){if(s.tag===3){Cy(s,r,o);break}else if(s.tag===1){var f=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Dr===null||!Dr.has(f))){r=Bn(o,r),o=qm(2),f=gi(s,o,2),f!==null&&(Gm(o,f,s,r),Cl(f,2),ir(f));break}}s=s.return}}function $h(r,s,o){var f=r.pingCache;if(f===null){f=r.pingCache=new _0;var g=new Set;f.set(s,g)}else g=f.get(s),g===void 0&&(g=new Set,f.set(s,g));g.has(o)||(Mh=!0,g.add(o),r=T0.bind(null,r,s,o),s.then(r,r))}function T0(r,s,o){var f=r.pingCache;f!==null&&f.delete(s),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,Lt===r&&(_t&o)===o&&(tn===4||tn===3&&(_t&62914560)===_t&&300>De()-Ph?!(Yt&2)&&Go(r,0):Lh|=o,Vo===_t&&(Vo=0)),ir(r)}function Ty(r,s){s===0&&(s=Bg()),r=Gi(r,s),r!==null&&(Cl(r,s),ir(r))}function x0(r){var s=r.memoizedState,o=0;s!==null&&(o=s.retryLane),Ty(r,o)}function R0(r,s){var o=0;switch(r.tag){case 13:var f=r.stateNode,g=r.memoizedState;g!==null&&(o=g.retryLane);break;case 19:f=r.stateNode;break;case 22:f=r.stateNode._retryCache;break;default:throw Error(i(314))}f!==null&&f.delete(s),Ty(r,o)}function O0(r,s){return Et(r,s)}var sf=null,Wo=null,Vh=!1,ka=!1,qh=!1,js=0;function ir(r){r!==Wo&&r.next===null&&(Wo===null?sf=Wo=r:Wo=Wo.next=r),ka=!0,Vh||(Vh=!0,A0(xy))}function Pa(r,s){if(!qh&&ka){qh=!0;do for(var o=!1,f=sf;f!==null;){if(r!==0){var g=f.pendingLanes;if(g===0)var v=0;else{var w=f.suspendedLanes,N=f.pingedLanes;v=(1<<31-Un(42|r)+1)-1,v&=g&~(w&~N),v=v&201326677?v&201326677|1:v?v|2:0}v!==0&&(o=!0,Yh(f,v))}else v=_t,v=ic(f,f===Lt?v:0),!(v&3)||wl(f,v)||(o=!0,Yh(f,v));f=f.next}while(o);qh=!1}}function xy(){ka=Vh=!1;var r=0;js!==0&&(os()&&(r=js),js=0);for(var s=De(),o=null,f=sf;f!==null;){var g=f.next,v=Gh(f,s);v===0?(f.next=null,o===null?sf=g:o.next=g,g===null&&(Wo=o)):(o=f,(r!==0||v&3)&&(ka=!0)),f=g}Pa(r)}function Gh(r,s){for(var o=r.suspendedLanes,f=r.pingedLanes,g=r.expirationTimes,v=r.pendingLanes&-62914561;0"u"?null:document;function ky(r,s,o){var f=sr;if(f&&typeof s=="string"&&s){var g=li(s);g='link[rel="'+r+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),df.has(g)||(df.add(g),r={rel:r,crossOrigin:o,href:s},f.querySelector(g)===null&&(s=f.createElement("link"),Cn(s,"link",r),an(s),f.head.appendChild(s)))}}function k0(r){Mr.D(r),ky("dns-prefetch",r,null)}function P0(r,s){Mr.C(r,s),ky("preconnect",r,s)}function U0(r,s,o){Mr.L(r,s,o);var f=sr;if(f&&r&&s){var g='link[rel="preload"][as="'+li(s)+'"]';s==="image"&&o&&o.imageSrcSet?(g+='[imagesrcset="'+li(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(g+='[imagesizes="'+li(o.imageSizes)+'"]')):g+='[href="'+li(r)+'"]';var v=g;switch(s){case"style":v=Tn(r);break;case"script":v=Xo(r)}Dn.has(v)||(r=ne({rel:"preload",href:s==="image"&&o&&o.imageSrcSet?void 0:r,as:s},o),Dn.set(v,r),f.querySelector(g)!==null||s==="style"&&f.querySelector(Ko(v))||s==="script"&&f.querySelector(Qo(v))||(s=f.createElement("link"),Cn(s,"link",r),an(s),f.head.appendChild(s)))}}function z0(r,s){Mr.m(r,s);var o=sr;if(o&&r){var f=s&&typeof s.as=="string"?s.as:"script",g='link[rel="modulepreload"][as="'+li(f)+'"][href="'+li(r)+'"]',v=g;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Xo(r)}if(!Dn.has(v)&&(r=ne({rel:"modulepreload",href:r},s),Dn.set(v,r),o.querySelector(g)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Qo(v)))return}f=o.createElement("link"),Cn(f,"link",r),an(f),o.head.appendChild(f)}}}function Py(r,s,o){Mr.S(r,s,o);var f=sr;if(f&&r){var g=lo(f).hoistableStyles,v=Tn(r);s=s||"default";var w=g.get(v);if(!w){var N={loading:0,preload:null};if(w=f.querySelector(Ko(v)))N.loading=5;else{r=ne({rel:"stylesheet",href:r,"data-precedence":s},o),(o=Dn.get(v))&&cp(r,o);var P=w=f.createElement("link");an(P),Cn(P,"link",r),P._p=new Promise(function($,le){P.onload=$,P.onerror=le}),P.addEventListener("load",function(){N.loading|=1}),P.addEventListener("error",function(){N.loading|=2}),N.loading|=4,gf(w,s,f)}w={type:"stylesheet",instance:w,count:1,state:N},g.set(v,w)}}}function ls(r,s){Mr.X(r,s);var o=sr;if(o&&r){var f=lo(o).hoistableScripts,g=Xo(r),v=f.get(g);v||(v=o.querySelector(Qo(g)),v||(r=ne({src:r,async:!0},s),(s=Dn.get(g))&&fp(r,s),v=o.createElement("script"),an(v),Cn(v,"link",r),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(g,v))}}function nt(r,s){Mr.M(r,s);var o=sr;if(o&&r){var f=lo(o).hoistableScripts,g=Xo(r),v=f.get(g);v||(v=o.querySelector(Qo(g)),v||(r=ne({src:r,async:!0,type:"module"},s),(s=Dn.get(g))&&fp(r,s),v=o.createElement("script"),an(v),Cn(v,"link",r),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(g,v))}}function up(r,s,o,f){var g=(g=vt.current)?hf(g):null;if(!g)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(s=Tn(o.href),o=lo(g).hoistableStyles,f=o.get(s),f||(f={type:"style",instance:null,count:0,state:null},o.set(s,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=Tn(o.href);var v=lo(g).hoistableStyles,w=v.get(r);if(w||(g=g.ownerDocument||g,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(r,w),(v=g.querySelector(Ko(r)))&&!v._p&&(w.instance=v,w.state.loading=5),Dn.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Dn.set(r,o),v||Ot(g,r,o,w.state))),s&&f===null)throw Error(i(528,""));return w}if(s&&f!==null)throw Error(i(529,""));return null;case"script":return s=o.async,o=o.src,typeof o=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Xo(o),o=lo(g).hoistableScripts,f=o.get(s),f||(f={type:"script",instance:null,count:0,state:null},o.set(s,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Tn(r){return'href="'+li(r)+'"'}function Ko(r){return'link[rel="stylesheet"]['+r+"]"}function Uy(r){return ne({},r,{"data-precedence":r.precedence,precedence:null})}function Ot(r,s,o,f){r.querySelector('link[rel="preload"][as="style"]['+s+"]")?f.loading=1:(s=r.createElement("link"),f.preload=s,s.addEventListener("load",function(){return f.loading|=1}),s.addEventListener("error",function(){return f.loading|=2}),Cn(s,"link",o),an(s),r.head.appendChild(s))}function Xo(r){return'[src="'+li(r)+'"]'}function Qo(r){return"script[async]"+r}function bu(r,s,o){if(s.count++,s.instance===null)switch(s.type){case"style":var f=r.querySelector('style[data-href~="'+li(o.href)+'"]');if(f)return s.instance=f,an(f),f;var g=ne({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return f=(r.ownerDocument||r).createElement("style"),an(f),Cn(f,"style",g),gf(f,o.precedence,r),s.instance=f;case"stylesheet":g=Tn(o.href);var v=r.querySelector(Ko(g));if(v)return s.state.loading|=4,s.instance=v,an(v),v;f=Uy(o),(g=Dn.get(g))&&cp(f,g),v=(r.ownerDocument||r).createElement("link"),an(v);var w=v;return w._p=new Promise(function(N,P){w.onload=N,w.onerror=P}),Cn(v,"link",f),s.state.loading|=4,gf(v,o.precedence,r),s.instance=v;case"script":return v=Xo(o.src),(g=r.querySelector(Qo(v)))?(s.instance=g,an(g),g):(f=o,(g=Dn.get(v))&&(f=ne({},o),fp(f,g)),r=r.ownerDocument||r,g=r.createElement("script"),an(g),Cn(g,"link",f),r.head.appendChild(g),s.instance=g);case"void":return null;default:throw Error(i(443,s.type))}else s.type==="stylesheet"&&!(s.state.loading&4)&&(f=s.instance,s.state.loading|=4,gf(f,o.precedence,r));return s.instance}function gf(r,s,o){for(var f=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,v=g,w=0;w title"):null)}function B0(r,s,o){if(o===1||s.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return r=s.disabled,typeof s.precedence=="string"&&r==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Fy(r){return!(r.type==="stylesheet"&&!(r.state.loading&3))}var Eu=null;function F0(){}function H0(r,s,o){if(Eu===null)throw Error(i(475));var f=Eu;if(s.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&!(s.state.loading&4)){if(s.instance===null){var g=Tn(o.href),v=r.querySelector(Ko(g));if(v){r=v._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(f.count++,f=yf.bind(f),r.then(f,f)),s.state.loading|=4,s.instance=v,an(v);return}v=r.ownerDocument||r,o=Uy(o),(g=Dn.get(g))&&cp(o,g),v=v.createElement("link"),an(v);var w=v;w._p=new Promise(function(N,P){w.onload=N,w.onerror=P}),Cn(v,"link",o),s.instance=v}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(s,r),(r=s.state.preload)&&!(s.state.loading&3)&&(f.count++,s=yf.bind(f),r.addEventListener("load",s),r.addEventListener("error",s))}}function j0(){if(Eu===null)throw Error(i(475));var r=Eu;return r.stylesheets&&r.count===0&&dp(r,r.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),i1.exports=nI(),i1.exports}var rI=iI(),Ep={},hw;function sI(){if(hw)return Ep;hw=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.parse=d,Ep.serialize=m;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,u=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function d(S,R){const T=new u,D=S.length;if(D<2)return T;const O=(R==null?void 0:R.decode)||_;let L=0;do{const k=S.indexOf("=",L);if(k===-1)break;const z=S.indexOf(";",L),B=z===-1?D:z;if(k>B){L=S.lastIndexOf(";",k-1)+1;continue}const M=h(S,L,k),K=p(S,k,M),Q=S.slice(M,K);if(T[Q]===void 0){let W=h(S,k+1,B),J=p(S,B,W);const ne=O(S.slice(W,J));T[Q]=ne}L=B+1}while(LT;){const D=S.charCodeAt(--R);if(D!==32&&D!==9)return R+1}return T}function m(S,R,T){const D=(T==null?void 0:T.encode)||encodeURIComponent;if(!t.test(S))throw new TypeError(`argument name is invalid: ${S}`);const O=D(R);if(!e.test(O))throw new TypeError(`argument val is invalid: ${R}`);let L=S+"="+O;if(!T)return L;if(T.maxAge!==void 0){if(!Number.isInteger(T.maxAge))throw new TypeError(`option maxAge is invalid: ${T.maxAge}`);L+="; Max-Age="+T.maxAge}if(T.domain){if(!n.test(T.domain))throw new TypeError(`option domain is invalid: ${T.domain}`);L+="; Domain="+T.domain}if(T.path){if(!i.test(T.path))throw new TypeError(`option path is invalid: ${T.path}`);L+="; Path="+T.path}if(T.expires){if(!E(T.expires)||!Number.isFinite(T.expires.valueOf()))throw new TypeError(`option expires is invalid: ${T.expires}`);L+="; Expires="+T.expires.toUTCString()}if(T.httpOnly&&(L+="; HttpOnly"),T.secure&&(L+="; Secure"),T.partitioned&&(L+="; Partitioned"),T.priority)switch(typeof T.priority=="string"?T.priority.toLowerCase():void 0){case"low":L+="; Priority=Low";break;case"medium":L+="; Priority=Medium";break;case"high":L+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${T.priority}`)}if(T.sameSite)switch(typeof T.sameSite=="string"?T.sameSite.toLowerCase():T.sameSite){case!0:case"strict":L+="; SameSite=Strict";break;case"lax":L+="; SameSite=Lax";break;case"none":L+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${T.sameSite}`)}return L}function _(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function E(S){return a.call(S)==="[object Date]"}return Ep}sI();/** + * react-router v7.1.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */var pw="popstate";function aI(t={}){function e(i,a){let{pathname:u,search:d,hash:h}=i.location;return eb("",{pathname:u,search:d,hash:h},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(i,a){return typeof a=="string"?a:Xp(a)}return lI(e,n,null,t)}function cn(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function ia(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function oI(){return Math.random().toString(36).substring(2,10)}function gw(t,e){return{usr:t.state,key:t.key,idx:e}}function eb(t,e,n=null,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?rd(e):e,state:n,key:e&&e.key||i||oI()}}function Xp({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function rd(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substring(i),t=t.substring(0,i)),t&&(e.pathname=t)}return e}function lI(t,e,n,i={}){let{window:a=document.defaultView,v5Compat:u=!1}=i,d=a.history,h="POP",p=null,m=_();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function _(){return(d.state||{idx:null}).idx}function E(){h="POP";let O=_(),L=O==null?null:O-m;m=O,p&&p({action:h,location:D.location,delta:L})}function S(O,L){h="PUSH";let k=eb(D.location,O,L);m=_()+1;let z=gw(k,m),B=D.createHref(k);try{d.pushState(z,"",B)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(B)}u&&p&&p({action:h,location:D.location,delta:1})}function R(O,L){h="REPLACE";let k=eb(D.location,O,L);m=_();let z=gw(k,m),B=D.createHref(k);d.replaceState(z,"",B),u&&p&&p({action:h,location:D.location,delta:0})}function T(O){let L=a.location.origin!=="null"?a.location.origin:a.location.href,k=typeof O=="string"?O:Xp(O);return k=k.replace(/ $/,"%20"),cn(L,`No window.location.(origin|href) available to create URL for href: ${k}`),new URL(k,L)}let D={get action(){return h},get location(){return t(a,d)},listen(O){if(p)throw new Error("A history only accepts one active listener");return a.addEventListener(pw,E),p=O,()=>{a.removeEventListener(pw,E),p=null}},createHref(O){return e(a,O)},createURL:T,encodeLocation(O){let L=T(O);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:S,replace:R,go(O){return d.go(O)}};return D}function Ox(t,e,n="/"){return uI(t,e,n,!1)}function uI(t,e,n,i){let a=typeof e=="string"?rd(e):e,u=cl(a.pathname||"/",n);if(u==null)return null;let d=Ax(t);cI(d);let h=null;for(let p=0;h==null&&p{let p={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};p.relativePath.startsWith("/")&&(cn(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let m=Wa([i,p.relativePath]),_=n.concat(p);u.children&&u.children.length>0&&(cn(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Ax(u.children,e,_,m)),!(u.path==null&&!u.index)&&e.push({path:m,score:yI(m,u.index),routesMeta:_})};return t.forEach((u,d)=>{var h;if(u.path===""||!((h=u.path)!=null&&h.includes("?")))a(u,d);else for(let p of Nx(u.path))a(u,d,p)}),e}function Nx(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,a=n.endsWith("?"),u=n.replace(/\?$/,"");if(i.length===0)return a?[u,""]:[u];let d=Nx(i.join("/")),h=[];return h.push(...d.map(p=>p===""?u:[u,p].join("/"))),a&&h.push(...d),h.map(p=>t.startsWith("/")&&p===""?"/":p)}function cI(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:vI(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var fI=/^:[\w-]+$/,dI=3,hI=2,pI=1,gI=10,mI=-2,mw=t=>t==="*";function yI(t,e){let n=t.split("/"),i=n.length;return n.some(mw)&&(i+=mI),e&&(i+=hI),n.filter(a=>!mw(a)).reduce((a,u)=>a+(fI.test(u)?dI:u===""?pI:gI),i)}function vI(t,e){return t.length===e.length&&t.slice(0,-1).every((i,a)=>i===e[a])?t[t.length-1]-e[e.length-1]:0}function _I(t,e,n=!1){let{routesMeta:i}=t,a={},u="/",d=[];for(let h=0;h{if(_==="*"){let T=h[S]||"";d=u.slice(0,u.length-T.length).replace(/(.)\/+$/,"$1")}const R=h[S];return E&&!R?m[_]=void 0:m[_]=(R||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:d,pattern:t}}function bI(t,e=!1,n=!0){ia(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,p)=>(i.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}function EI(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return ia(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function cl(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function SI(t,e="/"){let{pathname:n,search:i="",hash:a=""}=typeof t=="string"?rd(t):t;return{pathname:n?n.startsWith("/")?n:wI(n,e):e,search:xI(i),hash:RI(a)}}function wI(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function o1(t,e,n,i){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(i)}]. 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 CI(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Ix(t){let e=CI(t);return e.map((n,i)=>i===e.length-1?n.pathname:n.pathnameBase)}function Dx(t,e,n,i=!1){let a;typeof t=="string"?a=rd(t):(a={...t},cn(!a.pathname||!a.pathname.includes("?"),o1("?","pathname","search",a)),cn(!a.pathname||!a.pathname.includes("#"),o1("#","pathname","hash",a)),cn(!a.search||!a.search.includes("#"),o1("#","search","hash",a)));let u=t===""||a.pathname==="",d=u?"/":a.pathname,h;if(d==null)h=n;else{let E=e.length-1;if(!i&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),E-=1;a.pathname=S.join("/")}h=E>=0?e[E]:"/"}let p=SI(a,h),m=d&&d!=="/"&&d.endsWith("/"),_=(u||d===".")&&n.endsWith("/");return!p.pathname.endsWith("/")&&(m||_)&&(p.pathname+="/"),p}var Wa=t=>t.join("/").replace(/\/\/+/g,"/"),TI=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),xI=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,RI=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function OI(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var Mx=["POST","PUT","PATCH","DELETE"];new Set(Mx);var AI=["GET",...Mx];new Set(AI);var sd=x.createContext(null);sd.displayName="DataRouter";var d_=x.createContext(null);d_.displayName="DataRouterState";var Lx=x.createContext({isTransitioning:!1});Lx.displayName="ViewTransition";var NI=x.createContext(new Map);NI.displayName="Fetchers";var II=x.createContext(null);II.displayName="Await";var sa=x.createContext(null);sa.displayName="Navigation";var yg=x.createContext(null);yg.displayName="Location";var aa=x.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var vE=x.createContext(null);vE.displayName="RouteError";function DI(t,{relative:e}={}){cn(vg(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:i}=x.useContext(sa),{hash:a,pathname:u,search:d}=_g(t,{relative:e}),h=u;return n!=="/"&&(h=u==="/"?n:Wa([n,u])),i.createHref({pathname:h,search:d,hash:a})}function vg(){return x.useContext(yg)!=null}function Ju(){return cn(vg(),"useLocation() may be used only in the context of a component."),x.useContext(yg).location}var kx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Px(t){x.useContext(sa).static||x.useLayoutEffect(t)}function Ux(){let{isDataRoute:t}=x.useContext(aa);return t?qI():MI()}function MI(){cn(vg(),"useNavigate() may be used only in the context of a component.");let t=x.useContext(sd),{basename:e,navigator:n}=x.useContext(sa),{matches:i}=x.useContext(aa),{pathname:a}=Ju(),u=JSON.stringify(Ix(i)),d=x.useRef(!1);return Px(()=>{d.current=!0}),x.useCallback((p,m={})=>{if(ia(d.current,kx),!d.current)return;if(typeof p=="number"){n.go(p);return}let _=Dx(p,JSON.parse(u),a,m.relative==="path");t==null&&e!=="/"&&(_.pathname=_.pathname==="/"?e:Wa([e,_.pathname])),(m.replace?n.replace:n.push)(_,m.state,m)},[e,n,u,a,t])}x.createContext(null);function VH(){let{matches:t}=x.useContext(aa),e=t[t.length-1];return e?e.params:{}}function _g(t,{relative:e}={}){let{matches:n}=x.useContext(aa),{pathname:i}=Ju(),a=JSON.stringify(Ix(n));return x.useMemo(()=>Dx(t,JSON.parse(a),i,e==="path"),[t,a,i,e])}function LI(t,e){return zx(t,e)}function zx(t,e,n,i){var L;cn(vg(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=x.useContext(sa),{matches:u}=x.useContext(aa),d=u[u.length-1],h=d?d.params:{},p=d?d.pathname:"/",m=d?d.pathnameBase:"/",_=d&&d.route;{let k=_&&_.path||"";Bx(p,!_||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${p}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let E=Ju(),S;if(e){let k=typeof e=="string"?rd(e):e;cn(m==="/"||((L=k.pathname)==null?void 0:L.startsWith(m)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${k.pathname}" was given in the \`location\` prop.`),S=k}else S=E;let R=S.pathname||"/",T=R;if(m!=="/"){let k=m.replace(/^\//,"").split("/");T="/"+R.replace(/^\//,"").split("/").slice(k.length).join("/")}let D=Ox(t,{pathname:T});ia(_||D!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),ia(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let O=BI(D&&D.map(k=>Object.assign({},k,{params:Object.assign({},h,k.params),pathname:Wa([m,a.encodeLocation?a.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?m:Wa([m,a.encodeLocation?a.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),u,n,i);return e&&O?x.createElement(yg.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},O):O}function kI(){let t=VI(),e=OI(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},u={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",t),d=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:u},"ErrorBoundary")," or"," ",x.createElement("code",{style:u},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},e),n?x.createElement("pre",{style:a},n):null,d)}var PI=x.createElement(kI,null),UI=class extends x.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,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?x.createElement(aa.Provider,{value:this.props.routeContext},x.createElement(vE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zI({routeContext:t,match:e,children:n}){let i=x.useContext(sd);return i&&i.static&&i.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=e.route.id),x.createElement(aa.Provider,{value:t},n)}function BI(t,e=[],n=null,i=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let a=t,u=n==null?void 0:n.errors;if(u!=null){let p=a.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);cn(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),a=a.slice(0,Math.min(a.length,p+1))}let d=!1,h=-1;if(n)for(let p=0;p=0?a=a.slice(0,h+1):a=[a[0]];break}}}return a.reduceRight((p,m,_)=>{let E,S=!1,R=null,T=null;n&&(E=u&&m.route.id?u[m.route.id]:void 0,R=m.route.errorElement||PI,d&&(h<0&&_===0?(Bx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,T=null):h===_&&(S=!0,T=m.route.hydrateFallbackElement||null)));let D=e.concat(a.slice(0,_+1)),O=()=>{let L;return E?L=R:S?L=T:m.route.Component?L=x.createElement(m.route.Component,null):m.route.element?L=m.route.element:L=p,x.createElement(zI,{match:m,routeContext:{outlet:p,matches:D,isDataRoute:n!=null},children:L})};return n&&(m.route.ErrorBoundary||m.route.errorElement||_===0)?x.createElement(UI,{location:n.location,revalidation:n.revalidation,component:R,error:E,children:O(),routeContext:{outlet:null,matches:D,isDataRoute:!0}}):O()},null)}function _E(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function FI(t){let e=x.useContext(sd);return cn(e,_E(t)),e}function HI(t){let e=x.useContext(d_);return cn(e,_E(t)),e}function jI(t){let e=x.useContext(aa);return cn(e,_E(t)),e}function bE(t){let e=jI(t),n=e.matches[e.matches.length-1];return cn(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function $I(){return bE("useRouteId")}function VI(){var i;let t=x.useContext(vE),e=HI("useRouteError"),n=bE("useRouteError");return t!==void 0?t:(i=e.errors)==null?void 0:i[n]}function qI(){let{router:t}=FI("useNavigate"),e=bE("useNavigate"),n=x.useRef(!1);return Px(()=>{n.current=!0}),x.useCallback(async(a,u={})=>{ia(n.current,kx),n.current&&(typeof a=="number"?t.navigate(a):await t.navigate(a,{fromRouteId:e,...u}))},[t,e])}var yw={};function Bx(t,e,n){!e&&!yw[t]&&(yw[t]=!0,ia(!1,n))}x.memo(GI);function GI({routes:t,future:e,state:n}){return zx(t,void 0,n,e)}function lv(t){cn(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function WI({basename:t="/",children:e=null,location:n,navigationType:i="POP",navigator:a,static:u=!1}){cn(!vg(),"You cannot render a inside another . You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),h=x.useMemo(()=>({basename:d,navigator:a,static:u,future:{}}),[d,a,u]);typeof n=="string"&&(n=rd(n));let{pathname:p="/",search:m="",hash:_="",state:E=null,key:S="default"}=n,R=x.useMemo(()=>{let T=cl(p,d);return T==null?null:{location:{pathname:T,search:m,hash:_,state:E,key:S},navigationType:i}},[d,p,m,_,E,S,i]);return ia(R!=null,` is not able to match the URL "${p}${m}${_}" because it does not start with the basename, so the won't render anything.`),R==null?null:x.createElement(sa.Provider,{value:h},x.createElement(yg.Provider,{children:e,value:R}))}function YI({children:t,location:e}){return LI(tb(t),e)}function tb(t,e=[]){let n=[];return x.Children.forEach(t,(i,a)=>{if(!x.isValidElement(i))return;let u=[...e,a];if(i.type===x.Fragment){n.push.apply(n,tb(i.props.children,u));return}cn(i.type===lv,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),cn(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||u.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=tb(i.props.children,u)),n.push(d)}),n}var uv="get",cv="application/x-www-form-urlencoded";function h_(t){return t!=null&&typeof t.tagName=="string"}function KI(t){return h_(t)&&t.tagName.toLowerCase()==="button"}function XI(t){return h_(t)&&t.tagName.toLowerCase()==="form"}function QI(t){return h_(t)&&t.tagName.toLowerCase()==="input"}function ZI(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function JI(t,e){return t.button===0&&(!e||e==="_self")&&!ZI(t)}var Xy=null;function eD(){if(Xy===null)try{new FormData(document.createElement("form"),0),Xy=!1}catch{Xy=!0}return Xy}var tD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function l1(t){return t!=null&&!tD.has(t)?(ia(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${cv}"`),null):t}function nD(t,e){let n,i,a,u,d;if(XI(t)){let h=t.getAttribute("action");i=h?cl(h,e):null,n=t.getAttribute("method")||uv,a=l1(t.getAttribute("enctype"))||cv,u=new FormData(t)}else if(KI(t)||QI(t)&&(t.type==="submit"||t.type==="image")){let h=t.form;if(h==null)throw new Error('Cannot submit a