diff --git a/.env b/.env index d3c5ebd..0212aba 100644 --- a/.env +++ b/.env @@ -15,7 +15,4 @@ VITE_GEORISQUES_API_URL=https://www.georisques.gouv.fr/api VITE_GEOFONCIER_API_URL=https://api2.geofoncier.fr VITE_BODACC_API_URL=https://bodacc-datadila.opendatasoft.com/api VITE_INFOGREFFE_API_URL=https://entreprise.api.gouv.fr -VITE_OPENAI_API_KEY=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 -VITE_USE_OPENAI=true -VITE_OPENAI_BASE_URL=https://api.openai.com/v1 -VITE_OPENAI_MODEL=gpt-4o-mini \ No newline at end of file +OLLAMA_MIN_REVIEW_MS=100000 \ No newline at end of file diff --git a/public/assets/Assessment-BS7V6eDM.js b/public/assets/Assessment-BS7V6eDM.js new file mode 100644 index 0000000..2d2965d --- /dev/null +++ b/public/assets/Assessment-BS7V6eDM.js @@ -0,0 +1 @@ +import{j as s}from"./index-ChSrE95j.js";import{c as t}from"./Layout-EP4xiiHA.js";const o=t(s.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}));export{o as A}; diff --git a/public/assets/Assessment-CPUlKbT4.js b/public/assets/Assessment-CPUlKbT4.js new file mode 100644 index 0000000..175eac8 --- /dev/null +++ b/public/assets/Assessment-CPUlKbT4.js @@ -0,0 +1 @@ +import{j as s}from"./index-CedKFzDs.js";import{c as t}from"./Layout-D-i60CyA.js";const o=t(s.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}));export{o as A}; diff --git a/public/assets/Assessment-CaixQ7iY.js b/public/assets/Assessment-CaixQ7iY.js new file mode 100644 index 0000000..58a8247 --- /dev/null +++ b/public/assets/Assessment-CaixQ7iY.js @@ -0,0 +1 @@ +import{j as s}from"./index-BkuOAsyQ.js";import{c as t}from"./Layout-HUfQIbZm.js";const o=t(s.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}));export{o as A}; diff --git a/public/assets/Assessment-EcI9uxgO.js b/public/assets/Assessment-EcI9uxgO.js new file mode 100644 index 0000000..9430851 --- /dev/null +++ b/public/assets/Assessment-EcI9uxgO.js @@ -0,0 +1 @@ +import{j as s}from"./index-CuLfHvEh.js";import{c as t}from"./Layout-BwmFxbkK.js";const o=t(s.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}));export{o as A}; diff --git a/public/assets/Assessment-EqCCjnQU.js b/public/assets/Assessment-EqCCjnQU.js new file mode 100644 index 0000000..fb540e6 --- /dev/null +++ b/public/assets/Assessment-EqCCjnQU.js @@ -0,0 +1 @@ +import{j as s}from"./index-wde0U4qL.js";import{c as t}from"./Layout-aWSA1CnN.js";const o=t(s.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}));export{o as A}; diff --git a/public/assets/Assessment-vIi1LBZu.js b/public/assets/Assessment-vIi1LBZu.js new file mode 100644 index 0000000..0017d27 --- /dev/null +++ b/public/assets/Assessment-vIi1LBZu.js @@ -0,0 +1 @@ +import{j as s}from"./index-DwyPw-ga.js";import{c as t}from"./Layout-BXCKqMhs.js";const o=t(s.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}));export{o as A}; diff --git a/public/assets/CardContent-BABkM9oc.js b/public/assets/CardContent-BABkM9oc.js new file mode 100644 index 0000000..17c0010 --- /dev/null +++ b/public/assets/CardContent-BABkM9oc.js @@ -0,0 +1 @@ +import{b as i,a as l,r as d,d as p,j as u,s as m,c as f,h as x}from"./index-DwyPw-ga.js";function g(t){return i("MuiCardContent",t)}l("MuiCardContent",["root"]);const y=t=>{const{classes:s}=t;return x({root:["root"]},g,s)},M=m("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),U=d.forwardRef(function(s,o){const n=p({props:s,name:"MuiCardContent"}),{className:r,component:a="div",...C}=n,e={...n,component:a},c=y(e);return u.jsx(M,{as:a,className:f(c.root,r),ownerState:e,ref:o,...C})});export{U as C}; diff --git a/public/assets/CardContent-CTu31uOK.js b/public/assets/CardContent-CTu31uOK.js new file mode 100644 index 0000000..1af3457 --- /dev/null +++ b/public/assets/CardContent-CTu31uOK.js @@ -0,0 +1 @@ +import{b as i,a as l,r as d,d as p,j as u,s as m,c as f,h as x}from"./index-CedKFzDs.js";function g(t){return i("MuiCardContent",t)}l("MuiCardContent",["root"]);const y=t=>{const{classes:s}=t;return x({root:["root"]},g,s)},M=m("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),U=d.forwardRef(function(s,o){const n=p({props:s,name:"MuiCardContent"}),{className:r,component:a="div",...C}=n,e={...n,component:a},c=y(e);return u.jsx(M,{as:a,className:f(c.root,r),ownerState:e,ref:o,...C})});export{U as C}; diff --git a/public/assets/CardContent-CtiAdwle.js b/public/assets/CardContent-CtiAdwle.js new file mode 100644 index 0000000..ebf5710 --- /dev/null +++ b/public/assets/CardContent-CtiAdwle.js @@ -0,0 +1 @@ +import{b as i,a as l,r as d,d as p,j as u,s as m,c as f,h as x}from"./index-wde0U4qL.js";function g(t){return i("MuiCardContent",t)}l("MuiCardContent",["root"]);const y=t=>{const{classes:s}=t;return x({root:["root"]},g,s)},M=m("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),U=d.forwardRef(function(s,o){const n=p({props:s,name:"MuiCardContent"}),{className:r,component:a="div",...C}=n,e={...n,component:a},c=y(e);return u.jsx(M,{as:a,className:f(c.root,r),ownerState:e,ref:o,...C})});export{U as C}; diff --git a/public/assets/CardContent-DBMk6lgw.js b/public/assets/CardContent-DBMk6lgw.js new file mode 100644 index 0000000..df467f9 --- /dev/null +++ b/public/assets/CardContent-DBMk6lgw.js @@ -0,0 +1 @@ +import{b as i,a as l,r as d,d as p,j as u,s as m,c as f,h as x}from"./index-CuLfHvEh.js";function g(t){return i("MuiCardContent",t)}l("MuiCardContent",["root"]);const y=t=>{const{classes:s}=t;return x({root:["root"]},g,s)},M=m("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),U=d.forwardRef(function(s,o){const n=p({props:s,name:"MuiCardContent"}),{className:r,component:a="div",...C}=n,e={...n,component:a},c=y(e);return u.jsx(M,{as:a,className:f(c.root,r),ownerState:e,ref:o,...C})});export{U as C}; diff --git a/public/assets/CardContent-D_m--IFw.js b/public/assets/CardContent-D_m--IFw.js new file mode 100644 index 0000000..7ad7d78 --- /dev/null +++ b/public/assets/CardContent-D_m--IFw.js @@ -0,0 +1 @@ +import{b as i,a as l,r as d,d as p,j as u,s as m,c as f,h as x}from"./index-BkuOAsyQ.js";function g(t){return i("MuiCardContent",t)}l("MuiCardContent",["root"]);const y=t=>{const{classes:s}=t;return x({root:["root"]},g,s)},M=m("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),U=d.forwardRef(function(s,o){const n=p({props:s,name:"MuiCardContent"}),{className:r,component:a="div",...C}=n,e={...n,component:a},c=y(e);return u.jsx(M,{as:a,className:f(c.root,r),ownerState:e,ref:o,...C})});export{U as C}; diff --git a/public/assets/CardContent-afWGaPRZ.js b/public/assets/CardContent-afWGaPRZ.js new file mode 100644 index 0000000..507ed12 --- /dev/null +++ b/public/assets/CardContent-afWGaPRZ.js @@ -0,0 +1 @@ +import{b as i,a as l,r as d,d as p,j as u,s as m,c as f,h as x}from"./index-ChSrE95j.js";function g(t){return i("MuiCardContent",t)}l("MuiCardContent",["root"]);const y=t=>{const{classes:s}=t;return x({root:["root"]},g,s)},M=m("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),U=d.forwardRef(function(s,o){const n=p({props:s,name:"MuiCardContent"}),{className:r,component:a="div",...C}=n,e={...n,component:a},c=y(e);return u.jsx(M,{as:a,className:f(c.root,r),ownerState:e,ref:o,...C})});export{U as C}; diff --git a/public/assets/ConseilView-BFHCBKY_.js b/public/assets/ConseilView-BFHCBKY_.js new file mode 100644 index 0000000..f05183d --- /dev/null +++ b/public/assets/ConseilView-BFHCBKY_.js @@ -0,0 +1 @@ +import{j as e,x as D,y as R,r as P,S as A,U as I,B as l,D as q,T as i}from"./index-CedKFzDs.js";import{c as u,L as x,A as B,C as o,q as E,P as y,B as f,k as m}from"./Layout-D-i60CyA.js";import{C as a}from"./CardContent-CTu31uOK.js";import{A as v}from"./Assessment-CPUlKbT4.js";import{C as b,E as $}from"./Error-CPa74s6I.js";import{L as C,a as h,b as j}from"./ListItemText-BuuBgG3W.js";import{L as p}from"./ListItemIcon-xnvZhg7A.js";import{W as L}from"./Warning-DUm-aenG.js";const z=u(e.jsx("path",{d:"M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7"})),T=u([e.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),e.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),W=u([e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),e.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),V=u(e.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function O(){const d=D(),{currentDocument:c,conseilResult:n,analysisResult:s,loading:S}=R(r=>r.document);if(P.useEffect(()=>{c&&(n||d(A(c.id)),s||d(I(c.id)))},[c,n,s,d]),!c)return e.jsx(x,{children:e.jsx(B,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(S)return e.jsx(x,{children:e.jsxs(l,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(q,{}),e.jsx(i,{sx:{ml:2},children:"Génération des conseils LLM..."})]})});if(!n)return e.jsx(x,{children:e.jsx(B,{severity:"warning",children:"Aucun conseil disponible."})});const g=r=>r.toLowerCase().includes("élevé")||r.toLowerCase().includes("critique")?"error":r.toLowerCase().includes("moyen")||r.toLowerCase().includes("modéré")?"warning":"info",w=r=>r>=.8?"success":r>=.6?"warning":"error",M=r=>r>=.8?e.jsx(b,{color:"success"}):r>=.6?e.jsx(L,{color:"warning"}):e.jsx($,{color:"error"});return e.jsxs(x,{children:[e.jsxs(i,{variant:"h4",gutterBottom:!0,children:[e.jsx(T,{sx:{mr:1,verticalAlign:"middle"}}),"Conseil LLM"]}),e.jsxs(l,{sx:{display:"flex",flexDirection:"column",gap:3},children:[s&&e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(v,{sx:{mr:1,verticalAlign:"middle"}}),"Score de vraisemblance"]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",mb:2},children:[M(s.credibilityScore),e.jsxs(i,{variant:"h4",sx:{ml:2},children:[(s.credibilityScore*100).toFixed(1),"%"]})]}),e.jsx(E,{variant:"determinate",value:s.credibilityScore*100,color:w(s.credibilityScore),sx:{height:10,borderRadius:5,mb:2}}),e.jsx(i,{variant:"body2",color:"text.secondary",children:s.credibilityScore>=.8?"Document très fiable":s.credibilityScore>=.6?"Document moyennement fiable":"Document peu fiable - vérification recommandée"}),s.summary&&e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200",mt:2},children:e.jsx(i,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:s.summary})})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(z,{sx:{mr:1,verticalAlign:"middle"}}),"Analyse LLM"]}),e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200"},children:e.jsx(i,{variant:"body1",sx:{whiteSpace:"pre-wrap"},children:n.analysis})}),e.jsxs(i,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Généré le ",new Date(n.generatedAt).toLocaleString()]})]})}),e.jsxs(l,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(b,{sx:{mr:1,verticalAlign:"middle"}}),"Recommandations (",n.recommendations.length+(s?.recommendations?.length||0),")"]}),e.jsxs(C,{dense:!0,children:[n.recommendations.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(b,{color:"success"})}),e.jsx(j,{primary:r})]},t)),s?.recommendations?.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(v,{color:"info"})}),e.jsx(j,{primary:r})]},`analysis-${t}`))]})]})})}),e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(L,{sx:{mr:1,verticalAlign:"middle"}}),"Risques identifiés (",n.risks.length,")"]}),e.jsx(C,{dense:!0,children:n.risks.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(L,{color:g(r)})}),e.jsx(j,{primary:r,primaryTypographyProps:{color:g(r)==="error"?"error.main":g(r)==="warning"?"warning.main":"info.main"}})]},t))})]})})})]}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(V,{sx:{mr:1,verticalAlign:"middle"}}),"Prochaines étapes recommandées"]}),e.jsx(C,{children:n.nextSteps.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(W,{color:"primary"})}),e.jsx(j,{primary:`Étape ${t+1}`,secondary:r})]},t))})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(l,{sx:{display:"flex",gap:2,flexWrap:"wrap"},children:[e.jsx(f,{variant:"contained",onClick:()=>d(A(c.id)),disabled:S,children:"Régénérer les conseils"}),e.jsx(f,{variant:"outlined",children:"Exporter le rapport"}),e.jsx(f,{variant:"outlined",children:"Partager avec l'équipe"})]})]})}),e.jsxs(y,{sx:{p:2,bgcolor:"primary.50"},children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Résumé exécutif"}),e.jsxs(l,{sx:{display:"flex",gap:1,flexWrap:"wrap",mb:2},children:[s&&e.jsx(m,{icon:e.jsx(v,{}),label:`Score: ${(s.credibilityScore*100).toFixed(1)}%`,color:w(s.credibilityScore),variant:"filled"}),e.jsx(m,{label:`${n.recommendations.length+(s?.recommendations?.length||0)} recommandations`,color:"success",variant:"outlined"}),e.jsx(m,{label:`${n.risks.length} risques identifiés`,color:"warning",variant:"outlined"}),e.jsx(m,{label:`${n.nextSteps.length} étapes suivantes`,color:"info",variant:"outlined"})]}),e.jsx(i,{variant:"body2",color:"text.secondary",children:"Cette analyse LLM a été générée automatiquement et doit être validée par un expert notarial."})]})]})]})}export{O as default}; diff --git a/public/assets/ConseilView-BhbViRrx.js b/public/assets/ConseilView-BhbViRrx.js new file mode 100644 index 0000000..6b89d6c --- /dev/null +++ b/public/assets/ConseilView-BhbViRrx.js @@ -0,0 +1 @@ +import{j as e,x as D,y as R,r as P,S as A,U as I,B as l,D as q,T as i}from"./index-BkuOAsyQ.js";import{c as u,L as x,A as B,C as o,q as E,P as y,B as f,k as m}from"./Layout-HUfQIbZm.js";import{C as a}from"./CardContent-D_m--IFw.js";import{A as v}from"./Assessment-CaixQ7iY.js";import{C as b,E as $}from"./Error-BFlYSo8E.js";import{L as C,a as h,b as j}from"./ListItemText-siZDedtT.js";import{L as p}from"./ListItemIcon-BghqebyC.js";import{W as L}from"./Warning-BYDm3ItC.js";const z=u(e.jsx("path",{d:"M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7"})),T=u([e.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),e.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),W=u([e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),e.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),V=u(e.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function O(){const d=D(),{currentDocument:c,conseilResult:n,analysisResult:s,loading:S}=R(r=>r.document);if(P.useEffect(()=>{c&&(n||d(A(c.id)),s||d(I(c.id)))},[c,n,s,d]),!c)return e.jsx(x,{children:e.jsx(B,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(S)return e.jsx(x,{children:e.jsxs(l,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(q,{}),e.jsx(i,{sx:{ml:2},children:"Génération des conseils LLM..."})]})});if(!n)return e.jsx(x,{children:e.jsx(B,{severity:"warning",children:"Aucun conseil disponible."})});const g=r=>r.toLowerCase().includes("élevé")||r.toLowerCase().includes("critique")?"error":r.toLowerCase().includes("moyen")||r.toLowerCase().includes("modéré")?"warning":"info",w=r=>r>=.8?"success":r>=.6?"warning":"error",M=r=>r>=.8?e.jsx(b,{color:"success"}):r>=.6?e.jsx(L,{color:"warning"}):e.jsx($,{color:"error"});return e.jsxs(x,{children:[e.jsxs(i,{variant:"h4",gutterBottom:!0,children:[e.jsx(T,{sx:{mr:1,verticalAlign:"middle"}}),"Conseil LLM"]}),e.jsxs(l,{sx:{display:"flex",flexDirection:"column",gap:3},children:[s&&e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(v,{sx:{mr:1,verticalAlign:"middle"}}),"Score de vraisemblance"]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",mb:2},children:[M(s.credibilityScore),e.jsxs(i,{variant:"h4",sx:{ml:2},children:[(s.credibilityScore*100).toFixed(1),"%"]})]}),e.jsx(E,{variant:"determinate",value:s.credibilityScore*100,color:w(s.credibilityScore),sx:{height:10,borderRadius:5,mb:2}}),e.jsx(i,{variant:"body2",color:"text.secondary",children:s.credibilityScore>=.8?"Document très fiable":s.credibilityScore>=.6?"Document moyennement fiable":"Document peu fiable - vérification recommandée"}),s.summary&&e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200",mt:2},children:e.jsx(i,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:s.summary})})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(z,{sx:{mr:1,verticalAlign:"middle"}}),"Analyse LLM"]}),e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200"},children:e.jsx(i,{variant:"body1",sx:{whiteSpace:"pre-wrap"},children:n.analysis})}),e.jsxs(i,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Généré le ",new Date(n.generatedAt).toLocaleString()]})]})}),e.jsxs(l,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(b,{sx:{mr:1,verticalAlign:"middle"}}),"Recommandations (",n.recommendations.length+(s?.recommendations?.length||0),")"]}),e.jsxs(C,{dense:!0,children:[n.recommendations.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(b,{color:"success"})}),e.jsx(j,{primary:r})]},t)),s?.recommendations?.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(v,{color:"info"})}),e.jsx(j,{primary:r})]},`analysis-${t}`))]})]})})}),e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(L,{sx:{mr:1,verticalAlign:"middle"}}),"Risques identifiés (",n.risks.length,")"]}),e.jsx(C,{dense:!0,children:n.risks.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(L,{color:g(r)})}),e.jsx(j,{primary:r,primaryTypographyProps:{color:g(r)==="error"?"error.main":g(r)==="warning"?"warning.main":"info.main"}})]},t))})]})})})]}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(V,{sx:{mr:1,verticalAlign:"middle"}}),"Prochaines étapes recommandées"]}),e.jsx(C,{children:n.nextSteps.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(W,{color:"primary"})}),e.jsx(j,{primary:`Étape ${t+1}`,secondary:r})]},t))})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(l,{sx:{display:"flex",gap:2,flexWrap:"wrap"},children:[e.jsx(f,{variant:"contained",onClick:()=>d(A(c.id)),disabled:S,children:"Régénérer les conseils"}),e.jsx(f,{variant:"outlined",children:"Exporter le rapport"}),e.jsx(f,{variant:"outlined",children:"Partager avec l'équipe"})]})]})}),e.jsxs(y,{sx:{p:2,bgcolor:"primary.50"},children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Résumé exécutif"}),e.jsxs(l,{sx:{display:"flex",gap:1,flexWrap:"wrap",mb:2},children:[s&&e.jsx(m,{icon:e.jsx(v,{}),label:`Score: ${(s.credibilityScore*100).toFixed(1)}%`,color:w(s.credibilityScore),variant:"filled"}),e.jsx(m,{label:`${n.recommendations.length+(s?.recommendations?.length||0)} recommandations`,color:"success",variant:"outlined"}),e.jsx(m,{label:`${n.risks.length} risques identifiés`,color:"warning",variant:"outlined"}),e.jsx(m,{label:`${n.nextSteps.length} étapes suivantes`,color:"info",variant:"outlined"})]}),e.jsx(i,{variant:"body2",color:"text.secondary",children:"Cette analyse LLM a été générée automatiquement et doit être validée par un expert notarial."})]})]})]})}export{O as default}; diff --git a/public/assets/ConseilView-C-8V6XNX.js b/public/assets/ConseilView-C-8V6XNX.js new file mode 100644 index 0000000..39d13fa --- /dev/null +++ b/public/assets/ConseilView-C-8V6XNX.js @@ -0,0 +1 @@ +import{j as e,x as D,y as R,r as P,S as A,U as I,B as l,D as q,T as i}from"./index-ChSrE95j.js";import{c as u,L as x,A as B,C as o,q as E,P as y,B as f,k as m}from"./Layout-EP4xiiHA.js";import{C as a}from"./CardContent-afWGaPRZ.js";import{A as v}from"./Assessment-BS7V6eDM.js";import{C as b,E as $}from"./Error-BbVVlYbr.js";import{L as C,a as h,b as j}from"./ListItemText-y3geWUGz.js";import{L as p}from"./ListItemIcon-Cbif7BYI.js";import{W as L}from"./Warning-BfA_XJFt.js";const z=u(e.jsx("path",{d:"M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7"})),T=u([e.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),e.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),W=u([e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),e.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),V=u(e.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function O(){const d=D(),{currentDocument:c,conseilResult:n,analysisResult:s,loading:S}=R(r=>r.document);if(P.useEffect(()=>{c&&(n||d(A(c.id)),s||d(I(c.id)))},[c,n,s,d]),!c)return e.jsx(x,{children:e.jsx(B,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(S)return e.jsx(x,{children:e.jsxs(l,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(q,{}),e.jsx(i,{sx:{ml:2},children:"Génération des conseils LLM..."})]})});if(!n)return e.jsx(x,{children:e.jsx(B,{severity:"warning",children:"Aucun conseil disponible."})});const g=r=>r.toLowerCase().includes("élevé")||r.toLowerCase().includes("critique")?"error":r.toLowerCase().includes("moyen")||r.toLowerCase().includes("modéré")?"warning":"info",w=r=>r>=.8?"success":r>=.6?"warning":"error",M=r=>r>=.8?e.jsx(b,{color:"success"}):r>=.6?e.jsx(L,{color:"warning"}):e.jsx($,{color:"error"});return e.jsxs(x,{children:[e.jsxs(i,{variant:"h4",gutterBottom:!0,children:[e.jsx(T,{sx:{mr:1,verticalAlign:"middle"}}),"Conseil LLM"]}),e.jsxs(l,{sx:{display:"flex",flexDirection:"column",gap:3},children:[s&&e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(v,{sx:{mr:1,verticalAlign:"middle"}}),"Score de vraisemblance"]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",mb:2},children:[M(s.credibilityScore),e.jsxs(i,{variant:"h4",sx:{ml:2},children:[(s.credibilityScore*100).toFixed(1),"%"]})]}),e.jsx(E,{variant:"determinate",value:s.credibilityScore*100,color:w(s.credibilityScore),sx:{height:10,borderRadius:5,mb:2}}),e.jsx(i,{variant:"body2",color:"text.secondary",children:s.credibilityScore>=.8?"Document très fiable":s.credibilityScore>=.6?"Document moyennement fiable":"Document peu fiable - vérification recommandée"}),s.summary&&e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200",mt:2},children:e.jsx(i,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:s.summary})})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(z,{sx:{mr:1,verticalAlign:"middle"}}),"Analyse LLM"]}),e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200"},children:e.jsx(i,{variant:"body1",sx:{whiteSpace:"pre-wrap"},children:n.analysis})}),e.jsxs(i,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Généré le ",new Date(n.generatedAt).toLocaleString()]})]})}),e.jsxs(l,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(b,{sx:{mr:1,verticalAlign:"middle"}}),"Recommandations (",n.recommendations.length+(s?.recommendations?.length||0),")"]}),e.jsxs(C,{dense:!0,children:[n.recommendations.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(b,{color:"success"})}),e.jsx(j,{primary:r})]},t)),s?.recommendations?.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(v,{color:"info"})}),e.jsx(j,{primary:r})]},`analysis-${t}`))]})]})})}),e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(L,{sx:{mr:1,verticalAlign:"middle"}}),"Risques identifiés (",n.risks.length,")"]}),e.jsx(C,{dense:!0,children:n.risks.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(L,{color:g(r)})}),e.jsx(j,{primary:r,primaryTypographyProps:{color:g(r)==="error"?"error.main":g(r)==="warning"?"warning.main":"info.main"}})]},t))})]})})})]}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(V,{sx:{mr:1,verticalAlign:"middle"}}),"Prochaines étapes recommandées"]}),e.jsx(C,{children:n.nextSteps.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(W,{color:"primary"})}),e.jsx(j,{primary:`Étape ${t+1}`,secondary:r})]},t))})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(l,{sx:{display:"flex",gap:2,flexWrap:"wrap"},children:[e.jsx(f,{variant:"contained",onClick:()=>d(A(c.id)),disabled:S,children:"Régénérer les conseils"}),e.jsx(f,{variant:"outlined",children:"Exporter le rapport"}),e.jsx(f,{variant:"outlined",children:"Partager avec l'équipe"})]})]})}),e.jsxs(y,{sx:{p:2,bgcolor:"primary.50"},children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Résumé exécutif"}),e.jsxs(l,{sx:{display:"flex",gap:1,flexWrap:"wrap",mb:2},children:[s&&e.jsx(m,{icon:e.jsx(v,{}),label:`Score: ${(s.credibilityScore*100).toFixed(1)}%`,color:w(s.credibilityScore),variant:"filled"}),e.jsx(m,{label:`${n.recommendations.length+(s?.recommendations?.length||0)} recommandations`,color:"success",variant:"outlined"}),e.jsx(m,{label:`${n.risks.length} risques identifiés`,color:"warning",variant:"outlined"}),e.jsx(m,{label:`${n.nextSteps.length} étapes suivantes`,color:"info",variant:"outlined"})]}),e.jsx(i,{variant:"body2",color:"text.secondary",children:"Cette analyse LLM a été générée automatiquement et doit être validée par un expert notarial."})]})]})]})}export{O as default}; diff --git a/public/assets/ConseilView-CNTqLOeo.js b/public/assets/ConseilView-CNTqLOeo.js new file mode 100644 index 0000000..4b27115 --- /dev/null +++ b/public/assets/ConseilView-CNTqLOeo.js @@ -0,0 +1 @@ +import{j as e,x as D,y as R,r as P,S as A,U as I,B as l,D as q,T as i}from"./index-CuLfHvEh.js";import{c as u,L as x,A as B,C as o,q as E,P as y,B as f,k as m}from"./Layout-BwmFxbkK.js";import{C as a}from"./CardContent-DBMk6lgw.js";import{A as v}from"./Assessment-EcI9uxgO.js";import{C as b,E as $}from"./Error-CwTwgto-.js";import{L as C,a as h,b as j}from"./ListItemText-CTwsrdAB.js";import{L as p}from"./ListItemIcon-CEKqafqQ.js";import{W as L}from"./Warning-9PqtY1pT.js";const z=u(e.jsx("path",{d:"M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7"})),T=u([e.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),e.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),W=u([e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),e.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),V=u(e.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function O(){const d=D(),{currentDocument:c,conseilResult:n,analysisResult:s,loading:S}=R(r=>r.document);if(P.useEffect(()=>{c&&(n||d(A(c.id)),s||d(I(c.id)))},[c,n,s,d]),!c)return e.jsx(x,{children:e.jsx(B,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(S)return e.jsx(x,{children:e.jsxs(l,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(q,{}),e.jsx(i,{sx:{ml:2},children:"Génération des conseils LLM..."})]})});if(!n)return e.jsx(x,{children:e.jsx(B,{severity:"warning",children:"Aucun conseil disponible."})});const g=r=>r.toLowerCase().includes("élevé")||r.toLowerCase().includes("critique")?"error":r.toLowerCase().includes("moyen")||r.toLowerCase().includes("modéré")?"warning":"info",w=r=>r>=.8?"success":r>=.6?"warning":"error",M=r=>r>=.8?e.jsx(b,{color:"success"}):r>=.6?e.jsx(L,{color:"warning"}):e.jsx($,{color:"error"});return e.jsxs(x,{children:[e.jsxs(i,{variant:"h4",gutterBottom:!0,children:[e.jsx(T,{sx:{mr:1,verticalAlign:"middle"}}),"Conseil LLM"]}),e.jsxs(l,{sx:{display:"flex",flexDirection:"column",gap:3},children:[s&&e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(v,{sx:{mr:1,verticalAlign:"middle"}}),"Score de vraisemblance"]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",mb:2},children:[M(s.credibilityScore),e.jsxs(i,{variant:"h4",sx:{ml:2},children:[(s.credibilityScore*100).toFixed(1),"%"]})]}),e.jsx(E,{variant:"determinate",value:s.credibilityScore*100,color:w(s.credibilityScore),sx:{height:10,borderRadius:5,mb:2}}),e.jsx(i,{variant:"body2",color:"text.secondary",children:s.credibilityScore>=.8?"Document très fiable":s.credibilityScore>=.6?"Document moyennement fiable":"Document peu fiable - vérification recommandée"}),s.summary&&e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200",mt:2},children:e.jsx(i,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:s.summary})})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(z,{sx:{mr:1,verticalAlign:"middle"}}),"Analyse LLM"]}),e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200"},children:e.jsx(i,{variant:"body1",sx:{whiteSpace:"pre-wrap"},children:n.analysis})}),e.jsxs(i,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Généré le ",new Date(n.generatedAt).toLocaleString()]})]})}),e.jsxs(l,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(b,{sx:{mr:1,verticalAlign:"middle"}}),"Recommandations (",n.recommendations.length+(s?.recommendations?.length||0),")"]}),e.jsxs(C,{dense:!0,children:[n.recommendations.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(b,{color:"success"})}),e.jsx(j,{primary:r})]},t)),s?.recommendations?.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(v,{color:"info"})}),e.jsx(j,{primary:r})]},`analysis-${t}`))]})]})})}),e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(L,{sx:{mr:1,verticalAlign:"middle"}}),"Risques identifiés (",n.risks.length,")"]}),e.jsx(C,{dense:!0,children:n.risks.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(L,{color:g(r)})}),e.jsx(j,{primary:r,primaryTypographyProps:{color:g(r)==="error"?"error.main":g(r)==="warning"?"warning.main":"info.main"}})]},t))})]})})})]}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(V,{sx:{mr:1,verticalAlign:"middle"}}),"Prochaines étapes recommandées"]}),e.jsx(C,{children:n.nextSteps.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(W,{color:"primary"})}),e.jsx(j,{primary:`Étape ${t+1}`,secondary:r})]},t))})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(l,{sx:{display:"flex",gap:2,flexWrap:"wrap"},children:[e.jsx(f,{variant:"contained",onClick:()=>d(A(c.id)),disabled:S,children:"Régénérer les conseils"}),e.jsx(f,{variant:"outlined",children:"Exporter le rapport"}),e.jsx(f,{variant:"outlined",children:"Partager avec l'équipe"})]})]})}),e.jsxs(y,{sx:{p:2,bgcolor:"primary.50"},children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Résumé exécutif"}),e.jsxs(l,{sx:{display:"flex",gap:1,flexWrap:"wrap",mb:2},children:[s&&e.jsx(m,{icon:e.jsx(v,{}),label:`Score: ${(s.credibilityScore*100).toFixed(1)}%`,color:w(s.credibilityScore),variant:"filled"}),e.jsx(m,{label:`${n.recommendations.length+(s?.recommendations?.length||0)} recommandations`,color:"success",variant:"outlined"}),e.jsx(m,{label:`${n.risks.length} risques identifiés`,color:"warning",variant:"outlined"}),e.jsx(m,{label:`${n.nextSteps.length} étapes suivantes`,color:"info",variant:"outlined"})]}),e.jsx(i,{variant:"body2",color:"text.secondary",children:"Cette analyse LLM a été générée automatiquement et doit être validée par un expert notarial."})]})]})]})}export{O as default}; diff --git a/public/assets/ConseilView-kU6R4Q6x.js b/public/assets/ConseilView-kU6R4Q6x.js new file mode 100644 index 0000000..d343b44 --- /dev/null +++ b/public/assets/ConseilView-kU6R4Q6x.js @@ -0,0 +1 @@ +import{j as e,x as R,y as D,r as P,S as A,U as I,B as l,C as q,T as i}from"./index-DwyPw-ga.js";import{c as u,L as x,A as B,C as o,q as E,P as y,B as f,k as m}from"./Layout-BXCKqMhs.js";import{C as a}from"./CardContent-BABkM9oc.js";import{A as v}from"./Assessment-vIi1LBZu.js";import{C as b,E as $}from"./Error-KwpHlgI1.js";import{L as C,a as h,b as j}from"./ListItemText-DU5FWiy7.js";import{L as p}from"./ListItemIcon-Bjh9BWiV.js";import{W as L}from"./Warning-SpZY3gdb.js";const z=u(e.jsx("path",{d:"M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7"})),T=u([e.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),e.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),W=u([e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),e.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),V=u(e.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function O(){const d=R(),{currentDocument:c,conseilResult:n,analysisResult:s,loading:S}=D(r=>r.document);if(P.useEffect(()=>{c&&(n||d(A(c.id)),s||d(I(c.id)))},[c,n,s,d]),!c)return e.jsx(x,{children:e.jsx(B,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(S)return e.jsx(x,{children:e.jsxs(l,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(q,{}),e.jsx(i,{sx:{ml:2},children:"Génération des conseils LLM..."})]})});if(!n)return e.jsx(x,{children:e.jsx(B,{severity:"warning",children:"Aucun conseil disponible."})});const g=r=>r.toLowerCase().includes("élevé")||r.toLowerCase().includes("critique")?"error":r.toLowerCase().includes("moyen")||r.toLowerCase().includes("modéré")?"warning":"info",w=r=>r>=.8?"success":r>=.6?"warning":"error",M=r=>r>=.8?e.jsx(b,{color:"success"}):r>=.6?e.jsx(L,{color:"warning"}):e.jsx($,{color:"error"});return e.jsxs(x,{children:[e.jsxs(i,{variant:"h4",gutterBottom:!0,children:[e.jsx(T,{sx:{mr:1,verticalAlign:"middle"}}),"Conseil LLM"]}),e.jsxs(l,{sx:{display:"flex",flexDirection:"column",gap:3},children:[s&&e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(v,{sx:{mr:1,verticalAlign:"middle"}}),"Score de vraisemblance"]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",mb:2},children:[M(s.credibilityScore),e.jsxs(i,{variant:"h4",sx:{ml:2},children:[(s.credibilityScore*100).toFixed(1),"%"]})]}),e.jsx(E,{variant:"determinate",value:s.credibilityScore*100,color:w(s.credibilityScore),sx:{height:10,borderRadius:5,mb:2}}),e.jsx(i,{variant:"body2",color:"text.secondary",children:s.credibilityScore>=.8?"Document très fiable":s.credibilityScore>=.6?"Document moyennement fiable":"Document peu fiable - vérification recommandée"}),s.summary&&e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200",mt:2},children:e.jsx(i,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:s.summary})})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(z,{sx:{mr:1,verticalAlign:"middle"}}),"Analyse LLM"]}),e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200"},children:e.jsx(i,{variant:"body1",sx:{whiteSpace:"pre-wrap"},children:n.analysis})}),e.jsxs(i,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Généré le ",new Date(n.generatedAt).toLocaleString()]})]})}),e.jsxs(l,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(b,{sx:{mr:1,verticalAlign:"middle"}}),"Recommandations (",n.recommendations.length+(s?.recommendations?.length||0),")"]}),e.jsxs(C,{dense:!0,children:[n.recommendations.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(b,{color:"success"})}),e.jsx(j,{primary:r})]},t)),s?.recommendations?.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(v,{color:"info"})}),e.jsx(j,{primary:r})]},`analysis-${t}`))]})]})})}),e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(L,{sx:{mr:1,verticalAlign:"middle"}}),"Risques identifiés (",n.risks.length,")"]}),e.jsx(C,{dense:!0,children:n.risks.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(L,{color:g(r)})}),e.jsx(j,{primary:r,primaryTypographyProps:{color:g(r)==="error"?"error.main":g(r)==="warning"?"warning.main":"info.main"}})]},t))})]})})})]}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(V,{sx:{mr:1,verticalAlign:"middle"}}),"Prochaines étapes recommandées"]}),e.jsx(C,{children:n.nextSteps.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(W,{color:"primary"})}),e.jsx(j,{primary:`Étape ${t+1}`,secondary:r})]},t))})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(l,{sx:{display:"flex",gap:2,flexWrap:"wrap"},children:[e.jsx(f,{variant:"contained",onClick:()=>d(A(c.id)),disabled:S,children:"Régénérer les conseils"}),e.jsx(f,{variant:"outlined",children:"Exporter le rapport"}),e.jsx(f,{variant:"outlined",children:"Partager avec l'équipe"})]})]})}),e.jsxs(y,{sx:{p:2,bgcolor:"primary.50"},children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Résumé exécutif"}),e.jsxs(l,{sx:{display:"flex",gap:1,flexWrap:"wrap",mb:2},children:[s&&e.jsx(m,{icon:e.jsx(v,{}),label:`Score: ${(s.credibilityScore*100).toFixed(1)}%`,color:w(s.credibilityScore),variant:"filled"}),e.jsx(m,{label:`${n.recommendations.length+(s?.recommendations?.length||0)} recommandations`,color:"success",variant:"outlined"}),e.jsx(m,{label:`${n.risks.length} risques identifiés`,color:"warning",variant:"outlined"}),e.jsx(m,{label:`${n.nextSteps.length} étapes suivantes`,color:"info",variant:"outlined"})]}),e.jsx(i,{variant:"body2",color:"text.secondary",children:"Cette analyse LLM a été générée automatiquement et doit être validée par un expert notarial."})]})]})]})}export{O as default}; diff --git a/public/assets/ConseilView-ktK2HE2X.js b/public/assets/ConseilView-ktK2HE2X.js new file mode 100644 index 0000000..933b4e7 --- /dev/null +++ b/public/assets/ConseilView-ktK2HE2X.js @@ -0,0 +1 @@ +import{j as e,x as D,y as R,r as P,S as A,U as I,B as l,D as q,T as i}from"./index-wde0U4qL.js";import{c as u,L as x,A as B,C as o,q as E,P as y,B as f,k as m}from"./Layout-aWSA1CnN.js";import{C as a}from"./CardContent-CtiAdwle.js";import{A as v}from"./Assessment-EqCCjnQU.js";import{C as b,E as $}from"./Error-DWv7Y7dl.js";import{L as C,a as h,b as j}from"./ListItemText-MHCbhB9z.js";import{L as p}from"./ListItemIcon-CvUOm9xw.js";import{W as L}from"./Warning-AzBBLDe4.js";const z=u(e.jsx("path",{d:"M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7"})),T=u([e.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),e.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),W=u([e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),e.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),V=u(e.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function O(){const d=D(),{currentDocument:c,conseilResult:n,analysisResult:s,loading:S}=R(r=>r.document);if(P.useEffect(()=>{c&&(n||d(A(c.id)),s||d(I(c.id)))},[c,n,s,d]),!c)return e.jsx(x,{children:e.jsx(B,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(S)return e.jsx(x,{children:e.jsxs(l,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(q,{}),e.jsx(i,{sx:{ml:2},children:"Génération des conseils LLM..."})]})});if(!n)return e.jsx(x,{children:e.jsx(B,{severity:"warning",children:"Aucun conseil disponible."})});const g=r=>r.toLowerCase().includes("élevé")||r.toLowerCase().includes("critique")?"error":r.toLowerCase().includes("moyen")||r.toLowerCase().includes("modéré")?"warning":"info",w=r=>r>=.8?"success":r>=.6?"warning":"error",M=r=>r>=.8?e.jsx(b,{color:"success"}):r>=.6?e.jsx(L,{color:"warning"}):e.jsx($,{color:"error"});return e.jsxs(x,{children:[e.jsxs(i,{variant:"h4",gutterBottom:!0,children:[e.jsx(T,{sx:{mr:1,verticalAlign:"middle"}}),"Conseil LLM"]}),e.jsxs(l,{sx:{display:"flex",flexDirection:"column",gap:3},children:[s&&e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(v,{sx:{mr:1,verticalAlign:"middle"}}),"Score de vraisemblance"]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",mb:2},children:[M(s.credibilityScore),e.jsxs(i,{variant:"h4",sx:{ml:2},children:[(s.credibilityScore*100).toFixed(1),"%"]})]}),e.jsx(E,{variant:"determinate",value:s.credibilityScore*100,color:w(s.credibilityScore),sx:{height:10,borderRadius:5,mb:2}}),e.jsx(i,{variant:"body2",color:"text.secondary",children:s.credibilityScore>=.8?"Document très fiable":s.credibilityScore>=.6?"Document moyennement fiable":"Document peu fiable - vérification recommandée"}),s.summary&&e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200",mt:2},children:e.jsx(i,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:s.summary})})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(z,{sx:{mr:1,verticalAlign:"middle"}}),"Analyse LLM"]}),e.jsx(y,{sx:{p:2,bgcolor:"grey.50",border:"1px solid",borderColor:"grey.200"},children:e.jsx(i,{variant:"body1",sx:{whiteSpace:"pre-wrap"},children:n.analysis})}),e.jsxs(i,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Généré le ",new Date(n.generatedAt).toLocaleString()]})]})}),e.jsxs(l,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(b,{sx:{mr:1,verticalAlign:"middle"}}),"Recommandations (",n.recommendations.length+(s?.recommendations?.length||0),")"]}),e.jsxs(C,{dense:!0,children:[n.recommendations.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(b,{color:"success"})}),e.jsx(j,{primary:r})]},t)),s?.recommendations?.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(v,{color:"info"})}),e.jsx(j,{primary:r})]},`analysis-${t}`))]})]})})}),e.jsx(l,{sx:{flex:"1 1 300px"},children:e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(L,{sx:{mr:1,verticalAlign:"middle"}}),"Risques identifiés (",n.risks.length,")"]}),e.jsx(C,{dense:!0,children:n.risks.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(L,{color:g(r)})}),e.jsx(j,{primary:r,primaryTypographyProps:{color:g(r)==="error"?"error.main":g(r)==="warning"?"warning.main":"info.main"}})]},t))})]})})})]}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(V,{sx:{mr:1,verticalAlign:"middle"}}),"Prochaines étapes recommandées"]}),e.jsx(C,{children:n.nextSteps.map((r,t)=>e.jsxs(h,{children:[e.jsx(p,{children:e.jsx(W,{color:"primary"})}),e.jsx(j,{primary:`Étape ${t+1}`,secondary:r})]},t))})]})}),e.jsx(o,{children:e.jsxs(a,{children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(l,{sx:{display:"flex",gap:2,flexWrap:"wrap"},children:[e.jsx(f,{variant:"contained",onClick:()=>d(A(c.id)),disabled:S,children:"Régénérer les conseils"}),e.jsx(f,{variant:"outlined",children:"Exporter le rapport"}),e.jsx(f,{variant:"outlined",children:"Partager avec l'équipe"})]})]})}),e.jsxs(y,{sx:{p:2,bgcolor:"primary.50"},children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Résumé exécutif"}),e.jsxs(l,{sx:{display:"flex",gap:1,flexWrap:"wrap",mb:2},children:[s&&e.jsx(m,{icon:e.jsx(v,{}),label:`Score: ${(s.credibilityScore*100).toFixed(1)}%`,color:w(s.credibilityScore),variant:"filled"}),e.jsx(m,{label:`${n.recommendations.length+(s?.recommendations?.length||0)} recommandations`,color:"success",variant:"outlined"}),e.jsx(m,{label:`${n.risks.length} risques identifiés`,color:"warning",variant:"outlined"}),e.jsx(m,{label:`${n.nextSteps.length} étapes suivantes`,color:"info",variant:"outlined"})]}),e.jsx(i,{variant:"body2",color:"text.secondary",children:"Cette analyse LLM a été générée automatiquement et doit être validée par un expert notarial."})]})]})]})}export{O as default}; diff --git a/public/assets/ContexteView-BJCk76pf.js b/public/assets/ContexteView-BJCk76pf.js new file mode 100644 index 0000000..3282e0a --- /dev/null +++ b/public/assets/ContexteView-BJCk76pf.js @@ -0,0 +1 @@ +import{j as e,x as v,y as b,r as y,O as m,B as r,D as C,T as n}from"./index-BkuOAsyQ.js";import{c as g,L as j,A as o,P as A,k as i,C as S,B as D}from"./Layout-HUfQIbZm.js";import{A as d,a as x,E as u,b as h,L as I,B as w}from"./LocationOn-g4BgcU6o.js";import{W as B}from"./Warning-BYDm3ItC.js";import{C as N}from"./CardContent-D_m--IFw.js";import{C as O,E as q}from"./Error-BFlYSo8E.js";import"./utils-DOxjq0mC.js";const z=g(e.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),E=g(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}));function V(){const p=v(),{currentDocument:t,contextResult:s,loading:f}=b(l=>l.document);if(y.useEffect(()=>{t&&!s&&p(m(t.id))},[t,s,p]),!t)return e.jsx(j,{children:e.jsx(o,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(f)return e.jsx(j,{children:e.jsxs(r,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(C,{}),e.jsx(n,{sx:{ml:2},children:"Recherche d'informations contextuelles..."})]})});if(!s)return e.jsx(j,{children:e.jsx(o,{severity:"warning",children:"Aucune donnée contextuelle disponible."})});const c=l=>l?e.jsx(O,{color:"success"}):e.jsx(q,{color:"error"}),a=l=>l?"success":"error";return e.jsxs(j,{children:[e.jsx(n,{variant:"h4",gutterBottom:!0,children:"Informations contextuelles"}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",gap:3},children:[e.jsxs(A,{sx:{p:2},children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Sources de données consultées"}),e.jsxs(r,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(i,{icon:c(!!s.cadastreData),label:"Cadastre",color:a(!!s.cadastreData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.georisquesData),label:"Géorisques",color:a(!!s.georisquesData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.geofoncierData),label:"Géofoncier",color:a(!!s.geofoncierData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.bodaccData),label:"BODACC",color:a(!!s.bodaccData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.infogreffeData),label:"Infogreffe",color:a(!!s.infogreffeData),variant:"outlined"})]}),e.jsxs(n,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Dernière mise à jour: ",new Date(s.lastUpdated).toLocaleString()]})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(z,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données cadastrales"}),e.jsx(i,{label:s.cadastreData?"Disponible":"Non disponible",color:a(!!s.cadastreData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.cadastreData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.cadastreData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée cadastrale trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(B,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géorisques"}),e.jsx(i,{label:s.georisquesData?"Disponible":"Non disponible",color:a(!!s.georisquesData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.georisquesData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.georisquesData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géorisques trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géofoncier"}),e.jsx(i,{label:s.geofoncierData?"Disponible":"Non disponible",color:a(!!s.geofoncierData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.geofoncierData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.geofoncierData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géofoncier trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(E,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données BODACC"}),e.jsx(i,{label:s.bodaccData?"Disponible":"Non disponible",color:a(!!s.bodaccData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.bodaccData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.bodaccData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée BODACC trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(w,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Infogreffe"}),e.jsx(i,{label:s.infogreffeData?"Disponible":"Non disponible",color:a(!!s.infogreffeData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.infogreffeData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.infogreffeData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Infogreffe trouvée pour ce document."})})]}),e.jsx(S,{children:e.jsxs(N,{children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(r,{sx:{display:"flex",gap:2},children:[e.jsx(D,{variant:"contained",onClick:()=>p(m(t.id)),disabled:f,children:"Actualiser les données"}),e.jsx(D,{variant:"outlined",children:"Exporter le rapport"})]})]})})]})]})}export{V as default}; diff --git a/public/assets/ContexteView-BcRuaEVz.js b/public/assets/ContexteView-BcRuaEVz.js new file mode 100644 index 0000000..de37c48 --- /dev/null +++ b/public/assets/ContexteView-BcRuaEVz.js @@ -0,0 +1 @@ +import{j as e,x as v,y as b,r as y,O as m,B as r,D as C,T as n}from"./index-wde0U4qL.js";import{c as g,L as j,A as o,P as A,k as i,C as S,B as D}from"./Layout-aWSA1CnN.js";import{A as d,a as x,E as u,b as h,L as I,B as w}from"./LocationOn-D6dNBkVX.js";import{W as B}from"./Warning-AzBBLDe4.js";import{C as N}from"./CardContent-CtiAdwle.js";import{C as O,E as q}from"./Error-DWv7Y7dl.js";import"./utils-ZQUdJD-K.js";const z=g(e.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),E=g(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}));function V(){const p=v(),{currentDocument:t,contextResult:s,loading:f}=b(l=>l.document);if(y.useEffect(()=>{t&&!s&&p(m(t.id))},[t,s,p]),!t)return e.jsx(j,{children:e.jsx(o,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(f)return e.jsx(j,{children:e.jsxs(r,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(C,{}),e.jsx(n,{sx:{ml:2},children:"Recherche d'informations contextuelles..."})]})});if(!s)return e.jsx(j,{children:e.jsx(o,{severity:"warning",children:"Aucune donnée contextuelle disponible."})});const c=l=>l?e.jsx(O,{color:"success"}):e.jsx(q,{color:"error"}),a=l=>l?"success":"error";return e.jsxs(j,{children:[e.jsx(n,{variant:"h4",gutterBottom:!0,children:"Informations contextuelles"}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",gap:3},children:[e.jsxs(A,{sx:{p:2},children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Sources de données consultées"}),e.jsxs(r,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(i,{icon:c(!!s.cadastreData),label:"Cadastre",color:a(!!s.cadastreData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.georisquesData),label:"Géorisques",color:a(!!s.georisquesData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.geofoncierData),label:"Géofoncier",color:a(!!s.geofoncierData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.bodaccData),label:"BODACC",color:a(!!s.bodaccData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.infogreffeData),label:"Infogreffe",color:a(!!s.infogreffeData),variant:"outlined"})]}),e.jsxs(n,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Dernière mise à jour: ",new Date(s.lastUpdated).toLocaleString()]})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(z,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données cadastrales"}),e.jsx(i,{label:s.cadastreData?"Disponible":"Non disponible",color:a(!!s.cadastreData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.cadastreData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.cadastreData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée cadastrale trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(B,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géorisques"}),e.jsx(i,{label:s.georisquesData?"Disponible":"Non disponible",color:a(!!s.georisquesData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.georisquesData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.georisquesData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géorisques trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géofoncier"}),e.jsx(i,{label:s.geofoncierData?"Disponible":"Non disponible",color:a(!!s.geofoncierData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.geofoncierData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.geofoncierData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géofoncier trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(E,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données BODACC"}),e.jsx(i,{label:s.bodaccData?"Disponible":"Non disponible",color:a(!!s.bodaccData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.bodaccData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.bodaccData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée BODACC trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(w,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Infogreffe"}),e.jsx(i,{label:s.infogreffeData?"Disponible":"Non disponible",color:a(!!s.infogreffeData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.infogreffeData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.infogreffeData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Infogreffe trouvée pour ce document."})})]}),e.jsx(S,{children:e.jsxs(N,{children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(r,{sx:{display:"flex",gap:2},children:[e.jsx(D,{variant:"contained",onClick:()=>p(m(t.id)),disabled:f,children:"Actualiser les données"}),e.jsx(D,{variant:"outlined",children:"Exporter le rapport"})]})]})})]})]})}export{V as default}; diff --git a/public/assets/ContexteView-C5MDnC0Y.js b/public/assets/ContexteView-C5MDnC0Y.js new file mode 100644 index 0000000..2b50f69 --- /dev/null +++ b/public/assets/ContexteView-C5MDnC0Y.js @@ -0,0 +1 @@ +import{j as e,x as v,y as b,r as y,O as m,B as r,C,T as n}from"./index-DwyPw-ga.js";import{c as g,L as j,A as o,P as A,k as i,C as S,B as D}from"./Layout-BXCKqMhs.js";import{A as d,a as x,E as u,b as h,L as I,B as w}from"./LocationOn-B18XNb8Q.js";import{W as B}from"./Warning-SpZY3gdb.js";import{C as N}from"./CardContent-BABkM9oc.js";import{C as O,E as q}from"./Error-KwpHlgI1.js";import"./utils-CKR531ip.js";const z=g(e.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),E=g(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}));function V(){const p=v(),{currentDocument:t,contextResult:s,loading:f}=b(l=>l.document);if(y.useEffect(()=>{t&&!s&&p(m(t.id))},[t,s,p]),!t)return e.jsx(j,{children:e.jsx(o,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(f)return e.jsx(j,{children:e.jsxs(r,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(C,{}),e.jsx(n,{sx:{ml:2},children:"Recherche d'informations contextuelles..."})]})});if(!s)return e.jsx(j,{children:e.jsx(o,{severity:"warning",children:"Aucune donnée contextuelle disponible."})});const c=l=>l?e.jsx(O,{color:"success"}):e.jsx(q,{color:"error"}),a=l=>l?"success":"error";return e.jsxs(j,{children:[e.jsx(n,{variant:"h4",gutterBottom:!0,children:"Informations contextuelles"}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",gap:3},children:[e.jsxs(A,{sx:{p:2},children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Sources de données consultées"}),e.jsxs(r,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(i,{icon:c(!!s.cadastreData),label:"Cadastre",color:a(!!s.cadastreData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.georisquesData),label:"Géorisques",color:a(!!s.georisquesData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.geofoncierData),label:"Géofoncier",color:a(!!s.geofoncierData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.bodaccData),label:"BODACC",color:a(!!s.bodaccData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.infogreffeData),label:"Infogreffe",color:a(!!s.infogreffeData),variant:"outlined"})]}),e.jsxs(n,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Dernière mise à jour: ",new Date(s.lastUpdated).toLocaleString()]})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(z,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données cadastrales"}),e.jsx(i,{label:s.cadastreData?"Disponible":"Non disponible",color:a(!!s.cadastreData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.cadastreData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.cadastreData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée cadastrale trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(B,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géorisques"}),e.jsx(i,{label:s.georisquesData?"Disponible":"Non disponible",color:a(!!s.georisquesData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.georisquesData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.georisquesData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géorisques trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géofoncier"}),e.jsx(i,{label:s.geofoncierData?"Disponible":"Non disponible",color:a(!!s.geofoncierData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.geofoncierData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.geofoncierData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géofoncier trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(E,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données BODACC"}),e.jsx(i,{label:s.bodaccData?"Disponible":"Non disponible",color:a(!!s.bodaccData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.bodaccData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.bodaccData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée BODACC trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(w,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Infogreffe"}),e.jsx(i,{label:s.infogreffeData?"Disponible":"Non disponible",color:a(!!s.infogreffeData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.infogreffeData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.infogreffeData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Infogreffe trouvée pour ce document."})})]}),e.jsx(S,{children:e.jsxs(N,{children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(r,{sx:{display:"flex",gap:2},children:[e.jsx(D,{variant:"contained",onClick:()=>p(m(t.id)),disabled:f,children:"Actualiser les données"}),e.jsx(D,{variant:"outlined",children:"Exporter le rapport"})]})]})})]})]})}export{V as default}; diff --git a/public/assets/ContexteView-C6NmMiz_.js b/public/assets/ContexteView-C6NmMiz_.js new file mode 100644 index 0000000..52e66e8 --- /dev/null +++ b/public/assets/ContexteView-C6NmMiz_.js @@ -0,0 +1 @@ +import{j as e,x as v,y as b,r as y,O as m,B as r,D as C,T as n}from"./index-ChSrE95j.js";import{c as g,L as j,A as o,P as A,k as i,C as S,B as D}from"./Layout-EP4xiiHA.js";import{A as d,a as x,E as u,b as h,L as I,B as w}from"./LocationOn-CcUeyQI8.js";import{W as B}from"./Warning-BfA_XJFt.js";import{C as N}from"./CardContent-afWGaPRZ.js";import{C as O,E as q}from"./Error-BbVVlYbr.js";import"./utils-CND5M_oZ.js";const z=g(e.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),E=g(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}));function V(){const p=v(),{currentDocument:t,contextResult:s,loading:f}=b(l=>l.document);if(y.useEffect(()=>{t&&!s&&p(m(t.id))},[t,s,p]),!t)return e.jsx(j,{children:e.jsx(o,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(f)return e.jsx(j,{children:e.jsxs(r,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(C,{}),e.jsx(n,{sx:{ml:2},children:"Recherche d'informations contextuelles..."})]})});if(!s)return e.jsx(j,{children:e.jsx(o,{severity:"warning",children:"Aucune donnée contextuelle disponible."})});const c=l=>l?e.jsx(O,{color:"success"}):e.jsx(q,{color:"error"}),a=l=>l?"success":"error";return e.jsxs(j,{children:[e.jsx(n,{variant:"h4",gutterBottom:!0,children:"Informations contextuelles"}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",gap:3},children:[e.jsxs(A,{sx:{p:2},children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Sources de données consultées"}),e.jsxs(r,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(i,{icon:c(!!s.cadastreData),label:"Cadastre",color:a(!!s.cadastreData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.georisquesData),label:"Géorisques",color:a(!!s.georisquesData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.geofoncierData),label:"Géofoncier",color:a(!!s.geofoncierData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.bodaccData),label:"BODACC",color:a(!!s.bodaccData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.infogreffeData),label:"Infogreffe",color:a(!!s.infogreffeData),variant:"outlined"})]}),e.jsxs(n,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Dernière mise à jour: ",new Date(s.lastUpdated).toLocaleString()]})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(z,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données cadastrales"}),e.jsx(i,{label:s.cadastreData?"Disponible":"Non disponible",color:a(!!s.cadastreData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.cadastreData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.cadastreData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée cadastrale trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(B,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géorisques"}),e.jsx(i,{label:s.georisquesData?"Disponible":"Non disponible",color:a(!!s.georisquesData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.georisquesData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.georisquesData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géorisques trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géofoncier"}),e.jsx(i,{label:s.geofoncierData?"Disponible":"Non disponible",color:a(!!s.geofoncierData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.geofoncierData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.geofoncierData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géofoncier trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(E,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données BODACC"}),e.jsx(i,{label:s.bodaccData?"Disponible":"Non disponible",color:a(!!s.bodaccData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.bodaccData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.bodaccData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée BODACC trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(w,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Infogreffe"}),e.jsx(i,{label:s.infogreffeData?"Disponible":"Non disponible",color:a(!!s.infogreffeData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.infogreffeData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.infogreffeData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Infogreffe trouvée pour ce document."})})]}),e.jsx(S,{children:e.jsxs(N,{children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(r,{sx:{display:"flex",gap:2},children:[e.jsx(D,{variant:"contained",onClick:()=>p(m(t.id)),disabled:f,children:"Actualiser les données"}),e.jsx(D,{variant:"outlined",children:"Exporter le rapport"})]})]})})]})]})}export{V as default}; diff --git a/public/assets/ContexteView-CyTwdiEZ.js b/public/assets/ContexteView-CyTwdiEZ.js new file mode 100644 index 0000000..c2390d9 --- /dev/null +++ b/public/assets/ContexteView-CyTwdiEZ.js @@ -0,0 +1 @@ +import{j as e,x as v,y as b,r as y,O as m,B as r,D as C,T as n}from"./index-CuLfHvEh.js";import{c as g,L as j,A as o,P as A,k as i,C as S,B as D}from"./Layout-BwmFxbkK.js";import{A as d,a as x,E as u,b as h,L as I,B as w}from"./LocationOn-BJaJHvbZ.js";import{W as B}from"./Warning-9PqtY1pT.js";import{C as N}from"./CardContent-DBMk6lgw.js";import{C as O,E as q}from"./Error-CwTwgto-.js";import"./utils-D0Kc04Qe.js";const z=g(e.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),E=g(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}));function V(){const p=v(),{currentDocument:t,contextResult:s,loading:f}=b(l=>l.document);if(y.useEffect(()=>{t&&!s&&p(m(t.id))},[t,s,p]),!t)return e.jsx(j,{children:e.jsx(o,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(f)return e.jsx(j,{children:e.jsxs(r,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(C,{}),e.jsx(n,{sx:{ml:2},children:"Recherche d'informations contextuelles..."})]})});if(!s)return e.jsx(j,{children:e.jsx(o,{severity:"warning",children:"Aucune donnée contextuelle disponible."})});const c=l=>l?e.jsx(O,{color:"success"}):e.jsx(q,{color:"error"}),a=l=>l?"success":"error";return e.jsxs(j,{children:[e.jsx(n,{variant:"h4",gutterBottom:!0,children:"Informations contextuelles"}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",gap:3},children:[e.jsxs(A,{sx:{p:2},children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Sources de données consultées"}),e.jsxs(r,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(i,{icon:c(!!s.cadastreData),label:"Cadastre",color:a(!!s.cadastreData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.georisquesData),label:"Géorisques",color:a(!!s.georisquesData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.geofoncierData),label:"Géofoncier",color:a(!!s.geofoncierData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.bodaccData),label:"BODACC",color:a(!!s.bodaccData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.infogreffeData),label:"Infogreffe",color:a(!!s.infogreffeData),variant:"outlined"})]}),e.jsxs(n,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Dernière mise à jour: ",new Date(s.lastUpdated).toLocaleString()]})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(z,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données cadastrales"}),e.jsx(i,{label:s.cadastreData?"Disponible":"Non disponible",color:a(!!s.cadastreData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.cadastreData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.cadastreData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée cadastrale trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(B,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géorisques"}),e.jsx(i,{label:s.georisquesData?"Disponible":"Non disponible",color:a(!!s.georisquesData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.georisquesData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.georisquesData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géorisques trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géofoncier"}),e.jsx(i,{label:s.geofoncierData?"Disponible":"Non disponible",color:a(!!s.geofoncierData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.geofoncierData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.geofoncierData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géofoncier trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(E,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données BODACC"}),e.jsx(i,{label:s.bodaccData?"Disponible":"Non disponible",color:a(!!s.bodaccData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.bodaccData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.bodaccData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée BODACC trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(w,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Infogreffe"}),e.jsx(i,{label:s.infogreffeData?"Disponible":"Non disponible",color:a(!!s.infogreffeData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.infogreffeData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.infogreffeData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Infogreffe trouvée pour ce document."})})]}),e.jsx(S,{children:e.jsxs(N,{children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(r,{sx:{display:"flex",gap:2},children:[e.jsx(D,{variant:"contained",onClick:()=>p(m(t.id)),disabled:f,children:"Actualiser les données"}),e.jsx(D,{variant:"outlined",children:"Exporter le rapport"})]})]})})]})]})}export{V as default}; diff --git a/public/assets/ContexteView-rTVjByPI.js b/public/assets/ContexteView-rTVjByPI.js new file mode 100644 index 0000000..2bd63ad --- /dev/null +++ b/public/assets/ContexteView-rTVjByPI.js @@ -0,0 +1 @@ +import{j as e,x as v,y as b,r as y,O as m,B as r,D as C,T as n}from"./index-CedKFzDs.js";import{c as g,L as j,A as o,P as A,k as i,C as S,B as D}from"./Layout-D-i60CyA.js";import{A as d,a as x,E as u,b as h,L as I,B as w}from"./LocationOn-DOH85F_6.js";import{W as B}from"./Warning-DUm-aenG.js";import{C as N}from"./CardContent-CTu31uOK.js";import{C as O,E as q}from"./Error-CPa74s6I.js";import"./utils-DK0LiU04.js";const z=g(e.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),E=g(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}));function V(){const p=v(),{currentDocument:t,contextResult:s,loading:f}=b(l=>l.document);if(y.useEffect(()=>{t&&!s&&p(m(t.id))},[t,s,p]),!t)return e.jsx(j,{children:e.jsx(o,{severity:"info",children:"Veuillez d'abord téléverser et sélectionner un document."})});if(f)return e.jsx(j,{children:e.jsxs(r,{sx:{display:"flex",justifyContent:"center",mt:4},children:[e.jsx(C,{}),e.jsx(n,{sx:{ml:2},children:"Recherche d'informations contextuelles..."})]})});if(!s)return e.jsx(j,{children:e.jsx(o,{severity:"warning",children:"Aucune donnée contextuelle disponible."})});const c=l=>l?e.jsx(O,{color:"success"}):e.jsx(q,{color:"error"}),a=l=>l?"success":"error";return e.jsxs(j,{children:[e.jsx(n,{variant:"h4",gutterBottom:!0,children:"Informations contextuelles"}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",gap:3},children:[e.jsxs(A,{sx:{p:2},children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Sources de données consultées"}),e.jsxs(r,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(i,{icon:c(!!s.cadastreData),label:"Cadastre",color:a(!!s.cadastreData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.georisquesData),label:"Géorisques",color:a(!!s.georisquesData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.geofoncierData),label:"Géofoncier",color:a(!!s.geofoncierData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.bodaccData),label:"BODACC",color:a(!!s.bodaccData),variant:"outlined"}),e.jsx(i,{icon:c(!!s.infogreffeData),label:"Infogreffe",color:a(!!s.infogreffeData),variant:"outlined"})]}),e.jsxs(n,{variant:"caption",color:"text.secondary",sx:{mt:1,display:"block"},children:["Dernière mise à jour: ",new Date(s.lastUpdated).toLocaleString()]})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(z,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données cadastrales"}),e.jsx(i,{label:s.cadastreData?"Disponible":"Non disponible",color:a(!!s.cadastreData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.cadastreData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.cadastreData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée cadastrale trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(B,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géorisques"}),e.jsx(i,{label:s.georisquesData?"Disponible":"Non disponible",color:a(!!s.georisquesData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.georisquesData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.georisquesData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géorisques trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Géofoncier"}),e.jsx(i,{label:s.geofoncierData?"Disponible":"Non disponible",color:a(!!s.geofoncierData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.geofoncierData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.geofoncierData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Géofoncier trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(E,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données BODACC"}),e.jsx(i,{label:s.bodaccData?"Disponible":"Non disponible",color:a(!!s.bodaccData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.bodaccData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.bodaccData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée BODACC trouvée pour ce document."})})]}),e.jsxs(d,{children:[e.jsx(x,{expandIcon:e.jsx(u,{}),children:e.jsxs(r,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(w,{sx:{mr:1}}),e.jsx(n,{variant:"h6",children:"Données Infogreffe"}),e.jsx(i,{label:s.infogreffeData?"Disponible":"Non disponible",color:a(!!s.infogreffeData),size:"small",sx:{ml:2}})]})}),e.jsx(h,{children:s.infogreffeData?e.jsx(r,{children:e.jsx(n,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:JSON.stringify(s.infogreffeData,null,2)})}):e.jsx(o,{severity:"info",children:"Aucune donnée Infogreffe trouvée pour ce document."})})]}),e.jsx(S,{children:e.jsxs(N,{children:[e.jsx(n,{variant:"h6",gutterBottom:!0,children:"Actions"}),e.jsxs(r,{sx:{display:"flex",gap:2},children:[e.jsx(D,{variant:"contained",onClick:()=>p(m(t.id)),disabled:f,children:"Actualiser les données"}),e.jsx(D,{variant:"outlined",children:"Exporter le rapport"})]})]})})]})]})}export{V as default}; diff --git a/public/assets/Description-B6Ym94QH.js b/public/assets/Description-B6Ym94QH.js new file mode 100644 index 0000000..e795aaa --- /dev/null +++ b/public/assets/Description-B6Ym94QH.js @@ -0,0 +1 @@ +import{r as E,u as Zt,N as lr,b as ke,a as We,j as q,h as He,p as Ne,d as Fe,s as te,k as cr,c as we,f as Ie,m as fe}from"./index-CedKFzDs.js";import{u as Ht,f as xe,h as fr,j as Bt,b as Ve,a as Oe,e as Yt,T as ur,m as Pe,c as dr}from"./Layout-D-i60CyA.js";import{T as vr,g as Ee,r as mr,u as hr}from"./utils-DK0LiU04.js";function Te(t,e){typeof t=="function"?t(e):t&&(t.current=e)}var N="top",Y="bottom",G="right",F="left",ue="auto",It=[N,Y,G,F],xt="start",Nt="end",gr="clippingParents",Ue="viewport",jt="popper",yr="reference",Re=It.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Nt])},[]),ze=[].concat(It,[ue]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Nt])},[]),br="beforeRead",wr="read",xr="afterRead",Or="beforeMain",Pr="main",Er="afterMain",Tr="beforeWrite",Rr="write",Ar="afterWrite",Sr=[br,wr,xr,Or,Pr,Er,Tr,Rr,Ar];function tt(t){return t?(t.nodeName||"").toLowerCase():null}function V(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=V(t).Element;return t instanceof e||t instanceof Element}function X(t){var e=V(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function de(t){if(typeof ShadowRoot>"u")return!1;var e=V(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $r(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var o=e.styles[r]||{},n=e.attributes[r]||{},i=e.elements[r];!X(i)||!tt(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(l){var a=n[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function Cr(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],i=e.attributes[o]||{},l=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:r[o]),a=l.reduce(function(s,c){return s[c]="",s},{});!X(n)||!tt(n)||(Object.assign(n.style,a),Object.keys(i).forEach(function(s){n.removeAttribute(s)}))})}}const Mr={name:"applyStyles",enabled:!0,phase:"write",fn:$r,effect:Cr,requires:["computeStyles"]};function _(t){return t.split("-")[0]}var ft=Math.max,_t=Math.min,Ot=Math.round;function ae(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qe(){return!/^((?!chrome|android).)*safari/i.test(ae())}function Pt(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&X(t)&&(n=t.offsetWidth>0&&Ot(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ot(o.height)/t.offsetHeight||1);var l=ut(t)?V(t):window,a=l.visualViewport,s=!qe()&&r,c=(o.left+(s&&a?a.offsetLeft:0))/n,p=(o.top+(s&&a?a.offsetTop:0))/i,m=o.width/n,P=o.height/i;return{width:m,height:P,top:p,right:c+m,bottom:p+P,left:c,x:c,y:p}}function ve(t){var e=Pt(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function Xe(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&de(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function rt(t){return V(t).getComputedStyle(t)}function Dr(t){return["table","td","th"].indexOf(tt(t))>=0}function at(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function ee(t){return tt(t)==="html"?t:t.assignedSlot||t.parentNode||(de(t)?t.host:null)||at(t)}function Ae(t){return!X(t)||rt(t).position==="fixed"?null:t.offsetParent}function jr(t){var e=/firefox/i.test(ae()),r=/Trident/i.test(ae());if(r&&X(t)){var o=rt(t);if(o.position==="fixed")return null}var n=ee(t);for(de(n)&&(n=n.host);X(n)&&["html","body"].indexOf(tt(n))<0;){var i=rt(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Vt(t){for(var e=V(t),r=Ae(t);r&&Dr(r)&&rt(r).position==="static";)r=Ae(r);return r&&(tt(r)==="html"||tt(r)==="body"&&rt(r).position==="static")?e:r||jr(t)||e}function me(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,r){return ft(t,_t(e,r))}function Lr(t,e,r){var o=kt(t,e,r);return o>r?r:o}function Ye(){return{top:0,right:0,bottom:0,left:0}}function Ge(t){return Object.assign({},Ye(),t)}function Ke(t,e){return e.reduce(function(r,o){return r[o]=t,r},{})}var Br=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Ge(typeof e!="number"?e:Ke(e,It))};function kr(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,a=_(r.placement),s=me(a),c=[F,G].indexOf(a)>=0,p=c?"height":"width";if(!(!i||!l)){var m=Br(n.padding,r),P=ve(i),d=s==="y"?N:F,w=s==="y"?Y:G,u=r.rects.reference[p]+r.rects.reference[s]-l[s]-r.rects.popper[p],h=l[s]-r.rects.reference[s],x=Vt(i),S=x?s==="y"?x.clientHeight||0:x.clientWidth||0:0,y=u/2-h/2,f=m[d],v=S-P[p]-m[w],g=S/2-P[p]/2+y,O=kt(f,g,v),j=s;r.modifiersData[o]=(e={},e[j]=O,e.centerOffset=O-g,e)}}function Wr(t){var e=t.state,r=t.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Xe(e.elements.popper,n)&&(e.elements.arrow=n))}const Hr={name:"arrow",enabled:!0,phase:"main",fn:kr,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(t){return t.split("-")[1]}var Nr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fr(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:Ot(r*n)/n||0,y:Ot(o*n)/n||0}}function Se(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,l=t.offsets,a=t.position,s=t.gpuAcceleration,c=t.adaptive,p=t.roundOffsets,m=t.isFixed,P=l.x,d=P===void 0?0:P,w=l.y,u=w===void 0?0:w,h=typeof p=="function"?p({x:d,y:u}):{x:d,y:u};d=h.x,u=h.y;var x=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),y=F,f=N,v=window;if(c){var g=Vt(r),O="clientHeight",j="clientWidth";if(g===V(r)&&(g=at(r),rt(g).position!=="static"&&a==="absolute"&&(O="scrollHeight",j="scrollWidth")),g=g,n===N||(n===F||n===G)&&i===Nt){f=Y;var M=m&&g===v&&v.visualViewport?v.visualViewport.height:g[O];u-=M-o.height,u*=s?1:-1}if(n===F||(n===N||n===Y)&&i===Nt){y=G;var T=m&&g===v&&v.visualViewport?v.visualViewport.width:g[j];d-=T-o.width,d*=s?1:-1}}var $=Object.assign({position:a},c&&Nr),k=p===!0?Fr({x:d,y:u},V(r)):{x:d,y:u};if(d=k.x,u=k.y,s){var D;return Object.assign({},$,(D={},D[f]=S?"0":"",D[y]=x?"0":"",D.transform=(v.devicePixelRatio||1)<=1?"translate("+d+"px, "+u+"px)":"translate3d("+d+"px, "+u+"px, 0)",D))}return Object.assign({},$,(e={},e[f]=S?u+"px":"",e[y]=x?d+"px":"",e.transform="",e))}function Ir(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=o===void 0?!0:o,i=r.adaptive,l=i===void 0?!0:i,a=r.roundOffsets,s=a===void 0?!0:a,c={placement:_(e.placement),variation:Et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Se(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Se(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Vr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ir,data:{}};var Gt={passive:!0};function Ur(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=n===void 0?!0:n,l=o.resize,a=l===void 0?!0:l,s=V(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(p){p.addEventListener("scroll",r.update,Gt)}),a&&s.addEventListener("resize",r.update,Gt),function(){i&&c.forEach(function(p){p.removeEventListener("scroll",r.update,Gt)}),a&&s.removeEventListener("resize",r.update,Gt)}}const zr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ur,data:{}};var qr={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(t){return t.replace(/left|right|bottom|top/g,function(e){return qr[e]})}var Xr={start:"end",end:"start"};function $e(t){return t.replace(/start|end/g,function(e){return Xr[e]})}function he(t){var e=V(t),r=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:r,scrollTop:o}}function ge(t){return Pt(at(t)).left+he(t).scrollLeft}function Yr(t,e){var r=V(t),o=at(t),n=r.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(n){i=n.width,l=n.height;var c=qe();(c||!c&&e==="fixed")&&(a=n.offsetLeft,s=n.offsetTop)}return{width:i,height:l,x:a+ge(t),y:s}}function Gr(t){var e,r=at(t),o=he(t),n=(e=t.ownerDocument)==null?void 0:e.body,i=ft(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=ft(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+ge(t),s=-o.scrollTop;return rt(n||r).direction==="rtl"&&(a+=ft(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function ye(t){var e=rt(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Je(t){return["html","body","#document"].indexOf(tt(t))>=0?t.ownerDocument.body:X(t)&&ye(t)?t:Je(ee(t))}function Wt(t,e){var r;e===void 0&&(e=[]);var o=Je(t),n=o===((r=t.ownerDocument)==null?void 0:r.body),i=V(o),l=n?[i].concat(i.visualViewport||[],ye(o)?o:[]):o,a=e.concat(l);return n?a:a.concat(Wt(ee(l)))}function se(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kr(t,e){var r=Pt(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ce(t,e,r){return e===Ue?se(Yr(t,r)):ut(e)?Kr(e,r):se(Gr(at(t)))}function Jr(t){var e=Wt(ee(t)),r=["absolute","fixed"].indexOf(rt(t).position)>=0,o=r&&X(t)?Vt(t):t;return ut(o)?e.filter(function(n){return ut(n)&&Xe(n,o)&&tt(n)!=="body"}):[]}function Qr(t,e,r,o){var n=e==="clippingParents"?Jr(t):[].concat(e),i=[].concat(n,[r]),l=i[0],a=i.reduce(function(s,c){var p=Ce(t,c,o);return s.top=ft(p.top,s.top),s.right=_t(p.right,s.right),s.bottom=_t(p.bottom,s.bottom),s.left=ft(p.left,s.left),s},Ce(t,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Qe(t){var e=t.reference,r=t.element,o=t.placement,n=o?_(o):null,i=o?Et(o):null,l=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,s;switch(n){case N:s={x:l,y:e.y-r.height};break;case Y:s={x:l,y:e.y+e.height};break;case G:s={x:e.x+e.width,y:a};break;case F:s={x:e.x-r.width,y:a};break;default:s={x:e.x,y:e.y}}var c=n?me(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(i){case xt:s[c]=s[c]-(e[p]/2-r[p]/2);break;case Nt:s[c]=s[c]+(e[p]/2-r[p]/2);break}}return s}function Ft(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=o===void 0?t.placement:o,i=r.strategy,l=i===void 0?t.strategy:i,a=r.boundary,s=a===void 0?gr:a,c=r.rootBoundary,p=c===void 0?Ue:c,m=r.elementContext,P=m===void 0?jt:m,d=r.altBoundary,w=d===void 0?!1:d,u=r.padding,h=u===void 0?0:u,x=Ge(typeof h!="number"?h:Ke(h,It)),S=P===jt?yr:jt,y=t.rects.popper,f=t.elements[w?S:P],v=Qr(ut(f)?f:f.contextElement||at(t.elements.popper),s,p,l),g=Pt(t.elements.reference),O=Qe({reference:g,element:y,placement:n}),j=se(Object.assign({},y,O)),M=P===jt?j:g,T={top:v.top-M.top+x.top,bottom:M.bottom-v.bottom+x.bottom,left:v.left-M.left+x.left,right:M.right-v.right+x.right},$=t.modifiersData.offset;if(P===jt&&$){var k=$[n];Object.keys(T).forEach(function(D){var I=[G,Y].indexOf(D)>=0?1:-1,A=[N,Y].indexOf(D)>=0?"y":"x";T[D]+=k[A]*I})}return T}function Zr(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,l=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?ze:s,p=Et(o),m=p?a?Re:Re.filter(function(w){return Et(w)===p}):It,P=m.filter(function(w){return c.indexOf(w)>=0});P.length===0&&(P=m);var d=P.reduce(function(w,u){return w[u]=Ft(t,{placement:u,boundary:n,rootBoundary:i,padding:l})[_(u)],w},{});return Object.keys(d).sort(function(w,u){return d[w]-d[u]})}function _r(t){if(_(t)===ue)return[];var e=Qt(t);return[$e(t),e,$e(e)]}function to(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!0:l,s=r.fallbackPlacements,c=r.padding,p=r.boundary,m=r.rootBoundary,P=r.altBoundary,d=r.flipVariations,w=d===void 0?!0:d,u=r.allowedAutoPlacements,h=e.options.placement,x=_(h),S=x===h,y=s||(S||!w?[Qt(h)]:_r(h)),f=[h].concat(y).reduce(function(K,U){return K.concat(_(U)===ue?Zr(e,{placement:U,boundary:p,rootBoundary:m,padding:c,flipVariations:w,allowedAutoPlacements:u}):U)},[]),v=e.rects.reference,g=e.rects.popper,O=new Map,j=!0,M=f[0],T=0;T=0,A=I?"width":"height",C=Ft(e,{placement:$,boundary:p,rootBoundary:m,altBoundary:P,padding:c}),R=I?D?G:F:D?Y:N;v[A]>g[A]&&(R=Qt(R));var H=Qt(R),B=[];if(i&&B.push(C[k]<=0),a&&B.push(C[R]<=0,C[H]<=0),B.every(function(K){return K})){M=$,j=!1;break}O.set($,B)}if(j)for(var W=w?3:1,dt=function(U){var ot=f.find(function(nt){var z=O.get(nt);if(z)return z.slice(0,U).every(function(mt){return mt})});if(ot)return M=ot,"break"},et=W;et>0;et--){var vt=dt(et);if(vt==="break")break}e.placement!==M&&(e.modifiersData[o]._skip=!0,e.placement=M,e.reset=!0)}}const eo={name:"flip",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"],data:{_skip:!1}};function Me(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function De(t){return[N,G,Y,F].some(function(e){return t[e]>=0})}function ro(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,l=Ft(e,{elementContext:"reference"}),a=Ft(e,{altBoundary:!0}),s=Me(l,o),c=Me(a,n,i),p=De(s),m=De(c);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const oo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ro};function no(t,e,r){var o=_(t),n=[F,N].indexOf(o)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=i[0],a=i[1];return l=l||0,a=(a||0)*n,[F,G].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}function io(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=n===void 0?[0,0]:n,l=ze.reduce(function(p,m){return p[m]=no(m,e.rects,i),p},{}),a=l[e.placement],s=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=l}const ao={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:io};function so(t){var e=t.state,r=t.name;e.modifiersData[r]=Qe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const po={name:"popperOffsets",enabled:!0,phase:"read",fn:so,data:{}};function lo(t){return t==="x"?"y":"x"}function co(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!1:l,s=r.boundary,c=r.rootBoundary,p=r.altBoundary,m=r.padding,P=r.tether,d=P===void 0?!0:P,w=r.tetherOffset,u=w===void 0?0:w,h=Ft(e,{boundary:s,rootBoundary:c,padding:m,altBoundary:p}),x=_(e.placement),S=Et(e.placement),y=!S,f=me(x),v=lo(f),g=e.modifiersData.popperOffsets,O=e.rects.reference,j=e.rects.popper,M=typeof u=="function"?u(Object.assign({},e.rects,{placement:e.placement})):u,T=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(g){if(i){var D,I=f==="y"?N:F,A=f==="y"?Y:G,C=f==="y"?"height":"width",R=g[f],H=R+h[I],B=R-h[A],W=d?-j[C]/2:0,dt=S===xt?O[C]:j[C],et=S===xt?-j[C]:-O[C],vt=e.elements.arrow,K=d&&vt?ve(vt):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ye(),ot=U[I],nt=U[A],z=kt(0,O[C],K[C]),mt=y?O[C]/2-W-z-ot-T.mainAxis:dt-z-ot-T.mainAxis,re=y?-O[C]/2+W+z+nt+T.mainAxis:et+z+nt+T.mainAxis,ht=e.elements.arrow&&Vt(e.elements.arrow),J=ht?f==="y"?ht.clientTop||0:ht.clientLeft||0:0,gt=(D=$?.[f])!=null?D:0,st=R+mt-gt-J,yt=R+re-gt,Tt=kt(d?_t(H,st):H,R,d?ft(B,yt):B);g[f]=Tt,k[f]=Tt-R}if(a){var pt,bt=f==="x"?N:F,Rt=f==="x"?Y:G,Z=g[v],lt=v==="y"?"height":"width",At=Z+h[bt],St=Z-h[Rt],$t=[N,F].indexOf(x)!==-1,Ut=(pt=$?.[v])!=null?pt:0,zt=$t?At:Z-O[lt]-j[lt]-Ut+T.altAxis,wt=$t?Z+O[lt]+j[lt]-Ut-T.altAxis:St,qt=d&&$t?Lr(zt,Z,wt):kt(d?zt:At,Z,d?wt:St);g[v]=qt,k[v]=qt-Z}e.modifiersData[o]=k}}const fo={name:"preventOverflow",enabled:!0,phase:"main",fn:co,requiresIfExists:["offset"]};function uo(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vo(t){return t===V(t)||!X(t)?he(t):uo(t)}function mo(t){var e=t.getBoundingClientRect(),r=Ot(e.width)/t.offsetWidth||1,o=Ot(e.height)/t.offsetHeight||1;return r!==1||o!==1}function ho(t,e,r){r===void 0&&(r=!1);var o=X(e),n=X(e)&&mo(e),i=at(e),l=Pt(t,n,r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!r)&&((tt(e)!=="body"||ye(i))&&(a=vo(e)),X(e)?(s=Pt(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):i&&(s.x=ge(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function go(t){var e=new Map,r=new Set,o=[];t.forEach(function(i){e.set(i.name,i)});function n(i){r.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!r.has(a)){var s=e.get(a);s&&n(s)}}),o.push(i)}return t.forEach(function(i){r.has(i.name)||n(i)}),o}function yo(t){var e=go(t);return Sr.reduce(function(r,o){return r.concat(e.filter(function(n){return n.phase===o}))},[])}function bo(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function wo(t){var e=t.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(e).map(function(r){return e[r]})}var je={placement:"bottom",modifiers:[],strategy:"absolute"};function Le(){for(var t=arguments.length,e=new Array(t),r=0;r=19?t?.props?.ref||null:t?.ref||null}function Eo(t){return typeof t=="function"?t():t}const To=E.forwardRef(function(e,r){const{children:o,container:n,disablePortal:i=!1}=e,[l,a]=E.useState(null),s=Ht(E.isValidElement(o)?be(o):null,r);if(Zt(()=>{i||a(Eo(n)||document.body)},[n,i]),Zt(()=>{if(l&&!i)return Te(r,l),()=>{Te(r,null)}},[r,l,i]),i){if(E.isValidElement(o)){const c={ref:s};return E.cloneElement(o,c)}return o}return l&&lr.createPortal(o,l)});function Ro(t){return ke("MuiPopper",t)}We("MuiPopper",["root"]);function Ao(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function pe(t){return typeof t=="function"?t():t}function So(t){return t.nodeType!==void 0}const $o=t=>{const{classes:e}=t;return He({root:["root"]},Ro,e)},Co={},Mo=E.forwardRef(function(e,r){const{anchorEl:o,children:n,direction:i,disablePortal:l,modifiers:a,open:s,placement:c,popperOptions:p,popperRef:m,slotProps:P={},slots:d={},TransitionProps:w,ownerState:u,...h}=e,x=E.useRef(null),S=Ht(x,r),y=E.useRef(null),f=Ht(y,m),v=E.useRef(f);Zt(()=>{v.current=f},[f]),E.useImperativeHandle(m,()=>y.current,[]);const g=Ao(c,i),[O,j]=E.useState(g),[M,T]=E.useState(pe(o));E.useEffect(()=>{y.current&&y.current.forceUpdate()}),E.useEffect(()=>{o&&T(pe(o))},[o]),Zt(()=>{if(!M||!s)return;const A=H=>{j(H.placement)};let C=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{A(H)}}];a!=null&&(C=C.concat(a)),p&&p.modifiers!=null&&(C=C.concat(p.modifiers));const R=Po(M,x.current,{placement:g,...p,modifiers:C});return v.current(R),()=>{R.destroy(),v.current(null)}},[M,l,a,s,p,g]);const $={placement:O};w!==null&&($.TransitionProps=w);const k=$o(e),D=d.root??"div",I=fr({elementType:D,externalSlotProps:P.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:k.root});return q.jsx(D,{...I,children:typeof n=="function"?n($):n})}),Do=E.forwardRef(function(e,r){const{anchorEl:o,children:n,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:c,open:p,placement:m="bottom",popperOptions:P=Co,popperRef:d,style:w,transition:u=!1,slotProps:h={},slots:x={},...S}=e,[y,f]=E.useState(!0),v=()=>{f(!1)},g=()=>{f(!0)};if(!s&&!p&&(!u||y))return null;let O;if(i)O=i;else if(o){const T=pe(o);O=T&&So(T)?xe(T).body:xe(null).body}const j=!p&&s&&(!u||y)?"none":void 0,M=u?{in:p,onEnter:v,onExited:g}:void 0;return q.jsx(To,{disablePortal:a,container:O,children:q.jsx(Mo,{anchorEl:o,direction:l,disablePortal:a,modifiers:c,ref:r,open:u?!y:p,placement:m,popperOptions:P,popperRef:d,slotProps:h,slots:x,...S,style:{position:"fixed",top:0,left:0,display:j,...w},TransitionProps:M,children:n})})}),jo=te(Do,{name:"MuiPopper",slot:"Root"})({}),Ze=E.forwardRef(function(e,r){const o=Ne(),n=Fe({props:e,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:s,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,slots:S,slotProps:y,...f}=n,v=S?.root??a?.Root,g={anchorEl:i,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,...f};return q.jsx(jo,{as:l,direction:o?"rtl":"ltr",slots:{root:v},slotProps:y??s,...g,ref:r})});function le(t){return`scale(${t}, ${t**2})`}const Lo={entering:{opacity:1,transform:le(1)},entered:{opacity:1,transform:"none"}},ie=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ce=E.forwardRef(function(e,r){const{addEndListener:o,appear:n=!0,children:i,easing:l,in:a,onEnter:s,onEntered:c,onEntering:p,onExit:m,onExited:P,onExiting:d,style:w,timeout:u="auto",TransitionComponent:h=vr,...x}=e,S=Bt(),y=E.useRef(),f=Ve(),v=E.useRef(null),g=Ht(v,be(i),r),O=A=>C=>{if(A){const R=v.current;C===void 0?A(R):A(R,C)}},j=O(p),M=O((A,C)=>{mr(A);const{duration:R,delay:H,easing:B}=Ee({style:w,timeout:u,easing:l},{mode:"enter"});let W;u==="auto"?(W=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=W):W=R,A.style.transition=[f.transitions.create("opacity",{duration:W,delay:H}),f.transitions.create("transform",{duration:ie?W:W*.666,delay:H,easing:B})].join(","),s&&s(A,C)}),T=O(c),$=O(d),k=O(A=>{const{duration:C,delay:R,easing:H}=Ee({style:w,timeout:u,easing:l},{mode:"exit"});let B;u==="auto"?(B=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=B):B=C,A.style.transition=[f.transitions.create("opacity",{duration:B,delay:R}),f.transitions.create("transform",{duration:ie?B:B*.666,delay:ie?R:R||B*.333,easing:H})].join(","),A.style.opacity=0,A.style.transform=le(.75),m&&m(A)}),D=O(P),I=A=>{u==="auto"&&S.start(y.current||0,A),o&&o(v.current,A)};return q.jsx(h,{appear:n,in:a,nodeRef:v,onEnter:M,onEntered:T,onEntering:j,onExit:k,onExited:D,onExiting:$,addEndListener:I,timeout:u==="auto"?null:u,...x,children:(A,{ownerState:C,...R})=>E.cloneElement(i,{style:{opacity:0,transform:le(.75),visibility:A==="exited"&&!a?"hidden":void 0,...Lo[A],...w,...i.props.style},ref:g,...R})})});ce&&(ce.muiSupportAuto=!0);function Bo(t){return ke("MuiTooltip",t)}const L=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function ko(t){return Math.round(t*1e5)/1e5}const Wo=t=>{const{classes:e,disableInteractive:r,arrow:o,touch:n,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",n&&"touch",`tooltipPlacement${Ie(i.split("-")[0])}`],arrow:["arrow"]};return He(l,Bo,e)},Ho=te(Ze,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(fe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${L.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${L.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),No=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${Ie(r.placement.split("-")[0])}`]]}})(fe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${L.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${L.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${L.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${L.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${ko(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Fo=te("span",{name:"MuiTooltip",slot:"Arrow"})(fe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Kt=!1;const Be=new ur;let Lt={x:0,y:0};function Jt(t,e){return(r,...o)=>{e&&e(r,...o),t(r,...o)}}const zo=E.forwardRef(function(e,r){const o=Fe({props:e,name:"MuiTooltip"}),{arrow:n=!1,children:i,classes:l,components:a={},componentsProps:s={},describeChild:c=!1,disableFocusListener:p=!1,disableHoverListener:m=!1,disableInteractive:P=!1,disableTouchListener:d=!1,enterDelay:w=100,enterNextDelay:u=0,enterTouchDelay:h=700,followCursor:x=!1,id:S,leaveDelay:y=0,leaveTouchDelay:f=1500,onClose:v,onOpen:g,open:O,placement:j="bottom",PopperComponent:M,PopperProps:T={},slotProps:$={},slots:k={},title:D,TransitionComponent:I,TransitionProps:A,...C}=o,R=E.isValidElement(i)?i:q.jsx("span",{children:i}),H=Ve(),B=Ne(),[W,dt]=E.useState(),[et,vt]=E.useState(null),K=E.useRef(!1),U=P||x,ot=Bt(),nt=Bt(),z=Bt(),mt=Bt(),[re,ht]=hr({controlled:O,default:!1,name:"Tooltip",state:"open"});let J=re;const gt=cr(S),st=E.useRef(),yt=Oe(()=>{st.current!==void 0&&(document.body.style.WebkitUserSelect=st.current,st.current=void 0),mt.clear()});E.useEffect(()=>yt,[yt]);const Tt=b=>{Be.clear(),Kt=!0,ht(!0),g&&!J&&g(b)},pt=Oe(b=>{Be.start(800+y,()=>{Kt=!1}),ht(!1),v&&J&&v(b),ot.start(H.transitions.duration.shortest,()=>{K.current=!1})}),bt=b=>{K.current&&b.type!=="touchstart"||(W&&W.removeAttribute("title"),nt.clear(),z.clear(),w||Kt&&u?nt.start(Kt?u:w,()=>{Tt(b)}):Tt(b))},Rt=b=>{nt.clear(),z.start(y,()=>{pt(b)})},[,Z]=E.useState(!1),lt=b=>{Pe(b.target)||(Z(!1),Rt(b))},At=b=>{W||dt(b.currentTarget),Pe(b.target)&&(Z(!0),bt(b))},St=b=>{K.current=!0;const it=R.props;it.onTouchStart&&it.onTouchStart(b)},$t=b=>{St(b),z.clear(),ot.clear(),yt(),st.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",mt.start(h,()=>{document.body.style.WebkitUserSelect=st.current,bt(b)})},Ut=b=>{R.props.onTouchEnd&&R.props.onTouchEnd(b),yt(),z.start(f,()=>{pt(b)})};E.useEffect(()=>{if(!J)return;function b(it){it.key==="Escape"&&pt(it)}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[pt,J]);const zt=Ht(be(R),dt,r);!D&&D!==0&&(J=!1);const wt=E.useRef(),qt=b=>{const it=R.props;it.onMouseMove&&it.onMouseMove(b),Lt={x:b.clientX,y:b.clientY},wt.current&&wt.current.update()},Ct={},oe=typeof D=="string";c?(Ct.title=!J&&oe&&!m?D:null,Ct["aria-describedby"]=J?gt:null):(Ct["aria-label"]=oe?D:null,Ct["aria-labelledby"]=J&&!oe?gt:null);const Q={...Ct,...C,...R.props,className:we(C.className,R.props.className),onTouchStart:St,ref:zt,...x?{onMouseMove:qt}:{}},Mt={};d||(Q.onTouchStart=$t,Q.onTouchEnd=Ut),m||(Q.onMouseOver=Jt(bt,Q.onMouseOver),Q.onMouseLeave=Jt(Rt,Q.onMouseLeave),U||(Mt.onMouseOver=bt,Mt.onMouseLeave=Rt)),p||(Q.onFocus=Jt(At,Q.onFocus),Q.onBlur=Jt(lt,Q.onBlur),U||(Mt.onFocus=At,Mt.onBlur=lt));const ct={...o,isRtl:B,arrow:n,disableInteractive:U,placement:j,PopperComponentProp:M,touch:K.current},Dt=typeof $.popper=="function"?$.popper(ct):$.popper,_e=E.useMemo(()=>{let b=[{name:"arrow",enabled:!!et,options:{element:et,padding:4}}];return T.popperOptions?.modifiers&&(b=b.concat(T.popperOptions.modifiers)),Dt?.popperOptions?.modifiers&&(b=b.concat(Dt.popperOptions.modifiers)),{...T.popperOptions,...Dt?.popperOptions,modifiers:b}},[et,T.popperOptions,Dt?.popperOptions]),ne=Wo(ct),tr=typeof $.transition=="function"?$.transition(ct):$.transition,Xt={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...k},slotProps:{arrow:$.arrow??s.arrow,popper:{...T,...Dt??s.popper},tooltip:$.tooltip??s.tooltip,transition:{...A,...tr??s.transition}}},[er,rr]=Yt("popper",{elementType:Ho,externalForwardedProps:Xt,ownerState:ct,className:we(ne.popper,T?.className)}),[or,nr]=Yt("transition",{elementType:ce,externalForwardedProps:Xt,ownerState:ct}),[ir,ar]=Yt("tooltip",{elementType:No,className:ne.tooltip,externalForwardedProps:Xt,ownerState:ct}),[sr,pr]=Yt("arrow",{elementType:Fo,className:ne.arrow,externalForwardedProps:Xt,ownerState:ct,ref:vt});return q.jsxs(E.Fragment,{children:[E.cloneElement(R,Q),q.jsx(er,{as:M??Ze,placement:j,anchorEl:x?{getBoundingClientRect:()=>({top:Lt.y,left:Lt.x,right:Lt.x,bottom:Lt.y,width:0,height:0})}:W,popperRef:wt,open:W?J:!1,id:gt,transition:!0,...Mt,...rr,popperOptions:_e,children:({TransitionProps:b})=>q.jsx(or,{timeout:H.transitions.duration.shorter,...b,...nr,children:q.jsxs(ir,{...ar,children:[D,n?q.jsx(sr,{...pr}):null]})})})]})}),qo=dr(q.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}));export{qo as D,ce as G,To as P,zo as T,be as g}; diff --git a/public/assets/Description-D3TUU4JV.js b/public/assets/Description-D3TUU4JV.js new file mode 100644 index 0000000..6b1d9d4 --- /dev/null +++ b/public/assets/Description-D3TUU4JV.js @@ -0,0 +1 @@ +import{r as E,u as Zt,N as lr,b as ke,a as We,j as q,h as He,p as Ne,d as Fe,s as te,k as cr,c as we,f as Ie,m as fe}from"./index-DwyPw-ga.js";import{u as Ht,f as xe,h as fr,j as Bt,b as Ve,a as Oe,e as Yt,T as ur,m as Pe,c as dr}from"./Layout-BXCKqMhs.js";import{T as vr,g as Ee,r as mr,u as hr}from"./utils-CKR531ip.js";function Te(t,e){typeof t=="function"?t(e):t&&(t.current=e)}var N="top",Y="bottom",G="right",F="left",ue="auto",It=[N,Y,G,F],xt="start",Nt="end",gr="clippingParents",Ue="viewport",jt="popper",yr="reference",Re=It.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Nt])},[]),ze=[].concat(It,[ue]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Nt])},[]),br="beforeRead",wr="read",xr="afterRead",Or="beforeMain",Pr="main",Er="afterMain",Tr="beforeWrite",Rr="write",Ar="afterWrite",Sr=[br,wr,xr,Or,Pr,Er,Tr,Rr,Ar];function tt(t){return t?(t.nodeName||"").toLowerCase():null}function V(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=V(t).Element;return t instanceof e||t instanceof Element}function X(t){var e=V(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function de(t){if(typeof ShadowRoot>"u")return!1;var e=V(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $r(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var o=e.styles[r]||{},n=e.attributes[r]||{},i=e.elements[r];!X(i)||!tt(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(l){var a=n[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function Cr(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],i=e.attributes[o]||{},l=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:r[o]),a=l.reduce(function(s,c){return s[c]="",s},{});!X(n)||!tt(n)||(Object.assign(n.style,a),Object.keys(i).forEach(function(s){n.removeAttribute(s)}))})}}const Mr={name:"applyStyles",enabled:!0,phase:"write",fn:$r,effect:Cr,requires:["computeStyles"]};function _(t){return t.split("-")[0]}var ft=Math.max,_t=Math.min,Ot=Math.round;function ae(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qe(){return!/^((?!chrome|android).)*safari/i.test(ae())}function Pt(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&X(t)&&(n=t.offsetWidth>0&&Ot(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ot(o.height)/t.offsetHeight||1);var l=ut(t)?V(t):window,a=l.visualViewport,s=!qe()&&r,c=(o.left+(s&&a?a.offsetLeft:0))/n,p=(o.top+(s&&a?a.offsetTop:0))/i,m=o.width/n,P=o.height/i;return{width:m,height:P,top:p,right:c+m,bottom:p+P,left:c,x:c,y:p}}function ve(t){var e=Pt(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function Xe(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&de(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function rt(t){return V(t).getComputedStyle(t)}function Dr(t){return["table","td","th"].indexOf(tt(t))>=0}function at(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function ee(t){return tt(t)==="html"?t:t.assignedSlot||t.parentNode||(de(t)?t.host:null)||at(t)}function Ae(t){return!X(t)||rt(t).position==="fixed"?null:t.offsetParent}function jr(t){var e=/firefox/i.test(ae()),r=/Trident/i.test(ae());if(r&&X(t)){var o=rt(t);if(o.position==="fixed")return null}var n=ee(t);for(de(n)&&(n=n.host);X(n)&&["html","body"].indexOf(tt(n))<0;){var i=rt(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Vt(t){for(var e=V(t),r=Ae(t);r&&Dr(r)&&rt(r).position==="static";)r=Ae(r);return r&&(tt(r)==="html"||tt(r)==="body"&&rt(r).position==="static")?e:r||jr(t)||e}function me(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,r){return ft(t,_t(e,r))}function Lr(t,e,r){var o=kt(t,e,r);return o>r?r:o}function Ye(){return{top:0,right:0,bottom:0,left:0}}function Ge(t){return Object.assign({},Ye(),t)}function Ke(t,e){return e.reduce(function(r,o){return r[o]=t,r},{})}var Br=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Ge(typeof e!="number"?e:Ke(e,It))};function kr(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,a=_(r.placement),s=me(a),c=[F,G].indexOf(a)>=0,p=c?"height":"width";if(!(!i||!l)){var m=Br(n.padding,r),P=ve(i),d=s==="y"?N:F,w=s==="y"?Y:G,u=r.rects.reference[p]+r.rects.reference[s]-l[s]-r.rects.popper[p],h=l[s]-r.rects.reference[s],x=Vt(i),S=x?s==="y"?x.clientHeight||0:x.clientWidth||0:0,y=u/2-h/2,f=m[d],v=S-P[p]-m[w],g=S/2-P[p]/2+y,O=kt(f,g,v),j=s;r.modifiersData[o]=(e={},e[j]=O,e.centerOffset=O-g,e)}}function Wr(t){var e=t.state,r=t.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Xe(e.elements.popper,n)&&(e.elements.arrow=n))}const Hr={name:"arrow",enabled:!0,phase:"main",fn:kr,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(t){return t.split("-")[1]}var Nr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fr(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:Ot(r*n)/n||0,y:Ot(o*n)/n||0}}function Se(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,l=t.offsets,a=t.position,s=t.gpuAcceleration,c=t.adaptive,p=t.roundOffsets,m=t.isFixed,P=l.x,d=P===void 0?0:P,w=l.y,u=w===void 0?0:w,h=typeof p=="function"?p({x:d,y:u}):{x:d,y:u};d=h.x,u=h.y;var x=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),y=F,f=N,v=window;if(c){var g=Vt(r),O="clientHeight",j="clientWidth";if(g===V(r)&&(g=at(r),rt(g).position!=="static"&&a==="absolute"&&(O="scrollHeight",j="scrollWidth")),g=g,n===N||(n===F||n===G)&&i===Nt){f=Y;var M=m&&g===v&&v.visualViewport?v.visualViewport.height:g[O];u-=M-o.height,u*=s?1:-1}if(n===F||(n===N||n===Y)&&i===Nt){y=G;var T=m&&g===v&&v.visualViewport?v.visualViewport.width:g[j];d-=T-o.width,d*=s?1:-1}}var $=Object.assign({position:a},c&&Nr),k=p===!0?Fr({x:d,y:u},V(r)):{x:d,y:u};if(d=k.x,u=k.y,s){var D;return Object.assign({},$,(D={},D[f]=S?"0":"",D[y]=x?"0":"",D.transform=(v.devicePixelRatio||1)<=1?"translate("+d+"px, "+u+"px)":"translate3d("+d+"px, "+u+"px, 0)",D))}return Object.assign({},$,(e={},e[f]=S?u+"px":"",e[y]=x?d+"px":"",e.transform="",e))}function Ir(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=o===void 0?!0:o,i=r.adaptive,l=i===void 0?!0:i,a=r.roundOffsets,s=a===void 0?!0:a,c={placement:_(e.placement),variation:Et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Se(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Se(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Vr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ir,data:{}};var Gt={passive:!0};function Ur(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=n===void 0?!0:n,l=o.resize,a=l===void 0?!0:l,s=V(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(p){p.addEventListener("scroll",r.update,Gt)}),a&&s.addEventListener("resize",r.update,Gt),function(){i&&c.forEach(function(p){p.removeEventListener("scroll",r.update,Gt)}),a&&s.removeEventListener("resize",r.update,Gt)}}const zr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ur,data:{}};var qr={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(t){return t.replace(/left|right|bottom|top/g,function(e){return qr[e]})}var Xr={start:"end",end:"start"};function $e(t){return t.replace(/start|end/g,function(e){return Xr[e]})}function he(t){var e=V(t),r=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:r,scrollTop:o}}function ge(t){return Pt(at(t)).left+he(t).scrollLeft}function Yr(t,e){var r=V(t),o=at(t),n=r.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(n){i=n.width,l=n.height;var c=qe();(c||!c&&e==="fixed")&&(a=n.offsetLeft,s=n.offsetTop)}return{width:i,height:l,x:a+ge(t),y:s}}function Gr(t){var e,r=at(t),o=he(t),n=(e=t.ownerDocument)==null?void 0:e.body,i=ft(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=ft(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+ge(t),s=-o.scrollTop;return rt(n||r).direction==="rtl"&&(a+=ft(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function ye(t){var e=rt(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Je(t){return["html","body","#document"].indexOf(tt(t))>=0?t.ownerDocument.body:X(t)&&ye(t)?t:Je(ee(t))}function Wt(t,e){var r;e===void 0&&(e=[]);var o=Je(t),n=o===((r=t.ownerDocument)==null?void 0:r.body),i=V(o),l=n?[i].concat(i.visualViewport||[],ye(o)?o:[]):o,a=e.concat(l);return n?a:a.concat(Wt(ee(l)))}function se(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kr(t,e){var r=Pt(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ce(t,e,r){return e===Ue?se(Yr(t,r)):ut(e)?Kr(e,r):se(Gr(at(t)))}function Jr(t){var e=Wt(ee(t)),r=["absolute","fixed"].indexOf(rt(t).position)>=0,o=r&&X(t)?Vt(t):t;return ut(o)?e.filter(function(n){return ut(n)&&Xe(n,o)&&tt(n)!=="body"}):[]}function Qr(t,e,r,o){var n=e==="clippingParents"?Jr(t):[].concat(e),i=[].concat(n,[r]),l=i[0],a=i.reduce(function(s,c){var p=Ce(t,c,o);return s.top=ft(p.top,s.top),s.right=_t(p.right,s.right),s.bottom=_t(p.bottom,s.bottom),s.left=ft(p.left,s.left),s},Ce(t,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Qe(t){var e=t.reference,r=t.element,o=t.placement,n=o?_(o):null,i=o?Et(o):null,l=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,s;switch(n){case N:s={x:l,y:e.y-r.height};break;case Y:s={x:l,y:e.y+e.height};break;case G:s={x:e.x+e.width,y:a};break;case F:s={x:e.x-r.width,y:a};break;default:s={x:e.x,y:e.y}}var c=n?me(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(i){case xt:s[c]=s[c]-(e[p]/2-r[p]/2);break;case Nt:s[c]=s[c]+(e[p]/2-r[p]/2);break}}return s}function Ft(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=o===void 0?t.placement:o,i=r.strategy,l=i===void 0?t.strategy:i,a=r.boundary,s=a===void 0?gr:a,c=r.rootBoundary,p=c===void 0?Ue:c,m=r.elementContext,P=m===void 0?jt:m,d=r.altBoundary,w=d===void 0?!1:d,u=r.padding,h=u===void 0?0:u,x=Ge(typeof h!="number"?h:Ke(h,It)),S=P===jt?yr:jt,y=t.rects.popper,f=t.elements[w?S:P],v=Qr(ut(f)?f:f.contextElement||at(t.elements.popper),s,p,l),g=Pt(t.elements.reference),O=Qe({reference:g,element:y,placement:n}),j=se(Object.assign({},y,O)),M=P===jt?j:g,T={top:v.top-M.top+x.top,bottom:M.bottom-v.bottom+x.bottom,left:v.left-M.left+x.left,right:M.right-v.right+x.right},$=t.modifiersData.offset;if(P===jt&&$){var k=$[n];Object.keys(T).forEach(function(D){var I=[G,Y].indexOf(D)>=0?1:-1,A=[N,Y].indexOf(D)>=0?"y":"x";T[D]+=k[A]*I})}return T}function Zr(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,l=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?ze:s,p=Et(o),m=p?a?Re:Re.filter(function(w){return Et(w)===p}):It,P=m.filter(function(w){return c.indexOf(w)>=0});P.length===0&&(P=m);var d=P.reduce(function(w,u){return w[u]=Ft(t,{placement:u,boundary:n,rootBoundary:i,padding:l})[_(u)],w},{});return Object.keys(d).sort(function(w,u){return d[w]-d[u]})}function _r(t){if(_(t)===ue)return[];var e=Qt(t);return[$e(t),e,$e(e)]}function to(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!0:l,s=r.fallbackPlacements,c=r.padding,p=r.boundary,m=r.rootBoundary,P=r.altBoundary,d=r.flipVariations,w=d===void 0?!0:d,u=r.allowedAutoPlacements,h=e.options.placement,x=_(h),S=x===h,y=s||(S||!w?[Qt(h)]:_r(h)),f=[h].concat(y).reduce(function(K,U){return K.concat(_(U)===ue?Zr(e,{placement:U,boundary:p,rootBoundary:m,padding:c,flipVariations:w,allowedAutoPlacements:u}):U)},[]),v=e.rects.reference,g=e.rects.popper,O=new Map,j=!0,M=f[0],T=0;T=0,A=I?"width":"height",C=Ft(e,{placement:$,boundary:p,rootBoundary:m,altBoundary:P,padding:c}),R=I?D?G:F:D?Y:N;v[A]>g[A]&&(R=Qt(R));var H=Qt(R),B=[];if(i&&B.push(C[k]<=0),a&&B.push(C[R]<=0,C[H]<=0),B.every(function(K){return K})){M=$,j=!1;break}O.set($,B)}if(j)for(var W=w?3:1,dt=function(U){var ot=f.find(function(nt){var z=O.get(nt);if(z)return z.slice(0,U).every(function(mt){return mt})});if(ot)return M=ot,"break"},et=W;et>0;et--){var vt=dt(et);if(vt==="break")break}e.placement!==M&&(e.modifiersData[o]._skip=!0,e.placement=M,e.reset=!0)}}const eo={name:"flip",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"],data:{_skip:!1}};function Me(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function De(t){return[N,G,Y,F].some(function(e){return t[e]>=0})}function ro(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,l=Ft(e,{elementContext:"reference"}),a=Ft(e,{altBoundary:!0}),s=Me(l,o),c=Me(a,n,i),p=De(s),m=De(c);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const oo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ro};function no(t,e,r){var o=_(t),n=[F,N].indexOf(o)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=i[0],a=i[1];return l=l||0,a=(a||0)*n,[F,G].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}function io(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=n===void 0?[0,0]:n,l=ze.reduce(function(p,m){return p[m]=no(m,e.rects,i),p},{}),a=l[e.placement],s=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=l}const ao={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:io};function so(t){var e=t.state,r=t.name;e.modifiersData[r]=Qe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const po={name:"popperOffsets",enabled:!0,phase:"read",fn:so,data:{}};function lo(t){return t==="x"?"y":"x"}function co(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!1:l,s=r.boundary,c=r.rootBoundary,p=r.altBoundary,m=r.padding,P=r.tether,d=P===void 0?!0:P,w=r.tetherOffset,u=w===void 0?0:w,h=Ft(e,{boundary:s,rootBoundary:c,padding:m,altBoundary:p}),x=_(e.placement),S=Et(e.placement),y=!S,f=me(x),v=lo(f),g=e.modifiersData.popperOffsets,O=e.rects.reference,j=e.rects.popper,M=typeof u=="function"?u(Object.assign({},e.rects,{placement:e.placement})):u,T=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(g){if(i){var D,I=f==="y"?N:F,A=f==="y"?Y:G,C=f==="y"?"height":"width",R=g[f],H=R+h[I],B=R-h[A],W=d?-j[C]/2:0,dt=S===xt?O[C]:j[C],et=S===xt?-j[C]:-O[C],vt=e.elements.arrow,K=d&&vt?ve(vt):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ye(),ot=U[I],nt=U[A],z=kt(0,O[C],K[C]),mt=y?O[C]/2-W-z-ot-T.mainAxis:dt-z-ot-T.mainAxis,re=y?-O[C]/2+W+z+nt+T.mainAxis:et+z+nt+T.mainAxis,ht=e.elements.arrow&&Vt(e.elements.arrow),J=ht?f==="y"?ht.clientTop||0:ht.clientLeft||0:0,gt=(D=$?.[f])!=null?D:0,st=R+mt-gt-J,yt=R+re-gt,Tt=kt(d?_t(H,st):H,R,d?ft(B,yt):B);g[f]=Tt,k[f]=Tt-R}if(a){var pt,bt=f==="x"?N:F,Rt=f==="x"?Y:G,Z=g[v],lt=v==="y"?"height":"width",At=Z+h[bt],St=Z-h[Rt],$t=[N,F].indexOf(x)!==-1,Ut=(pt=$?.[v])!=null?pt:0,zt=$t?At:Z-O[lt]-j[lt]-Ut+T.altAxis,wt=$t?Z+O[lt]+j[lt]-Ut-T.altAxis:St,qt=d&&$t?Lr(zt,Z,wt):kt(d?zt:At,Z,d?wt:St);g[v]=qt,k[v]=qt-Z}e.modifiersData[o]=k}}const fo={name:"preventOverflow",enabled:!0,phase:"main",fn:co,requiresIfExists:["offset"]};function uo(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vo(t){return t===V(t)||!X(t)?he(t):uo(t)}function mo(t){var e=t.getBoundingClientRect(),r=Ot(e.width)/t.offsetWidth||1,o=Ot(e.height)/t.offsetHeight||1;return r!==1||o!==1}function ho(t,e,r){r===void 0&&(r=!1);var o=X(e),n=X(e)&&mo(e),i=at(e),l=Pt(t,n,r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!r)&&((tt(e)!=="body"||ye(i))&&(a=vo(e)),X(e)?(s=Pt(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):i&&(s.x=ge(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function go(t){var e=new Map,r=new Set,o=[];t.forEach(function(i){e.set(i.name,i)});function n(i){r.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!r.has(a)){var s=e.get(a);s&&n(s)}}),o.push(i)}return t.forEach(function(i){r.has(i.name)||n(i)}),o}function yo(t){var e=go(t);return Sr.reduce(function(r,o){return r.concat(e.filter(function(n){return n.phase===o}))},[])}function bo(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function wo(t){var e=t.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(e).map(function(r){return e[r]})}var je={placement:"bottom",modifiers:[],strategy:"absolute"};function Le(){for(var t=arguments.length,e=new Array(t),r=0;r=19?t?.props?.ref||null:t?.ref||null}function Eo(t){return typeof t=="function"?t():t}const To=E.forwardRef(function(e,r){const{children:o,container:n,disablePortal:i=!1}=e,[l,a]=E.useState(null),s=Ht(E.isValidElement(o)?be(o):null,r);if(Zt(()=>{i||a(Eo(n)||document.body)},[n,i]),Zt(()=>{if(l&&!i)return Te(r,l),()=>{Te(r,null)}},[r,l,i]),i){if(E.isValidElement(o)){const c={ref:s};return E.cloneElement(o,c)}return o}return l&&lr.createPortal(o,l)});function Ro(t){return ke("MuiPopper",t)}We("MuiPopper",["root"]);function Ao(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function pe(t){return typeof t=="function"?t():t}function So(t){return t.nodeType!==void 0}const $o=t=>{const{classes:e}=t;return He({root:["root"]},Ro,e)},Co={},Mo=E.forwardRef(function(e,r){const{anchorEl:o,children:n,direction:i,disablePortal:l,modifiers:a,open:s,placement:c,popperOptions:p,popperRef:m,slotProps:P={},slots:d={},TransitionProps:w,ownerState:u,...h}=e,x=E.useRef(null),S=Ht(x,r),y=E.useRef(null),f=Ht(y,m),v=E.useRef(f);Zt(()=>{v.current=f},[f]),E.useImperativeHandle(m,()=>y.current,[]);const g=Ao(c,i),[O,j]=E.useState(g),[M,T]=E.useState(pe(o));E.useEffect(()=>{y.current&&y.current.forceUpdate()}),E.useEffect(()=>{o&&T(pe(o))},[o]),Zt(()=>{if(!M||!s)return;const A=H=>{j(H.placement)};let C=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{A(H)}}];a!=null&&(C=C.concat(a)),p&&p.modifiers!=null&&(C=C.concat(p.modifiers));const R=Po(M,x.current,{placement:g,...p,modifiers:C});return v.current(R),()=>{R.destroy(),v.current(null)}},[M,l,a,s,p,g]);const $={placement:O};w!==null&&($.TransitionProps=w);const k=$o(e),D=d.root??"div",I=fr({elementType:D,externalSlotProps:P.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:k.root});return q.jsx(D,{...I,children:typeof n=="function"?n($):n})}),Do=E.forwardRef(function(e,r){const{anchorEl:o,children:n,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:c,open:p,placement:m="bottom",popperOptions:P=Co,popperRef:d,style:w,transition:u=!1,slotProps:h={},slots:x={},...S}=e,[y,f]=E.useState(!0),v=()=>{f(!1)},g=()=>{f(!0)};if(!s&&!p&&(!u||y))return null;let O;if(i)O=i;else if(o){const T=pe(o);O=T&&So(T)?xe(T).body:xe(null).body}const j=!p&&s&&(!u||y)?"none":void 0,M=u?{in:p,onEnter:v,onExited:g}:void 0;return q.jsx(To,{disablePortal:a,container:O,children:q.jsx(Mo,{anchorEl:o,direction:l,disablePortal:a,modifiers:c,ref:r,open:u?!y:p,placement:m,popperOptions:P,popperRef:d,slotProps:h,slots:x,...S,style:{position:"fixed",top:0,left:0,display:j,...w},TransitionProps:M,children:n})})}),jo=te(Do,{name:"MuiPopper",slot:"Root"})({}),Ze=E.forwardRef(function(e,r){const o=Ne(),n=Fe({props:e,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:s,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,slots:S,slotProps:y,...f}=n,v=S?.root??a?.Root,g={anchorEl:i,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,...f};return q.jsx(jo,{as:l,direction:o?"rtl":"ltr",slots:{root:v},slotProps:y??s,...g,ref:r})});function le(t){return`scale(${t}, ${t**2})`}const Lo={entering:{opacity:1,transform:le(1)},entered:{opacity:1,transform:"none"}},ie=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ce=E.forwardRef(function(e,r){const{addEndListener:o,appear:n=!0,children:i,easing:l,in:a,onEnter:s,onEntered:c,onEntering:p,onExit:m,onExited:P,onExiting:d,style:w,timeout:u="auto",TransitionComponent:h=vr,...x}=e,S=Bt(),y=E.useRef(),f=Ve(),v=E.useRef(null),g=Ht(v,be(i),r),O=A=>C=>{if(A){const R=v.current;C===void 0?A(R):A(R,C)}},j=O(p),M=O((A,C)=>{mr(A);const{duration:R,delay:H,easing:B}=Ee({style:w,timeout:u,easing:l},{mode:"enter"});let W;u==="auto"?(W=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=W):W=R,A.style.transition=[f.transitions.create("opacity",{duration:W,delay:H}),f.transitions.create("transform",{duration:ie?W:W*.666,delay:H,easing:B})].join(","),s&&s(A,C)}),T=O(c),$=O(d),k=O(A=>{const{duration:C,delay:R,easing:H}=Ee({style:w,timeout:u,easing:l},{mode:"exit"});let B;u==="auto"?(B=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=B):B=C,A.style.transition=[f.transitions.create("opacity",{duration:B,delay:R}),f.transitions.create("transform",{duration:ie?B:B*.666,delay:ie?R:R||B*.333,easing:H})].join(","),A.style.opacity=0,A.style.transform=le(.75),m&&m(A)}),D=O(P),I=A=>{u==="auto"&&S.start(y.current||0,A),o&&o(v.current,A)};return q.jsx(h,{appear:n,in:a,nodeRef:v,onEnter:M,onEntered:T,onEntering:j,onExit:k,onExited:D,onExiting:$,addEndListener:I,timeout:u==="auto"?null:u,...x,children:(A,{ownerState:C,...R})=>E.cloneElement(i,{style:{opacity:0,transform:le(.75),visibility:A==="exited"&&!a?"hidden":void 0,...Lo[A],...w,...i.props.style},ref:g,...R})})});ce&&(ce.muiSupportAuto=!0);function Bo(t){return ke("MuiTooltip",t)}const L=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function ko(t){return Math.round(t*1e5)/1e5}const Wo=t=>{const{classes:e,disableInteractive:r,arrow:o,touch:n,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",n&&"touch",`tooltipPlacement${Ie(i.split("-")[0])}`],arrow:["arrow"]};return He(l,Bo,e)},Ho=te(Ze,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(fe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${L.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${L.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),No=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${Ie(r.placement.split("-")[0])}`]]}})(fe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${L.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${L.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${L.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${L.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${ko(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Fo=te("span",{name:"MuiTooltip",slot:"Arrow"})(fe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Kt=!1;const Be=new ur;let Lt={x:0,y:0};function Jt(t,e){return(r,...o)=>{e&&e(r,...o),t(r,...o)}}const zo=E.forwardRef(function(e,r){const o=Fe({props:e,name:"MuiTooltip"}),{arrow:n=!1,children:i,classes:l,components:a={},componentsProps:s={},describeChild:c=!1,disableFocusListener:p=!1,disableHoverListener:m=!1,disableInteractive:P=!1,disableTouchListener:d=!1,enterDelay:w=100,enterNextDelay:u=0,enterTouchDelay:h=700,followCursor:x=!1,id:S,leaveDelay:y=0,leaveTouchDelay:f=1500,onClose:v,onOpen:g,open:O,placement:j="bottom",PopperComponent:M,PopperProps:T={},slotProps:$={},slots:k={},title:D,TransitionComponent:I,TransitionProps:A,...C}=o,R=E.isValidElement(i)?i:q.jsx("span",{children:i}),H=Ve(),B=Ne(),[W,dt]=E.useState(),[et,vt]=E.useState(null),K=E.useRef(!1),U=P||x,ot=Bt(),nt=Bt(),z=Bt(),mt=Bt(),[re,ht]=hr({controlled:O,default:!1,name:"Tooltip",state:"open"});let J=re;const gt=cr(S),st=E.useRef(),yt=Oe(()=>{st.current!==void 0&&(document.body.style.WebkitUserSelect=st.current,st.current=void 0),mt.clear()});E.useEffect(()=>yt,[yt]);const Tt=b=>{Be.clear(),Kt=!0,ht(!0),g&&!J&&g(b)},pt=Oe(b=>{Be.start(800+y,()=>{Kt=!1}),ht(!1),v&&J&&v(b),ot.start(H.transitions.duration.shortest,()=>{K.current=!1})}),bt=b=>{K.current&&b.type!=="touchstart"||(W&&W.removeAttribute("title"),nt.clear(),z.clear(),w||Kt&&u?nt.start(Kt?u:w,()=>{Tt(b)}):Tt(b))},Rt=b=>{nt.clear(),z.start(y,()=>{pt(b)})},[,Z]=E.useState(!1),lt=b=>{Pe(b.target)||(Z(!1),Rt(b))},At=b=>{W||dt(b.currentTarget),Pe(b.target)&&(Z(!0),bt(b))},St=b=>{K.current=!0;const it=R.props;it.onTouchStart&&it.onTouchStart(b)},$t=b=>{St(b),z.clear(),ot.clear(),yt(),st.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",mt.start(h,()=>{document.body.style.WebkitUserSelect=st.current,bt(b)})},Ut=b=>{R.props.onTouchEnd&&R.props.onTouchEnd(b),yt(),z.start(f,()=>{pt(b)})};E.useEffect(()=>{if(!J)return;function b(it){it.key==="Escape"&&pt(it)}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[pt,J]);const zt=Ht(be(R),dt,r);!D&&D!==0&&(J=!1);const wt=E.useRef(),qt=b=>{const it=R.props;it.onMouseMove&&it.onMouseMove(b),Lt={x:b.clientX,y:b.clientY},wt.current&&wt.current.update()},Ct={},oe=typeof D=="string";c?(Ct.title=!J&&oe&&!m?D:null,Ct["aria-describedby"]=J?gt:null):(Ct["aria-label"]=oe?D:null,Ct["aria-labelledby"]=J&&!oe?gt:null);const Q={...Ct,...C,...R.props,className:we(C.className,R.props.className),onTouchStart:St,ref:zt,...x?{onMouseMove:qt}:{}},Mt={};d||(Q.onTouchStart=$t,Q.onTouchEnd=Ut),m||(Q.onMouseOver=Jt(bt,Q.onMouseOver),Q.onMouseLeave=Jt(Rt,Q.onMouseLeave),U||(Mt.onMouseOver=bt,Mt.onMouseLeave=Rt)),p||(Q.onFocus=Jt(At,Q.onFocus),Q.onBlur=Jt(lt,Q.onBlur),U||(Mt.onFocus=At,Mt.onBlur=lt));const ct={...o,isRtl:B,arrow:n,disableInteractive:U,placement:j,PopperComponentProp:M,touch:K.current},Dt=typeof $.popper=="function"?$.popper(ct):$.popper,_e=E.useMemo(()=>{let b=[{name:"arrow",enabled:!!et,options:{element:et,padding:4}}];return T.popperOptions?.modifiers&&(b=b.concat(T.popperOptions.modifiers)),Dt?.popperOptions?.modifiers&&(b=b.concat(Dt.popperOptions.modifiers)),{...T.popperOptions,...Dt?.popperOptions,modifiers:b}},[et,T.popperOptions,Dt?.popperOptions]),ne=Wo(ct),tr=typeof $.transition=="function"?$.transition(ct):$.transition,Xt={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...k},slotProps:{arrow:$.arrow??s.arrow,popper:{...T,...Dt??s.popper},tooltip:$.tooltip??s.tooltip,transition:{...A,...tr??s.transition}}},[er,rr]=Yt("popper",{elementType:Ho,externalForwardedProps:Xt,ownerState:ct,className:we(ne.popper,T?.className)}),[or,nr]=Yt("transition",{elementType:ce,externalForwardedProps:Xt,ownerState:ct}),[ir,ar]=Yt("tooltip",{elementType:No,className:ne.tooltip,externalForwardedProps:Xt,ownerState:ct}),[sr,pr]=Yt("arrow",{elementType:Fo,className:ne.arrow,externalForwardedProps:Xt,ownerState:ct,ref:vt});return q.jsxs(E.Fragment,{children:[E.cloneElement(R,Q),q.jsx(er,{as:M??Ze,placement:j,anchorEl:x?{getBoundingClientRect:()=>({top:Lt.y,left:Lt.x,right:Lt.x,bottom:Lt.y,width:0,height:0})}:W,popperRef:wt,open:W?J:!1,id:gt,transition:!0,...Mt,...rr,popperOptions:_e,children:({TransitionProps:b})=>q.jsx(or,{timeout:H.transitions.duration.shorter,...b,...nr,children:q.jsxs(ir,{...ar,children:[D,n?q.jsx(sr,{...pr}):null]})})})]})}),qo=dr(q.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}));export{qo as D,ce as G,To as P,zo as T,be as g}; diff --git a/public/assets/Description-DZr4F8a_.js b/public/assets/Description-DZr4F8a_.js new file mode 100644 index 0000000..d254a09 --- /dev/null +++ b/public/assets/Description-DZr4F8a_.js @@ -0,0 +1 @@ +import{r as E,u as Zt,N as lr,b as ke,a as We,j as q,h as He,p as Ne,d as Fe,s as te,k as cr,c as we,f as Ie,m as fe}from"./index-wde0U4qL.js";import{u as Ht,f as xe,h as fr,j as Bt,b as Ve,a as Oe,e as Yt,T as ur,m as Pe,c as dr}from"./Layout-aWSA1CnN.js";import{T as vr,g as Ee,r as mr,u as hr}from"./utils-ZQUdJD-K.js";function Te(t,e){typeof t=="function"?t(e):t&&(t.current=e)}var N="top",Y="bottom",G="right",F="left",ue="auto",It=[N,Y,G,F],xt="start",Nt="end",gr="clippingParents",Ue="viewport",jt="popper",yr="reference",Re=It.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Nt])},[]),ze=[].concat(It,[ue]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Nt])},[]),br="beforeRead",wr="read",xr="afterRead",Or="beforeMain",Pr="main",Er="afterMain",Tr="beforeWrite",Rr="write",Ar="afterWrite",Sr=[br,wr,xr,Or,Pr,Er,Tr,Rr,Ar];function tt(t){return t?(t.nodeName||"").toLowerCase():null}function V(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=V(t).Element;return t instanceof e||t instanceof Element}function X(t){var e=V(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function de(t){if(typeof ShadowRoot>"u")return!1;var e=V(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $r(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var o=e.styles[r]||{},n=e.attributes[r]||{},i=e.elements[r];!X(i)||!tt(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(l){var a=n[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function Cr(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],i=e.attributes[o]||{},l=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:r[o]),a=l.reduce(function(s,c){return s[c]="",s},{});!X(n)||!tt(n)||(Object.assign(n.style,a),Object.keys(i).forEach(function(s){n.removeAttribute(s)}))})}}const Mr={name:"applyStyles",enabled:!0,phase:"write",fn:$r,effect:Cr,requires:["computeStyles"]};function _(t){return t.split("-")[0]}var ft=Math.max,_t=Math.min,Ot=Math.round;function ae(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qe(){return!/^((?!chrome|android).)*safari/i.test(ae())}function Pt(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&X(t)&&(n=t.offsetWidth>0&&Ot(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ot(o.height)/t.offsetHeight||1);var l=ut(t)?V(t):window,a=l.visualViewport,s=!qe()&&r,c=(o.left+(s&&a?a.offsetLeft:0))/n,p=(o.top+(s&&a?a.offsetTop:0))/i,m=o.width/n,P=o.height/i;return{width:m,height:P,top:p,right:c+m,bottom:p+P,left:c,x:c,y:p}}function ve(t){var e=Pt(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function Xe(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&de(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function rt(t){return V(t).getComputedStyle(t)}function Dr(t){return["table","td","th"].indexOf(tt(t))>=0}function at(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function ee(t){return tt(t)==="html"?t:t.assignedSlot||t.parentNode||(de(t)?t.host:null)||at(t)}function Ae(t){return!X(t)||rt(t).position==="fixed"?null:t.offsetParent}function jr(t){var e=/firefox/i.test(ae()),r=/Trident/i.test(ae());if(r&&X(t)){var o=rt(t);if(o.position==="fixed")return null}var n=ee(t);for(de(n)&&(n=n.host);X(n)&&["html","body"].indexOf(tt(n))<0;){var i=rt(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Vt(t){for(var e=V(t),r=Ae(t);r&&Dr(r)&&rt(r).position==="static";)r=Ae(r);return r&&(tt(r)==="html"||tt(r)==="body"&&rt(r).position==="static")?e:r||jr(t)||e}function me(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,r){return ft(t,_t(e,r))}function Lr(t,e,r){var o=kt(t,e,r);return o>r?r:o}function Ye(){return{top:0,right:0,bottom:0,left:0}}function Ge(t){return Object.assign({},Ye(),t)}function Ke(t,e){return e.reduce(function(r,o){return r[o]=t,r},{})}var Br=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Ge(typeof e!="number"?e:Ke(e,It))};function kr(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,a=_(r.placement),s=me(a),c=[F,G].indexOf(a)>=0,p=c?"height":"width";if(!(!i||!l)){var m=Br(n.padding,r),P=ve(i),d=s==="y"?N:F,w=s==="y"?Y:G,u=r.rects.reference[p]+r.rects.reference[s]-l[s]-r.rects.popper[p],h=l[s]-r.rects.reference[s],x=Vt(i),S=x?s==="y"?x.clientHeight||0:x.clientWidth||0:0,y=u/2-h/2,f=m[d],v=S-P[p]-m[w],g=S/2-P[p]/2+y,O=kt(f,g,v),j=s;r.modifiersData[o]=(e={},e[j]=O,e.centerOffset=O-g,e)}}function Wr(t){var e=t.state,r=t.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Xe(e.elements.popper,n)&&(e.elements.arrow=n))}const Hr={name:"arrow",enabled:!0,phase:"main",fn:kr,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(t){return t.split("-")[1]}var Nr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fr(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:Ot(r*n)/n||0,y:Ot(o*n)/n||0}}function Se(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,l=t.offsets,a=t.position,s=t.gpuAcceleration,c=t.adaptive,p=t.roundOffsets,m=t.isFixed,P=l.x,d=P===void 0?0:P,w=l.y,u=w===void 0?0:w,h=typeof p=="function"?p({x:d,y:u}):{x:d,y:u};d=h.x,u=h.y;var x=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),y=F,f=N,v=window;if(c){var g=Vt(r),O="clientHeight",j="clientWidth";if(g===V(r)&&(g=at(r),rt(g).position!=="static"&&a==="absolute"&&(O="scrollHeight",j="scrollWidth")),g=g,n===N||(n===F||n===G)&&i===Nt){f=Y;var M=m&&g===v&&v.visualViewport?v.visualViewport.height:g[O];u-=M-o.height,u*=s?1:-1}if(n===F||(n===N||n===Y)&&i===Nt){y=G;var T=m&&g===v&&v.visualViewport?v.visualViewport.width:g[j];d-=T-o.width,d*=s?1:-1}}var $=Object.assign({position:a},c&&Nr),k=p===!0?Fr({x:d,y:u},V(r)):{x:d,y:u};if(d=k.x,u=k.y,s){var D;return Object.assign({},$,(D={},D[f]=S?"0":"",D[y]=x?"0":"",D.transform=(v.devicePixelRatio||1)<=1?"translate("+d+"px, "+u+"px)":"translate3d("+d+"px, "+u+"px, 0)",D))}return Object.assign({},$,(e={},e[f]=S?u+"px":"",e[y]=x?d+"px":"",e.transform="",e))}function Ir(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=o===void 0?!0:o,i=r.adaptive,l=i===void 0?!0:i,a=r.roundOffsets,s=a===void 0?!0:a,c={placement:_(e.placement),variation:Et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Se(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Se(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Vr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ir,data:{}};var Gt={passive:!0};function Ur(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=n===void 0?!0:n,l=o.resize,a=l===void 0?!0:l,s=V(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(p){p.addEventListener("scroll",r.update,Gt)}),a&&s.addEventListener("resize",r.update,Gt),function(){i&&c.forEach(function(p){p.removeEventListener("scroll",r.update,Gt)}),a&&s.removeEventListener("resize",r.update,Gt)}}const zr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ur,data:{}};var qr={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(t){return t.replace(/left|right|bottom|top/g,function(e){return qr[e]})}var Xr={start:"end",end:"start"};function $e(t){return t.replace(/start|end/g,function(e){return Xr[e]})}function he(t){var e=V(t),r=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:r,scrollTop:o}}function ge(t){return Pt(at(t)).left+he(t).scrollLeft}function Yr(t,e){var r=V(t),o=at(t),n=r.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(n){i=n.width,l=n.height;var c=qe();(c||!c&&e==="fixed")&&(a=n.offsetLeft,s=n.offsetTop)}return{width:i,height:l,x:a+ge(t),y:s}}function Gr(t){var e,r=at(t),o=he(t),n=(e=t.ownerDocument)==null?void 0:e.body,i=ft(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=ft(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+ge(t),s=-o.scrollTop;return rt(n||r).direction==="rtl"&&(a+=ft(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function ye(t){var e=rt(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Je(t){return["html","body","#document"].indexOf(tt(t))>=0?t.ownerDocument.body:X(t)&&ye(t)?t:Je(ee(t))}function Wt(t,e){var r;e===void 0&&(e=[]);var o=Je(t),n=o===((r=t.ownerDocument)==null?void 0:r.body),i=V(o),l=n?[i].concat(i.visualViewport||[],ye(o)?o:[]):o,a=e.concat(l);return n?a:a.concat(Wt(ee(l)))}function se(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kr(t,e){var r=Pt(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ce(t,e,r){return e===Ue?se(Yr(t,r)):ut(e)?Kr(e,r):se(Gr(at(t)))}function Jr(t){var e=Wt(ee(t)),r=["absolute","fixed"].indexOf(rt(t).position)>=0,o=r&&X(t)?Vt(t):t;return ut(o)?e.filter(function(n){return ut(n)&&Xe(n,o)&&tt(n)!=="body"}):[]}function Qr(t,e,r,o){var n=e==="clippingParents"?Jr(t):[].concat(e),i=[].concat(n,[r]),l=i[0],a=i.reduce(function(s,c){var p=Ce(t,c,o);return s.top=ft(p.top,s.top),s.right=_t(p.right,s.right),s.bottom=_t(p.bottom,s.bottom),s.left=ft(p.left,s.left),s},Ce(t,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Qe(t){var e=t.reference,r=t.element,o=t.placement,n=o?_(o):null,i=o?Et(o):null,l=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,s;switch(n){case N:s={x:l,y:e.y-r.height};break;case Y:s={x:l,y:e.y+e.height};break;case G:s={x:e.x+e.width,y:a};break;case F:s={x:e.x-r.width,y:a};break;default:s={x:e.x,y:e.y}}var c=n?me(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(i){case xt:s[c]=s[c]-(e[p]/2-r[p]/2);break;case Nt:s[c]=s[c]+(e[p]/2-r[p]/2);break}}return s}function Ft(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=o===void 0?t.placement:o,i=r.strategy,l=i===void 0?t.strategy:i,a=r.boundary,s=a===void 0?gr:a,c=r.rootBoundary,p=c===void 0?Ue:c,m=r.elementContext,P=m===void 0?jt:m,d=r.altBoundary,w=d===void 0?!1:d,u=r.padding,h=u===void 0?0:u,x=Ge(typeof h!="number"?h:Ke(h,It)),S=P===jt?yr:jt,y=t.rects.popper,f=t.elements[w?S:P],v=Qr(ut(f)?f:f.contextElement||at(t.elements.popper),s,p,l),g=Pt(t.elements.reference),O=Qe({reference:g,element:y,placement:n}),j=se(Object.assign({},y,O)),M=P===jt?j:g,T={top:v.top-M.top+x.top,bottom:M.bottom-v.bottom+x.bottom,left:v.left-M.left+x.left,right:M.right-v.right+x.right},$=t.modifiersData.offset;if(P===jt&&$){var k=$[n];Object.keys(T).forEach(function(D){var I=[G,Y].indexOf(D)>=0?1:-1,A=[N,Y].indexOf(D)>=0?"y":"x";T[D]+=k[A]*I})}return T}function Zr(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,l=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?ze:s,p=Et(o),m=p?a?Re:Re.filter(function(w){return Et(w)===p}):It,P=m.filter(function(w){return c.indexOf(w)>=0});P.length===0&&(P=m);var d=P.reduce(function(w,u){return w[u]=Ft(t,{placement:u,boundary:n,rootBoundary:i,padding:l})[_(u)],w},{});return Object.keys(d).sort(function(w,u){return d[w]-d[u]})}function _r(t){if(_(t)===ue)return[];var e=Qt(t);return[$e(t),e,$e(e)]}function to(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!0:l,s=r.fallbackPlacements,c=r.padding,p=r.boundary,m=r.rootBoundary,P=r.altBoundary,d=r.flipVariations,w=d===void 0?!0:d,u=r.allowedAutoPlacements,h=e.options.placement,x=_(h),S=x===h,y=s||(S||!w?[Qt(h)]:_r(h)),f=[h].concat(y).reduce(function(K,U){return K.concat(_(U)===ue?Zr(e,{placement:U,boundary:p,rootBoundary:m,padding:c,flipVariations:w,allowedAutoPlacements:u}):U)},[]),v=e.rects.reference,g=e.rects.popper,O=new Map,j=!0,M=f[0],T=0;T=0,A=I?"width":"height",C=Ft(e,{placement:$,boundary:p,rootBoundary:m,altBoundary:P,padding:c}),R=I?D?G:F:D?Y:N;v[A]>g[A]&&(R=Qt(R));var H=Qt(R),B=[];if(i&&B.push(C[k]<=0),a&&B.push(C[R]<=0,C[H]<=0),B.every(function(K){return K})){M=$,j=!1;break}O.set($,B)}if(j)for(var W=w?3:1,dt=function(U){var ot=f.find(function(nt){var z=O.get(nt);if(z)return z.slice(0,U).every(function(mt){return mt})});if(ot)return M=ot,"break"},et=W;et>0;et--){var vt=dt(et);if(vt==="break")break}e.placement!==M&&(e.modifiersData[o]._skip=!0,e.placement=M,e.reset=!0)}}const eo={name:"flip",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"],data:{_skip:!1}};function Me(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function De(t){return[N,G,Y,F].some(function(e){return t[e]>=0})}function ro(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,l=Ft(e,{elementContext:"reference"}),a=Ft(e,{altBoundary:!0}),s=Me(l,o),c=Me(a,n,i),p=De(s),m=De(c);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const oo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ro};function no(t,e,r){var o=_(t),n=[F,N].indexOf(o)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=i[0],a=i[1];return l=l||0,a=(a||0)*n,[F,G].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}function io(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=n===void 0?[0,0]:n,l=ze.reduce(function(p,m){return p[m]=no(m,e.rects,i),p},{}),a=l[e.placement],s=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=l}const ao={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:io};function so(t){var e=t.state,r=t.name;e.modifiersData[r]=Qe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const po={name:"popperOffsets",enabled:!0,phase:"read",fn:so,data:{}};function lo(t){return t==="x"?"y":"x"}function co(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!1:l,s=r.boundary,c=r.rootBoundary,p=r.altBoundary,m=r.padding,P=r.tether,d=P===void 0?!0:P,w=r.tetherOffset,u=w===void 0?0:w,h=Ft(e,{boundary:s,rootBoundary:c,padding:m,altBoundary:p}),x=_(e.placement),S=Et(e.placement),y=!S,f=me(x),v=lo(f),g=e.modifiersData.popperOffsets,O=e.rects.reference,j=e.rects.popper,M=typeof u=="function"?u(Object.assign({},e.rects,{placement:e.placement})):u,T=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(g){if(i){var D,I=f==="y"?N:F,A=f==="y"?Y:G,C=f==="y"?"height":"width",R=g[f],H=R+h[I],B=R-h[A],W=d?-j[C]/2:0,dt=S===xt?O[C]:j[C],et=S===xt?-j[C]:-O[C],vt=e.elements.arrow,K=d&&vt?ve(vt):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ye(),ot=U[I],nt=U[A],z=kt(0,O[C],K[C]),mt=y?O[C]/2-W-z-ot-T.mainAxis:dt-z-ot-T.mainAxis,re=y?-O[C]/2+W+z+nt+T.mainAxis:et+z+nt+T.mainAxis,ht=e.elements.arrow&&Vt(e.elements.arrow),J=ht?f==="y"?ht.clientTop||0:ht.clientLeft||0:0,gt=(D=$?.[f])!=null?D:0,st=R+mt-gt-J,yt=R+re-gt,Tt=kt(d?_t(H,st):H,R,d?ft(B,yt):B);g[f]=Tt,k[f]=Tt-R}if(a){var pt,bt=f==="x"?N:F,Rt=f==="x"?Y:G,Z=g[v],lt=v==="y"?"height":"width",At=Z+h[bt],St=Z-h[Rt],$t=[N,F].indexOf(x)!==-1,Ut=(pt=$?.[v])!=null?pt:0,zt=$t?At:Z-O[lt]-j[lt]-Ut+T.altAxis,wt=$t?Z+O[lt]+j[lt]-Ut-T.altAxis:St,qt=d&&$t?Lr(zt,Z,wt):kt(d?zt:At,Z,d?wt:St);g[v]=qt,k[v]=qt-Z}e.modifiersData[o]=k}}const fo={name:"preventOverflow",enabled:!0,phase:"main",fn:co,requiresIfExists:["offset"]};function uo(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vo(t){return t===V(t)||!X(t)?he(t):uo(t)}function mo(t){var e=t.getBoundingClientRect(),r=Ot(e.width)/t.offsetWidth||1,o=Ot(e.height)/t.offsetHeight||1;return r!==1||o!==1}function ho(t,e,r){r===void 0&&(r=!1);var o=X(e),n=X(e)&&mo(e),i=at(e),l=Pt(t,n,r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!r)&&((tt(e)!=="body"||ye(i))&&(a=vo(e)),X(e)?(s=Pt(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):i&&(s.x=ge(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function go(t){var e=new Map,r=new Set,o=[];t.forEach(function(i){e.set(i.name,i)});function n(i){r.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!r.has(a)){var s=e.get(a);s&&n(s)}}),o.push(i)}return t.forEach(function(i){r.has(i.name)||n(i)}),o}function yo(t){var e=go(t);return Sr.reduce(function(r,o){return r.concat(e.filter(function(n){return n.phase===o}))},[])}function bo(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function wo(t){var e=t.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(e).map(function(r){return e[r]})}var je={placement:"bottom",modifiers:[],strategy:"absolute"};function Le(){for(var t=arguments.length,e=new Array(t),r=0;r=19?t?.props?.ref||null:t?.ref||null}function Eo(t){return typeof t=="function"?t():t}const To=E.forwardRef(function(e,r){const{children:o,container:n,disablePortal:i=!1}=e,[l,a]=E.useState(null),s=Ht(E.isValidElement(o)?be(o):null,r);if(Zt(()=>{i||a(Eo(n)||document.body)},[n,i]),Zt(()=>{if(l&&!i)return Te(r,l),()=>{Te(r,null)}},[r,l,i]),i){if(E.isValidElement(o)){const c={ref:s};return E.cloneElement(o,c)}return o}return l&&lr.createPortal(o,l)});function Ro(t){return ke("MuiPopper",t)}We("MuiPopper",["root"]);function Ao(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function pe(t){return typeof t=="function"?t():t}function So(t){return t.nodeType!==void 0}const $o=t=>{const{classes:e}=t;return He({root:["root"]},Ro,e)},Co={},Mo=E.forwardRef(function(e,r){const{anchorEl:o,children:n,direction:i,disablePortal:l,modifiers:a,open:s,placement:c,popperOptions:p,popperRef:m,slotProps:P={},slots:d={},TransitionProps:w,ownerState:u,...h}=e,x=E.useRef(null),S=Ht(x,r),y=E.useRef(null),f=Ht(y,m),v=E.useRef(f);Zt(()=>{v.current=f},[f]),E.useImperativeHandle(m,()=>y.current,[]);const g=Ao(c,i),[O,j]=E.useState(g),[M,T]=E.useState(pe(o));E.useEffect(()=>{y.current&&y.current.forceUpdate()}),E.useEffect(()=>{o&&T(pe(o))},[o]),Zt(()=>{if(!M||!s)return;const A=H=>{j(H.placement)};let C=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{A(H)}}];a!=null&&(C=C.concat(a)),p&&p.modifiers!=null&&(C=C.concat(p.modifiers));const R=Po(M,x.current,{placement:g,...p,modifiers:C});return v.current(R),()=>{R.destroy(),v.current(null)}},[M,l,a,s,p,g]);const $={placement:O};w!==null&&($.TransitionProps=w);const k=$o(e),D=d.root??"div",I=fr({elementType:D,externalSlotProps:P.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:k.root});return q.jsx(D,{...I,children:typeof n=="function"?n($):n})}),Do=E.forwardRef(function(e,r){const{anchorEl:o,children:n,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:c,open:p,placement:m="bottom",popperOptions:P=Co,popperRef:d,style:w,transition:u=!1,slotProps:h={},slots:x={},...S}=e,[y,f]=E.useState(!0),v=()=>{f(!1)},g=()=>{f(!0)};if(!s&&!p&&(!u||y))return null;let O;if(i)O=i;else if(o){const T=pe(o);O=T&&So(T)?xe(T).body:xe(null).body}const j=!p&&s&&(!u||y)?"none":void 0,M=u?{in:p,onEnter:v,onExited:g}:void 0;return q.jsx(To,{disablePortal:a,container:O,children:q.jsx(Mo,{anchorEl:o,direction:l,disablePortal:a,modifiers:c,ref:r,open:u?!y:p,placement:m,popperOptions:P,popperRef:d,slotProps:h,slots:x,...S,style:{position:"fixed",top:0,left:0,display:j,...w},TransitionProps:M,children:n})})}),jo=te(Do,{name:"MuiPopper",slot:"Root"})({}),Ze=E.forwardRef(function(e,r){const o=Ne(),n=Fe({props:e,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:s,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,slots:S,slotProps:y,...f}=n,v=S?.root??a?.Root,g={anchorEl:i,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,...f};return q.jsx(jo,{as:l,direction:o?"rtl":"ltr",slots:{root:v},slotProps:y??s,...g,ref:r})});function le(t){return`scale(${t}, ${t**2})`}const Lo={entering:{opacity:1,transform:le(1)},entered:{opacity:1,transform:"none"}},ie=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ce=E.forwardRef(function(e,r){const{addEndListener:o,appear:n=!0,children:i,easing:l,in:a,onEnter:s,onEntered:c,onEntering:p,onExit:m,onExited:P,onExiting:d,style:w,timeout:u="auto",TransitionComponent:h=vr,...x}=e,S=Bt(),y=E.useRef(),f=Ve(),v=E.useRef(null),g=Ht(v,be(i),r),O=A=>C=>{if(A){const R=v.current;C===void 0?A(R):A(R,C)}},j=O(p),M=O((A,C)=>{mr(A);const{duration:R,delay:H,easing:B}=Ee({style:w,timeout:u,easing:l},{mode:"enter"});let W;u==="auto"?(W=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=W):W=R,A.style.transition=[f.transitions.create("opacity",{duration:W,delay:H}),f.transitions.create("transform",{duration:ie?W:W*.666,delay:H,easing:B})].join(","),s&&s(A,C)}),T=O(c),$=O(d),k=O(A=>{const{duration:C,delay:R,easing:H}=Ee({style:w,timeout:u,easing:l},{mode:"exit"});let B;u==="auto"?(B=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=B):B=C,A.style.transition=[f.transitions.create("opacity",{duration:B,delay:R}),f.transitions.create("transform",{duration:ie?B:B*.666,delay:ie?R:R||B*.333,easing:H})].join(","),A.style.opacity=0,A.style.transform=le(.75),m&&m(A)}),D=O(P),I=A=>{u==="auto"&&S.start(y.current||0,A),o&&o(v.current,A)};return q.jsx(h,{appear:n,in:a,nodeRef:v,onEnter:M,onEntered:T,onEntering:j,onExit:k,onExited:D,onExiting:$,addEndListener:I,timeout:u==="auto"?null:u,...x,children:(A,{ownerState:C,...R})=>E.cloneElement(i,{style:{opacity:0,transform:le(.75),visibility:A==="exited"&&!a?"hidden":void 0,...Lo[A],...w,...i.props.style},ref:g,...R})})});ce&&(ce.muiSupportAuto=!0);function Bo(t){return ke("MuiTooltip",t)}const L=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function ko(t){return Math.round(t*1e5)/1e5}const Wo=t=>{const{classes:e,disableInteractive:r,arrow:o,touch:n,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",n&&"touch",`tooltipPlacement${Ie(i.split("-")[0])}`],arrow:["arrow"]};return He(l,Bo,e)},Ho=te(Ze,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(fe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${L.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${L.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),No=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${Ie(r.placement.split("-")[0])}`]]}})(fe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${L.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${L.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${L.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${L.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${ko(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Fo=te("span",{name:"MuiTooltip",slot:"Arrow"})(fe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Kt=!1;const Be=new ur;let Lt={x:0,y:0};function Jt(t,e){return(r,...o)=>{e&&e(r,...o),t(r,...o)}}const zo=E.forwardRef(function(e,r){const o=Fe({props:e,name:"MuiTooltip"}),{arrow:n=!1,children:i,classes:l,components:a={},componentsProps:s={},describeChild:c=!1,disableFocusListener:p=!1,disableHoverListener:m=!1,disableInteractive:P=!1,disableTouchListener:d=!1,enterDelay:w=100,enterNextDelay:u=0,enterTouchDelay:h=700,followCursor:x=!1,id:S,leaveDelay:y=0,leaveTouchDelay:f=1500,onClose:v,onOpen:g,open:O,placement:j="bottom",PopperComponent:M,PopperProps:T={},slotProps:$={},slots:k={},title:D,TransitionComponent:I,TransitionProps:A,...C}=o,R=E.isValidElement(i)?i:q.jsx("span",{children:i}),H=Ve(),B=Ne(),[W,dt]=E.useState(),[et,vt]=E.useState(null),K=E.useRef(!1),U=P||x,ot=Bt(),nt=Bt(),z=Bt(),mt=Bt(),[re,ht]=hr({controlled:O,default:!1,name:"Tooltip",state:"open"});let J=re;const gt=cr(S),st=E.useRef(),yt=Oe(()=>{st.current!==void 0&&(document.body.style.WebkitUserSelect=st.current,st.current=void 0),mt.clear()});E.useEffect(()=>yt,[yt]);const Tt=b=>{Be.clear(),Kt=!0,ht(!0),g&&!J&&g(b)},pt=Oe(b=>{Be.start(800+y,()=>{Kt=!1}),ht(!1),v&&J&&v(b),ot.start(H.transitions.duration.shortest,()=>{K.current=!1})}),bt=b=>{K.current&&b.type!=="touchstart"||(W&&W.removeAttribute("title"),nt.clear(),z.clear(),w||Kt&&u?nt.start(Kt?u:w,()=>{Tt(b)}):Tt(b))},Rt=b=>{nt.clear(),z.start(y,()=>{pt(b)})},[,Z]=E.useState(!1),lt=b=>{Pe(b.target)||(Z(!1),Rt(b))},At=b=>{W||dt(b.currentTarget),Pe(b.target)&&(Z(!0),bt(b))},St=b=>{K.current=!0;const it=R.props;it.onTouchStart&&it.onTouchStart(b)},$t=b=>{St(b),z.clear(),ot.clear(),yt(),st.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",mt.start(h,()=>{document.body.style.WebkitUserSelect=st.current,bt(b)})},Ut=b=>{R.props.onTouchEnd&&R.props.onTouchEnd(b),yt(),z.start(f,()=>{pt(b)})};E.useEffect(()=>{if(!J)return;function b(it){it.key==="Escape"&&pt(it)}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[pt,J]);const zt=Ht(be(R),dt,r);!D&&D!==0&&(J=!1);const wt=E.useRef(),qt=b=>{const it=R.props;it.onMouseMove&&it.onMouseMove(b),Lt={x:b.clientX,y:b.clientY},wt.current&&wt.current.update()},Ct={},oe=typeof D=="string";c?(Ct.title=!J&&oe&&!m?D:null,Ct["aria-describedby"]=J?gt:null):(Ct["aria-label"]=oe?D:null,Ct["aria-labelledby"]=J&&!oe?gt:null);const Q={...Ct,...C,...R.props,className:we(C.className,R.props.className),onTouchStart:St,ref:zt,...x?{onMouseMove:qt}:{}},Mt={};d||(Q.onTouchStart=$t,Q.onTouchEnd=Ut),m||(Q.onMouseOver=Jt(bt,Q.onMouseOver),Q.onMouseLeave=Jt(Rt,Q.onMouseLeave),U||(Mt.onMouseOver=bt,Mt.onMouseLeave=Rt)),p||(Q.onFocus=Jt(At,Q.onFocus),Q.onBlur=Jt(lt,Q.onBlur),U||(Mt.onFocus=At,Mt.onBlur=lt));const ct={...o,isRtl:B,arrow:n,disableInteractive:U,placement:j,PopperComponentProp:M,touch:K.current},Dt=typeof $.popper=="function"?$.popper(ct):$.popper,_e=E.useMemo(()=>{let b=[{name:"arrow",enabled:!!et,options:{element:et,padding:4}}];return T.popperOptions?.modifiers&&(b=b.concat(T.popperOptions.modifiers)),Dt?.popperOptions?.modifiers&&(b=b.concat(Dt.popperOptions.modifiers)),{...T.popperOptions,...Dt?.popperOptions,modifiers:b}},[et,T.popperOptions,Dt?.popperOptions]),ne=Wo(ct),tr=typeof $.transition=="function"?$.transition(ct):$.transition,Xt={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...k},slotProps:{arrow:$.arrow??s.arrow,popper:{...T,...Dt??s.popper},tooltip:$.tooltip??s.tooltip,transition:{...A,...tr??s.transition}}},[er,rr]=Yt("popper",{elementType:Ho,externalForwardedProps:Xt,ownerState:ct,className:we(ne.popper,T?.className)}),[or,nr]=Yt("transition",{elementType:ce,externalForwardedProps:Xt,ownerState:ct}),[ir,ar]=Yt("tooltip",{elementType:No,className:ne.tooltip,externalForwardedProps:Xt,ownerState:ct}),[sr,pr]=Yt("arrow",{elementType:Fo,className:ne.arrow,externalForwardedProps:Xt,ownerState:ct,ref:vt});return q.jsxs(E.Fragment,{children:[E.cloneElement(R,Q),q.jsx(er,{as:M??Ze,placement:j,anchorEl:x?{getBoundingClientRect:()=>({top:Lt.y,left:Lt.x,right:Lt.x,bottom:Lt.y,width:0,height:0})}:W,popperRef:wt,open:W?J:!1,id:gt,transition:!0,...Mt,...rr,popperOptions:_e,children:({TransitionProps:b})=>q.jsx(or,{timeout:H.transitions.duration.shorter,...b,...nr,children:q.jsxs(ir,{...ar,children:[D,n?q.jsx(sr,{...pr}):null]})})})]})}),qo=dr(q.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}));export{qo as D,ce as G,To as P,zo as T,be as g}; diff --git a/public/assets/Description-Da0xeuq8.js b/public/assets/Description-Da0xeuq8.js new file mode 100644 index 0000000..84565c5 --- /dev/null +++ b/public/assets/Description-Da0xeuq8.js @@ -0,0 +1 @@ +import{r as E,u as Zt,N as lr,b as ke,a as We,j as q,h as He,p as Ne,d as Fe,s as te,k as cr,c as we,f as Ie,m as fe}from"./index-ChSrE95j.js";import{u as Ht,f as xe,h as fr,j as Bt,b as Ve,a as Oe,e as Yt,T as ur,m as Pe,c as dr}from"./Layout-EP4xiiHA.js";import{T as vr,g as Ee,r as mr,u as hr}from"./utils-CND5M_oZ.js";function Te(t,e){typeof t=="function"?t(e):t&&(t.current=e)}var N="top",Y="bottom",G="right",F="left",ue="auto",It=[N,Y,G,F],xt="start",Nt="end",gr="clippingParents",Ue="viewport",jt="popper",yr="reference",Re=It.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Nt])},[]),ze=[].concat(It,[ue]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Nt])},[]),br="beforeRead",wr="read",xr="afterRead",Or="beforeMain",Pr="main",Er="afterMain",Tr="beforeWrite",Rr="write",Ar="afterWrite",Sr=[br,wr,xr,Or,Pr,Er,Tr,Rr,Ar];function tt(t){return t?(t.nodeName||"").toLowerCase():null}function V(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=V(t).Element;return t instanceof e||t instanceof Element}function X(t){var e=V(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function de(t){if(typeof ShadowRoot>"u")return!1;var e=V(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $r(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var o=e.styles[r]||{},n=e.attributes[r]||{},i=e.elements[r];!X(i)||!tt(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(l){var a=n[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function Cr(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],i=e.attributes[o]||{},l=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:r[o]),a=l.reduce(function(s,c){return s[c]="",s},{});!X(n)||!tt(n)||(Object.assign(n.style,a),Object.keys(i).forEach(function(s){n.removeAttribute(s)}))})}}const Mr={name:"applyStyles",enabled:!0,phase:"write",fn:$r,effect:Cr,requires:["computeStyles"]};function _(t){return t.split("-")[0]}var ft=Math.max,_t=Math.min,Ot=Math.round;function ae(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qe(){return!/^((?!chrome|android).)*safari/i.test(ae())}function Pt(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&X(t)&&(n=t.offsetWidth>0&&Ot(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ot(o.height)/t.offsetHeight||1);var l=ut(t)?V(t):window,a=l.visualViewport,s=!qe()&&r,c=(o.left+(s&&a?a.offsetLeft:0))/n,p=(o.top+(s&&a?a.offsetTop:0))/i,m=o.width/n,P=o.height/i;return{width:m,height:P,top:p,right:c+m,bottom:p+P,left:c,x:c,y:p}}function ve(t){var e=Pt(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function Xe(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&de(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function rt(t){return V(t).getComputedStyle(t)}function Dr(t){return["table","td","th"].indexOf(tt(t))>=0}function at(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function ee(t){return tt(t)==="html"?t:t.assignedSlot||t.parentNode||(de(t)?t.host:null)||at(t)}function Ae(t){return!X(t)||rt(t).position==="fixed"?null:t.offsetParent}function jr(t){var e=/firefox/i.test(ae()),r=/Trident/i.test(ae());if(r&&X(t)){var o=rt(t);if(o.position==="fixed")return null}var n=ee(t);for(de(n)&&(n=n.host);X(n)&&["html","body"].indexOf(tt(n))<0;){var i=rt(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Vt(t){for(var e=V(t),r=Ae(t);r&&Dr(r)&&rt(r).position==="static";)r=Ae(r);return r&&(tt(r)==="html"||tt(r)==="body"&&rt(r).position==="static")?e:r||jr(t)||e}function me(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,r){return ft(t,_t(e,r))}function Lr(t,e,r){var o=kt(t,e,r);return o>r?r:o}function Ye(){return{top:0,right:0,bottom:0,left:0}}function Ge(t){return Object.assign({},Ye(),t)}function Ke(t,e){return e.reduce(function(r,o){return r[o]=t,r},{})}var Br=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Ge(typeof e!="number"?e:Ke(e,It))};function kr(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,a=_(r.placement),s=me(a),c=[F,G].indexOf(a)>=0,p=c?"height":"width";if(!(!i||!l)){var m=Br(n.padding,r),P=ve(i),d=s==="y"?N:F,w=s==="y"?Y:G,u=r.rects.reference[p]+r.rects.reference[s]-l[s]-r.rects.popper[p],h=l[s]-r.rects.reference[s],x=Vt(i),S=x?s==="y"?x.clientHeight||0:x.clientWidth||0:0,y=u/2-h/2,f=m[d],v=S-P[p]-m[w],g=S/2-P[p]/2+y,O=kt(f,g,v),j=s;r.modifiersData[o]=(e={},e[j]=O,e.centerOffset=O-g,e)}}function Wr(t){var e=t.state,r=t.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Xe(e.elements.popper,n)&&(e.elements.arrow=n))}const Hr={name:"arrow",enabled:!0,phase:"main",fn:kr,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(t){return t.split("-")[1]}var Nr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fr(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:Ot(r*n)/n||0,y:Ot(o*n)/n||0}}function Se(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,l=t.offsets,a=t.position,s=t.gpuAcceleration,c=t.adaptive,p=t.roundOffsets,m=t.isFixed,P=l.x,d=P===void 0?0:P,w=l.y,u=w===void 0?0:w,h=typeof p=="function"?p({x:d,y:u}):{x:d,y:u};d=h.x,u=h.y;var x=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),y=F,f=N,v=window;if(c){var g=Vt(r),O="clientHeight",j="clientWidth";if(g===V(r)&&(g=at(r),rt(g).position!=="static"&&a==="absolute"&&(O="scrollHeight",j="scrollWidth")),g=g,n===N||(n===F||n===G)&&i===Nt){f=Y;var M=m&&g===v&&v.visualViewport?v.visualViewport.height:g[O];u-=M-o.height,u*=s?1:-1}if(n===F||(n===N||n===Y)&&i===Nt){y=G;var T=m&&g===v&&v.visualViewport?v.visualViewport.width:g[j];d-=T-o.width,d*=s?1:-1}}var $=Object.assign({position:a},c&&Nr),k=p===!0?Fr({x:d,y:u},V(r)):{x:d,y:u};if(d=k.x,u=k.y,s){var D;return Object.assign({},$,(D={},D[f]=S?"0":"",D[y]=x?"0":"",D.transform=(v.devicePixelRatio||1)<=1?"translate("+d+"px, "+u+"px)":"translate3d("+d+"px, "+u+"px, 0)",D))}return Object.assign({},$,(e={},e[f]=S?u+"px":"",e[y]=x?d+"px":"",e.transform="",e))}function Ir(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=o===void 0?!0:o,i=r.adaptive,l=i===void 0?!0:i,a=r.roundOffsets,s=a===void 0?!0:a,c={placement:_(e.placement),variation:Et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Se(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Se(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Vr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ir,data:{}};var Gt={passive:!0};function Ur(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=n===void 0?!0:n,l=o.resize,a=l===void 0?!0:l,s=V(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(p){p.addEventListener("scroll",r.update,Gt)}),a&&s.addEventListener("resize",r.update,Gt),function(){i&&c.forEach(function(p){p.removeEventListener("scroll",r.update,Gt)}),a&&s.removeEventListener("resize",r.update,Gt)}}const zr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ur,data:{}};var qr={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(t){return t.replace(/left|right|bottom|top/g,function(e){return qr[e]})}var Xr={start:"end",end:"start"};function $e(t){return t.replace(/start|end/g,function(e){return Xr[e]})}function he(t){var e=V(t),r=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:r,scrollTop:o}}function ge(t){return Pt(at(t)).left+he(t).scrollLeft}function Yr(t,e){var r=V(t),o=at(t),n=r.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(n){i=n.width,l=n.height;var c=qe();(c||!c&&e==="fixed")&&(a=n.offsetLeft,s=n.offsetTop)}return{width:i,height:l,x:a+ge(t),y:s}}function Gr(t){var e,r=at(t),o=he(t),n=(e=t.ownerDocument)==null?void 0:e.body,i=ft(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=ft(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+ge(t),s=-o.scrollTop;return rt(n||r).direction==="rtl"&&(a+=ft(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function ye(t){var e=rt(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Je(t){return["html","body","#document"].indexOf(tt(t))>=0?t.ownerDocument.body:X(t)&&ye(t)?t:Je(ee(t))}function Wt(t,e){var r;e===void 0&&(e=[]);var o=Je(t),n=o===((r=t.ownerDocument)==null?void 0:r.body),i=V(o),l=n?[i].concat(i.visualViewport||[],ye(o)?o:[]):o,a=e.concat(l);return n?a:a.concat(Wt(ee(l)))}function se(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kr(t,e){var r=Pt(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ce(t,e,r){return e===Ue?se(Yr(t,r)):ut(e)?Kr(e,r):se(Gr(at(t)))}function Jr(t){var e=Wt(ee(t)),r=["absolute","fixed"].indexOf(rt(t).position)>=0,o=r&&X(t)?Vt(t):t;return ut(o)?e.filter(function(n){return ut(n)&&Xe(n,o)&&tt(n)!=="body"}):[]}function Qr(t,e,r,o){var n=e==="clippingParents"?Jr(t):[].concat(e),i=[].concat(n,[r]),l=i[0],a=i.reduce(function(s,c){var p=Ce(t,c,o);return s.top=ft(p.top,s.top),s.right=_t(p.right,s.right),s.bottom=_t(p.bottom,s.bottom),s.left=ft(p.left,s.left),s},Ce(t,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Qe(t){var e=t.reference,r=t.element,o=t.placement,n=o?_(o):null,i=o?Et(o):null,l=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,s;switch(n){case N:s={x:l,y:e.y-r.height};break;case Y:s={x:l,y:e.y+e.height};break;case G:s={x:e.x+e.width,y:a};break;case F:s={x:e.x-r.width,y:a};break;default:s={x:e.x,y:e.y}}var c=n?me(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(i){case xt:s[c]=s[c]-(e[p]/2-r[p]/2);break;case Nt:s[c]=s[c]+(e[p]/2-r[p]/2);break}}return s}function Ft(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=o===void 0?t.placement:o,i=r.strategy,l=i===void 0?t.strategy:i,a=r.boundary,s=a===void 0?gr:a,c=r.rootBoundary,p=c===void 0?Ue:c,m=r.elementContext,P=m===void 0?jt:m,d=r.altBoundary,w=d===void 0?!1:d,u=r.padding,h=u===void 0?0:u,x=Ge(typeof h!="number"?h:Ke(h,It)),S=P===jt?yr:jt,y=t.rects.popper,f=t.elements[w?S:P],v=Qr(ut(f)?f:f.contextElement||at(t.elements.popper),s,p,l),g=Pt(t.elements.reference),O=Qe({reference:g,element:y,placement:n}),j=se(Object.assign({},y,O)),M=P===jt?j:g,T={top:v.top-M.top+x.top,bottom:M.bottom-v.bottom+x.bottom,left:v.left-M.left+x.left,right:M.right-v.right+x.right},$=t.modifiersData.offset;if(P===jt&&$){var k=$[n];Object.keys(T).forEach(function(D){var I=[G,Y].indexOf(D)>=0?1:-1,A=[N,Y].indexOf(D)>=0?"y":"x";T[D]+=k[A]*I})}return T}function Zr(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,l=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?ze:s,p=Et(o),m=p?a?Re:Re.filter(function(w){return Et(w)===p}):It,P=m.filter(function(w){return c.indexOf(w)>=0});P.length===0&&(P=m);var d=P.reduce(function(w,u){return w[u]=Ft(t,{placement:u,boundary:n,rootBoundary:i,padding:l})[_(u)],w},{});return Object.keys(d).sort(function(w,u){return d[w]-d[u]})}function _r(t){if(_(t)===ue)return[];var e=Qt(t);return[$e(t),e,$e(e)]}function to(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!0:l,s=r.fallbackPlacements,c=r.padding,p=r.boundary,m=r.rootBoundary,P=r.altBoundary,d=r.flipVariations,w=d===void 0?!0:d,u=r.allowedAutoPlacements,h=e.options.placement,x=_(h),S=x===h,y=s||(S||!w?[Qt(h)]:_r(h)),f=[h].concat(y).reduce(function(K,U){return K.concat(_(U)===ue?Zr(e,{placement:U,boundary:p,rootBoundary:m,padding:c,flipVariations:w,allowedAutoPlacements:u}):U)},[]),v=e.rects.reference,g=e.rects.popper,O=new Map,j=!0,M=f[0],T=0;T=0,A=I?"width":"height",C=Ft(e,{placement:$,boundary:p,rootBoundary:m,altBoundary:P,padding:c}),R=I?D?G:F:D?Y:N;v[A]>g[A]&&(R=Qt(R));var H=Qt(R),B=[];if(i&&B.push(C[k]<=0),a&&B.push(C[R]<=0,C[H]<=0),B.every(function(K){return K})){M=$,j=!1;break}O.set($,B)}if(j)for(var W=w?3:1,dt=function(U){var ot=f.find(function(nt){var z=O.get(nt);if(z)return z.slice(0,U).every(function(mt){return mt})});if(ot)return M=ot,"break"},et=W;et>0;et--){var vt=dt(et);if(vt==="break")break}e.placement!==M&&(e.modifiersData[o]._skip=!0,e.placement=M,e.reset=!0)}}const eo={name:"flip",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"],data:{_skip:!1}};function Me(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function De(t){return[N,G,Y,F].some(function(e){return t[e]>=0})}function ro(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,l=Ft(e,{elementContext:"reference"}),a=Ft(e,{altBoundary:!0}),s=Me(l,o),c=Me(a,n,i),p=De(s),m=De(c);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const oo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ro};function no(t,e,r){var o=_(t),n=[F,N].indexOf(o)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=i[0],a=i[1];return l=l||0,a=(a||0)*n,[F,G].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}function io(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=n===void 0?[0,0]:n,l=ze.reduce(function(p,m){return p[m]=no(m,e.rects,i),p},{}),a=l[e.placement],s=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=l}const ao={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:io};function so(t){var e=t.state,r=t.name;e.modifiersData[r]=Qe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const po={name:"popperOffsets",enabled:!0,phase:"read",fn:so,data:{}};function lo(t){return t==="x"?"y":"x"}function co(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!1:l,s=r.boundary,c=r.rootBoundary,p=r.altBoundary,m=r.padding,P=r.tether,d=P===void 0?!0:P,w=r.tetherOffset,u=w===void 0?0:w,h=Ft(e,{boundary:s,rootBoundary:c,padding:m,altBoundary:p}),x=_(e.placement),S=Et(e.placement),y=!S,f=me(x),v=lo(f),g=e.modifiersData.popperOffsets,O=e.rects.reference,j=e.rects.popper,M=typeof u=="function"?u(Object.assign({},e.rects,{placement:e.placement})):u,T=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(g){if(i){var D,I=f==="y"?N:F,A=f==="y"?Y:G,C=f==="y"?"height":"width",R=g[f],H=R+h[I],B=R-h[A],W=d?-j[C]/2:0,dt=S===xt?O[C]:j[C],et=S===xt?-j[C]:-O[C],vt=e.elements.arrow,K=d&&vt?ve(vt):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ye(),ot=U[I],nt=U[A],z=kt(0,O[C],K[C]),mt=y?O[C]/2-W-z-ot-T.mainAxis:dt-z-ot-T.mainAxis,re=y?-O[C]/2+W+z+nt+T.mainAxis:et+z+nt+T.mainAxis,ht=e.elements.arrow&&Vt(e.elements.arrow),J=ht?f==="y"?ht.clientTop||0:ht.clientLeft||0:0,gt=(D=$?.[f])!=null?D:0,st=R+mt-gt-J,yt=R+re-gt,Tt=kt(d?_t(H,st):H,R,d?ft(B,yt):B);g[f]=Tt,k[f]=Tt-R}if(a){var pt,bt=f==="x"?N:F,Rt=f==="x"?Y:G,Z=g[v],lt=v==="y"?"height":"width",At=Z+h[bt],St=Z-h[Rt],$t=[N,F].indexOf(x)!==-1,Ut=(pt=$?.[v])!=null?pt:0,zt=$t?At:Z-O[lt]-j[lt]-Ut+T.altAxis,wt=$t?Z+O[lt]+j[lt]-Ut-T.altAxis:St,qt=d&&$t?Lr(zt,Z,wt):kt(d?zt:At,Z,d?wt:St);g[v]=qt,k[v]=qt-Z}e.modifiersData[o]=k}}const fo={name:"preventOverflow",enabled:!0,phase:"main",fn:co,requiresIfExists:["offset"]};function uo(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vo(t){return t===V(t)||!X(t)?he(t):uo(t)}function mo(t){var e=t.getBoundingClientRect(),r=Ot(e.width)/t.offsetWidth||1,o=Ot(e.height)/t.offsetHeight||1;return r!==1||o!==1}function ho(t,e,r){r===void 0&&(r=!1);var o=X(e),n=X(e)&&mo(e),i=at(e),l=Pt(t,n,r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!r)&&((tt(e)!=="body"||ye(i))&&(a=vo(e)),X(e)?(s=Pt(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):i&&(s.x=ge(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function go(t){var e=new Map,r=new Set,o=[];t.forEach(function(i){e.set(i.name,i)});function n(i){r.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!r.has(a)){var s=e.get(a);s&&n(s)}}),o.push(i)}return t.forEach(function(i){r.has(i.name)||n(i)}),o}function yo(t){var e=go(t);return Sr.reduce(function(r,o){return r.concat(e.filter(function(n){return n.phase===o}))},[])}function bo(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function wo(t){var e=t.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(e).map(function(r){return e[r]})}var je={placement:"bottom",modifiers:[],strategy:"absolute"};function Le(){for(var t=arguments.length,e=new Array(t),r=0;r=19?t?.props?.ref||null:t?.ref||null}function Eo(t){return typeof t=="function"?t():t}const To=E.forwardRef(function(e,r){const{children:o,container:n,disablePortal:i=!1}=e,[l,a]=E.useState(null),s=Ht(E.isValidElement(o)?be(o):null,r);if(Zt(()=>{i||a(Eo(n)||document.body)},[n,i]),Zt(()=>{if(l&&!i)return Te(r,l),()=>{Te(r,null)}},[r,l,i]),i){if(E.isValidElement(o)){const c={ref:s};return E.cloneElement(o,c)}return o}return l&&lr.createPortal(o,l)});function Ro(t){return ke("MuiPopper",t)}We("MuiPopper",["root"]);function Ao(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function pe(t){return typeof t=="function"?t():t}function So(t){return t.nodeType!==void 0}const $o=t=>{const{classes:e}=t;return He({root:["root"]},Ro,e)},Co={},Mo=E.forwardRef(function(e,r){const{anchorEl:o,children:n,direction:i,disablePortal:l,modifiers:a,open:s,placement:c,popperOptions:p,popperRef:m,slotProps:P={},slots:d={},TransitionProps:w,ownerState:u,...h}=e,x=E.useRef(null),S=Ht(x,r),y=E.useRef(null),f=Ht(y,m),v=E.useRef(f);Zt(()=>{v.current=f},[f]),E.useImperativeHandle(m,()=>y.current,[]);const g=Ao(c,i),[O,j]=E.useState(g),[M,T]=E.useState(pe(o));E.useEffect(()=>{y.current&&y.current.forceUpdate()}),E.useEffect(()=>{o&&T(pe(o))},[o]),Zt(()=>{if(!M||!s)return;const A=H=>{j(H.placement)};let C=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{A(H)}}];a!=null&&(C=C.concat(a)),p&&p.modifiers!=null&&(C=C.concat(p.modifiers));const R=Po(M,x.current,{placement:g,...p,modifiers:C});return v.current(R),()=>{R.destroy(),v.current(null)}},[M,l,a,s,p,g]);const $={placement:O};w!==null&&($.TransitionProps=w);const k=$o(e),D=d.root??"div",I=fr({elementType:D,externalSlotProps:P.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:k.root});return q.jsx(D,{...I,children:typeof n=="function"?n($):n})}),Do=E.forwardRef(function(e,r){const{anchorEl:o,children:n,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:c,open:p,placement:m="bottom",popperOptions:P=Co,popperRef:d,style:w,transition:u=!1,slotProps:h={},slots:x={},...S}=e,[y,f]=E.useState(!0),v=()=>{f(!1)},g=()=>{f(!0)};if(!s&&!p&&(!u||y))return null;let O;if(i)O=i;else if(o){const T=pe(o);O=T&&So(T)?xe(T).body:xe(null).body}const j=!p&&s&&(!u||y)?"none":void 0,M=u?{in:p,onEnter:v,onExited:g}:void 0;return q.jsx(To,{disablePortal:a,container:O,children:q.jsx(Mo,{anchorEl:o,direction:l,disablePortal:a,modifiers:c,ref:r,open:u?!y:p,placement:m,popperOptions:P,popperRef:d,slotProps:h,slots:x,...S,style:{position:"fixed",top:0,left:0,display:j,...w},TransitionProps:M,children:n})})}),jo=te(Do,{name:"MuiPopper",slot:"Root"})({}),Ze=E.forwardRef(function(e,r){const o=Ne(),n=Fe({props:e,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:s,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,slots:S,slotProps:y,...f}=n,v=S?.root??a?.Root,g={anchorEl:i,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,...f};return q.jsx(jo,{as:l,direction:o?"rtl":"ltr",slots:{root:v},slotProps:y??s,...g,ref:r})});function le(t){return`scale(${t}, ${t**2})`}const Lo={entering:{opacity:1,transform:le(1)},entered:{opacity:1,transform:"none"}},ie=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ce=E.forwardRef(function(e,r){const{addEndListener:o,appear:n=!0,children:i,easing:l,in:a,onEnter:s,onEntered:c,onEntering:p,onExit:m,onExited:P,onExiting:d,style:w,timeout:u="auto",TransitionComponent:h=vr,...x}=e,S=Bt(),y=E.useRef(),f=Ve(),v=E.useRef(null),g=Ht(v,be(i),r),O=A=>C=>{if(A){const R=v.current;C===void 0?A(R):A(R,C)}},j=O(p),M=O((A,C)=>{mr(A);const{duration:R,delay:H,easing:B}=Ee({style:w,timeout:u,easing:l},{mode:"enter"});let W;u==="auto"?(W=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=W):W=R,A.style.transition=[f.transitions.create("opacity",{duration:W,delay:H}),f.transitions.create("transform",{duration:ie?W:W*.666,delay:H,easing:B})].join(","),s&&s(A,C)}),T=O(c),$=O(d),k=O(A=>{const{duration:C,delay:R,easing:H}=Ee({style:w,timeout:u,easing:l},{mode:"exit"});let B;u==="auto"?(B=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=B):B=C,A.style.transition=[f.transitions.create("opacity",{duration:B,delay:R}),f.transitions.create("transform",{duration:ie?B:B*.666,delay:ie?R:R||B*.333,easing:H})].join(","),A.style.opacity=0,A.style.transform=le(.75),m&&m(A)}),D=O(P),I=A=>{u==="auto"&&S.start(y.current||0,A),o&&o(v.current,A)};return q.jsx(h,{appear:n,in:a,nodeRef:v,onEnter:M,onEntered:T,onEntering:j,onExit:k,onExited:D,onExiting:$,addEndListener:I,timeout:u==="auto"?null:u,...x,children:(A,{ownerState:C,...R})=>E.cloneElement(i,{style:{opacity:0,transform:le(.75),visibility:A==="exited"&&!a?"hidden":void 0,...Lo[A],...w,...i.props.style},ref:g,...R})})});ce&&(ce.muiSupportAuto=!0);function Bo(t){return ke("MuiTooltip",t)}const L=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function ko(t){return Math.round(t*1e5)/1e5}const Wo=t=>{const{classes:e,disableInteractive:r,arrow:o,touch:n,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",n&&"touch",`tooltipPlacement${Ie(i.split("-")[0])}`],arrow:["arrow"]};return He(l,Bo,e)},Ho=te(Ze,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(fe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${L.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${L.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),No=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${Ie(r.placement.split("-")[0])}`]]}})(fe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${L.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${L.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${L.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${L.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${ko(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Fo=te("span",{name:"MuiTooltip",slot:"Arrow"})(fe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Kt=!1;const Be=new ur;let Lt={x:0,y:0};function Jt(t,e){return(r,...o)=>{e&&e(r,...o),t(r,...o)}}const zo=E.forwardRef(function(e,r){const o=Fe({props:e,name:"MuiTooltip"}),{arrow:n=!1,children:i,classes:l,components:a={},componentsProps:s={},describeChild:c=!1,disableFocusListener:p=!1,disableHoverListener:m=!1,disableInteractive:P=!1,disableTouchListener:d=!1,enterDelay:w=100,enterNextDelay:u=0,enterTouchDelay:h=700,followCursor:x=!1,id:S,leaveDelay:y=0,leaveTouchDelay:f=1500,onClose:v,onOpen:g,open:O,placement:j="bottom",PopperComponent:M,PopperProps:T={},slotProps:$={},slots:k={},title:D,TransitionComponent:I,TransitionProps:A,...C}=o,R=E.isValidElement(i)?i:q.jsx("span",{children:i}),H=Ve(),B=Ne(),[W,dt]=E.useState(),[et,vt]=E.useState(null),K=E.useRef(!1),U=P||x,ot=Bt(),nt=Bt(),z=Bt(),mt=Bt(),[re,ht]=hr({controlled:O,default:!1,name:"Tooltip",state:"open"});let J=re;const gt=cr(S),st=E.useRef(),yt=Oe(()=>{st.current!==void 0&&(document.body.style.WebkitUserSelect=st.current,st.current=void 0),mt.clear()});E.useEffect(()=>yt,[yt]);const Tt=b=>{Be.clear(),Kt=!0,ht(!0),g&&!J&&g(b)},pt=Oe(b=>{Be.start(800+y,()=>{Kt=!1}),ht(!1),v&&J&&v(b),ot.start(H.transitions.duration.shortest,()=>{K.current=!1})}),bt=b=>{K.current&&b.type!=="touchstart"||(W&&W.removeAttribute("title"),nt.clear(),z.clear(),w||Kt&&u?nt.start(Kt?u:w,()=>{Tt(b)}):Tt(b))},Rt=b=>{nt.clear(),z.start(y,()=>{pt(b)})},[,Z]=E.useState(!1),lt=b=>{Pe(b.target)||(Z(!1),Rt(b))},At=b=>{W||dt(b.currentTarget),Pe(b.target)&&(Z(!0),bt(b))},St=b=>{K.current=!0;const it=R.props;it.onTouchStart&&it.onTouchStart(b)},$t=b=>{St(b),z.clear(),ot.clear(),yt(),st.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",mt.start(h,()=>{document.body.style.WebkitUserSelect=st.current,bt(b)})},Ut=b=>{R.props.onTouchEnd&&R.props.onTouchEnd(b),yt(),z.start(f,()=>{pt(b)})};E.useEffect(()=>{if(!J)return;function b(it){it.key==="Escape"&&pt(it)}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[pt,J]);const zt=Ht(be(R),dt,r);!D&&D!==0&&(J=!1);const wt=E.useRef(),qt=b=>{const it=R.props;it.onMouseMove&&it.onMouseMove(b),Lt={x:b.clientX,y:b.clientY},wt.current&&wt.current.update()},Ct={},oe=typeof D=="string";c?(Ct.title=!J&&oe&&!m?D:null,Ct["aria-describedby"]=J?gt:null):(Ct["aria-label"]=oe?D:null,Ct["aria-labelledby"]=J&&!oe?gt:null);const Q={...Ct,...C,...R.props,className:we(C.className,R.props.className),onTouchStart:St,ref:zt,...x?{onMouseMove:qt}:{}},Mt={};d||(Q.onTouchStart=$t,Q.onTouchEnd=Ut),m||(Q.onMouseOver=Jt(bt,Q.onMouseOver),Q.onMouseLeave=Jt(Rt,Q.onMouseLeave),U||(Mt.onMouseOver=bt,Mt.onMouseLeave=Rt)),p||(Q.onFocus=Jt(At,Q.onFocus),Q.onBlur=Jt(lt,Q.onBlur),U||(Mt.onFocus=At,Mt.onBlur=lt));const ct={...o,isRtl:B,arrow:n,disableInteractive:U,placement:j,PopperComponentProp:M,touch:K.current},Dt=typeof $.popper=="function"?$.popper(ct):$.popper,_e=E.useMemo(()=>{let b=[{name:"arrow",enabled:!!et,options:{element:et,padding:4}}];return T.popperOptions?.modifiers&&(b=b.concat(T.popperOptions.modifiers)),Dt?.popperOptions?.modifiers&&(b=b.concat(Dt.popperOptions.modifiers)),{...T.popperOptions,...Dt?.popperOptions,modifiers:b}},[et,T.popperOptions,Dt?.popperOptions]),ne=Wo(ct),tr=typeof $.transition=="function"?$.transition(ct):$.transition,Xt={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...k},slotProps:{arrow:$.arrow??s.arrow,popper:{...T,...Dt??s.popper},tooltip:$.tooltip??s.tooltip,transition:{...A,...tr??s.transition}}},[er,rr]=Yt("popper",{elementType:Ho,externalForwardedProps:Xt,ownerState:ct,className:we(ne.popper,T?.className)}),[or,nr]=Yt("transition",{elementType:ce,externalForwardedProps:Xt,ownerState:ct}),[ir,ar]=Yt("tooltip",{elementType:No,className:ne.tooltip,externalForwardedProps:Xt,ownerState:ct}),[sr,pr]=Yt("arrow",{elementType:Fo,className:ne.arrow,externalForwardedProps:Xt,ownerState:ct,ref:vt});return q.jsxs(E.Fragment,{children:[E.cloneElement(R,Q),q.jsx(er,{as:M??Ze,placement:j,anchorEl:x?{getBoundingClientRect:()=>({top:Lt.y,left:Lt.x,right:Lt.x,bottom:Lt.y,width:0,height:0})}:W,popperRef:wt,open:W?J:!1,id:gt,transition:!0,...Mt,...rr,popperOptions:_e,children:({TransitionProps:b})=>q.jsx(or,{timeout:H.transitions.duration.shorter,...b,...nr,children:q.jsxs(ir,{...ar,children:[D,n?q.jsx(sr,{...pr}):null]})})})]})}),qo=dr(q.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}));export{qo as D,ce as G,To as P,zo as T,be as g}; diff --git a/public/assets/Description-rLhKmJBh.js b/public/assets/Description-rLhKmJBh.js new file mode 100644 index 0000000..01a8fe8 --- /dev/null +++ b/public/assets/Description-rLhKmJBh.js @@ -0,0 +1 @@ +import{r as E,u as Zt,N as lr,b as ke,a as We,j as q,h as He,p as Ne,d as Fe,s as te,k as cr,c as we,f as Ie,m as fe}from"./index-BkuOAsyQ.js";import{u as Ht,f as xe,h as fr,j as Bt,b as Ve,a as Oe,e as Yt,T as ur,m as Pe,c as dr}from"./Layout-HUfQIbZm.js";import{T as vr,g as Ee,r as mr,u as hr}from"./utils-DOxjq0mC.js";function Te(t,e){typeof t=="function"?t(e):t&&(t.current=e)}var N="top",Y="bottom",G="right",F="left",ue="auto",It=[N,Y,G,F],xt="start",Nt="end",gr="clippingParents",Ue="viewport",jt="popper",yr="reference",Re=It.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Nt])},[]),ze=[].concat(It,[ue]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Nt])},[]),br="beforeRead",wr="read",xr="afterRead",Or="beforeMain",Pr="main",Er="afterMain",Tr="beforeWrite",Rr="write",Ar="afterWrite",Sr=[br,wr,xr,Or,Pr,Er,Tr,Rr,Ar];function tt(t){return t?(t.nodeName||"").toLowerCase():null}function V(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=V(t).Element;return t instanceof e||t instanceof Element}function X(t){var e=V(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function de(t){if(typeof ShadowRoot>"u")return!1;var e=V(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $r(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var o=e.styles[r]||{},n=e.attributes[r]||{},i=e.elements[r];!X(i)||!tt(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(l){var a=n[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function Cr(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],i=e.attributes[o]||{},l=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:r[o]),a=l.reduce(function(s,c){return s[c]="",s},{});!X(n)||!tt(n)||(Object.assign(n.style,a),Object.keys(i).forEach(function(s){n.removeAttribute(s)}))})}}const Mr={name:"applyStyles",enabled:!0,phase:"write",fn:$r,effect:Cr,requires:["computeStyles"]};function _(t){return t.split("-")[0]}var ft=Math.max,_t=Math.min,Ot=Math.round;function ae(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qe(){return!/^((?!chrome|android).)*safari/i.test(ae())}function Pt(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&X(t)&&(n=t.offsetWidth>0&&Ot(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ot(o.height)/t.offsetHeight||1);var l=ut(t)?V(t):window,a=l.visualViewport,s=!qe()&&r,c=(o.left+(s&&a?a.offsetLeft:0))/n,p=(o.top+(s&&a?a.offsetTop:0))/i,m=o.width/n,P=o.height/i;return{width:m,height:P,top:p,right:c+m,bottom:p+P,left:c,x:c,y:p}}function ve(t){var e=Pt(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function Xe(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&de(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function rt(t){return V(t).getComputedStyle(t)}function Dr(t){return["table","td","th"].indexOf(tt(t))>=0}function at(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function ee(t){return tt(t)==="html"?t:t.assignedSlot||t.parentNode||(de(t)?t.host:null)||at(t)}function Ae(t){return!X(t)||rt(t).position==="fixed"?null:t.offsetParent}function jr(t){var e=/firefox/i.test(ae()),r=/Trident/i.test(ae());if(r&&X(t)){var o=rt(t);if(o.position==="fixed")return null}var n=ee(t);for(de(n)&&(n=n.host);X(n)&&["html","body"].indexOf(tt(n))<0;){var i=rt(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Vt(t){for(var e=V(t),r=Ae(t);r&&Dr(r)&&rt(r).position==="static";)r=Ae(r);return r&&(tt(r)==="html"||tt(r)==="body"&&rt(r).position==="static")?e:r||jr(t)||e}function me(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,r){return ft(t,_t(e,r))}function Lr(t,e,r){var o=kt(t,e,r);return o>r?r:o}function Ye(){return{top:0,right:0,bottom:0,left:0}}function Ge(t){return Object.assign({},Ye(),t)}function Ke(t,e){return e.reduce(function(r,o){return r[o]=t,r},{})}var Br=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Ge(typeof e!="number"?e:Ke(e,It))};function kr(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,a=_(r.placement),s=me(a),c=[F,G].indexOf(a)>=0,p=c?"height":"width";if(!(!i||!l)){var m=Br(n.padding,r),P=ve(i),d=s==="y"?N:F,w=s==="y"?Y:G,u=r.rects.reference[p]+r.rects.reference[s]-l[s]-r.rects.popper[p],h=l[s]-r.rects.reference[s],x=Vt(i),S=x?s==="y"?x.clientHeight||0:x.clientWidth||0:0,y=u/2-h/2,f=m[d],v=S-P[p]-m[w],g=S/2-P[p]/2+y,O=kt(f,g,v),j=s;r.modifiersData[o]=(e={},e[j]=O,e.centerOffset=O-g,e)}}function Wr(t){var e=t.state,r=t.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Xe(e.elements.popper,n)&&(e.elements.arrow=n))}const Hr={name:"arrow",enabled:!0,phase:"main",fn:kr,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(t){return t.split("-")[1]}var Nr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fr(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:Ot(r*n)/n||0,y:Ot(o*n)/n||0}}function Se(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,l=t.offsets,a=t.position,s=t.gpuAcceleration,c=t.adaptive,p=t.roundOffsets,m=t.isFixed,P=l.x,d=P===void 0?0:P,w=l.y,u=w===void 0?0:w,h=typeof p=="function"?p({x:d,y:u}):{x:d,y:u};d=h.x,u=h.y;var x=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),y=F,f=N,v=window;if(c){var g=Vt(r),O="clientHeight",j="clientWidth";if(g===V(r)&&(g=at(r),rt(g).position!=="static"&&a==="absolute"&&(O="scrollHeight",j="scrollWidth")),g=g,n===N||(n===F||n===G)&&i===Nt){f=Y;var M=m&&g===v&&v.visualViewport?v.visualViewport.height:g[O];u-=M-o.height,u*=s?1:-1}if(n===F||(n===N||n===Y)&&i===Nt){y=G;var T=m&&g===v&&v.visualViewport?v.visualViewport.width:g[j];d-=T-o.width,d*=s?1:-1}}var $=Object.assign({position:a},c&&Nr),k=p===!0?Fr({x:d,y:u},V(r)):{x:d,y:u};if(d=k.x,u=k.y,s){var D;return Object.assign({},$,(D={},D[f]=S?"0":"",D[y]=x?"0":"",D.transform=(v.devicePixelRatio||1)<=1?"translate("+d+"px, "+u+"px)":"translate3d("+d+"px, "+u+"px, 0)",D))}return Object.assign({},$,(e={},e[f]=S?u+"px":"",e[y]=x?d+"px":"",e.transform="",e))}function Ir(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=o===void 0?!0:o,i=r.adaptive,l=i===void 0?!0:i,a=r.roundOffsets,s=a===void 0?!0:a,c={placement:_(e.placement),variation:Et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Se(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Se(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Vr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ir,data:{}};var Gt={passive:!0};function Ur(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=n===void 0?!0:n,l=o.resize,a=l===void 0?!0:l,s=V(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(p){p.addEventListener("scroll",r.update,Gt)}),a&&s.addEventListener("resize",r.update,Gt),function(){i&&c.forEach(function(p){p.removeEventListener("scroll",r.update,Gt)}),a&&s.removeEventListener("resize",r.update,Gt)}}const zr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ur,data:{}};var qr={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(t){return t.replace(/left|right|bottom|top/g,function(e){return qr[e]})}var Xr={start:"end",end:"start"};function $e(t){return t.replace(/start|end/g,function(e){return Xr[e]})}function he(t){var e=V(t),r=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:r,scrollTop:o}}function ge(t){return Pt(at(t)).left+he(t).scrollLeft}function Yr(t,e){var r=V(t),o=at(t),n=r.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(n){i=n.width,l=n.height;var c=qe();(c||!c&&e==="fixed")&&(a=n.offsetLeft,s=n.offsetTop)}return{width:i,height:l,x:a+ge(t),y:s}}function Gr(t){var e,r=at(t),o=he(t),n=(e=t.ownerDocument)==null?void 0:e.body,i=ft(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=ft(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+ge(t),s=-o.scrollTop;return rt(n||r).direction==="rtl"&&(a+=ft(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function ye(t){var e=rt(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Je(t){return["html","body","#document"].indexOf(tt(t))>=0?t.ownerDocument.body:X(t)&&ye(t)?t:Je(ee(t))}function Wt(t,e){var r;e===void 0&&(e=[]);var o=Je(t),n=o===((r=t.ownerDocument)==null?void 0:r.body),i=V(o),l=n?[i].concat(i.visualViewport||[],ye(o)?o:[]):o,a=e.concat(l);return n?a:a.concat(Wt(ee(l)))}function se(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kr(t,e){var r=Pt(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ce(t,e,r){return e===Ue?se(Yr(t,r)):ut(e)?Kr(e,r):se(Gr(at(t)))}function Jr(t){var e=Wt(ee(t)),r=["absolute","fixed"].indexOf(rt(t).position)>=0,o=r&&X(t)?Vt(t):t;return ut(o)?e.filter(function(n){return ut(n)&&Xe(n,o)&&tt(n)!=="body"}):[]}function Qr(t,e,r,o){var n=e==="clippingParents"?Jr(t):[].concat(e),i=[].concat(n,[r]),l=i[0],a=i.reduce(function(s,c){var p=Ce(t,c,o);return s.top=ft(p.top,s.top),s.right=_t(p.right,s.right),s.bottom=_t(p.bottom,s.bottom),s.left=ft(p.left,s.left),s},Ce(t,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Qe(t){var e=t.reference,r=t.element,o=t.placement,n=o?_(o):null,i=o?Et(o):null,l=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,s;switch(n){case N:s={x:l,y:e.y-r.height};break;case Y:s={x:l,y:e.y+e.height};break;case G:s={x:e.x+e.width,y:a};break;case F:s={x:e.x-r.width,y:a};break;default:s={x:e.x,y:e.y}}var c=n?me(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(i){case xt:s[c]=s[c]-(e[p]/2-r[p]/2);break;case Nt:s[c]=s[c]+(e[p]/2-r[p]/2);break}}return s}function Ft(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=o===void 0?t.placement:o,i=r.strategy,l=i===void 0?t.strategy:i,a=r.boundary,s=a===void 0?gr:a,c=r.rootBoundary,p=c===void 0?Ue:c,m=r.elementContext,P=m===void 0?jt:m,d=r.altBoundary,w=d===void 0?!1:d,u=r.padding,h=u===void 0?0:u,x=Ge(typeof h!="number"?h:Ke(h,It)),S=P===jt?yr:jt,y=t.rects.popper,f=t.elements[w?S:P],v=Qr(ut(f)?f:f.contextElement||at(t.elements.popper),s,p,l),g=Pt(t.elements.reference),O=Qe({reference:g,element:y,placement:n}),j=se(Object.assign({},y,O)),M=P===jt?j:g,T={top:v.top-M.top+x.top,bottom:M.bottom-v.bottom+x.bottom,left:v.left-M.left+x.left,right:M.right-v.right+x.right},$=t.modifiersData.offset;if(P===jt&&$){var k=$[n];Object.keys(T).forEach(function(D){var I=[G,Y].indexOf(D)>=0?1:-1,A=[N,Y].indexOf(D)>=0?"y":"x";T[D]+=k[A]*I})}return T}function Zr(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,l=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?ze:s,p=Et(o),m=p?a?Re:Re.filter(function(w){return Et(w)===p}):It,P=m.filter(function(w){return c.indexOf(w)>=0});P.length===0&&(P=m);var d=P.reduce(function(w,u){return w[u]=Ft(t,{placement:u,boundary:n,rootBoundary:i,padding:l})[_(u)],w},{});return Object.keys(d).sort(function(w,u){return d[w]-d[u]})}function _r(t){if(_(t)===ue)return[];var e=Qt(t);return[$e(t),e,$e(e)]}function to(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!0:l,s=r.fallbackPlacements,c=r.padding,p=r.boundary,m=r.rootBoundary,P=r.altBoundary,d=r.flipVariations,w=d===void 0?!0:d,u=r.allowedAutoPlacements,h=e.options.placement,x=_(h),S=x===h,y=s||(S||!w?[Qt(h)]:_r(h)),f=[h].concat(y).reduce(function(K,U){return K.concat(_(U)===ue?Zr(e,{placement:U,boundary:p,rootBoundary:m,padding:c,flipVariations:w,allowedAutoPlacements:u}):U)},[]),v=e.rects.reference,g=e.rects.popper,O=new Map,j=!0,M=f[0],T=0;T=0,A=I?"width":"height",C=Ft(e,{placement:$,boundary:p,rootBoundary:m,altBoundary:P,padding:c}),R=I?D?G:F:D?Y:N;v[A]>g[A]&&(R=Qt(R));var H=Qt(R),B=[];if(i&&B.push(C[k]<=0),a&&B.push(C[R]<=0,C[H]<=0),B.every(function(K){return K})){M=$,j=!1;break}O.set($,B)}if(j)for(var W=w?3:1,dt=function(U){var ot=f.find(function(nt){var z=O.get(nt);if(z)return z.slice(0,U).every(function(mt){return mt})});if(ot)return M=ot,"break"},et=W;et>0;et--){var vt=dt(et);if(vt==="break")break}e.placement!==M&&(e.modifiersData[o]._skip=!0,e.placement=M,e.reset=!0)}}const eo={name:"flip",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"],data:{_skip:!1}};function Me(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function De(t){return[N,G,Y,F].some(function(e){return t[e]>=0})}function ro(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,l=Ft(e,{elementContext:"reference"}),a=Ft(e,{altBoundary:!0}),s=Me(l,o),c=Me(a,n,i),p=De(s),m=De(c);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const oo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ro};function no(t,e,r){var o=_(t),n=[F,N].indexOf(o)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=i[0],a=i[1];return l=l||0,a=(a||0)*n,[F,G].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}function io(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=n===void 0?[0,0]:n,l=ze.reduce(function(p,m){return p[m]=no(m,e.rects,i),p},{}),a=l[e.placement],s=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=l}const ao={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:io};function so(t){var e=t.state,r=t.name;e.modifiersData[r]=Qe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const po={name:"popperOffsets",enabled:!0,phase:"read",fn:so,data:{}};function lo(t){return t==="x"?"y":"x"}function co(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!1:l,s=r.boundary,c=r.rootBoundary,p=r.altBoundary,m=r.padding,P=r.tether,d=P===void 0?!0:P,w=r.tetherOffset,u=w===void 0?0:w,h=Ft(e,{boundary:s,rootBoundary:c,padding:m,altBoundary:p}),x=_(e.placement),S=Et(e.placement),y=!S,f=me(x),v=lo(f),g=e.modifiersData.popperOffsets,O=e.rects.reference,j=e.rects.popper,M=typeof u=="function"?u(Object.assign({},e.rects,{placement:e.placement})):u,T=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(g){if(i){var D,I=f==="y"?N:F,A=f==="y"?Y:G,C=f==="y"?"height":"width",R=g[f],H=R+h[I],B=R-h[A],W=d?-j[C]/2:0,dt=S===xt?O[C]:j[C],et=S===xt?-j[C]:-O[C],vt=e.elements.arrow,K=d&&vt?ve(vt):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ye(),ot=U[I],nt=U[A],z=kt(0,O[C],K[C]),mt=y?O[C]/2-W-z-ot-T.mainAxis:dt-z-ot-T.mainAxis,re=y?-O[C]/2+W+z+nt+T.mainAxis:et+z+nt+T.mainAxis,ht=e.elements.arrow&&Vt(e.elements.arrow),J=ht?f==="y"?ht.clientTop||0:ht.clientLeft||0:0,gt=(D=$?.[f])!=null?D:0,st=R+mt-gt-J,yt=R+re-gt,Tt=kt(d?_t(H,st):H,R,d?ft(B,yt):B);g[f]=Tt,k[f]=Tt-R}if(a){var pt,bt=f==="x"?N:F,Rt=f==="x"?Y:G,Z=g[v],lt=v==="y"?"height":"width",At=Z+h[bt],St=Z-h[Rt],$t=[N,F].indexOf(x)!==-1,Ut=(pt=$?.[v])!=null?pt:0,zt=$t?At:Z-O[lt]-j[lt]-Ut+T.altAxis,wt=$t?Z+O[lt]+j[lt]-Ut-T.altAxis:St,qt=d&&$t?Lr(zt,Z,wt):kt(d?zt:At,Z,d?wt:St);g[v]=qt,k[v]=qt-Z}e.modifiersData[o]=k}}const fo={name:"preventOverflow",enabled:!0,phase:"main",fn:co,requiresIfExists:["offset"]};function uo(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vo(t){return t===V(t)||!X(t)?he(t):uo(t)}function mo(t){var e=t.getBoundingClientRect(),r=Ot(e.width)/t.offsetWidth||1,o=Ot(e.height)/t.offsetHeight||1;return r!==1||o!==1}function ho(t,e,r){r===void 0&&(r=!1);var o=X(e),n=X(e)&&mo(e),i=at(e),l=Pt(t,n,r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!r)&&((tt(e)!=="body"||ye(i))&&(a=vo(e)),X(e)?(s=Pt(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):i&&(s.x=ge(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function go(t){var e=new Map,r=new Set,o=[];t.forEach(function(i){e.set(i.name,i)});function n(i){r.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!r.has(a)){var s=e.get(a);s&&n(s)}}),o.push(i)}return t.forEach(function(i){r.has(i.name)||n(i)}),o}function yo(t){var e=go(t);return Sr.reduce(function(r,o){return r.concat(e.filter(function(n){return n.phase===o}))},[])}function bo(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function wo(t){var e=t.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(e).map(function(r){return e[r]})}var je={placement:"bottom",modifiers:[],strategy:"absolute"};function Le(){for(var t=arguments.length,e=new Array(t),r=0;r=19?t?.props?.ref||null:t?.ref||null}function Eo(t){return typeof t=="function"?t():t}const To=E.forwardRef(function(e,r){const{children:o,container:n,disablePortal:i=!1}=e,[l,a]=E.useState(null),s=Ht(E.isValidElement(o)?be(o):null,r);if(Zt(()=>{i||a(Eo(n)||document.body)},[n,i]),Zt(()=>{if(l&&!i)return Te(r,l),()=>{Te(r,null)}},[r,l,i]),i){if(E.isValidElement(o)){const c={ref:s};return E.cloneElement(o,c)}return o}return l&&lr.createPortal(o,l)});function Ro(t){return ke("MuiPopper",t)}We("MuiPopper",["root"]);function Ao(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function pe(t){return typeof t=="function"?t():t}function So(t){return t.nodeType!==void 0}const $o=t=>{const{classes:e}=t;return He({root:["root"]},Ro,e)},Co={},Mo=E.forwardRef(function(e,r){const{anchorEl:o,children:n,direction:i,disablePortal:l,modifiers:a,open:s,placement:c,popperOptions:p,popperRef:m,slotProps:P={},slots:d={},TransitionProps:w,ownerState:u,...h}=e,x=E.useRef(null),S=Ht(x,r),y=E.useRef(null),f=Ht(y,m),v=E.useRef(f);Zt(()=>{v.current=f},[f]),E.useImperativeHandle(m,()=>y.current,[]);const g=Ao(c,i),[O,j]=E.useState(g),[M,T]=E.useState(pe(o));E.useEffect(()=>{y.current&&y.current.forceUpdate()}),E.useEffect(()=>{o&&T(pe(o))},[o]),Zt(()=>{if(!M||!s)return;const A=H=>{j(H.placement)};let C=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{A(H)}}];a!=null&&(C=C.concat(a)),p&&p.modifiers!=null&&(C=C.concat(p.modifiers));const R=Po(M,x.current,{placement:g,...p,modifiers:C});return v.current(R),()=>{R.destroy(),v.current(null)}},[M,l,a,s,p,g]);const $={placement:O};w!==null&&($.TransitionProps=w);const k=$o(e),D=d.root??"div",I=fr({elementType:D,externalSlotProps:P.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:k.root});return q.jsx(D,{...I,children:typeof n=="function"?n($):n})}),Do=E.forwardRef(function(e,r){const{anchorEl:o,children:n,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:c,open:p,placement:m="bottom",popperOptions:P=Co,popperRef:d,style:w,transition:u=!1,slotProps:h={},slots:x={},...S}=e,[y,f]=E.useState(!0),v=()=>{f(!1)},g=()=>{f(!0)};if(!s&&!p&&(!u||y))return null;let O;if(i)O=i;else if(o){const T=pe(o);O=T&&So(T)?xe(T).body:xe(null).body}const j=!p&&s&&(!u||y)?"none":void 0,M=u?{in:p,onEnter:v,onExited:g}:void 0;return q.jsx(To,{disablePortal:a,container:O,children:q.jsx(Mo,{anchorEl:o,direction:l,disablePortal:a,modifiers:c,ref:r,open:u?!y:p,placement:m,popperOptions:P,popperRef:d,slotProps:h,slots:x,...S,style:{position:"fixed",top:0,left:0,display:j,...w},TransitionProps:M,children:n})})}),jo=te(Do,{name:"MuiPopper",slot:"Root"})({}),Ze=E.forwardRef(function(e,r){const o=Ne(),n=Fe({props:e,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:s,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,slots:S,slotProps:y,...f}=n,v=S?.root??a?.Root,g={anchorEl:i,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,...f};return q.jsx(jo,{as:l,direction:o?"rtl":"ltr",slots:{root:v},slotProps:y??s,...g,ref:r})});function le(t){return`scale(${t}, ${t**2})`}const Lo={entering:{opacity:1,transform:le(1)},entered:{opacity:1,transform:"none"}},ie=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ce=E.forwardRef(function(e,r){const{addEndListener:o,appear:n=!0,children:i,easing:l,in:a,onEnter:s,onEntered:c,onEntering:p,onExit:m,onExited:P,onExiting:d,style:w,timeout:u="auto",TransitionComponent:h=vr,...x}=e,S=Bt(),y=E.useRef(),f=Ve(),v=E.useRef(null),g=Ht(v,be(i),r),O=A=>C=>{if(A){const R=v.current;C===void 0?A(R):A(R,C)}},j=O(p),M=O((A,C)=>{mr(A);const{duration:R,delay:H,easing:B}=Ee({style:w,timeout:u,easing:l},{mode:"enter"});let W;u==="auto"?(W=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=W):W=R,A.style.transition=[f.transitions.create("opacity",{duration:W,delay:H}),f.transitions.create("transform",{duration:ie?W:W*.666,delay:H,easing:B})].join(","),s&&s(A,C)}),T=O(c),$=O(d),k=O(A=>{const{duration:C,delay:R,easing:H}=Ee({style:w,timeout:u,easing:l},{mode:"exit"});let B;u==="auto"?(B=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=B):B=C,A.style.transition=[f.transitions.create("opacity",{duration:B,delay:R}),f.transitions.create("transform",{duration:ie?B:B*.666,delay:ie?R:R||B*.333,easing:H})].join(","),A.style.opacity=0,A.style.transform=le(.75),m&&m(A)}),D=O(P),I=A=>{u==="auto"&&S.start(y.current||0,A),o&&o(v.current,A)};return q.jsx(h,{appear:n,in:a,nodeRef:v,onEnter:M,onEntered:T,onEntering:j,onExit:k,onExited:D,onExiting:$,addEndListener:I,timeout:u==="auto"?null:u,...x,children:(A,{ownerState:C,...R})=>E.cloneElement(i,{style:{opacity:0,transform:le(.75),visibility:A==="exited"&&!a?"hidden":void 0,...Lo[A],...w,...i.props.style},ref:g,...R})})});ce&&(ce.muiSupportAuto=!0);function Bo(t){return ke("MuiTooltip",t)}const L=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function ko(t){return Math.round(t*1e5)/1e5}const Wo=t=>{const{classes:e,disableInteractive:r,arrow:o,touch:n,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",n&&"touch",`tooltipPlacement${Ie(i.split("-")[0])}`],arrow:["arrow"]};return He(l,Bo,e)},Ho=te(Ze,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(fe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${L.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${L.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),No=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${Ie(r.placement.split("-")[0])}`]]}})(fe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${L.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${L.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${L.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${L.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${ko(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Fo=te("span",{name:"MuiTooltip",slot:"Arrow"})(fe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Kt=!1;const Be=new ur;let Lt={x:0,y:0};function Jt(t,e){return(r,...o)=>{e&&e(r,...o),t(r,...o)}}const zo=E.forwardRef(function(e,r){const o=Fe({props:e,name:"MuiTooltip"}),{arrow:n=!1,children:i,classes:l,components:a={},componentsProps:s={},describeChild:c=!1,disableFocusListener:p=!1,disableHoverListener:m=!1,disableInteractive:P=!1,disableTouchListener:d=!1,enterDelay:w=100,enterNextDelay:u=0,enterTouchDelay:h=700,followCursor:x=!1,id:S,leaveDelay:y=0,leaveTouchDelay:f=1500,onClose:v,onOpen:g,open:O,placement:j="bottom",PopperComponent:M,PopperProps:T={},slotProps:$={},slots:k={},title:D,TransitionComponent:I,TransitionProps:A,...C}=o,R=E.isValidElement(i)?i:q.jsx("span",{children:i}),H=Ve(),B=Ne(),[W,dt]=E.useState(),[et,vt]=E.useState(null),K=E.useRef(!1),U=P||x,ot=Bt(),nt=Bt(),z=Bt(),mt=Bt(),[re,ht]=hr({controlled:O,default:!1,name:"Tooltip",state:"open"});let J=re;const gt=cr(S),st=E.useRef(),yt=Oe(()=>{st.current!==void 0&&(document.body.style.WebkitUserSelect=st.current,st.current=void 0),mt.clear()});E.useEffect(()=>yt,[yt]);const Tt=b=>{Be.clear(),Kt=!0,ht(!0),g&&!J&&g(b)},pt=Oe(b=>{Be.start(800+y,()=>{Kt=!1}),ht(!1),v&&J&&v(b),ot.start(H.transitions.duration.shortest,()=>{K.current=!1})}),bt=b=>{K.current&&b.type!=="touchstart"||(W&&W.removeAttribute("title"),nt.clear(),z.clear(),w||Kt&&u?nt.start(Kt?u:w,()=>{Tt(b)}):Tt(b))},Rt=b=>{nt.clear(),z.start(y,()=>{pt(b)})},[,Z]=E.useState(!1),lt=b=>{Pe(b.target)||(Z(!1),Rt(b))},At=b=>{W||dt(b.currentTarget),Pe(b.target)&&(Z(!0),bt(b))},St=b=>{K.current=!0;const it=R.props;it.onTouchStart&&it.onTouchStart(b)},$t=b=>{St(b),z.clear(),ot.clear(),yt(),st.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",mt.start(h,()=>{document.body.style.WebkitUserSelect=st.current,bt(b)})},Ut=b=>{R.props.onTouchEnd&&R.props.onTouchEnd(b),yt(),z.start(f,()=>{pt(b)})};E.useEffect(()=>{if(!J)return;function b(it){it.key==="Escape"&&pt(it)}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[pt,J]);const zt=Ht(be(R),dt,r);!D&&D!==0&&(J=!1);const wt=E.useRef(),qt=b=>{const it=R.props;it.onMouseMove&&it.onMouseMove(b),Lt={x:b.clientX,y:b.clientY},wt.current&&wt.current.update()},Ct={},oe=typeof D=="string";c?(Ct.title=!J&&oe&&!m?D:null,Ct["aria-describedby"]=J?gt:null):(Ct["aria-label"]=oe?D:null,Ct["aria-labelledby"]=J&&!oe?gt:null);const Q={...Ct,...C,...R.props,className:we(C.className,R.props.className),onTouchStart:St,ref:zt,...x?{onMouseMove:qt}:{}},Mt={};d||(Q.onTouchStart=$t,Q.onTouchEnd=Ut),m||(Q.onMouseOver=Jt(bt,Q.onMouseOver),Q.onMouseLeave=Jt(Rt,Q.onMouseLeave),U||(Mt.onMouseOver=bt,Mt.onMouseLeave=Rt)),p||(Q.onFocus=Jt(At,Q.onFocus),Q.onBlur=Jt(lt,Q.onBlur),U||(Mt.onFocus=At,Mt.onBlur=lt));const ct={...o,isRtl:B,arrow:n,disableInteractive:U,placement:j,PopperComponentProp:M,touch:K.current},Dt=typeof $.popper=="function"?$.popper(ct):$.popper,_e=E.useMemo(()=>{let b=[{name:"arrow",enabled:!!et,options:{element:et,padding:4}}];return T.popperOptions?.modifiers&&(b=b.concat(T.popperOptions.modifiers)),Dt?.popperOptions?.modifiers&&(b=b.concat(Dt.popperOptions.modifiers)),{...T.popperOptions,...Dt?.popperOptions,modifiers:b}},[et,T.popperOptions,Dt?.popperOptions]),ne=Wo(ct),tr=typeof $.transition=="function"?$.transition(ct):$.transition,Xt={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...k},slotProps:{arrow:$.arrow??s.arrow,popper:{...T,...Dt??s.popper},tooltip:$.tooltip??s.tooltip,transition:{...A,...tr??s.transition}}},[er,rr]=Yt("popper",{elementType:Ho,externalForwardedProps:Xt,ownerState:ct,className:we(ne.popper,T?.className)}),[or,nr]=Yt("transition",{elementType:ce,externalForwardedProps:Xt,ownerState:ct}),[ir,ar]=Yt("tooltip",{elementType:No,className:ne.tooltip,externalForwardedProps:Xt,ownerState:ct}),[sr,pr]=Yt("arrow",{elementType:Fo,className:ne.arrow,externalForwardedProps:Xt,ownerState:ct,ref:vt});return q.jsxs(E.Fragment,{children:[E.cloneElement(R,Q),q.jsx(er,{as:M??Ze,placement:j,anchorEl:x?{getBoundingClientRect:()=>({top:Lt.y,left:Lt.x,right:Lt.x,bottom:Lt.y,width:0,height:0})}:W,popperRef:wt,open:W?J:!1,id:gt,transition:!0,...Mt,...rr,popperOptions:_e,children:({TransitionProps:b})=>q.jsx(or,{timeout:H.transitions.duration.shorter,...b,...nr,children:q.jsxs(ir,{...ar,children:[D,n?q.jsx(sr,{...pr}):null]})})})]})}),qo=dr(q.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}));export{qo as D,ce as G,To as P,zo as T,be as g}; diff --git a/public/assets/Description-yqIIsJEy.js b/public/assets/Description-yqIIsJEy.js new file mode 100644 index 0000000..42d99a5 --- /dev/null +++ b/public/assets/Description-yqIIsJEy.js @@ -0,0 +1 @@ +import{r as E,u as Zt,N as lr,b as ke,a as We,j as q,h as He,p as Ne,d as Fe,s as te,k as cr,c as we,f as Ie,m as fe}from"./index-CuLfHvEh.js";import{u as Ht,f as xe,h as fr,j as Bt,b as Ve,a as Oe,e as Yt,T as ur,m as Pe,c as dr}from"./Layout-BwmFxbkK.js";import{T as vr,g as Ee,r as mr,u as hr}from"./utils-D0Kc04Qe.js";function Te(t,e){typeof t=="function"?t(e):t&&(t.current=e)}var N="top",Y="bottom",G="right",F="left",ue="auto",It=[N,Y,G,F],xt="start",Nt="end",gr="clippingParents",Ue="viewport",jt="popper",yr="reference",Re=It.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Nt])},[]),ze=[].concat(It,[ue]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Nt])},[]),br="beforeRead",wr="read",xr="afterRead",Or="beforeMain",Pr="main",Er="afterMain",Tr="beforeWrite",Rr="write",Ar="afterWrite",Sr=[br,wr,xr,Or,Pr,Er,Tr,Rr,Ar];function tt(t){return t?(t.nodeName||"").toLowerCase():null}function V(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=V(t).Element;return t instanceof e||t instanceof Element}function X(t){var e=V(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function de(t){if(typeof ShadowRoot>"u")return!1;var e=V(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $r(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var o=e.styles[r]||{},n=e.attributes[r]||{},i=e.elements[r];!X(i)||!tt(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(l){var a=n[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function Cr(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],i=e.attributes[o]||{},l=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:r[o]),a=l.reduce(function(s,c){return s[c]="",s},{});!X(n)||!tt(n)||(Object.assign(n.style,a),Object.keys(i).forEach(function(s){n.removeAttribute(s)}))})}}const Mr={name:"applyStyles",enabled:!0,phase:"write",fn:$r,effect:Cr,requires:["computeStyles"]};function _(t){return t.split("-")[0]}var ft=Math.max,_t=Math.min,Ot=Math.round;function ae(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qe(){return!/^((?!chrome|android).)*safari/i.test(ae())}function Pt(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&X(t)&&(n=t.offsetWidth>0&&Ot(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ot(o.height)/t.offsetHeight||1);var l=ut(t)?V(t):window,a=l.visualViewport,s=!qe()&&r,c=(o.left+(s&&a?a.offsetLeft:0))/n,p=(o.top+(s&&a?a.offsetTop:0))/i,m=o.width/n,P=o.height/i;return{width:m,height:P,top:p,right:c+m,bottom:p+P,left:c,x:c,y:p}}function ve(t){var e=Pt(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function Xe(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&de(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function rt(t){return V(t).getComputedStyle(t)}function Dr(t){return["table","td","th"].indexOf(tt(t))>=0}function at(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function ee(t){return tt(t)==="html"?t:t.assignedSlot||t.parentNode||(de(t)?t.host:null)||at(t)}function Ae(t){return!X(t)||rt(t).position==="fixed"?null:t.offsetParent}function jr(t){var e=/firefox/i.test(ae()),r=/Trident/i.test(ae());if(r&&X(t)){var o=rt(t);if(o.position==="fixed")return null}var n=ee(t);for(de(n)&&(n=n.host);X(n)&&["html","body"].indexOf(tt(n))<0;){var i=rt(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Vt(t){for(var e=V(t),r=Ae(t);r&&Dr(r)&&rt(r).position==="static";)r=Ae(r);return r&&(tt(r)==="html"||tt(r)==="body"&&rt(r).position==="static")?e:r||jr(t)||e}function me(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,r){return ft(t,_t(e,r))}function Lr(t,e,r){var o=kt(t,e,r);return o>r?r:o}function Ye(){return{top:0,right:0,bottom:0,left:0}}function Ge(t){return Object.assign({},Ye(),t)}function Ke(t,e){return e.reduce(function(r,o){return r[o]=t,r},{})}var Br=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Ge(typeof e!="number"?e:Ke(e,It))};function kr(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,a=_(r.placement),s=me(a),c=[F,G].indexOf(a)>=0,p=c?"height":"width";if(!(!i||!l)){var m=Br(n.padding,r),P=ve(i),d=s==="y"?N:F,w=s==="y"?Y:G,u=r.rects.reference[p]+r.rects.reference[s]-l[s]-r.rects.popper[p],h=l[s]-r.rects.reference[s],x=Vt(i),S=x?s==="y"?x.clientHeight||0:x.clientWidth||0:0,y=u/2-h/2,f=m[d],v=S-P[p]-m[w],g=S/2-P[p]/2+y,O=kt(f,g,v),j=s;r.modifiersData[o]=(e={},e[j]=O,e.centerOffset=O-g,e)}}function Wr(t){var e=t.state,r=t.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Xe(e.elements.popper,n)&&(e.elements.arrow=n))}const Hr={name:"arrow",enabled:!0,phase:"main",fn:kr,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(t){return t.split("-")[1]}var Nr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fr(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:Ot(r*n)/n||0,y:Ot(o*n)/n||0}}function Se(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,l=t.offsets,a=t.position,s=t.gpuAcceleration,c=t.adaptive,p=t.roundOffsets,m=t.isFixed,P=l.x,d=P===void 0?0:P,w=l.y,u=w===void 0?0:w,h=typeof p=="function"?p({x:d,y:u}):{x:d,y:u};d=h.x,u=h.y;var x=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),y=F,f=N,v=window;if(c){var g=Vt(r),O="clientHeight",j="clientWidth";if(g===V(r)&&(g=at(r),rt(g).position!=="static"&&a==="absolute"&&(O="scrollHeight",j="scrollWidth")),g=g,n===N||(n===F||n===G)&&i===Nt){f=Y;var M=m&&g===v&&v.visualViewport?v.visualViewport.height:g[O];u-=M-o.height,u*=s?1:-1}if(n===F||(n===N||n===Y)&&i===Nt){y=G;var T=m&&g===v&&v.visualViewport?v.visualViewport.width:g[j];d-=T-o.width,d*=s?1:-1}}var $=Object.assign({position:a},c&&Nr),k=p===!0?Fr({x:d,y:u},V(r)):{x:d,y:u};if(d=k.x,u=k.y,s){var D;return Object.assign({},$,(D={},D[f]=S?"0":"",D[y]=x?"0":"",D.transform=(v.devicePixelRatio||1)<=1?"translate("+d+"px, "+u+"px)":"translate3d("+d+"px, "+u+"px, 0)",D))}return Object.assign({},$,(e={},e[f]=S?u+"px":"",e[y]=x?d+"px":"",e.transform="",e))}function Ir(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=o===void 0?!0:o,i=r.adaptive,l=i===void 0?!0:i,a=r.roundOffsets,s=a===void 0?!0:a,c={placement:_(e.placement),variation:Et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Se(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Se(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Vr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ir,data:{}};var Gt={passive:!0};function Ur(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=n===void 0?!0:n,l=o.resize,a=l===void 0?!0:l,s=V(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(p){p.addEventListener("scroll",r.update,Gt)}),a&&s.addEventListener("resize",r.update,Gt),function(){i&&c.forEach(function(p){p.removeEventListener("scroll",r.update,Gt)}),a&&s.removeEventListener("resize",r.update,Gt)}}const zr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ur,data:{}};var qr={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(t){return t.replace(/left|right|bottom|top/g,function(e){return qr[e]})}var Xr={start:"end",end:"start"};function $e(t){return t.replace(/start|end/g,function(e){return Xr[e]})}function he(t){var e=V(t),r=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:r,scrollTop:o}}function ge(t){return Pt(at(t)).left+he(t).scrollLeft}function Yr(t,e){var r=V(t),o=at(t),n=r.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(n){i=n.width,l=n.height;var c=qe();(c||!c&&e==="fixed")&&(a=n.offsetLeft,s=n.offsetTop)}return{width:i,height:l,x:a+ge(t),y:s}}function Gr(t){var e,r=at(t),o=he(t),n=(e=t.ownerDocument)==null?void 0:e.body,i=ft(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=ft(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+ge(t),s=-o.scrollTop;return rt(n||r).direction==="rtl"&&(a+=ft(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function ye(t){var e=rt(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Je(t){return["html","body","#document"].indexOf(tt(t))>=0?t.ownerDocument.body:X(t)&&ye(t)?t:Je(ee(t))}function Wt(t,e){var r;e===void 0&&(e=[]);var o=Je(t),n=o===((r=t.ownerDocument)==null?void 0:r.body),i=V(o),l=n?[i].concat(i.visualViewport||[],ye(o)?o:[]):o,a=e.concat(l);return n?a:a.concat(Wt(ee(l)))}function se(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kr(t,e){var r=Pt(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ce(t,e,r){return e===Ue?se(Yr(t,r)):ut(e)?Kr(e,r):se(Gr(at(t)))}function Jr(t){var e=Wt(ee(t)),r=["absolute","fixed"].indexOf(rt(t).position)>=0,o=r&&X(t)?Vt(t):t;return ut(o)?e.filter(function(n){return ut(n)&&Xe(n,o)&&tt(n)!=="body"}):[]}function Qr(t,e,r,o){var n=e==="clippingParents"?Jr(t):[].concat(e),i=[].concat(n,[r]),l=i[0],a=i.reduce(function(s,c){var p=Ce(t,c,o);return s.top=ft(p.top,s.top),s.right=_t(p.right,s.right),s.bottom=_t(p.bottom,s.bottom),s.left=ft(p.left,s.left),s},Ce(t,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Qe(t){var e=t.reference,r=t.element,o=t.placement,n=o?_(o):null,i=o?Et(o):null,l=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,s;switch(n){case N:s={x:l,y:e.y-r.height};break;case Y:s={x:l,y:e.y+e.height};break;case G:s={x:e.x+e.width,y:a};break;case F:s={x:e.x-r.width,y:a};break;default:s={x:e.x,y:e.y}}var c=n?me(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(i){case xt:s[c]=s[c]-(e[p]/2-r[p]/2);break;case Nt:s[c]=s[c]+(e[p]/2-r[p]/2);break}}return s}function Ft(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=o===void 0?t.placement:o,i=r.strategy,l=i===void 0?t.strategy:i,a=r.boundary,s=a===void 0?gr:a,c=r.rootBoundary,p=c===void 0?Ue:c,m=r.elementContext,P=m===void 0?jt:m,d=r.altBoundary,w=d===void 0?!1:d,u=r.padding,h=u===void 0?0:u,x=Ge(typeof h!="number"?h:Ke(h,It)),S=P===jt?yr:jt,y=t.rects.popper,f=t.elements[w?S:P],v=Qr(ut(f)?f:f.contextElement||at(t.elements.popper),s,p,l),g=Pt(t.elements.reference),O=Qe({reference:g,element:y,placement:n}),j=se(Object.assign({},y,O)),M=P===jt?j:g,T={top:v.top-M.top+x.top,bottom:M.bottom-v.bottom+x.bottom,left:v.left-M.left+x.left,right:M.right-v.right+x.right},$=t.modifiersData.offset;if(P===jt&&$){var k=$[n];Object.keys(T).forEach(function(D){var I=[G,Y].indexOf(D)>=0?1:-1,A=[N,Y].indexOf(D)>=0?"y":"x";T[D]+=k[A]*I})}return T}function Zr(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,l=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?ze:s,p=Et(o),m=p?a?Re:Re.filter(function(w){return Et(w)===p}):It,P=m.filter(function(w){return c.indexOf(w)>=0});P.length===0&&(P=m);var d=P.reduce(function(w,u){return w[u]=Ft(t,{placement:u,boundary:n,rootBoundary:i,padding:l})[_(u)],w},{});return Object.keys(d).sort(function(w,u){return d[w]-d[u]})}function _r(t){if(_(t)===ue)return[];var e=Qt(t);return[$e(t),e,$e(e)]}function to(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!0:l,s=r.fallbackPlacements,c=r.padding,p=r.boundary,m=r.rootBoundary,P=r.altBoundary,d=r.flipVariations,w=d===void 0?!0:d,u=r.allowedAutoPlacements,h=e.options.placement,x=_(h),S=x===h,y=s||(S||!w?[Qt(h)]:_r(h)),f=[h].concat(y).reduce(function(K,U){return K.concat(_(U)===ue?Zr(e,{placement:U,boundary:p,rootBoundary:m,padding:c,flipVariations:w,allowedAutoPlacements:u}):U)},[]),v=e.rects.reference,g=e.rects.popper,O=new Map,j=!0,M=f[0],T=0;T=0,A=I?"width":"height",C=Ft(e,{placement:$,boundary:p,rootBoundary:m,altBoundary:P,padding:c}),R=I?D?G:F:D?Y:N;v[A]>g[A]&&(R=Qt(R));var H=Qt(R),B=[];if(i&&B.push(C[k]<=0),a&&B.push(C[R]<=0,C[H]<=0),B.every(function(K){return K})){M=$,j=!1;break}O.set($,B)}if(j)for(var W=w?3:1,dt=function(U){var ot=f.find(function(nt){var z=O.get(nt);if(z)return z.slice(0,U).every(function(mt){return mt})});if(ot)return M=ot,"break"},et=W;et>0;et--){var vt=dt(et);if(vt==="break")break}e.placement!==M&&(e.modifiersData[o]._skip=!0,e.placement=M,e.reset=!0)}}const eo={name:"flip",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"],data:{_skip:!1}};function Me(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function De(t){return[N,G,Y,F].some(function(e){return t[e]>=0})}function ro(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,l=Ft(e,{elementContext:"reference"}),a=Ft(e,{altBoundary:!0}),s=Me(l,o),c=Me(a,n,i),p=De(s),m=De(c);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const oo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ro};function no(t,e,r){var o=_(t),n=[F,N].indexOf(o)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=i[0],a=i[1];return l=l||0,a=(a||0)*n,[F,G].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}function io(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=n===void 0?[0,0]:n,l=ze.reduce(function(p,m){return p[m]=no(m,e.rects,i),p},{}),a=l[e.placement],s=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=l}const ao={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:io};function so(t){var e=t.state,r=t.name;e.modifiersData[r]=Qe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const po={name:"popperOffsets",enabled:!0,phase:"read",fn:so,data:{}};function lo(t){return t==="x"?"y":"x"}function co(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=n===void 0?!0:n,l=r.altAxis,a=l===void 0?!1:l,s=r.boundary,c=r.rootBoundary,p=r.altBoundary,m=r.padding,P=r.tether,d=P===void 0?!0:P,w=r.tetherOffset,u=w===void 0?0:w,h=Ft(e,{boundary:s,rootBoundary:c,padding:m,altBoundary:p}),x=_(e.placement),S=Et(e.placement),y=!S,f=me(x),v=lo(f),g=e.modifiersData.popperOffsets,O=e.rects.reference,j=e.rects.popper,M=typeof u=="function"?u(Object.assign({},e.rects,{placement:e.placement})):u,T=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(g){if(i){var D,I=f==="y"?N:F,A=f==="y"?Y:G,C=f==="y"?"height":"width",R=g[f],H=R+h[I],B=R-h[A],W=d?-j[C]/2:0,dt=S===xt?O[C]:j[C],et=S===xt?-j[C]:-O[C],vt=e.elements.arrow,K=d&&vt?ve(vt):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ye(),ot=U[I],nt=U[A],z=kt(0,O[C],K[C]),mt=y?O[C]/2-W-z-ot-T.mainAxis:dt-z-ot-T.mainAxis,re=y?-O[C]/2+W+z+nt+T.mainAxis:et+z+nt+T.mainAxis,ht=e.elements.arrow&&Vt(e.elements.arrow),J=ht?f==="y"?ht.clientTop||0:ht.clientLeft||0:0,gt=(D=$?.[f])!=null?D:0,st=R+mt-gt-J,yt=R+re-gt,Tt=kt(d?_t(H,st):H,R,d?ft(B,yt):B);g[f]=Tt,k[f]=Tt-R}if(a){var pt,bt=f==="x"?N:F,Rt=f==="x"?Y:G,Z=g[v],lt=v==="y"?"height":"width",At=Z+h[bt],St=Z-h[Rt],$t=[N,F].indexOf(x)!==-1,Ut=(pt=$?.[v])!=null?pt:0,zt=$t?At:Z-O[lt]-j[lt]-Ut+T.altAxis,wt=$t?Z+O[lt]+j[lt]-Ut-T.altAxis:St,qt=d&&$t?Lr(zt,Z,wt):kt(d?zt:At,Z,d?wt:St);g[v]=qt,k[v]=qt-Z}e.modifiersData[o]=k}}const fo={name:"preventOverflow",enabled:!0,phase:"main",fn:co,requiresIfExists:["offset"]};function uo(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vo(t){return t===V(t)||!X(t)?he(t):uo(t)}function mo(t){var e=t.getBoundingClientRect(),r=Ot(e.width)/t.offsetWidth||1,o=Ot(e.height)/t.offsetHeight||1;return r!==1||o!==1}function ho(t,e,r){r===void 0&&(r=!1);var o=X(e),n=X(e)&&mo(e),i=at(e),l=Pt(t,n,r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!r)&&((tt(e)!=="body"||ye(i))&&(a=vo(e)),X(e)?(s=Pt(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):i&&(s.x=ge(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function go(t){var e=new Map,r=new Set,o=[];t.forEach(function(i){e.set(i.name,i)});function n(i){r.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!r.has(a)){var s=e.get(a);s&&n(s)}}),o.push(i)}return t.forEach(function(i){r.has(i.name)||n(i)}),o}function yo(t){var e=go(t);return Sr.reduce(function(r,o){return r.concat(e.filter(function(n){return n.phase===o}))},[])}function bo(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function wo(t){var e=t.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(e).map(function(r){return e[r]})}var je={placement:"bottom",modifiers:[],strategy:"absolute"};function Le(){for(var t=arguments.length,e=new Array(t),r=0;r=19?t?.props?.ref||null:t?.ref||null}function Eo(t){return typeof t=="function"?t():t}const To=E.forwardRef(function(e,r){const{children:o,container:n,disablePortal:i=!1}=e,[l,a]=E.useState(null),s=Ht(E.isValidElement(o)?be(o):null,r);if(Zt(()=>{i||a(Eo(n)||document.body)},[n,i]),Zt(()=>{if(l&&!i)return Te(r,l),()=>{Te(r,null)}},[r,l,i]),i){if(E.isValidElement(o)){const c={ref:s};return E.cloneElement(o,c)}return o}return l&&lr.createPortal(o,l)});function Ro(t){return ke("MuiPopper",t)}We("MuiPopper",["root"]);function Ao(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function pe(t){return typeof t=="function"?t():t}function So(t){return t.nodeType!==void 0}const $o=t=>{const{classes:e}=t;return He({root:["root"]},Ro,e)},Co={},Mo=E.forwardRef(function(e,r){const{anchorEl:o,children:n,direction:i,disablePortal:l,modifiers:a,open:s,placement:c,popperOptions:p,popperRef:m,slotProps:P={},slots:d={},TransitionProps:w,ownerState:u,...h}=e,x=E.useRef(null),S=Ht(x,r),y=E.useRef(null),f=Ht(y,m),v=E.useRef(f);Zt(()=>{v.current=f},[f]),E.useImperativeHandle(m,()=>y.current,[]);const g=Ao(c,i),[O,j]=E.useState(g),[M,T]=E.useState(pe(o));E.useEffect(()=>{y.current&&y.current.forceUpdate()}),E.useEffect(()=>{o&&T(pe(o))},[o]),Zt(()=>{if(!M||!s)return;const A=H=>{j(H.placement)};let C=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{A(H)}}];a!=null&&(C=C.concat(a)),p&&p.modifiers!=null&&(C=C.concat(p.modifiers));const R=Po(M,x.current,{placement:g,...p,modifiers:C});return v.current(R),()=>{R.destroy(),v.current(null)}},[M,l,a,s,p,g]);const $={placement:O};w!==null&&($.TransitionProps=w);const k=$o(e),D=d.root??"div",I=fr({elementType:D,externalSlotProps:P.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:k.root});return q.jsx(D,{...I,children:typeof n=="function"?n($):n})}),Do=E.forwardRef(function(e,r){const{anchorEl:o,children:n,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:c,open:p,placement:m="bottom",popperOptions:P=Co,popperRef:d,style:w,transition:u=!1,slotProps:h={},slots:x={},...S}=e,[y,f]=E.useState(!0),v=()=>{f(!1)},g=()=>{f(!0)};if(!s&&!p&&(!u||y))return null;let O;if(i)O=i;else if(o){const T=pe(o);O=T&&So(T)?xe(T).body:xe(null).body}const j=!p&&s&&(!u||y)?"none":void 0,M=u?{in:p,onEnter:v,onExited:g}:void 0;return q.jsx(To,{disablePortal:a,container:O,children:q.jsx(Mo,{anchorEl:o,direction:l,disablePortal:a,modifiers:c,ref:r,open:u?!y:p,placement:m,popperOptions:P,popperRef:d,slotProps:h,slots:x,...S,style:{position:"fixed",top:0,left:0,display:j,...w},TransitionProps:M,children:n})})}),jo=te(Do,{name:"MuiPopper",slot:"Root"})({}),Ze=E.forwardRef(function(e,r){const o=Ne(),n=Fe({props:e,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:s,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,slots:S,slotProps:y,...f}=n,v=S?.root??a?.Root,g={anchorEl:i,container:c,disablePortal:p,keepMounted:m,modifiers:P,open:d,placement:w,popperOptions:u,popperRef:h,transition:x,...f};return q.jsx(jo,{as:l,direction:o?"rtl":"ltr",slots:{root:v},slotProps:y??s,...g,ref:r})});function le(t){return`scale(${t}, ${t**2})`}const Lo={entering:{opacity:1,transform:le(1)},entered:{opacity:1,transform:"none"}},ie=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ce=E.forwardRef(function(e,r){const{addEndListener:o,appear:n=!0,children:i,easing:l,in:a,onEnter:s,onEntered:c,onEntering:p,onExit:m,onExited:P,onExiting:d,style:w,timeout:u="auto",TransitionComponent:h=vr,...x}=e,S=Bt(),y=E.useRef(),f=Ve(),v=E.useRef(null),g=Ht(v,be(i),r),O=A=>C=>{if(A){const R=v.current;C===void 0?A(R):A(R,C)}},j=O(p),M=O((A,C)=>{mr(A);const{duration:R,delay:H,easing:B}=Ee({style:w,timeout:u,easing:l},{mode:"enter"});let W;u==="auto"?(W=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=W):W=R,A.style.transition=[f.transitions.create("opacity",{duration:W,delay:H}),f.transitions.create("transform",{duration:ie?W:W*.666,delay:H,easing:B})].join(","),s&&s(A,C)}),T=O(c),$=O(d),k=O(A=>{const{duration:C,delay:R,easing:H}=Ee({style:w,timeout:u,easing:l},{mode:"exit"});let B;u==="auto"?(B=f.transitions.getAutoHeightDuration(A.clientHeight),y.current=B):B=C,A.style.transition=[f.transitions.create("opacity",{duration:B,delay:R}),f.transitions.create("transform",{duration:ie?B:B*.666,delay:ie?R:R||B*.333,easing:H})].join(","),A.style.opacity=0,A.style.transform=le(.75),m&&m(A)}),D=O(P),I=A=>{u==="auto"&&S.start(y.current||0,A),o&&o(v.current,A)};return q.jsx(h,{appear:n,in:a,nodeRef:v,onEnter:M,onEntered:T,onEntering:j,onExit:k,onExited:D,onExiting:$,addEndListener:I,timeout:u==="auto"?null:u,...x,children:(A,{ownerState:C,...R})=>E.cloneElement(i,{style:{opacity:0,transform:le(.75),visibility:A==="exited"&&!a?"hidden":void 0,...Lo[A],...w,...i.props.style},ref:g,...R})})});ce&&(ce.muiSupportAuto=!0);function Bo(t){return ke("MuiTooltip",t)}const L=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function ko(t){return Math.round(t*1e5)/1e5}const Wo=t=>{const{classes:e,disableInteractive:r,arrow:o,touch:n,placement:i}=t,l={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",n&&"touch",`tooltipPlacement${Ie(i.split("-")[0])}`],arrow:["arrow"]};return He(l,Bo,e)},Ho=te(Ze,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(fe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${L.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${L.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${L.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${L.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),No=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${Ie(r.placement.split("-")[0])}`]]}})(fe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${L.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${L.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${L.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${L.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${ko(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${L.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${L.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${L.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Fo=te("span",{name:"MuiTooltip",slot:"Arrow"})(fe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Kt=!1;const Be=new ur;let Lt={x:0,y:0};function Jt(t,e){return(r,...o)=>{e&&e(r,...o),t(r,...o)}}const zo=E.forwardRef(function(e,r){const o=Fe({props:e,name:"MuiTooltip"}),{arrow:n=!1,children:i,classes:l,components:a={},componentsProps:s={},describeChild:c=!1,disableFocusListener:p=!1,disableHoverListener:m=!1,disableInteractive:P=!1,disableTouchListener:d=!1,enterDelay:w=100,enterNextDelay:u=0,enterTouchDelay:h=700,followCursor:x=!1,id:S,leaveDelay:y=0,leaveTouchDelay:f=1500,onClose:v,onOpen:g,open:O,placement:j="bottom",PopperComponent:M,PopperProps:T={},slotProps:$={},slots:k={},title:D,TransitionComponent:I,TransitionProps:A,...C}=o,R=E.isValidElement(i)?i:q.jsx("span",{children:i}),H=Ve(),B=Ne(),[W,dt]=E.useState(),[et,vt]=E.useState(null),K=E.useRef(!1),U=P||x,ot=Bt(),nt=Bt(),z=Bt(),mt=Bt(),[re,ht]=hr({controlled:O,default:!1,name:"Tooltip",state:"open"});let J=re;const gt=cr(S),st=E.useRef(),yt=Oe(()=>{st.current!==void 0&&(document.body.style.WebkitUserSelect=st.current,st.current=void 0),mt.clear()});E.useEffect(()=>yt,[yt]);const Tt=b=>{Be.clear(),Kt=!0,ht(!0),g&&!J&&g(b)},pt=Oe(b=>{Be.start(800+y,()=>{Kt=!1}),ht(!1),v&&J&&v(b),ot.start(H.transitions.duration.shortest,()=>{K.current=!1})}),bt=b=>{K.current&&b.type!=="touchstart"||(W&&W.removeAttribute("title"),nt.clear(),z.clear(),w||Kt&&u?nt.start(Kt?u:w,()=>{Tt(b)}):Tt(b))},Rt=b=>{nt.clear(),z.start(y,()=>{pt(b)})},[,Z]=E.useState(!1),lt=b=>{Pe(b.target)||(Z(!1),Rt(b))},At=b=>{W||dt(b.currentTarget),Pe(b.target)&&(Z(!0),bt(b))},St=b=>{K.current=!0;const it=R.props;it.onTouchStart&&it.onTouchStart(b)},$t=b=>{St(b),z.clear(),ot.clear(),yt(),st.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",mt.start(h,()=>{document.body.style.WebkitUserSelect=st.current,bt(b)})},Ut=b=>{R.props.onTouchEnd&&R.props.onTouchEnd(b),yt(),z.start(f,()=>{pt(b)})};E.useEffect(()=>{if(!J)return;function b(it){it.key==="Escape"&&pt(it)}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[pt,J]);const zt=Ht(be(R),dt,r);!D&&D!==0&&(J=!1);const wt=E.useRef(),qt=b=>{const it=R.props;it.onMouseMove&&it.onMouseMove(b),Lt={x:b.clientX,y:b.clientY},wt.current&&wt.current.update()},Ct={},oe=typeof D=="string";c?(Ct.title=!J&&oe&&!m?D:null,Ct["aria-describedby"]=J?gt:null):(Ct["aria-label"]=oe?D:null,Ct["aria-labelledby"]=J&&!oe?gt:null);const Q={...Ct,...C,...R.props,className:we(C.className,R.props.className),onTouchStart:St,ref:zt,...x?{onMouseMove:qt}:{}},Mt={};d||(Q.onTouchStart=$t,Q.onTouchEnd=Ut),m||(Q.onMouseOver=Jt(bt,Q.onMouseOver),Q.onMouseLeave=Jt(Rt,Q.onMouseLeave),U||(Mt.onMouseOver=bt,Mt.onMouseLeave=Rt)),p||(Q.onFocus=Jt(At,Q.onFocus),Q.onBlur=Jt(lt,Q.onBlur),U||(Mt.onFocus=At,Mt.onBlur=lt));const ct={...o,isRtl:B,arrow:n,disableInteractive:U,placement:j,PopperComponentProp:M,touch:K.current},Dt=typeof $.popper=="function"?$.popper(ct):$.popper,_e=E.useMemo(()=>{let b=[{name:"arrow",enabled:!!et,options:{element:et,padding:4}}];return T.popperOptions?.modifiers&&(b=b.concat(T.popperOptions.modifiers)),Dt?.popperOptions?.modifiers&&(b=b.concat(Dt.popperOptions.modifiers)),{...T.popperOptions,...Dt?.popperOptions,modifiers:b}},[et,T.popperOptions,Dt?.popperOptions]),ne=Wo(ct),tr=typeof $.transition=="function"?$.transition(ct):$.transition,Xt={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...k},slotProps:{arrow:$.arrow??s.arrow,popper:{...T,...Dt??s.popper},tooltip:$.tooltip??s.tooltip,transition:{...A,...tr??s.transition}}},[er,rr]=Yt("popper",{elementType:Ho,externalForwardedProps:Xt,ownerState:ct,className:we(ne.popper,T?.className)}),[or,nr]=Yt("transition",{elementType:ce,externalForwardedProps:Xt,ownerState:ct}),[ir,ar]=Yt("tooltip",{elementType:No,className:ne.tooltip,externalForwardedProps:Xt,ownerState:ct}),[sr,pr]=Yt("arrow",{elementType:Fo,className:ne.arrow,externalForwardedProps:Xt,ownerState:ct,ref:vt});return q.jsxs(E.Fragment,{children:[E.cloneElement(R,Q),q.jsx(er,{as:M??Ze,placement:j,anchorEl:x?{getBoundingClientRect:()=>({top:Lt.y,left:Lt.x,right:Lt.x,bottom:Lt.y,width:0,height:0})}:W,popperRef:wt,open:W?J:!1,id:gt,transition:!0,...Mt,...rr,popperOptions:_e,children:({TransitionProps:b})=>q.jsx(or,{timeout:H.transitions.duration.shorter,...b,...nr,children:q.jsxs(ir,{...ar,children:[D,n?q.jsx(sr,{...pr}):null]})})})]})}),qo=dr(q.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}));export{qo as D,ce as G,To as P,zo as T,be as g}; diff --git a/public/assets/Error-BFlYSo8E.js b/public/assets/Error-BFlYSo8E.js new file mode 100644 index 0000000..1214f3b --- /dev/null +++ b/public/assets/Error-BFlYSo8E.js @@ -0,0 +1 @@ +import{j as s}from"./index-BkuOAsyQ.js";import{c as r}from"./Layout-HUfQIbZm.js";const m=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),a=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}));export{m as C,a as E}; diff --git a/public/assets/Error-BbVVlYbr.js b/public/assets/Error-BbVVlYbr.js new file mode 100644 index 0000000..6a45e3d --- /dev/null +++ b/public/assets/Error-BbVVlYbr.js @@ -0,0 +1 @@ +import{j as s}from"./index-ChSrE95j.js";import{c as r}from"./Layout-EP4xiiHA.js";const m=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),a=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}));export{m as C,a as E}; diff --git a/public/assets/Error-CPa74s6I.js b/public/assets/Error-CPa74s6I.js new file mode 100644 index 0000000..237f1bf --- /dev/null +++ b/public/assets/Error-CPa74s6I.js @@ -0,0 +1 @@ +import{j as s}from"./index-CedKFzDs.js";import{c as r}from"./Layout-D-i60CyA.js";const m=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),a=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}));export{m as C,a as E}; diff --git a/public/assets/Error-CwTwgto-.js b/public/assets/Error-CwTwgto-.js new file mode 100644 index 0000000..3d862ad --- /dev/null +++ b/public/assets/Error-CwTwgto-.js @@ -0,0 +1 @@ +import{j as s}from"./index-CuLfHvEh.js";import{c as r}from"./Layout-BwmFxbkK.js";const m=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),a=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}));export{m as C,a as E}; diff --git a/public/assets/Error-DWv7Y7dl.js b/public/assets/Error-DWv7Y7dl.js new file mode 100644 index 0000000..e132126 --- /dev/null +++ b/public/assets/Error-DWv7Y7dl.js @@ -0,0 +1 @@ +import{j as s}from"./index-wde0U4qL.js";import{c as r}from"./Layout-aWSA1CnN.js";const m=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),a=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}));export{m as C,a as E}; diff --git a/public/assets/Error-KwpHlgI1.js b/public/assets/Error-KwpHlgI1.js new file mode 100644 index 0000000..0ea4d2f --- /dev/null +++ b/public/assets/Error-KwpHlgI1.js @@ -0,0 +1 @@ +import{j as s}from"./index-DwyPw-ga.js";import{c as r}from"./Layout-BXCKqMhs.js";const m=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),a=r(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}));export{m as C,a as E}; diff --git a/public/assets/ExtractionView-BJuD0PBg.js b/public/assets/ExtractionView-BJuD0PBg.js new file mode 100644 index 0000000..c9fd3ee --- /dev/null +++ b/public/assets/ExtractionView-BJuD0PBg.js @@ -0,0 +1 @@ +import{r as v,d as D,u as P,j as e,s as O,c as E,h as G,n as q,m as K,x as U,y as H,B as l,D as J,T as d,K as Q,L as X,z as k,C as R,M as Y}from"./index-CuLfHvEh.js";import{u as Z,l as _,c as S,L as w,A as M,B as h,C as m,k as C,P as ee}from"./Layout-BwmFxbkK.js";import{T as N,D as se}from"./Description-yqIIsJEy.js";import{C as f}from"./CardContent-DBMk6lgw.js";import{c as F,g as te,l as b,L as I,b as ae,a as z}from"./ListItemText-CTwsrdAB.js";import{A as ie}from"./Assessment-EcI9uxgO.js";import{L as ne,B as re,A as le,a as oe,E as de,b as ce}from"./LocationOn-BJaJHvbZ.js";import"./utils-D0Kc04Qe.js";const xe=(t,n)=>{const{ownerState:x}=t;return[n.root,x.dense&&n.dense,x.alignItems==="flex-start"&&n.alignItemsFlexStart,x.divider&&n.divider,!x.disableGutters&&n.gutters]},pe=t=>{const{alignItems:n,classes:x,dense:g,disabled:o,disableGutters:p,divider:j,selected:y}=t,c=G({root:["root",g&&"dense",!p&&"gutters",j&&"divider",o&&"disabled",n==="flex-start"&&"alignItemsFlexStart",y&&"selected"]},te,x);return{...x,...c}},ue=O(_,{shouldForwardProp:t=>q(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:xe})(K(({theme:t})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${b.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${b.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}},[`&.${b.selected}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},[`&.${b.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${b.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:({ownerState:n})=>n.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:n})=>!n.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:n})=>n.dense,style:{paddingTop:4,paddingBottom:4}}]}))),he=v.forwardRef(function(n,x){const g=D({props:n,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:p=!1,component:j="div",children:y,dense:u=!1,disableGutters:c=!1,divider:$=!1,focusVisibleClassName:a,selected:s=!1,className:i,...r}=g,A=v.useContext(F),V=v.useMemo(()=>({dense:u||A.dense||!1,alignItems:o,disableGutters:c}),[o,A.dense,u,c]),B=v.useRef(null);P(()=>{p&&B.current&&B.current.focus()},[p]);const T={...g,alignItems:o,dense:V.dense,disableGutters:c,divider:$,selected:s},L=pe(T),W=Z(B,x);return e.jsx(F.Provider,{value:V,children:e.jsx(ue,{ref:W,href:r.href||r.to,component:(r.href||r.to)&&j==="div"?"button":j,focusVisibleClassName:E(L.focusVisible,a),ownerState:T,className:E(L.root,i),...r,classes:L,children:y})})}),me=S(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"})),fe=S(e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),ge=S(e.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"})),je=S(e.jsx("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}));function Be(){const t=U(),{folderResults:n,currentResultIndex:x,loading:g}=H(s=>s.document),{currentFolderHash:o}=H(s=>s.document),[p,j]=v.useState(x),y=n[p],[u,c]=v.useState(null),$=s=>{s>=0&&s.",children:e.jsx("span",{children:e.jsx(h,{variant:"contained",color:"primary",disabled:!o,onClick:async()=>{if(o)try{const s=await Q(o),i=await X(o);alert(`Cache vidé (${s.removed} éléments). Re-traitement lancé (${i.scheduled} fichiers).`)}catch(s){alert(`Erreur lors du re-traitement: ${s?.message||s}`)}},children:"Re-traiter le dossier"})})})})]}),e.jsxs(l,{sx:{display:"flex",gap:3},children:[e.jsx(m,{sx:{flex:"0 0 320px",maxHeight:"70vh",overflow:"auto"},children:e.jsx(f,{sx:{p:0},children:e.jsx(I,{dense:!0,disablePadding:!0,children:n.map((s,i)=>e.jsx(he,{selected:i===p,onClick:()=>$(i),children:e.jsx(N,{title:s.document.fileName,placement:"right",children:e.jsx(ae,{primaryTypographyProps:{sx:{display:"block",maxWidth:260,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},primary:s.document.fileName,secondary:new Date(s.document.uploadTimestamp).toLocaleString()})})},s.fileHash))})})}),e.jsxs(l,{sx:{flex:"1 1 auto",minWidth:0},children:[e.jsx(m,{sx:{mb:3},children:e.jsxs(f,{children:[e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:2,mb:2},children:[e.jsx(se,{color:"primary"}),e.jsx(d,{variant:"h6",children:a.document.fileName}),e.jsx(C,{label:a.document.mimeType,size:"small",variant:"outlined"}),e.jsx(C,{label:`${(a.document.fileSize/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"})]}),e.jsxs(l,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(C,{icon:e.jsx(me,{}),label:`Langue: ${a.classification.language}`,color:"info",variant:"outlined"}),e.jsx(C,{icon:e.jsx(je,{}),label:`Type: ${a.classification.documentType}`,color:"success",variant:"outlined"}),e.jsx(C,{icon:e.jsx(ie,{}),label:`Confiance: ${(a.metadata.quality.globalConfidence*100).toFixed(1)}%`,color:a.metadata.quality.globalConfidence>.8?"success":"warning",variant:"outlined"})]})]})}),e.jsx(m,{sx:{mb:3},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(ge,{sx:{mr:1,verticalAlign:"middle"}}),"Texte extrait"]}),e.jsx(ee,{sx:{p:2,bgcolor:"grey.50",maxHeight:300,overflow:"auto"},children:e.jsx(d,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:a.extraction.text.raw})})]})}),e.jsxs(l,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[a.extraction.entities.persons.length>0&&e.jsx(m,{sx:{flex:"1 1 300px"},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(fe,{sx:{mr:1,verticalAlign:"middle"}}),"Personnes (",a.extraction.entities.persons.length,")"]}),e.jsx(I,{dense:!0,children:a.extraction.entities.persons.map((s,i)=>e.jsx(z,{disableGutters:!0,sx:{py:.5},children:e.jsxs(l,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,width:"100%",flexWrap:"wrap"},children:[e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flex:"1 1 auto",minWidth:0},children:[e.jsx("input",{style:{padding:4,width:140},defaultValue:s.firstName,onChange:r=>s.firstName=r.target.value}),e.jsx("input",{style:{padding:4,width:160},defaultValue:s.lastName,onChange:r=>s.lastName=r.target.value})]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0,whiteSpace:"nowrap"},children:[e.jsx(h,{size:"small",variant:"outlined",disabled:u===`p-${i}`,onClick:async()=>{try{c(`p-${i}`),await k(o,a.fileHash,"person",{index:i,id:s.id,patch:{firstName:s.firstName,lastName:s.lastName}})}finally{c(null)}},children:"Enregistrer"}),e.jsx(h,{size:"small",color:"error",onClick:async()=>{await R(o,a.fileHash,"person",{index:i,id:s.id})},children:"Supprimer"})]})]})},`p-${i}`))})]})}),a.extraction.entities.addresses.length>0&&e.jsx(m,{sx:{flex:"1 1 300px"},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(ne,{sx:{mr:1,verticalAlign:"middle"}}),"Adresses (",a.extraction.entities.addresses.length,")"]}),e.jsx(I,{dense:!0,children:a.extraction.entities.addresses.map((s,i)=>e.jsx(z,{disableGutters:!0,sx:{py:.5},children:e.jsxs(l,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,width:"100%",flexWrap:"wrap"},children:[e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flex:"1 1 auto",minWidth:0,flexWrap:"wrap"},children:[e.jsx("input",{style:{padding:4,width:240},defaultValue:s.street,onChange:r=>s.street=r.target.value}),e.jsx("input",{style:{padding:4,width:100},defaultValue:s.postalCode,onChange:r=>s.postalCode=r.target.value}),e.jsx("input",{style:{padding:4,width:180},defaultValue:s.city,onChange:r=>s.city=r.target.value}),e.jsx("input",{style:{padding:4,width:140},defaultValue:s.country||"",onChange:r=>s.country=r.target.value})]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0,whiteSpace:"nowrap"},children:[e.jsx(h,{size:"small",variant:"outlined",disabled:u===`a-${i}`,onClick:async()=>{try{c(`a-${i}`),await k(o,a.fileHash,"address",{index:i,id:s.id,patch:{street:s.street,city:s.city,postalCode:s.postalCode,country:s.country}})}finally{c(null)}},children:"Enregistrer"}),e.jsx(h,{size:"small",color:"error",onClick:async()=>{await R(o,a.fileHash,"address",{index:i,id:s.id})},children:"Supprimer"})]})]})},`a-${i}`))})]})}),a.extraction.entities.companies.length>0&&e.jsx(m,{sx:{flex:"1 1 300px"},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(re,{sx:{mr:1,verticalAlign:"middle"}}),"Entreprises (",a.extraction.entities.companies.length,")"]}),e.jsx(I,{dense:!0,children:a.extraction.entities.companies.map((s,i)=>e.jsx(z,{disableGutters:!0,sx:{py:.5},children:e.jsxs(l,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,width:"100%",flexWrap:"wrap"},children:[e.jsx(l,{sx:{display:"flex",alignItems:"center",gap:1,flex:"1 1 auto",minWidth:0},children:e.jsx("input",{style:{padding:4,width:300},defaultValue:s.name,onChange:r=>s.name=r.target.value})}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0,whiteSpace:"nowrap"},children:[e.jsx(h,{size:"small",variant:"outlined",disabled:u===`c-${i}`,onClick:async()=>{try{c(`c-${i}`),await k(o,a.fileHash,"company",{index:i,id:s.id,patch:{name:s.name}})}finally{c(null)}},children:"Enregistrer"}),e.jsx(h,{size:"small",color:"error",onClick:async()=>{await R(o,a.fileHash,"company",{index:i,id:s.id})},children:"Supprimer"})]})]})},`c-${i}`))})]})})]}),e.jsx(m,{sx:{mt:3},children:e.jsxs(f,{children:[e.jsx(d,{variant:"h6",gutterBottom:!0,children:"Métadonnées détaillées"}),e.jsxs(le,{children:[e.jsx(oe,{expandIcon:e.jsx(de,{}),children:e.jsx(d,{children:"Informations de traitement"})}),e.jsx(ce,{children:e.jsxs(l,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsxs(d,{variant:"body2",children:[e.jsx("strong",{children:"Hash du fichier:"})," ",a.fileHash]}),e.jsxs(d,{variant:"body2",children:[e.jsx("strong",{children:"Timestamp:"})," ",new Date(a.status.timestamp).toLocaleString()]}),e.jsxs(d,{variant:"body2",children:[e.jsx("strong",{children:"Confiance globale:"})," ",(a.metadata.quality.globalConfidence*100).toFixed(1),"%"]})]})})]})]})})]})]})]})}export{Be as default}; diff --git a/public/assets/ExtractionView-BRvVO-MB.js b/public/assets/ExtractionView-BRvVO-MB.js new file mode 100644 index 0000000..638f2f5 --- /dev/null +++ b/public/assets/ExtractionView-BRvVO-MB.js @@ -0,0 +1 @@ +import{r as v,d as W,u as F,j as e,s as O,c as T,h as G,n as q,m as K,x as U,y as E,B as l,D as J,T as d,K as Q,L as X,z as k,C as R,M as Y}from"./index-BkuOAsyQ.js";import{u as Z,l as _,c as S,L as w,A as H,B as h,C as m,k as C,P as ee}from"./Layout-HUfQIbZm.js";import{T as M,D as se}from"./Description-rLhKmJBh.js";import{C as f}from"./CardContent-D_m--IFw.js";import{c as D,g as te,l as b,L as I,b as ae,a as V}from"./ListItemText-siZDedtT.js";import{A as ie}from"./Assessment-CaixQ7iY.js";import{L as ne,B as re,A as le,a as oe,E as de,b as ce}from"./LocationOn-g4BgcU6o.js";import"./utils-DOxjq0mC.js";const pe=(t,r)=>{const{ownerState:p}=t;return[r.root,p.dense&&r.dense,p.alignItems==="flex-start"&&r.alignItemsFlexStart,p.divider&&r.divider,!p.disableGutters&&r.gutters]},xe=t=>{const{alignItems:r,classes:p,dense:g,disabled:o,disableGutters:x,divider:j,selected:y}=t,c=G({root:["root",g&&"dense",!x&&"gutters",j&&"divider",o&&"disabled",r==="flex-start"&&"alignItemsFlexStart",y&&"selected"]},te,p);return{...p,...c}},ue=O(_,{shouldForwardProp:t=>q(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:pe})(K(({theme:t})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${b.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${b.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}},[`&.${b.selected}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},[`&.${b.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${b.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:({ownerState:r})=>r.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:r})=>!r.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:r})=>r.dense,style:{paddingTop:4,paddingBottom:4}}]}))),he=v.forwardRef(function(r,p){const g=W({props:r,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:x=!1,component:j="div",children:y,dense:u=!1,disableGutters:c=!1,divider:$=!1,focusVisibleClassName:a,selected:s=!1,className:n,...i}=g,z=v.useContext(D),A=v.useMemo(()=>({dense:u||z.dense||!1,alignItems:o,disableGutters:c}),[o,z.dense,u,c]),B=v.useRef(null);F(()=>{x&&B.current&&B.current.focus()},[x]);const N={...g,alignItems:o,dense:A.dense,disableGutters:c,divider:$,selected:s},L=xe(N),P=Z(B,p);return e.jsx(D.Provider,{value:A,children:e.jsx(ue,{ref:P,href:i.href||i.to,component:(i.href||i.to)&&j==="div"?"button":j,focusVisibleClassName:T(L.focusVisible,a),ownerState:N,className:T(L.root,n),...i,classes:L,children:y})})}),me=S(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"})),fe=S(e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),ge=S(e.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"})),je=S(e.jsx("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}));function Be(){const t=U(),{folderResults:r,currentResultIndex:p,loading:g}=E(s=>s.document),{currentFolderHash:o}=E(s=>s.document),[x,j]=v.useState(p),y=r[x],[u,c]=v.useState(null),$=s=>{s>=0&&s.",children:e.jsx("span",{children:e.jsx(h,{variant:"contained",color:"primary",disabled:!o,onClick:async()=>{if(o)try{const s=await Q(o),n=await X(o);alert(`Cache vidé (${s.removed} éléments). Re-traitement lancé (${n.scheduled} fichiers).`)}catch(s){alert(`Erreur lors du re-traitement: ${s?.message||s}`)}},children:"Re-traiter le dossier"})})})})]}),e.jsxs(l,{sx:{display:"flex",gap:3},children:[e.jsx(m,{sx:{flex:"0 0 320px",maxHeight:"70vh",overflow:"auto"},children:e.jsx(f,{sx:{p:0},children:e.jsx(I,{dense:!0,disablePadding:!0,children:r.map((s,n)=>e.jsx(he,{selected:n===x,onClick:()=>$(n),children:e.jsx(M,{title:s.document.fileName,placement:"right",children:e.jsx(ae,{primaryTypographyProps:{sx:{display:"block",maxWidth:260,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},primary:s.document.fileName,secondary:new Date(s.document.uploadTimestamp).toLocaleString()})})},s.fileHash))})})}),e.jsxs(l,{sx:{flex:"1 1 auto",minWidth:0},children:[e.jsx(m,{sx:{mb:3},children:e.jsxs(f,{children:[e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:2,mb:2},children:[e.jsx(se,{color:"primary"}),e.jsx(d,{variant:"h6",children:a.document.fileName}),e.jsx(C,{label:a.document.mimeType,size:"small",variant:"outlined"}),e.jsx(C,{label:`${(a.document.fileSize/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"})]}),e.jsxs(l,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(C,{icon:e.jsx(me,{}),label:`Langue: ${a.classification.language}`,color:"info",variant:"outlined"}),e.jsx(C,{icon:e.jsx(je,{}),label:`Type: ${a.classification.documentType}`,color:"success",variant:"outlined"}),e.jsx(C,{icon:e.jsx(ie,{}),label:`Confiance: ${(a.metadata.quality.globalConfidence*100).toFixed(1)}%`,color:a.metadata.quality.globalConfidence>.8?"success":"warning",variant:"outlined"})]})]})}),e.jsx(m,{sx:{mb:3},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(ge,{sx:{mr:1,verticalAlign:"middle"}}),"Texte extrait"]}),e.jsx(ee,{sx:{p:2,bgcolor:"grey.50",maxHeight:300,overflow:"auto"},children:e.jsx(d,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:a.extraction.text.raw})})]})}),e.jsxs(l,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[a.extraction.entities.persons.length>0&&e.jsx(m,{sx:{flex:"1 1 300px"},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(fe,{sx:{mr:1,verticalAlign:"middle"}}),"Personnes (",a.extraction.entities.persons.length,")"]}),e.jsx(I,{dense:!0,children:a.extraction.entities.persons.map((s,n)=>e.jsx(V,{disableGutters:!0,sx:{py:.5},children:e.jsxs(l,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,width:"100%",flexWrap:"wrap"},children:[e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flex:"1 1 auto",minWidth:0,flexWrap:"wrap"},children:[e.jsx("input",{style:{padding:4,width:140},placeholder:"Prénom",defaultValue:s.firstName,onChange:i=>s.firstName=i.target.value}),e.jsx("input",{style:{padding:4,width:160},placeholder:"Nom",defaultValue:s.lastName,onChange:i=>s.lastName=i.target.value}),e.jsx("input",{style:{padding:4,width:260},placeholder:"Description",defaultValue:s.description||"",onChange:i=>s.description=i.target.value})]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0,whiteSpace:"nowrap"},children:[e.jsx(h,{size:"small",variant:"outlined",disabled:u===`p-${n}`,onClick:async()=>{try{c(`p-${n}`),await k(o,a.fileHash,"person",{index:n,id:s.id,patch:{firstName:s.firstName,lastName:s.lastName,description:s.description||""}})}finally{c(null)}},children:"Enregistrer"}),e.jsx(h,{size:"small",color:"error",onClick:async()=>{await R(o,a.fileHash,"person",{index:n,id:s.id})},children:"Supprimer"})]})]})},`p-${n}`))})]})}),a.extraction.entities.addresses.length>0&&e.jsx(m,{sx:{flex:"1 1 300px"},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(ne,{sx:{mr:1,verticalAlign:"middle"}}),"Adresses (",a.extraction.entities.addresses.length,")"]}),e.jsx(I,{dense:!0,children:a.extraction.entities.addresses.map((s,n)=>e.jsx(V,{disableGutters:!0,sx:{py:.5},children:e.jsxs(l,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,width:"100%",flexWrap:"wrap"},children:[e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flex:"1 1 auto",minWidth:0,flexWrap:"wrap"},children:[e.jsx("input",{style:{padding:4,width:240},placeholder:"Rue",defaultValue:s.street,onChange:i=>s.street=i.target.value}),e.jsx("input",{style:{padding:4,width:100},placeholder:"CP",defaultValue:s.postalCode,onChange:i=>s.postalCode=i.target.value}),e.jsx("input",{style:{padding:4,width:180},placeholder:"Ville",defaultValue:s.city,onChange:i=>s.city=i.target.value}),e.jsx("input",{style:{padding:4,width:140},placeholder:"Pays",defaultValue:s.country||"",onChange:i=>s.country=i.target.value}),e.jsx("input",{style:{padding:4,width:260},placeholder:"Description",defaultValue:s.description||"",onChange:i=>s.description=i.target.value})]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0,whiteSpace:"nowrap"},children:[e.jsx(h,{size:"small",variant:"outlined",disabled:u===`a-${n}`,onClick:async()=>{try{c(`a-${n}`),await k(o,a.fileHash,"address",{index:n,id:s.id,patch:{street:s.street,city:s.city,postalCode:s.postalCode,country:s.country,description:s.description||""}})}finally{c(null)}},children:"Enregistrer"}),e.jsx(h,{size:"small",color:"error",onClick:async()=>{await R(o,a.fileHash,"address",{index:n,id:s.id})},children:"Supprimer"})]})]})},`a-${n}`))})]})}),a.extraction.entities.companies.length>0&&e.jsx(m,{sx:{flex:"1 1 300px"},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(re,{sx:{mr:1,verticalAlign:"middle"}}),"Entreprises (",a.extraction.entities.companies.length,")"]}),e.jsx(I,{dense:!0,children:a.extraction.entities.companies.map((s,n)=>e.jsx(V,{disableGutters:!0,sx:{py:.5},children:e.jsxs(l,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,width:"100%",flexWrap:"wrap"},children:[e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flex:"1 1 auto",minWidth:0,flexWrap:"wrap"},children:[e.jsx("input",{style:{padding:4,width:300},placeholder:"Raison sociale",defaultValue:s.name,onChange:i=>s.name=i.target.value}),e.jsx("input",{style:{padding:4,width:260},placeholder:"Description",defaultValue:s.description||"",onChange:i=>s.description=i.target.value})]}),e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0,whiteSpace:"nowrap"},children:[e.jsx(h,{size:"small",variant:"outlined",disabled:u===`c-${n}`,onClick:async()=>{try{c(`c-${n}`),await k(o,a.fileHash,"company",{index:n,id:s.id,patch:{name:s.name,description:s.description||""}})}finally{c(null)}},children:"Enregistrer"}),e.jsx(h,{size:"small",color:"error",onClick:async()=>{await R(o,a.fileHash,"company",{index:n,id:s.id})},children:"Supprimer"})]})]})},`c-${n}`))})]})})]}),e.jsx(m,{sx:{mt:3},children:e.jsxs(f,{children:[e.jsx(d,{variant:"h6",gutterBottom:!0,children:"Métadonnées détaillées"}),e.jsxs(le,{children:[e.jsx(oe,{expandIcon:e.jsx(de,{}),children:e.jsx(d,{children:"Informations de traitement"})}),e.jsx(ce,{children:e.jsxs(l,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsxs(d,{variant:"body2",children:[e.jsx("strong",{children:"Hash du fichier:"})," ",a.fileHash]}),e.jsxs(d,{variant:"body2",children:[e.jsx("strong",{children:"Timestamp:"})," ",new Date(a.status.timestamp).toLocaleString()]}),e.jsxs(d,{variant:"body2",children:[e.jsx("strong",{children:"Confiance globale:"})," ",(a.metadata.quality.globalConfidence*100).toFixed(1),"%"]})]})})]})]})})]})]})]})}export{Be as default}; diff --git a/public/assets/ExtractionView-BSCygdPg.js b/public/assets/ExtractionView-BSCygdPg.js new file mode 100644 index 0000000..44d42f1 --- /dev/null +++ b/public/assets/ExtractionView-BSCygdPg.js @@ -0,0 +1 @@ +import{r as v,d as P,u as O,j as e,s as W,c as E,h as G,n as q,m as K,x as U,y as H,B as o,D as J,T as d,K as Q,L as X,z as k,C as A,M as Y}from"./index-wde0U4qL.js";import{u as Z,l as _,c as $,L as w,A as M,B as h,C as m,k as C,P as ee}from"./Layout-aWSA1CnN.js";import{T as N,D as se}from"./Description-DZr4F8a_.js";import{C as f}from"./CardContent-CtiAdwle.js";import{c as F,g as te,l as b,L as I,b as ae,a as R}from"./ListItemText-MHCbhB9z.js";import{A as ie}from"./Assessment-EqCCjnQU.js";import{L as ne,B as re,A as le,a as oe,E as de,b as ce}from"./LocationOn-D6dNBkVX.js";import"./utils-ZQUdJD-K.js";const xe=(t,n)=>{const{ownerState:x}=t;return[n.root,x.dense&&n.dense,x.alignItems==="flex-start"&&n.alignItemsFlexStart,x.divider&&n.divider,!x.disableGutters&&n.gutters]},pe=t=>{const{alignItems:n,classes:x,dense:g,disabled:l,disableGutters:p,divider:j,selected:y}=t,c=G({root:["root",g&&"dense",!p&&"gutters",j&&"divider",l&&"disabled",n==="flex-start"&&"alignItemsFlexStart",y&&"selected"]},te,x);return{...x,...c}},ue=W(_,{shouldForwardProp:t=>q(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:xe})(K(({theme:t})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${b.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${b.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}},[`&.${b.selected}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},[`&.${b.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${b.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:({ownerState:n})=>n.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:n})=>!n.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:n})=>n.dense,style:{paddingTop:4,paddingBottom:4}}]}))),he=v.forwardRef(function(n,x){const g=P({props:n,name:"MuiListItemButton"}),{alignItems:l="center",autoFocus:p=!1,component:j="div",children:y,dense:u=!1,disableGutters:c=!1,divider:B=!1,focusVisibleClassName:a,selected:s=!1,className:i,...r}=g,z=v.useContext(F),V=v.useMemo(()=>({dense:u||z.dense||!1,alignItems:l,disableGutters:c}),[l,z.dense,u,c]),L=v.useRef(null);O(()=>{p&&L.current&&L.current.focus()},[p]);const T={...g,alignItems:l,dense:V.dense,disableGutters:c,divider:B,selected:s},S=pe(T),D=Z(L,x);return e.jsx(F.Provider,{value:V,children:e.jsx(ue,{ref:D,href:r.href||r.to,component:(r.href||r.to)&&j==="div"?"button":j,focusVisibleClassName:E(S.focusVisible,a),ownerState:T,className:E(S.root,i),...r,classes:S,children:y})})}),me=$(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"})),fe=$(e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),ge=$(e.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"})),je=$(e.jsx("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}));function Le(){const t=U(),{folderResults:n,currentResultIndex:x,loading:g}=H(s=>s.document),{currentFolderHash:l}=H(s=>s.document),[p,j]=v.useState(x),y=n[p],[u,c]=v.useState(null),B=s=>{s>=0&&s.",children:e.jsx("span",{children:e.jsx(h,{variant:"contained",color:"primary",disabled:!l,onClick:async()=>{if(l)try{const s=await Q(l),i=await X(l);alert(`Cache vidé (${s.removed} éléments). Re-traitement lancé (${i.scheduled} fichiers).`)}catch(s){alert(`Erreur lors du re-traitement: ${s?.message||s}`)}},children:"Re-traiter le dossier"})})})})]}),e.jsxs(o,{sx:{display:"flex",gap:3},children:[e.jsx(m,{sx:{flex:"0 0 320px",maxHeight:"70vh",overflow:"auto"},children:e.jsx(f,{sx:{p:0},children:e.jsx(I,{dense:!0,disablePadding:!0,children:n.map((s,i)=>e.jsx(he,{selected:i===p,onClick:()=>B(i),children:e.jsx(N,{title:s.document.fileName,placement:"right",children:e.jsx(ae,{primaryTypographyProps:{sx:{display:"block",maxWidth:260,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},primary:s.document.fileName,secondary:new Date(s.document.uploadTimestamp).toLocaleString()})})},s.fileHash))})})}),e.jsxs(o,{sx:{flex:"1 1 auto",minWidth:0},children:[e.jsx(m,{sx:{mb:3},children:e.jsxs(f,{children:[e.jsxs(o,{sx:{display:"flex",alignItems:"center",gap:2,mb:2},children:[e.jsx(se,{color:"primary"}),e.jsx(d,{variant:"h6",children:a.document.fileName}),e.jsx(C,{label:a.document.mimeType,size:"small",variant:"outlined"}),e.jsx(C,{label:`${(a.document.fileSize/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"})]}),e.jsxs(o,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(C,{icon:e.jsx(me,{}),label:`Langue: ${a.classification.language}`,color:"info",variant:"outlined"}),e.jsx(C,{icon:e.jsx(je,{}),label:`Type: ${a.classification.documentType}`,color:"success",variant:"outlined"}),e.jsx(C,{icon:e.jsx(ie,{}),label:`Confiance: ${(a.metadata.quality.globalConfidence*100).toFixed(1)}%`,color:a.metadata.quality.globalConfidence>.8?"success":"warning",variant:"outlined"})]})]})}),e.jsx(m,{sx:{mb:3},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(ge,{sx:{mr:1,verticalAlign:"middle"}}),"Texte extrait"]}),e.jsx(ee,{sx:{p:2,bgcolor:"grey.50",maxHeight:300,overflow:"auto"},children:e.jsx(d,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:a.extraction.text.raw})})]})}),e.jsxs(o,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[a.extraction.entities.persons.length>0&&e.jsx(m,{sx:{flex:"1 1 300px"},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(fe,{sx:{mr:1,verticalAlign:"middle"}}),"Personnes (",a.extraction.entities.persons.length,")"]}),e.jsx(I,{dense:!0,children:a.extraction.entities.persons.map((s,i)=>e.jsx(R,{secondaryAction:e.jsxs(o,{sx:{display:"flex",gap:1},children:[e.jsx(h,{size:"small",variant:"outlined",disabled:u===`p-${i}`,onClick:async()=>{try{c(`p-${i}`),await k(l,a.fileHash,"person",{index:i,id:s.id,patch:{firstName:s.firstName,lastName:s.lastName}})}finally{c(null)}},children:"Enregistrer"}),e.jsx(h,{size:"small",color:"error",onClick:async()=>{await A(l,a.fileHash,"person",{index:i,id:s.id})},children:"Supprimer"})]}),children:e.jsxs(o,{sx:{display:"flex",gap:1},children:[e.jsx("input",{style:{padding:4,width:120},defaultValue:s.firstName,onChange:r=>s.firstName=r.target.value}),e.jsx("input",{style:{padding:4,width:140},defaultValue:s.lastName,onChange:r=>s.lastName=r.target.value})]})},`p-${i}`))})]})}),a.extraction.entities.addresses.length>0&&e.jsx(m,{sx:{flex:"1 1 300px"},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(ne,{sx:{mr:1,verticalAlign:"middle"}}),"Adresses (",a.extraction.entities.addresses.length,")"]}),e.jsx(I,{dense:!0,children:a.extraction.entities.addresses.map((s,i)=>e.jsx(R,{secondaryAction:e.jsxs(o,{sx:{display:"flex",gap:1},children:[e.jsx(h,{size:"small",variant:"outlined",disabled:u===`a-${i}`,onClick:async()=>{try{c(`a-${i}`),await k(l,a.fileHash,"address",{index:i,id:s.id,patch:{street:s.street,city:s.city,postalCode:s.postalCode,country:s.country}})}finally{c(null)}},children:"Enregistrer"}),e.jsx(h,{size:"small",color:"error",onClick:async()=>{await A(l,a.fileHash,"address",{index:i,id:s.id})},children:"Supprimer"})]}),children:e.jsxs(o,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx("input",{style:{padding:4,width:220},defaultValue:s.street,onChange:r=>s.street=r.target.value}),e.jsx("input",{style:{padding:4,width:100},defaultValue:s.postalCode,onChange:r=>s.postalCode=r.target.value}),e.jsx("input",{style:{padding:4,width:160},defaultValue:s.city,onChange:r=>s.city=r.target.value}),e.jsx("input",{style:{padding:4,width:120},defaultValue:s.country||"",onChange:r=>s.country=r.target.value})]})},`a-${i}`))})]})}),a.extraction.entities.companies.length>0&&e.jsx(m,{sx:{flex:"1 1 300px"},children:e.jsxs(f,{children:[e.jsxs(d,{variant:"h6",gutterBottom:!0,children:[e.jsx(re,{sx:{mr:1,verticalAlign:"middle"}}),"Entreprises (",a.extraction.entities.companies.length,")"]}),e.jsx(I,{dense:!0,children:a.extraction.entities.companies.map((s,i)=>e.jsx(R,{secondaryAction:e.jsxs(o,{sx:{display:"flex",gap:1},children:[e.jsx(h,{size:"small",variant:"outlined",disabled:u===`c-${i}`,onClick:async()=>{try{c(`c-${i}`),await k(l,a.fileHash,"company",{index:i,id:s.id,patch:{name:s.name}})}finally{c(null)}},children:"Enregistrer"}),e.jsx(h,{size:"small",color:"error",onClick:async()=>{await A(l,a.fileHash,"company",{index:i,id:s.id})},children:"Supprimer"})]}),children:e.jsx(o,{sx:{display:"flex",gap:1},children:e.jsx("input",{style:{padding:4,width:260},defaultValue:s.name,onChange:r=>s.name=r.target.value})})},`c-${i}`))})]})})]}),e.jsx(m,{sx:{mt:3},children:e.jsxs(f,{children:[e.jsx(d,{variant:"h6",gutterBottom:!0,children:"Métadonnées détaillées"}),e.jsxs(le,{children:[e.jsx(oe,{expandIcon:e.jsx(de,{}),children:e.jsx(d,{children:"Informations de traitement"})}),e.jsx(ce,{children:e.jsxs(o,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsxs(d,{variant:"body2",children:[e.jsx("strong",{children:"Hash du fichier:"})," ",a.fileHash]}),e.jsxs(d,{variant:"body2",children:[e.jsx("strong",{children:"Timestamp:"})," ",new Date(a.status.timestamp).toLocaleString()]}),e.jsxs(d,{variant:"body2",children:[e.jsx("strong",{children:"Confiance globale:"})," ",(a.metadata.quality.globalConfidence*100).toFixed(1),"%"]})]})})]})]})})]})]})]})}export{Le as default}; diff --git a/public/assets/ExtractionView-CAhalQBb.js b/public/assets/ExtractionView-CAhalQBb.js new file mode 100644 index 0000000..697668f --- /dev/null +++ b/public/assets/ExtractionView-CAhalQBb.js @@ -0,0 +1 @@ +import{r as g,d as O,u as G,j as e,s as q,c as M,h as K,n as U,m as J,x as Q,y as P,R as X,B as d,D as Y,T as p,K as Z,L as _,z as E,C as H,M as ee}from"./index-CedKFzDs.js";import{u as se,l as te,c as A,L as N,A as W,B as b,C as w,k as R,P as ae}from"./Layout-D-i60CyA.js";import{T as F,D as re}from"./Description-B6Ym94QH.js";import{C as I}from"./CardContent-CTu31uOK.js";import{c as V,g as ne,l as k,L as z,b as ie,a as T}from"./ListItemText-BuuBgG3W.js";import{A as le}from"./Assessment-CPUlKbT4.js";import{L as oe,B as de,A as ce,a as pe,E as xe,b as ue}from"./LocationOn-DOH85F_6.js";import"./utils-DK0LiU04.js";const he=(a,l)=>{const{ownerState:u}=a;return[l.root,u.dense&&l.dense,u.alignItems==="flex-start"&&l.alignItemsFlexStart,u.divider&&l.divider,!u.disableGutters&&l.gutters]},me=a=>{const{alignItems:l,classes:u,dense:S,disabled:c,disableGutters:v,divider:$,selected:m}=a,x=K({root:["root",S&&"dense",!v&&"gutters",$&&"divider",c&&"disabled",l==="flex-start"&&"alignItemsFlexStart",m&&"selected"]},ne,u);return{...u,...x}},fe=q(te,{shouldForwardProp:a=>U(a)||a==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:he})(J(({theme:a})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:a.transitions.create("background-color",{duration:a.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(a.vars||a).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${k.selected}`]:{backgroundColor:a.alpha((a.vars||a).palette.primary.main,(a.vars||a).palette.action.selectedOpacity),[`&.${k.focusVisible}`]:{backgroundColor:a.alpha((a.vars||a).palette.primary.main,`${(a.vars||a).palette.action.selectedOpacity} + ${(a.vars||a).palette.action.focusOpacity}`)}},[`&.${k.selected}:hover`]:{backgroundColor:a.alpha((a.vars||a).palette.primary.main,`${(a.vars||a).palette.action.selectedOpacity} + ${(a.vars||a).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:a.alpha((a.vars||a).palette.primary.main,(a.vars||a).palette.action.selectedOpacity)}},[`&.${k.focusVisible}`]:{backgroundColor:(a.vars||a).palette.action.focus},[`&.${k.disabled}`]:{opacity:(a.vars||a).palette.action.disabledOpacity},variants:[{props:({ownerState:l})=>l.divider,style:{borderBottom:`1px solid ${(a.vars||a).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:l})=>!l.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:l})=>l.dense,style:{paddingTop:4,paddingBottom:4}}]}))),ge=g.forwardRef(function(l,u){const S=O({props:l,name:"MuiListItemButton"}),{alignItems:c="center",autoFocus:v=!1,component:$="div",children:m,dense:C=!1,disableGutters:x=!1,divider:B=!1,focusVisibleClassName:j,selected:L=!1,className:h,...f}=S,y=g.useContext(V),D=g.useMemo(()=>({dense:C||y.dense||!1,alignItems:c,disableGutters:x}),[c,y.dense,C,x]),n=g.useRef(null);G(()=>{v&&n.current&&n.current.focus()},[v]);const t={...S,alignItems:c,dense:D.dense,disableGutters:x,divider:B,selected:L},s=me(t),i=se(n,u);return e.jsx(V.Provider,{value:D,children:e.jsx(fe,{ref:i,href:f.href||f.to,component:(f.href||f.to)&&$==="div"?"button":$,focusVisibleClassName:M(s.focusVisible,j),ownerState:t,className:M(s.root,h),...f,classes:s,children:m})})}),je=A(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"})),ye=A(e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),ve=A(e.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"})),Ce=A(e.jsx("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}));function ke(){const a=Q(),{folderResults:l,currentResultIndex:u,loading:S}=P(t=>t.document),{currentFolderHash:c}=P(t=>t.document),[v,$]=g.useState(u),m=l[v],[C,x]=g.useState(null),[B,j]=g.useState([]),[L,h]=g.useState([]),[f,y]=g.useState([]);X.useEffect(()=>{if(!m){j([]),h([]),y([]);return}try{const t=m.extraction?.entities||{};j((t.persons||[]).map(s=>({id:s.id,firstName:s.firstName||"",lastName:s.lastName||"",description:s.description||""}))),h((t.addresses||[]).map(s=>({id:s.id,street:s.street||"",postalCode:s.postalCode||"",city:s.city||"",country:s.country||"",description:s.description||""}))),y((t.companies||[]).map(s=>({id:s.id,name:s.name||"",description:s.description||""})))}catch{j([]),h([]),y([])}},[m?.fileHash]);const D=t=>{t>=0&&t.",children:e.jsx("span",{children:e.jsx(b,{variant:"contained",color:"primary",disabled:!c,onClick:async()=>{if(c)try{const t=await Z(c),s=await _(c);alert(`Cache vidé (${t.removed} éléments). Re-traitement lancé (${s.scheduled} fichiers).`)}catch(t){alert(`Erreur lors du re-traitement: ${t?.message||t}`)}},children:"Re-traiter le dossier"})})})})]}),e.jsxs(d,{sx:{display:"flex",gap:3},children:[e.jsx(w,{sx:{flex:"0 0 320px",maxHeight:"70vh",overflow:"auto"},children:e.jsx(I,{sx:{p:0},children:e.jsx(z,{dense:!0,disablePadding:!0,children:l.map((t,s)=>e.jsx(ge,{selected:s===v,onClick:()=>D(s),children:e.jsx(F,{title:t.document.fileName,placement:"right",children:e.jsx(ie,{primaryTypographyProps:{sx:{display:"block",maxWidth:260,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},primary:t.document.fileName,secondary:new Date(t.document.uploadTimestamp).toLocaleString()})})},t.fileHash))})})}),e.jsxs(d,{sx:{flex:"1 1 auto",minWidth:0},children:[e.jsx(w,{sx:{mb:3},children:e.jsxs(I,{children:[e.jsxs(d,{sx:{display:"flex",alignItems:"center",gap:2,mb:2},children:[e.jsx(re,{color:"primary"}),e.jsx(p,{variant:"h6",children:n.document.fileName}),e.jsx(R,{label:n.document.mimeType,size:"small",variant:"outlined"}),e.jsx(R,{label:`${(n.document.fileSize/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"})]}),e.jsxs(d,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(R,{icon:e.jsx(je,{}),label:`Langue: ${n.classification.language}`,color:"info",variant:"outlined"}),e.jsx(R,{icon:e.jsx(Ce,{}),label:`Type: ${n.classification.documentType}`,color:"success",variant:"outlined"}),e.jsx(R,{icon:e.jsx(le,{}),label:`Confiance: ${(n.metadata.quality.globalConfidence*100).toFixed(1)}%`,color:n.metadata.quality.globalConfidence>.8?"success":"warning",variant:"outlined"})]})]})}),e.jsx(w,{sx:{mb:3},children:e.jsxs(I,{children:[e.jsxs(p,{variant:"h6",gutterBottom:!0,children:[e.jsx(ve,{sx:{mr:1,verticalAlign:"middle"}}),"Texte extrait"]}),e.jsx(ae,{sx:{p:2,bgcolor:"grey.50",maxHeight:300,overflow:"auto"},children:e.jsx(p,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:n.extraction.text.raw})})]})}),e.jsxs(d,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[B.length>0&&e.jsx(w,{sx:{flex:"1 1 300px"},children:e.jsxs(I,{children:[e.jsxs(p,{variant:"h6",gutterBottom:!0,children:[e.jsx(ye,{sx:{mr:1,verticalAlign:"middle"}}),"Personnes (",B.length,")"]}),e.jsx(z,{dense:!0,children:B.map((t,s)=>e.jsx(T,{disableGutters:!0,sx:{py:.5},children:e.jsxs(d,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,width:"100%",flexWrap:"wrap"},children:[e.jsxs(d,{sx:{display:"flex",alignItems:"center",gap:1,flex:"1 1 auto",minWidth:0,flexWrap:"wrap"},children:[e.jsx("input",{style:{padding:4,width:140},placeholder:"Prénom",value:t.firstName,onChange:i=>j(o=>{const r=[...o];return r[s]={...r[s],firstName:i.target.value},r})}),e.jsx("input",{style:{padding:4,width:160},placeholder:"Nom",value:t.lastName,onChange:i=>j(o=>{const r=[...o];return r[s]={...r[s],lastName:i.target.value},r})}),e.jsx("input",{style:{padding:4,width:260},placeholder:"Description",value:t.description,onChange:i=>j(o=>{const r=[...o];return r[s]={...r[s],description:i.target.value},r})})]}),e.jsxs(d,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0,whiteSpace:"nowrap"},children:[e.jsx(b,{size:"small",variant:"outlined",disabled:C===`p-${s}`,onClick:async()=>{try{x(`p-${s}`),await E(c,n.fileHash,"person",{index:s,id:t.id,patch:{firstName:t.firstName,lastName:t.lastName,description:t.description||""}})}finally{x(null)}},children:"Enregistrer"}),e.jsx(b,{size:"small",color:"error",onClick:async()=>{await H(c,n.fileHash,"person",{index:s,id:t.id})},children:"Supprimer"})]})]})},`p-${s}`))})]})}),L.length>0&&e.jsx(w,{sx:{flex:"1 1 300px"},children:e.jsxs(I,{children:[e.jsxs(p,{variant:"h6",gutterBottom:!0,children:[e.jsx(oe,{sx:{mr:1,verticalAlign:"middle"}}),"Adresses (",L.length,")"]}),e.jsx(z,{dense:!0,children:L.map((t,s)=>e.jsx(T,{disableGutters:!0,sx:{py:.5},children:e.jsxs(d,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,width:"100%",flexWrap:"wrap"},children:[e.jsxs(d,{sx:{display:"flex",alignItems:"center",gap:1,flex:"1 1 auto",minWidth:0,flexWrap:"wrap"},children:[e.jsx("input",{style:{padding:4,width:240},placeholder:"Rue",value:t.street,onChange:i=>h(o=>{const r=[...o];return r[s]={...r[s],street:i.target.value},r})}),e.jsx("input",{style:{padding:4,width:100},placeholder:"CP",value:t.postalCode,onChange:i=>h(o=>{const r=[...o];return r[s]={...r[s],postalCode:i.target.value},r})}),e.jsx("input",{style:{padding:4,width:180},placeholder:"Ville",value:t.city,onChange:i=>h(o=>{const r=[...o];return r[s]={...r[s],city:i.target.value},r})}),e.jsx("input",{style:{padding:4,width:140},placeholder:"Pays",value:t.country,onChange:i=>h(o=>{const r=[...o];return r[s]={...r[s],country:i.target.value},r})}),e.jsx("input",{style:{padding:4,width:260},placeholder:"Description",value:t.description,onChange:i=>h(o=>{const r=[...o];return r[s]={...r[s],description:i.target.value},r})})]}),e.jsxs(d,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0,whiteSpace:"nowrap"},children:[e.jsx(b,{size:"small",variant:"outlined",disabled:C===`a-${s}`,onClick:async()=>{try{x(`a-${s}`),await E(c,n.fileHash,"address",{index:s,id:t.id,patch:{street:t.street,city:t.city,postalCode:t.postalCode,country:t.country,description:t.description||""}})}finally{x(null)}},children:"Enregistrer"}),e.jsx(b,{size:"small",color:"error",onClick:async()=>{await H(c,n.fileHash,"address",{index:s,id:t.id})},children:"Supprimer"})]})]})},`a-${s}`))})]})}),f.length>0&&e.jsx(w,{sx:{flex:"1 1 300px"},children:e.jsxs(I,{children:[e.jsxs(p,{variant:"h6",gutterBottom:!0,children:[e.jsx(de,{sx:{mr:1,verticalAlign:"middle"}}),"Entreprises (",f.length,")"]}),e.jsx(z,{dense:!0,children:f.map((t,s)=>e.jsx(T,{disableGutters:!0,sx:{py:.5},children:e.jsxs(d,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,width:"100%",flexWrap:"wrap"},children:[e.jsxs(d,{sx:{display:"flex",alignItems:"center",gap:1,flex:"1 1 auto",minWidth:0,flexWrap:"wrap"},children:[e.jsx("input",{style:{padding:4,width:300},placeholder:"Raison sociale",value:t.name,onChange:i=>y(o=>{const r=[...o];return r[s]={...r[s],name:i.target.value},r})}),e.jsx("input",{style:{padding:4,width:260},placeholder:"Description",value:t.description,onChange:i=>y(o=>{const r=[...o];return r[s]={...r[s],description:i.target.value},r})})]}),e.jsxs(d,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0,whiteSpace:"nowrap"},children:[e.jsx(b,{size:"small",variant:"outlined",disabled:C===`c-${s}`,onClick:async()=>{try{x(`c-${s}`),await E(c,n.fileHash,"company",{index:s,id:t.id,patch:{name:t.name,description:t.description||""}})}finally{x(null)}},children:"Enregistrer"}),e.jsx(b,{size:"small",color:"error",onClick:async()=>{await H(c,n.fileHash,"company",{index:s,id:t.id})},children:"Supprimer"})]})]})},`c-${s}`))})]})})]}),e.jsx(w,{sx:{mt:3},children:e.jsxs(I,{children:[e.jsx(p,{variant:"h6",gutterBottom:!0,children:"Métadonnées détaillées"}),e.jsxs(ce,{children:[e.jsx(pe,{expandIcon:e.jsx(xe,{}),children:e.jsx(p,{children:"Informations de traitement"})}),e.jsx(ue,{children:e.jsxs(d,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsxs(p,{variant:"body2",children:[e.jsx("strong",{children:"Hash du fichier:"})," ",n.fileHash]}),e.jsxs(p,{variant:"body2",children:[e.jsx("strong",{children:"Timestamp:"})," ",new Date(n.status.timestamp).toLocaleString()]}),e.jsxs(p,{variant:"body2",children:[e.jsx("strong",{children:"Confiance globale:"})," ",(n.metadata.quality.globalConfidence*100).toFixed(1),"%"]})]})})]})]})})]})]})]})}export{ke as default}; diff --git a/public/assets/ExtractionView-DLlpsZdk.js b/public/assets/ExtractionView-DLlpsZdk.js new file mode 100644 index 0000000..8f18f9d --- /dev/null +++ b/public/assets/ExtractionView-DLlpsZdk.js @@ -0,0 +1 @@ +import{r as b,d as V,u as H,j as e,s as N,c as k,h as O,n as G,m as W,x as q,y as F,B as c,C as U,T as i,K,L as J,M as Q}from"./index-DwyPw-ga.js";import{u as X,l as Y,c as w,L as I,A as P,B as Z,C as p,k as v,P as _}from"./Layout-BXCKqMhs.js";import{T as z,D as ee}from"./Description-D3TUU4JV.js";import{C as u}from"./CardContent-BABkM9oc.js";import{c as E,g as se,l as y,L as B,b as L,a as S}from"./ListItemText-DU5FWiy7.js";import{A as te}from"./Assessment-vIi1LBZu.js";import{L as re,B as ae,A as ie,a as ne,E as oe,b as le}from"./LocationOn-B18XNb8Q.js";import"./utils-CKR531ip.js";const ce=(s,a)=>{const{ownerState:o}=s;return[a.root,o.dense&&a.dense,o.alignItems==="flex-start"&&a.alignItemsFlexStart,o.divider&&a.divider,!o.disableGutters&&a.gutters]},de=s=>{const{alignItems:a,classes:o,dense:h,disabled:l,disableGutters:d,divider:m,selected:f}=s,r=O({root:["root",h&&"dense",!d&&"gutters",m&&"divider",l&&"disabled",a==="flex-start"&&"alignItemsFlexStart",f&&"selected"]},se,o);return{...o,...r}},xe=N(Y,{shouldForwardProp:s=>G(s)||s==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:ce})(W(({theme:s})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:s.transitions.create("background-color",{duration:s.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(s.vars||s).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${y.selected}`]:{backgroundColor:s.alpha((s.vars||s).palette.primary.main,(s.vars||s).palette.action.selectedOpacity),[`&.${y.focusVisible}`]:{backgroundColor:s.alpha((s.vars||s).palette.primary.main,`${(s.vars||s).palette.action.selectedOpacity} + ${(s.vars||s).palette.action.focusOpacity}`)}},[`&.${y.selected}:hover`]:{backgroundColor:s.alpha((s.vars||s).palette.primary.main,`${(s.vars||s).palette.action.selectedOpacity} + ${(s.vars||s).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:s.alpha((s.vars||s).palette.primary.main,(s.vars||s).palette.action.selectedOpacity)}},[`&.${y.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`&.${y.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity},variants:[{props:({ownerState:a})=>a.divider,style:{borderBottom:`1px solid ${(s.vars||s).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:a})=>!a.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:a})=>a.dense,style:{paddingTop:4,paddingBottom:4}}]}))),pe=b.forwardRef(function(a,o){const h=V({props:a,name:"MuiListItemButton"}),{alignItems:l="center",autoFocus:d=!1,component:m="div",children:f,dense:j=!1,disableGutters:r=!1,divider:t=!1,focusVisibleClassName:n,selected:x=!1,className:C,...g}=h,$=b.useContext(E),T=b.useMemo(()=>({dense:j||$.dense||!1,alignItems:l,disableGutters:r}),[l,$.dense,j,r]),R=b.useRef(null);H(()=>{d&&R.current&&R.current.focus()},[d]);const M={...h,alignItems:l,dense:T.dense,disableGutters:r,divider:t,selected:x},A=de(M),D=X(R,o);return e.jsx(E.Provider,{value:T,children:e.jsx(xe,{ref:D,href:g.href||g.to,component:(g.href||g.to)&&m==="div"?"button":m,focusVisibleClassName:k(A.focusVisible,n),ownerState:M,className:k(A.root,C),...g,classes:A,children:f})})}),ue=w(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"})),he=w(e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),me=w(e.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"})),fe=w(e.jsx("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}));function Le(){const s=q(),{folderResults:a,currentResultIndex:o,loading:h}=F(t=>t.document),{currentFolderHash:l}=F(t=>t.document),[d,m]=b.useState(o),f=a[d],j=t=>{t>=0&&t.",children:e.jsx("span",{children:e.jsx(Z,{variant:"contained",color:"primary",disabled:!l,onClick:async()=>{if(l)try{const t=await K(l),n=await J(l);alert(`Cache vidé (${t.removed} éléments). Re-traitement lancé (${n.scheduled} fichiers).`)}catch(t){alert(`Erreur lors du re-traitement: ${t?.message||t}`)}},children:"Re-traiter le dossier"})})})})]}),e.jsxs(c,{sx:{display:"flex",gap:3},children:[e.jsx(p,{sx:{flex:"0 0 320px",maxHeight:"70vh",overflow:"auto"},children:e.jsx(u,{sx:{p:0},children:e.jsx(B,{dense:!0,disablePadding:!0,children:a.map((t,n)=>e.jsx(pe,{selected:n===d,onClick:()=>j(n),children:e.jsx(z,{title:t.document.fileName,placement:"right",children:e.jsx(L,{primaryTypographyProps:{sx:{display:"block",maxWidth:260,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},primary:t.document.fileName,secondary:new Date(t.document.uploadTimestamp).toLocaleString()})})},t.fileHash))})})}),e.jsxs(c,{sx:{flex:"1 1 auto",minWidth:0},children:[e.jsx(p,{sx:{mb:3},children:e.jsxs(u,{children:[e.jsxs(c,{sx:{display:"flex",alignItems:"center",gap:2,mb:2},children:[e.jsx(ee,{color:"primary"}),e.jsx(i,{variant:"h6",children:r.document.fileName}),e.jsx(v,{label:r.document.mimeType,size:"small",variant:"outlined"}),e.jsx(v,{label:`${(r.document.fileSize/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"})]}),e.jsxs(c,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(v,{icon:e.jsx(ue,{}),label:`Langue: ${r.classification.language}`,color:"info",variant:"outlined"}),e.jsx(v,{icon:e.jsx(fe,{}),label:`Type: ${r.classification.documentType}`,color:"success",variant:"outlined"}),e.jsx(v,{icon:e.jsx(te,{}),label:`Confiance: ${(r.metadata.quality.globalConfidence*100).toFixed(1)}%`,color:r.metadata.quality.globalConfidence>.8?"success":"warning",variant:"outlined"})]})]})}),e.jsx(p,{sx:{mb:3},children:e.jsxs(u,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(me,{sx:{mr:1,verticalAlign:"middle"}}),"Texte extrait"]}),e.jsx(_,{sx:{p:2,bgcolor:"grey.50",maxHeight:300,overflow:"auto"},children:e.jsx(i,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:r.extraction.text.raw})})]})}),e.jsxs(c,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[r.extraction.entities.persons.length>0&&e.jsx(p,{sx:{flex:"1 1 300px"},children:e.jsxs(u,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(he,{sx:{mr:1,verticalAlign:"middle"}}),"Personnes (",r.extraction.entities.persons.length,")"]}),e.jsx(B,{dense:!0,children:r.extraction.entities.persons.map((t,n)=>{const x=typeof t=="string"?t:[t.firstName,t.lastName].filter(Boolean).join(" ")||t?.id||"Personne";return e.jsx(S,{children:e.jsx(L,{primary:x,secondary:"Personne détectée"})},n)})})]})}),r.extraction.entities.addresses.length>0&&e.jsx(p,{sx:{flex:"1 1 300px"},children:e.jsxs(u,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(re,{sx:{mr:1,verticalAlign:"middle"}}),"Adresses (",r.extraction.entities.addresses.length,")"]}),e.jsx(B,{dense:!0,children:r.extraction.entities.addresses.map((t,n)=>{const x=typeof t=="string"?t:[t.street,t.postalCode,t.city].filter(C=>!!C&&String(C).trim().length>0).join(" ")||t?.id||"Adresse";return e.jsx(S,{children:e.jsx(L,{primary:x,secondary:"Adresse détectée"})},n)})})]})}),r.extraction.entities.companies.length>0&&e.jsx(p,{sx:{flex:"1 1 300px"},children:e.jsxs(u,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(ae,{sx:{mr:1,verticalAlign:"middle"}}),"Entreprises (",r.extraction.entities.companies.length,")"]}),e.jsx(B,{dense:!0,children:r.extraction.entities.companies.map((t,n)=>{const x=typeof t=="string"?t:t?.name||t?.id||"Entreprise";return e.jsx(S,{children:e.jsx(L,{primary:x,secondary:"Entreprise détectée"})},n)})})]})})]}),e.jsx(p,{sx:{mt:3},children:e.jsxs(u,{children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Métadonnées détaillées"}),e.jsxs(ie,{children:[e.jsx(ne,{expandIcon:e.jsx(oe,{}),children:e.jsx(i,{children:"Informations de traitement"})}),e.jsx(le,{children:e.jsxs(c,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsxs(i,{variant:"body2",children:[e.jsx("strong",{children:"Hash du fichier:"})," ",r.fileHash]}),e.jsxs(i,{variant:"body2",children:[e.jsx("strong",{children:"Timestamp:"})," ",new Date(r.status.timestamp).toLocaleString()]}),e.jsxs(i,{variant:"body2",children:[e.jsx("strong",{children:"Confiance globale:"})," ",(r.metadata.quality.globalConfidence*100).toFixed(1),"%"]})]})})]})]})})]})]})]})}export{Le as default}; diff --git a/public/assets/ExtractionView-Du0llVwx.js b/public/assets/ExtractionView-Du0llVwx.js new file mode 100644 index 0000000..03fbd0a --- /dev/null +++ b/public/assets/ExtractionView-Du0llVwx.js @@ -0,0 +1 @@ +import{r as b,d as V,u as H,j as e,s as N,c as k,h as O,n as G,m as W,x as q,y as F,B as c,D as U,T as i,K,L as J,M as Q}from"./index-ChSrE95j.js";import{u as X,l as Y,c as w,L as I,A as P,B as Z,C as p,k as v,P as _}from"./Layout-EP4xiiHA.js";import{T as z,D as ee}from"./Description-Da0xeuq8.js";import{C as u}from"./CardContent-afWGaPRZ.js";import{c as E,g as se,l as y,L as B,b as L,a as S}from"./ListItemText-y3geWUGz.js";import{A as te}from"./Assessment-BS7V6eDM.js";import{L as re,B as ae,A as ie,a as ne,E as oe,b as le}from"./LocationOn-CcUeyQI8.js";import"./utils-CND5M_oZ.js";const ce=(s,a)=>{const{ownerState:o}=s;return[a.root,o.dense&&a.dense,o.alignItems==="flex-start"&&a.alignItemsFlexStart,o.divider&&a.divider,!o.disableGutters&&a.gutters]},de=s=>{const{alignItems:a,classes:o,dense:h,disabled:l,disableGutters:d,divider:m,selected:f}=s,r=O({root:["root",h&&"dense",!d&&"gutters",m&&"divider",l&&"disabled",a==="flex-start"&&"alignItemsFlexStart",f&&"selected"]},se,o);return{...o,...r}},xe=N(Y,{shouldForwardProp:s=>G(s)||s==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:ce})(W(({theme:s})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:s.transitions.create("background-color",{duration:s.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(s.vars||s).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${y.selected}`]:{backgroundColor:s.alpha((s.vars||s).palette.primary.main,(s.vars||s).palette.action.selectedOpacity),[`&.${y.focusVisible}`]:{backgroundColor:s.alpha((s.vars||s).palette.primary.main,`${(s.vars||s).palette.action.selectedOpacity} + ${(s.vars||s).palette.action.focusOpacity}`)}},[`&.${y.selected}:hover`]:{backgroundColor:s.alpha((s.vars||s).palette.primary.main,`${(s.vars||s).palette.action.selectedOpacity} + ${(s.vars||s).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:s.alpha((s.vars||s).palette.primary.main,(s.vars||s).palette.action.selectedOpacity)}},[`&.${y.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`&.${y.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity},variants:[{props:({ownerState:a})=>a.divider,style:{borderBottom:`1px solid ${(s.vars||s).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:a})=>!a.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:a})=>a.dense,style:{paddingTop:4,paddingBottom:4}}]}))),pe=b.forwardRef(function(a,o){const h=V({props:a,name:"MuiListItemButton"}),{alignItems:l="center",autoFocus:d=!1,component:m="div",children:f,dense:j=!1,disableGutters:r=!1,divider:t=!1,focusVisibleClassName:n,selected:x=!1,className:C,...g}=h,$=b.useContext(E),T=b.useMemo(()=>({dense:j||$.dense||!1,alignItems:l,disableGutters:r}),[l,$.dense,j,r]),R=b.useRef(null);H(()=>{d&&R.current&&R.current.focus()},[d]);const M={...h,alignItems:l,dense:T.dense,disableGutters:r,divider:t,selected:x},A=de(M),D=X(R,o);return e.jsx(E.Provider,{value:T,children:e.jsx(xe,{ref:D,href:g.href||g.to,component:(g.href||g.to)&&m==="div"?"button":m,focusVisibleClassName:k(A.focusVisible,n),ownerState:M,className:k(A.root,C),...g,classes:A,children:f})})}),ue=w(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"})),he=w(e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),me=w(e.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"})),fe=w(e.jsx("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}));function Le(){const s=q(),{folderResults:a,currentResultIndex:o,loading:h}=F(t=>t.document),{currentFolderHash:l}=F(t=>t.document),[d,m]=b.useState(o),f=a[d],j=t=>{t>=0&&t.",children:e.jsx("span",{children:e.jsx(Z,{variant:"contained",color:"primary",disabled:!l,onClick:async()=>{if(l)try{const t=await K(l),n=await J(l);alert(`Cache vidé (${t.removed} éléments). Re-traitement lancé (${n.scheduled} fichiers).`)}catch(t){alert(`Erreur lors du re-traitement: ${t?.message||t}`)}},children:"Re-traiter le dossier"})})})})]}),e.jsxs(c,{sx:{display:"flex",gap:3},children:[e.jsx(p,{sx:{flex:"0 0 320px",maxHeight:"70vh",overflow:"auto"},children:e.jsx(u,{sx:{p:0},children:e.jsx(B,{dense:!0,disablePadding:!0,children:a.map((t,n)=>e.jsx(pe,{selected:n===d,onClick:()=>j(n),children:e.jsx(z,{title:t.document.fileName,placement:"right",children:e.jsx(L,{primaryTypographyProps:{sx:{display:"block",maxWidth:260,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},primary:t.document.fileName,secondary:new Date(t.document.uploadTimestamp).toLocaleString()})})},t.fileHash))})})}),e.jsxs(c,{sx:{flex:"1 1 auto",minWidth:0},children:[e.jsx(p,{sx:{mb:3},children:e.jsxs(u,{children:[e.jsxs(c,{sx:{display:"flex",alignItems:"center",gap:2,mb:2},children:[e.jsx(ee,{color:"primary"}),e.jsx(i,{variant:"h6",children:r.document.fileName}),e.jsx(v,{label:r.document.mimeType,size:"small",variant:"outlined"}),e.jsx(v,{label:`${(r.document.fileSize/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"})]}),e.jsxs(c,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[e.jsx(v,{icon:e.jsx(ue,{}),label:`Langue: ${r.classification.language}`,color:"info",variant:"outlined"}),e.jsx(v,{icon:e.jsx(fe,{}),label:`Type: ${r.classification.documentType}`,color:"success",variant:"outlined"}),e.jsx(v,{icon:e.jsx(te,{}),label:`Confiance: ${(r.metadata.quality.globalConfidence*100).toFixed(1)}%`,color:r.metadata.quality.globalConfidence>.8?"success":"warning",variant:"outlined"})]})]})}),e.jsx(p,{sx:{mb:3},children:e.jsxs(u,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(me,{sx:{mr:1,verticalAlign:"middle"}}),"Texte extrait"]}),e.jsx(_,{sx:{p:2,bgcolor:"grey.50",maxHeight:300,overflow:"auto"},children:e.jsx(i,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:r.extraction.text.raw})})]})}),e.jsxs(c,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[r.extraction.entities.persons.length>0&&e.jsx(p,{sx:{flex:"1 1 300px"},children:e.jsxs(u,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(he,{sx:{mr:1,verticalAlign:"middle"}}),"Personnes (",r.extraction.entities.persons.length,")"]}),e.jsx(B,{dense:!0,children:r.extraction.entities.persons.map((t,n)=>{const x=typeof t=="string"?t:[t.firstName,t.lastName].filter(Boolean).join(" ")||t?.id||"Personne";return e.jsx(S,{children:e.jsx(L,{primary:x,secondary:"Personne détectée"})},n)})})]})}),r.extraction.entities.addresses.length>0&&e.jsx(p,{sx:{flex:"1 1 300px"},children:e.jsxs(u,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(re,{sx:{mr:1,verticalAlign:"middle"}}),"Adresses (",r.extraction.entities.addresses.length,")"]}),e.jsx(B,{dense:!0,children:r.extraction.entities.addresses.map((t,n)=>{const x=typeof t=="string"?t:[t.street,t.postalCode,t.city].filter(C=>!!C&&String(C).trim().length>0).join(" ")||t?.id||"Adresse";return e.jsx(S,{children:e.jsx(L,{primary:x,secondary:"Adresse détectée"})},n)})})]})}),r.extraction.entities.companies.length>0&&e.jsx(p,{sx:{flex:"1 1 300px"},children:e.jsxs(u,{children:[e.jsxs(i,{variant:"h6",gutterBottom:!0,children:[e.jsx(ae,{sx:{mr:1,verticalAlign:"middle"}}),"Entreprises (",r.extraction.entities.companies.length,")"]}),e.jsx(B,{dense:!0,children:r.extraction.entities.companies.map((t,n)=>{const x=typeof t=="string"?t:t?.name||t?.id||"Entreprise";return e.jsx(S,{children:e.jsx(L,{primary:x,secondary:"Entreprise détectée"})},n)})})]})})]}),e.jsx(p,{sx:{mt:3},children:e.jsxs(u,{children:[e.jsx(i,{variant:"h6",gutterBottom:!0,children:"Métadonnées détaillées"}),e.jsxs(ie,{children:[e.jsx(ne,{expandIcon:e.jsx(oe,{}),children:e.jsx(i,{children:"Informations de traitement"})}),e.jsx(le,{children:e.jsxs(c,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsxs(i,{variant:"body2",children:[e.jsx("strong",{children:"Hash du fichier:"})," ",r.fileHash]}),e.jsxs(i,{variant:"body2",children:[e.jsx("strong",{children:"Timestamp:"})," ",new Date(r.status.timestamp).toLocaleString()]}),e.jsxs(i,{variant:"body2",children:[e.jsx("strong",{children:"Confiance globale:"})," ",(r.metadata.quality.globalConfidence*100).toFixed(1),"%"]})]})})]})]})})]})]})]})}export{Le as default}; diff --git a/public/assets/Layout-BXCKqMhs.js b/public/assets/Layout-BXCKqMhs.js new file mode 100644 index 0000000..7f2cda1 --- /dev/null +++ b/public/assets/Layout-BXCKqMhs.js @@ -0,0 +1,125 @@ +import{W as le,X as ko,Y as To,r as c,j as p,c as w,f as b,h as Q,Z as ce,b as J,_ as de,$ as pe,a as tt,d as Z,s as M,m as _,u as zo,R as Rt,a0 as ue,a1 as go,a2 as vo,v as Ct,k as Eo,o as G,C as Lo,n as fe,p as Jt,t as to,a3 as Ao,y as jo,B as Kt,a4 as be,x as ge,U as ve,O as ye,S as he,T as me,a5 as xe}from"./index-DwyPw-ga.js";const Se=le();function Ce(t){const{theme:o,name:e,props:r}=t;return!o||!o.components||!o.components[e]||!o.components[e].defaultProps?r:ko(o.components[e].defaultProps,r)}function Ie({props:t,name:o,defaultTheme:e,themeId:r}){let n=To(e);return r&&(n=n[r]||n),Ce({theme:n,name:o,props:t})}const $e=ce(),Pe=Se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),Be=t=>Ie({props:t,name:"MuiContainer",defaultTheme:$e}),Re=(t,o)=>{const e=l=>J(o,l),{classes:r,fixed:n,disableGutters:a,maxWidth:s}=t,i={root:["root",s&&`maxWidth${b(String(s))}`,n&&"fixed",a&&"disableGutters"]};return Q(i,e,r)};function we(t={}){const{createStyledComponent:o=Pe,useThemeProps:e=Be,componentName:r="MuiContainer"}=t,n=o(({theme:s,ownerState:i})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!i.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:i})=>i.fixed&&Object.keys(s.breakpoints.values).reduce((l,d)=>{const u=d,f=s.breakpoints.values[u];return f!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:i})=>({...i.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...i.maxWidth&&i.maxWidth!=="xs"&&{[s.breakpoints.up(i.maxWidth)]:{maxWidth:`${s.breakpoints.values[i.maxWidth]}${s.breakpoints.unit}`}}}));return c.forwardRef(function(i,l){const d=e(i),{className:u,component:f="div",disableGutters:v=!1,fixed:C=!1,maxWidth:h="lg",classes:m,...y}=d,P={...d,component:f,disableGutters:v,fixed:C,maxWidth:h},I=Re(P,r);return p.jsx(n,{as:f,ownerState:P,className:w(I.root,u),ref:l,...y})})}function No(){const t=To(pe);return t[de]||t}function Me(t){return J("MuiSvgIcon",t)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ke=t=>{const{color:o,fontSize:e,classes:r}=t,n={root:["root",o!=="inherit"&&`color${b(o)}`,`fontSize${b(e)}`]};return Q(n,Me,r)},Te=M("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.color!=="inherit"&&o[`color${b(e.color)}`],o[`fontSize${b(e.fontSize)}`]]}})(_(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:o=>!o.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,o])=>o&&o.main).map(([o])=>({props:{color:o},style:{color:(t.vars??t).palette?.[o]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Yt=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiSvgIcon"}),{children:n,className:a,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:v="0 0 24 24",...C}=r,h=c.isValidElement(n)&&n.type==="svg",m={...r,color:s,component:i,fontSize:l,instanceFontSize:o.fontSize,inheritViewBox:u,viewBox:v,hasSvgAsChild:h},y={};u||(y.viewBox=v);const P=ke(m);return p.jsxs(Te,{as:i,className:w(P.root,a),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:e,...y,...C,...h&&n.props,ownerState:m,children:[h?n.props.children:n,f?p.jsx("title",{children:f}):null]})});Yt.muiName="SvgIcon";function ft(t,o){function e(r,n){return p.jsx(Yt,{"data-testid":void 0,ref:n,...r,children:t})}return e.muiName=Yt.muiName,c.memo(c.forwardRef(e))}function Oo(t,o=166){let e;function r(...n){const a=()=>{t.apply(this,n)};clearTimeout(e),e=setTimeout(a,o)}return r.clear=()=>{clearTimeout(e)},r}function Wo(t){return t&&t.ownerDocument||document}function Do(t){return Wo(t).defaultView||window}function ht(t){const o=c.useRef(t);return zo(()=>{o.current=t}),c.useRef((...e)=>(0,o.current)(...e)).current}function wt(...t){const o=c.useRef(void 0),e=c.useCallback(r=>{const n=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,i=s(r);return typeof i=="function"?i:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{n.forEach(a=>a?.())}},t);return c.useMemo(()=>t.every(r=>r==null)?null:r=>{o.current&&(o.current(),o.current=void 0),r!=null&&(o.current=e(r))},t)}function ze(t,o){if(t==null)return{};var e={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(o.indexOf(r)!==-1)continue;e[r]=t[r]}return e}function qt(t,o){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},qt(t,o)}function Ee(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,qt(t,o)}const yo=Rt.createContext(null);function Le(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oo(t,o){var e=function(a){return o&&c.isValidElement(a)?o(a):a},r=Object.create(null);return t&&c.Children.map(t,function(n){return n}).forEach(function(n){r[n.key]=e(n)}),r}function Ae(t,o){t=t||{},o=o||{};function e(u){return u in o?o[u]:t[u]}var r=Object.create(null),n=[];for(var a in t)a in o?n.length&&(r[a]=n,n=[]):n.push(a);var s,i={};for(var l in o){if(r[l])for(s=0;s{this.currentId=null,e()},o)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Fe(){const t=Vo(ro.create).current;return Ve(t.disposeEffect),t}function Ue(t){return J("MuiPaper",t)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const He=t=>{const{square:o,elevation:e,variant:r,classes:n}=t,a={root:["root",r,!o&&"rounded",r==="elevation"&&`elevation${e}`]};return Q(a,Ue,n)},Ke=M("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],!e.square&&o.rounded,e.variant==="elevation"&&o[`elevation${e.elevation}`]]}})(_(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),no=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiPaper"}),n=No(),{className:a,component:s="div",elevation:i=1,square:l=!1,variant:d="elevation",...u}=r,f={...r,component:s,elevation:i,square:l,variant:d},v=He(f);return p.jsx(Ke,{as:s,ownerState:f,className:w(v.root,a),ref:e,...u,style:{...d==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[i],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[i]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${go("#fff",vo(i))}, ${go("#fff",vo(i))})`}},...u.style}})});function Ye(t){return typeof t=="string"}function Fo(t,o,e){return t===void 0||Ye(t)?o:{...o,ownerState:{...o.ownerState,...e}}}function Uo(t,o,e){return typeof t=="function"?t(o,e):t}function qe(t,o=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!o.includes(r)).forEach(r=>{e[r]=t[r]}),e}function mo(t){if(t===void 0)return{};const o={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{o[e]=t[e]}),o}function Ho(t){const{getSlotProps:o,additionalProps:e,externalSlotProps:r,externalForwardedProps:n,className:a}=t;if(!o){const C=w(e?.className,a,n?.className,r?.className),h={...e?.style,...n?.style,...r?.style},m={...e,...n,...r};return C.length>0&&(m.className=C),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const s=qe({...n,...r}),i=mo(r),l=mo(n),d=o(s),u=w(d?.className,e?.className,a,n?.className,r?.className),f={...d?.style,...e?.style,...n?.style,...r?.style},v={...d,...e,...l,...i};return u.length>0&&(v.className=u),Object.keys(f).length>0&&(v.style=f),{props:v,internalRef:d.ref}}function nt(t,o){const{className:e,elementType:r,ownerState:n,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:i=!1,...l}=o,{component:d,slots:u={[t]:void 0},slotProps:f={[t]:void 0},...v}=a,C=u[t]||r,h=Uo(f[t],n),{props:{component:m,...y},internalRef:P}=Ho({className:e,...l,externalForwardedProps:t==="root"?v:void 0,externalSlotProps:h}),I=wt(P,h?.ref,o.ref),j=t==="root"?m||d:m,x=Fo(C,{...t==="root"&&!d&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...y,...j&&!i&&{as:j},...j&&i&&{component:j},ref:I},n);return[C,x]}function xo(t){try{return t.matches(":focus-visible")}catch{}return!1}class jt{static create(){return new jt}static use(){const o=Vo(jt.create).current,[e,r]=c.useState(!1);return o.shouldMount=e,o.setShouldMount=r,c.useEffect(o.mountEffect,[e]),o}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Ge(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...o){this.mount().then(()=>this.ref.current?.start(...o))}stop(...o){this.mount().then(()=>this.ref.current?.stop(...o))}pulsate(...o){this.mount().then(()=>this.ref.current?.pulsate(...o))}}function Xe(){return jt.use()}function Ge(){let t,o;const e=new Promise((r,n)=>{t=r,o=n});return e.resolve=t,e.reject=o,e}function _e(t){const{className:o,classes:e,pulsate:r=!1,rippleX:n,rippleY:a,rippleSize:s,in:i,onExited:l,timeout:d}=t,[u,f]=c.useState(!1),v=w(o,e.ripple,e.rippleVisible,r&&e.ripplePulsate),C={width:s,height:s,top:-(s/2)+a,left:-(s/2)+n},h=w(e.child,u&&e.childLeaving,r&&e.childPulsate);return!i&&!u&&f(!0),c.useEffect(()=>{if(!i&&l!=null){const m=setTimeout(l,d);return()=>{clearTimeout(m)}}},[l,i,d]),p.jsx("span",{className:v,style:C,children:p.jsx("span",{className:h})})}const lt=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=550,Ze=80,Qe=Ct` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,Je=Ct` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,tr=Ct` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,or=M("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),er=M(_e,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${lt.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${Qe}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${lt.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${lt.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${lt.childLeaving} { + opacity: 0; + animation-name: ${Je}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${lt.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${tr}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTouchRipple"}),{center:n=!1,classes:a={},className:s,...i}=r,[l,d]=c.useState([]),u=c.useRef(0),f=c.useRef(null);c.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const v=c.useRef(!1),C=Fe(),h=c.useRef(null),m=c.useRef(null),y=c.useCallback(x=>{const{pulsate:N,rippleX:T,rippleY:F,rippleSize:Y,cb:q}=x;d(A=>[...A,p.jsx(er,{classes:{ripple:w(a.ripple,lt.ripple),rippleVisible:w(a.rippleVisible,lt.rippleVisible),ripplePulsate:w(a.ripplePulsate,lt.ripplePulsate),child:w(a.child,lt.child),childLeaving:w(a.childLeaving,lt.childLeaving),childPulsate:w(a.childPulsate,lt.childPulsate)},timeout:Xt,pulsate:N,rippleX:T,rippleY:F,rippleSize:Y},u.current)]),u.current+=1,f.current=q},[a]),P=c.useCallback((x={},N={},T=()=>{})=>{const{pulsate:F=!1,center:Y=n||N.pulsate,fakeElement:q=!1}=N;if(x?.type==="mousedown"&&v.current){v.current=!1;return}x?.type==="touchstart"&&(v.current=!0);const A=q?null:m.current,U=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,B,z;if(Y||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)D=Math.round(U.width/2),B=Math.round(U.height/2);else{const{clientX:H,clientY:W}=x.touches&&x.touches.length>0?x.touches[0]:x;D=Math.round(H-U.left),B=Math.round(W-U.top)}if(Y)z=Math.sqrt((2*U.width**2+U.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-D),D)*2+2,W=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;z=Math.sqrt(H**2+W**2)}x?.touches?h.current===null&&(h.current=()=>{y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},C.start(Ze,()=>{h.current&&(h.current(),h.current=null)})):y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},[n,y,C]),I=c.useCallback(()=>{P({},{pulsate:!0})},[P]),j=c.useCallback((x,N)=>{if(C.clear(),x?.type==="touchend"&&h.current){h.current(),h.current=null,C.start(0,()=>{j(x,N)});return}h.current=null,d(T=>T.length>0?T.slice(1):T),f.current=N},[C]);return c.useImperativeHandle(e,()=>({pulsate:I,start:P,stop:j}),[I,P,j]),p.jsx(or,{className:w(lt.root,a.root,s),ref:m,...i,children:p.jsx(eo,{component:null,exit:!0,children:l})})});function nr(t){return J("MuiButtonBase",t)}const ar=tt("MuiButtonBase",["root","disabled","focusVisible"]),sr=t=>{const{disabled:o,focusVisible:e,focusVisibleClassName:r,classes:n}=t,s=Q({root:["root",o&&"disabled",e&&"focusVisible"]},nr,n);return e&&r&&(s.root+=` ${r}`),s},ir=M("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ar.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),St=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiButtonBase"}),{action:n,centerRipple:a=!1,children:s,className:i,component:l="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:v=!1,focusVisibleClassName:C,LinkComponent:h="a",onBlur:m,onClick:y,onContextMenu:P,onDragLeave:I,onFocus:j,onFocusVisible:x,onKeyDown:N,onKeyUp:T,onMouseDown:F,onMouseLeave:Y,onMouseUp:q,onTouchEnd:A,onTouchMove:U,onTouchStart:D,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:H,type:W,...X}=r,ot=c.useRef(null),O=Xe(),et=wt(O.ref,H),[K,pt]=c.useState(!1);d&&K&&pt(!1),c.useImperativeHandle(n,()=>({focusVisible:()=>{pt(!0),ot.current.focus()}}),[]);const It=O.shouldMount&&!u&&!d;c.useEffect(()=>{K&&v&&!u&&O.pulsate()},[u,v,K,O]);const mt=dt(O,"start",F,f),$t=dt(O,"stop",P,f),E=dt(O,"stop",I,f),at=dt(O,"stop",q,f),Mt=dt(O,"stop",$=>{K&&$.preventDefault(),Y&&Y($)},f),Ot=dt(O,"start",D,f),kt=dt(O,"stop",A,f),Wt=dt(O,"stop",U,f),Tt=dt(O,"stop",$=>{xo($.target)||pt(!1),m&&m($)},!1),Dt=ht($=>{ot.current||(ot.current=$.currentTarget),xo($.target)&&(pt(!0),x&&x($)),j&&j($)}),xt=()=>{const $=ot.current;return l&&l!=="button"&&!($.tagName==="A"&&$.href)},Vt=ht($=>{v&&!$.repeat&&K&&$.key===" "&&O.stop($,()=>{O.start($)}),$.target===$.currentTarget&&xt()&&$.key===" "&&$.preventDefault(),N&&N($),$.target===$.currentTarget&&xt()&&$.key==="Enter"&&!d&&($.preventDefault(),y&&y($))}),zt=ht($=>{v&&$.key===" "&&K&&!$.defaultPrevented&&O.stop($,()=>{O.pulsate($)}),T&&T($),y&&$.target===$.currentTarget&&xt()&&$.key===" "&&!$.defaultPrevented&&y($)});let rt=l;rt==="button"&&(X.href||X.to)&&(rt=h);const st={};rt==="button"?(st.type=W===void 0?"button":W,st.disabled=d):(!X.href&&!X.to&&(st.role="button"),d&&(st["aria-disabled"]=d));const ut=wt(e,ot),Pt={...r,centerRipple:a,component:l,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:v,tabIndex:B,focusVisible:K},bt=sr(Pt);return p.jsxs(ir,{as:rt,className:w(bt.root,i),ownerState:Pt,onBlur:Tt,onClick:y,onContextMenu:$t,onFocus:Dt,onKeyDown:Vt,onKeyUp:zt,onMouseDown:mt,onMouseLeave:Mt,onMouseUp:at,onDragLeave:E,onTouchEnd:kt,onTouchMove:Wt,onTouchStart:Ot,ref:ut,tabIndex:d?-1:B,type:W,...st,...X,children:[s,It?p.jsx(rr,{ref:et,center:a,...z}):null]})});function dt(t,o,e,r=!1){return ht(n=>(e&&e(n),r||t[o](n),!0))}function lr(t){return J("MuiAlert",t)}const So=tt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function cr(t){return J("MuiIconButton",t)}const Co=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),dr=t=>{const{classes:o,disabled:e,color:r,edge:n,size:a,loading:s}=t,i={root:["root",s&&"loading",e&&"disabled",r!=="default"&&`color${b(r)}`,n&&`edge${b(n)}`,`size${b(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Q(i,cr,o)},pr=M(St,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.loading&&o.loading,e.color!=="default"&&o[`color${b(e.color)}`],e.edge&&o[`edge${b(e.edge)}`],o[`size${b(e.size)}`]]}})(_(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:o=>!o.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{color:(t.vars||t).palette[o].main}})),...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Co.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Co.loading}`]:{color:"transparent"}}))),ur=M("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),fr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiIconButton"}),{edge:n=!1,children:a,className:s,color:i="default",disabled:l=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:v=null,loadingIndicator:C,...h}=r,m=Eo(f),y=C??p.jsx(Lo,{"aria-labelledby":m,color:"inherit",size:16}),P={...r,edge:n,color:i,disabled:l,disableFocusRipple:d,loading:v,loadingIndicator:y,size:u},I=dr(P);return p.jsxs(pr,{id:v?m:f,className:w(I.root,s),centerRipple:!0,focusRipple:!d,disabled:l||v,ref:e,...h,ownerState:P,children:[typeof v=="boolean"&&p.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:p.jsx(ur,{className:I.loadingIndicator,ownerState:P,children:v&&y})}),a]})}),br=ft(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),gr=ft(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),vr=ft(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),yr=ft(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),hr=ft(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),mr=t=>{const{variant:o,color:e,severity:r,classes:n}=t,a={root:["root",`color${b(e||r)}`,`${o}${b(e||r)}`,`${o}`],icon:["icon"],message:["message"],action:["action"]};return Q(a,lr,n)},xr=M(no,{name:"MuiAlert",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color||e.severity)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.darken:t.lighten,e=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:e(t.palette[r].light,.9),[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),Sr=M("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Cr=M("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ir=M("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Io={success:p.jsx(br,{fontSize:"inherit"}),warning:p.jsx(gr,{fontSize:"inherit"}),error:p.jsx(vr,{fontSize:"inherit"}),info:p.jsx(yr,{fontSize:"inherit"})},Tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAlert"}),{action:n,children:a,className:s,closeText:i="Close",color:l,components:d={},componentsProps:u={},icon:f,iconMapping:v=Io,onClose:C,role:h="alert",severity:m="success",slotProps:y={},slots:P={},variant:I="standard",...j}=r,x={...r,color:l,severity:m,variant:I,colorSeverity:l||m},N=mr(x),T={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...P},slotProps:{...u,...y}},[F,Y]=nt("root",{ref:e,shouldForwardComponentProp:!0,className:w(N.root,s),elementType:xr,externalForwardedProps:{...T,...j},ownerState:x,additionalProps:{role:h,elevation:0}}),[q,A]=nt("icon",{className:N.icon,elementType:Sr,externalForwardedProps:T,ownerState:x}),[U,D]=nt("message",{className:N.message,elementType:Cr,externalForwardedProps:T,ownerState:x}),[B,z]=nt("action",{className:N.action,elementType:Ir,externalForwardedProps:T,ownerState:x}),[H,W]=nt("closeButton",{elementType:fr,externalForwardedProps:T,ownerState:x}),[X,ot]=nt("closeIcon",{elementType:hr,externalForwardedProps:T,ownerState:x});return p.jsxs(F,{...Y,children:[f!==!1?p.jsx(q,{...A,children:f||v[m]||Io[m]}):null,p.jsx(U,{...D,children:a}),n!=null?p.jsx(B,{...z,children:n}):null,n==null&&C?p.jsx(B,{...z,children:p.jsx(H,{size:"small","aria-label":i,title:i,color:"inherit",onClick:C,...W,children:p.jsx(X,{fontSize:"small",...ot})})}):null]})});function $r(t){return J("MuiAppBar",t)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Pr=t=>{const{color:o,position:e,classes:r}=t,n={root:["root",`color${b(o)}`,`position${b(e)}`]};return Q(n,$r,r)},$o=(t,o)=>t?`${t?.replace(")","")}, ${o})`:o,Br=M(no,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`position${b(e.position)}`],o[`color${b(e.color)}`]]}})(_(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([o])=>({props:{color:o},style:{"--AppBar-background":(t.vars??t).palette[o].main,"--AppBar-color":(t.vars??t).palette[o].contrastText}})),{props:o=>o.enableColorOnDark===!0&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:o=>o.enableColorOnDark===!1&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?$o(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?$o(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),Rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAppBar"}),{className:n,color:a="primary",enableColorOnDark:s=!1,position:i="fixed",...l}=r,d={...r,color:a,position:i,enableColorOnDark:s},u=Pr(d);return p.jsx(Br,{square:!0,component:"header",ownerState:d,elevation:4,className:w(u.root,n,i==="fixed"&&"mui-fixed"),ref:e,...l})});function Nt(t){const{elementType:o,externalSlotProps:e,ownerState:r,skipResolvingSlotProps:n=!1,...a}=t,s=n?{}:Uo(e,r),{props:i,internalRef:l}=Ho({...a,externalSlotProps:s}),d=wt(l,s?.ref,t.additionalProps?.ref);return Fo(o,{...i,ref:d},r)}const wr=ft(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Mr(t){return J("MuiChip",t)}const R=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),kr=t=>{const{classes:o,disabled:e,size:r,color:n,iconColor:a,onDelete:s,clickable:i,variant:l}=t,d={root:["root",l,e&&"disabled",`size${b(r)}`,`color${b(n)}`,i&&"clickable",i&&`clickableColor${b(n)}`,s&&"deletable",s&&`deletableColor${b(n)}`,`${l}${b(n)}`],label:["label",`label${b(r)}`],avatar:["avatar",`avatar${b(r)}`,`avatarColor${b(n)}`],icon:["icon",`icon${b(r)}`,`iconColor${b(a)}`],deleteIcon:["deleteIcon",`deleteIcon${b(r)}`,`deleteIconColor${b(n)}`,`deleteIcon${b(l)}Color${b(n)}`]};return Q(d,Mr,o)},Tr=M("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t,{color:r,iconColor:n,clickable:a,onDelete:s,size:i,variant:l}=e;return[{[`& .${R.avatar}`]:o.avatar},{[`& .${R.avatar}`]:o[`avatar${b(i)}`]},{[`& .${R.avatar}`]:o[`avatarColor${b(r)}`]},{[`& .${R.icon}`]:o.icon},{[`& .${R.icon}`]:o[`icon${b(i)}`]},{[`& .${R.icon}`]:o[`iconColor${b(n)}`]},{[`& .${R.deleteIcon}`]:o.deleteIcon},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(i)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIconColor${b(r)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(l)}Color${b(r)}`]},o.root,o[`size${b(i)}`],o[`color${b(r)}`],a&&o.clickable,a&&r!=="default"&&o[`clickableColor${b(r)})`],s&&o.deletable,s&&r!=="default"&&o[`deletableColor${b(r)}`],o[l],o[`${l}${b(r)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${R.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${R.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:o,fontSize:t.typography.pxToRem(12)},[`& .${R.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${R.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${R.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${R.icon}`]:{marginLeft:5,marginRight:-6},[`& .${R.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${R.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${R.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText,[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${R.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:o}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${R.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,onDelete:!0},style:{[`&.${R.focusVisible}`]:{background:(t.vars||t).palette[e].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,clickable:!0},style:{[`&:hover, &.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${R.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${R.avatar}`]:{marginLeft:4},[`& .${R.avatarSmall}`]:{marginLeft:2},[`& .${R.icon}`]:{marginLeft:4},[`& .${R.iconSmall}`]:{marginLeft:2},[`& .${R.deleteIcon}`]:{marginRight:5},[`& .${R.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(G()).map(([e])=>({props:{variant:"outlined",color:e},style:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.7)}`,[`&.${R.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.focusOpacity)},[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].main}}}}))]}})),zr=M("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,o)=>{const{ownerState:e}=t,{size:r}=e;return[o.label,o[`label${b(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Po(t){return t.key==="Backspace"||t.key==="Delete"}const zn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiChip"}),{avatar:n,className:a,clickable:s,color:i="default",component:l,deleteIcon:d,disabled:u=!1,icon:f,label:v,onClick:C,onDelete:h,onKeyDown:m,onKeyUp:y,size:P="medium",variant:I="filled",tabIndex:j,skipFocusWhenDisabled:x=!1,slots:N={},slotProps:T={},...F}=r,Y=c.useRef(null),q=wt(Y,e),A=E=>{E.stopPropagation(),h&&h(E)},U=E=>{E.currentTarget===E.target&&Po(E)&&E.preventDefault(),m&&m(E)},D=E=>{E.currentTarget===E.target&&h&&Po(E)&&h(E),y&&y(E)},B=s!==!1&&C?!0:s,z=B||h?St:l||"div",H={...r,component:z,disabled:u,size:P,color:i,iconColor:c.isValidElement(f)&&f.props.color||i,onDelete:!!h,clickable:B,variant:I},W=kr(H),X=z===St?{component:l||"div",focusVisibleClassName:W.focusVisible,...h&&{disableRipple:!0}}:{};let ot=null;h&&(ot=d&&c.isValidElement(d)?c.cloneElement(d,{className:w(d.props.className,W.deleteIcon),onClick:A}):p.jsx(wr,{className:W.deleteIcon,onClick:A}));let O=null;n&&c.isValidElement(n)&&(O=c.cloneElement(n,{className:w(W.avatar,n.props.className)}));let et=null;f&&c.isValidElement(f)&&(et=c.cloneElement(f,{className:w(W.icon,f.props.className)}));const K={slots:N,slotProps:T},[pt,It]=nt("root",{elementType:Tr,externalForwardedProps:{...K,...F},ownerState:H,shouldForwardComponentProp:!0,ref:q,className:w(W.root,a),additionalProps:{disabled:B&&u?!0:void 0,tabIndex:x&&u?-1:j,...X},getSlotProps:E=>({...E,onClick:at=>{E.onClick?.(at),C?.(at)},onKeyDown:at=>{E.onKeyDown?.(at),U(at)},onKeyUp:at=>{E.onKeyUp?.(at),D(at)}})}),[mt,$t]=nt("label",{elementType:zr,externalForwardedProps:K,ownerState:H,className:W.label});return p.jsxs(pt,{as:z,...It,children:[O||et,p.jsx(mt,{...$t,children:v}),ot]})});function Er(t){return J("MuiButton",t)}const vt=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Lr=c.createContext({}),Ar=c.createContext(void 0),jr=t=>{const{color:o,disableElevation:e,fullWidth:r,size:n,variant:a,loading:s,loadingPosition:i,classes:l}=t,d={root:["root",s&&"loading",a,`${a}${b(o)}`,`size${b(n)}`,`${a}Size${b(n)}`,`color${b(o)}`,e&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${b(i)}`],startIcon:["icon","startIcon",`iconSize${b(n)}`],endIcon:["icon","endIcon",`iconSize${b(n)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Q(d,Er,l);return{...l,...u}},Ko=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Nr=M(St,{shouldForwardProp:t=>fe(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color)}`],o[`size${b(e.size)}`],o[`${e.variant}Size${b(e.size)}`],e.color==="inherit"&&o.colorInherit,e.disableElevation&&o.disableElevation,e.fullWidth&&o.fullWidth,e.loading&&o.loading]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],e=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${vt.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${vt.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(G()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:o,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:e,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${vt.loading}`]:{color:"transparent"}}}]}})),Or=M("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.startIcon,e.loading&&o.startIconLoadingStart,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ko]})),Wr=M("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.endIcon,e.loading&&o.endIconLoadingEnd,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ko]})),Dr=M("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Bo=M("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),En=c.forwardRef(function(o,e){const r=c.useContext(Lr),n=c.useContext(Ar),a=ko(r,o),s=Z({props:a,name:"MuiButton"}),{children:i,color:l="primary",component:d="button",className:u,disabled:f=!1,disableElevation:v=!1,disableFocusRipple:C=!1,endIcon:h,focusVisibleClassName:m,fullWidth:y=!1,id:P,loading:I=null,loadingIndicator:j,loadingPosition:x="center",size:N="medium",startIcon:T,type:F,variant:Y="text",...q}=s,A=Eo(P),U=j??p.jsx(Lo,{"aria-labelledby":A,color:"inherit",size:16}),D={...s,color:l,component:d,disabled:f,disableElevation:v,disableFocusRipple:C,fullWidth:y,loading:I,loadingIndicator:U,loadingPosition:x,size:N,type:F,variant:Y},B=jr(D),z=(T||I&&x==="start")&&p.jsx(Or,{className:B.startIcon,ownerState:D,children:T||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),H=(h||I&&x==="end")&&p.jsx(Wr,{className:B.endIcon,ownerState:D,children:h||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),W=n||"",X=typeof I=="boolean"?p.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:I&&p.jsx(Dr,{className:B.loadingIndicator,ownerState:D,children:U})}):null;return p.jsxs(Nr,{ownerState:D,className:w(r.className,B.root,u,W),component:d,disabled:f||I,focusRipple:!C,focusVisibleClassName:w(B.focusVisible,m),ref:e,type:F,id:I?A:P,...q,classes:B,children:[z,x!=="end"&&X,i,x==="end"&&X,H]})});function Vr(t){return J("MuiCard",t)}tt("MuiCard",["root"]);const Fr=t=>{const{classes:o}=t;return Q({root:["root"]},Vr,o)},Ur=M(no,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ln=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiCard"}),{className:n,raised:a=!1,...s}=r,i={...r,raised:a},l=Fr(i);return p.jsx(Ur,{className:w(l.root,n),elevation:a?8:void 0,ref:e,ownerState:i,...s})}),Hr=we({createStyledComponent:M("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),useThemeProps:t=>Z({props:t,name:"MuiContainer"})});function Kr(t){return J("MuiLinearProgress",t)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Gt=4,_t=Ct` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,Yr=typeof _t!="string"?to` + animation: ${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Zt=Ct` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,qr=typeof Zt!="string"?to` + animation: ${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,Qt=Ct` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,Xr=typeof Qt!="string"?to` + animation: ${Qt} 3s infinite linear; + `:null,Gr=t=>{const{classes:o,variant:e,color:r}=t,n={root:["root",`color${b(r)}`,e],dashed:["dashed",`dashedColor${b(r)}`],bar1:["bar","bar1",`barColor${b(r)}`,(e==="indeterminate"||e==="query")&&"bar1Indeterminate",e==="determinate"&&"bar1Determinate",e==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",e!=="buffer"&&`barColor${b(r)}`,e==="buffer"&&`color${b(r)}`,(e==="indeterminate"||e==="query")&&"bar2Indeterminate",e==="buffer"&&"bar2Buffer"]};return Q(n,Kr,o)},ao=(t,o)=>t.vars?t.vars.palette.LinearProgress[`${o}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[o].main,.62):t.darken(t.palette[o].main,.5),_r=M("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`color${b(e.color)}`],o[e.variant]]}})(_(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:ao(t,o)}})),{props:({ownerState:o})=>o.color==="inherit"&&o.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Zr=M("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.dashed,o[`dashedColor${b(e.color)}`]]}})(_(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(G()).map(([o])=>{const e=ao(t,o);return{props:{color:o},style:{backgroundImage:`radial-gradient(${e} 0%, ${e} 16%, transparent 42%)`}}})]})),Xr||{animation:`${Qt} 3s infinite linear`}),Qr=M("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar1,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar1Indeterminate,e.variant==="determinate"&&o.bar1Determinate,e.variant==="buffer"&&o.bar1Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:(t.vars||t).palette[o].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Gt}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Gt}s linear`}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Yr||{animation:`${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Jr=M("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar2,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar2Indeterminate,e.variant==="buffer"&&o.bar2Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[o].main}})),{props:({ownerState:o})=>o.variant!=="buffer"&&o.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:o})=>o.variant!=="buffer"&&o.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o,variant:"buffer"},style:{backgroundColor:ao(t,o),transition:`transform .${Gt}s linear`}})),{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:qr||{animation:`${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiLinearProgress"}),{className:n,color:a="primary",value:s,valueBuffer:i,variant:l="indeterminate",...d}=r,u={...r,color:a,variant:l},f=Gr(u),v=Jt(),C={},h={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){C["aria-valuenow"]=Math.round(s),C["aria-valuemin"]=0,C["aria-valuemax"]=100;let m=s-100;v&&(m=-m),h.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&i!==void 0){let m=(i||0)-100;v&&(m=-m),h.bar2.transform=`translateX(${m}%)`}return p.jsxs(_r,{className:w(f.root,n),ownerState:u,role:"progressbar",...C,ref:e,...d,children:[l==="buffer"?p.jsx(Zr,{className:f.dashed,ownerState:u}):null,p.jsx(Qr,{className:f.bar1,ownerState:u,style:h.bar1}),l==="determinate"?null:p.jsx(Jr,{className:f.bar2,ownerState:u,style:h.bar2})]})});function on(t){return J("MuiTab",t)}const it=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),en=t=>{const{classes:o,textColor:e,fullWidth:r,wrapped:n,icon:a,label:s,selected:i,disabled:l}=t,d={root:["root",a&&s&&"labelIcon",`textColor${b(e)}`,r&&"fullWidth",n&&"wrapped",i&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Q(d,on,o)},rn=M(St,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.label&&e.icon&&o.labelIcon,o[`textColor${b(e.textColor)}`],e.fullWidth&&o.fullWidth,e.wrapped&&o.wrapped,{[`& .${it.iconWrapper}`]:o.iconWrapper},{[`& .${it.icon}`]:o.icon}]}})(_(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:o})=>o.label&&(o.iconPosition==="top"||o.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:o})=>o.label&&o.iconPosition!=="top"&&o.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:o})=>o.icon&&o.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="top",style:{[`& > .${it.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="bottom",style:{[`& > .${it.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="start",style:{[`& > .${it.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="end",style:{[`& > .${it.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${it.selected}`]:{opacity:1},[`&.${it.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:o})=>o.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:o})=>o.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),nn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:d="top",indicator:u,label:f,onChange:v,onClick:C,onFocus:h,selected:m,selectionFollowsFocus:y,textColor:P="inherit",value:I,wrapped:j=!1,...x}=r,N={...r,disabled:a,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:d,label:!!f,fullWidth:i,textColor:P,wrapped:j},T=en(N),F=l&&f&&c.isValidElement(l)?c.cloneElement(l,{className:w(T.icon,l.props.className)}):l,Y=A=>{!m&&v&&v(A,I),C&&C(A)},q=A=>{y&&!m&&v&&v(A,I),h&&h(A)};return p.jsxs(rn,{focusRipple:!s,className:w(T.root,n),ref:e,role:"tab","aria-selected":m,disabled:a,onClick:Y,onFocus:q,ownerState:N,tabIndex:m?0:-1,...x,children:[d==="top"||d==="start"?p.jsxs(c.Fragment,{children:[F,f]}):p.jsxs(c.Fragment,{children:[f,F]}),u]})});function an(t){return J("MuiToolbar",t)}tt("MuiToolbar",["root","gutters","regular","dense"]);const sn=t=>{const{classes:o,disableGutters:e,variant:r}=t;return Q({root:["root",!e&&"gutters",r]},an,o)},ln=M("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,!e.disableGutters&&o.gutters,o[e.variant]]}})(_(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),cn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiToolbar"}),{className:n,component:a="div",disableGutters:s=!1,variant:i="regular",...l}=r,d={...r,component:a,disableGutters:s,variant:i},u=sn(d);return p.jsx(ln,{as:a,className:w(u.root,n),ref:e,ownerState:d,...l})}),dn=ft(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),pn=ft(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function un(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fn(t,o,e,r={},n=()=>{}){const{ease:a=un,duration:s=300}=r;let i=null;const l=o[t];let d=!1;const u=()=>{d=!0},f=v=>{if(d){n(new Error("Animation cancelled"));return}i===null&&(i=v);const C=Math.min(1,(v-i)/s);if(o[t]=a(C)*(e-l)+l,C>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(f)};return l===e?(n(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const bn={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function gn(t){const{onChange:o,...e}=t,r=c.useRef(),n=c.useRef(null),a=()=>{r.current=n.current.offsetHeight-n.current.clientHeight};return zo(()=>{const s=Oo(()=>{const l=r.current;a(),l!==r.current&&o(r.current)}),i=Do(n.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[o]),c.useEffect(()=>{a(),o(r.current)},[o]),p.jsx("div",{style:bn,...e,ref:n})}function vn(t){return J("MuiTabScrollButton",t)}const yn=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),hn=t=>{const{classes:o,orientation:e,disabled:r}=t;return Q({root:["root",e,r&&"disabled"]},vn,o)},mn=M(St,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.orientation&&o[e.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${yn.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),xn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabScrollButton"}),{className:n,slots:a={},slotProps:s={},direction:i,orientation:l,disabled:d,...u}=r,f=Jt(),v={isRtl:f,...r},C=hn(v),h=a.StartScrollButtonIcon??dn,m=a.EndScrollButtonIcon??pn,y=Nt({elementType:h,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),P=Nt({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return p.jsx(mn,{component:"div",className:w(C.root,n),ref:e,role:null,ownerState:v,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:i==="left"?p.jsx(h,{...y}):p.jsx(m,{...P})})});function Sn(t){return J("MuiTabs",t)}const Ht=tt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ro=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,wo=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,At=(t,o,e)=>{let r=!1,n=e(t,o);for(;n;){if(n===t.firstChild){if(r)return;r=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=e(t,n);else{n.focus();return}}},Cn=t=>{const{vertical:o,fixed:e,hideScrollbar:r,scrollableX:n,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=t;return Q({root:["root",o&&"vertical"],scroller:["scroller",e&&"fixed",r&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",o&&"flexContainerVertical",o&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Sn,l)},In=M("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[{[`& .${Ht.scrollButtons}`]:o.scrollButtons},{[`& .${Ht.scrollButtons}`]:e.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,e.vertical&&o.vertical]}})(_(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.scrollButtonsHideMobile,style:{[`& .${Ht.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),$n=M("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.scroller,e.fixed&&o.fixed,e.hideScrollbar&&o.hideScrollbar,e.scrollableX&&o.scrollableX,e.scrollableY&&o.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Pn=M("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.list,o.flexContainer,e.vertical&&o.flexContainerVertical,e.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Bn=M("span",{name:"MuiTabs",slot:"Indicator"})(_(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:o})=>o.vertical,style:{height:"100%",width:2,right:0}}]}))),Rn=M(gn)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Mo={},wn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabs"}),n=No(),a=Jt(),{"aria-label":s,"aria-labelledby":i,action:l,centered:d=!1,children:u,className:f,component:v="div",allowScrollButtonsMobile:C=!1,indicatorColor:h="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:P,scrollButtons:I="auto",selectionFollowsFocus:j,slots:x={},slotProps:N={},TabIndicatorProps:T={},TabScrollButtonProps:F={},textColor:Y="primary",value:q,variant:A="standard",visibleScrollbar:U=!1,...D}=r,B=A==="scrollable",z=y==="vertical",H=z?"scrollTop":"scrollLeft",W=z?"top":"left",X=z?"bottom":"right",ot=z?"clientHeight":"clientWidth",O=z?"height":"width",et={...r,component:v,allowScrollButtonsMobile:C,indicatorColor:h,orientation:y,vertical:z,scrollButtons:I,textColor:Y,variant:A,visibleScrollbar:U,fixed:!B,hideScrollbar:B&&!U,scrollableX:B&&!z,scrollableY:B&&z,centered:d&&!B,scrollButtonsHideMobile:!C},K=Cn(et),pt=Nt({elementType:x.StartScrollButtonIcon,externalSlotProps:N.startScrollButtonIcon,ownerState:et}),It=Nt({elementType:x.EndScrollButtonIcon,externalSlotProps:N.endScrollButtonIcon,ownerState:et}),[mt,$t]=c.useState(!1),[E,at]=c.useState(Mo),[Mt,Ot]=c.useState(!1),[kt,Wt]=c.useState(!1),[Tt,Dt]=c.useState(!1),[xt,Vt]=c.useState({overflow:"hidden",scrollbarWidth:0}),zt=new Map,rt=c.useRef(null),st=c.useRef(null),ut={slots:x,slotProps:{indicator:T,scrollButton:F,...N}},Pt=()=>{const g=rt.current;let S;if(g){const k=g.getBoundingClientRect();S={clientWidth:g.clientWidth,scrollLeft:g.scrollLeft,scrollTop:g.scrollTop,scrollWidth:g.scrollWidth,top:k.top,bottom:k.bottom,left:k.left,right:k.right}}let L;if(g&&q!==!1){const k=st.current.children;if(k.length>0){const V=k[zt.get(q)];L=V?V.getBoundingClientRect():null}}return{tabsMeta:S,tabMeta:L}},bt=ht(()=>{const{tabsMeta:g,tabMeta:S}=Pt();let L=0,k;z?(k="top",S&&g&&(L=S.top-g.top+g.scrollTop)):(k=a?"right":"left",S&&g&&(L=(a?-1:1)*(S[k]-g[k]+g.scrollLeft)));const V={[k]:L,[O]:S?S[O]:0};if(typeof E[k]!="number"||typeof E[O]!="number")at(V);else{const ct=Math.abs(E[k]-V[k]),gt=Math.abs(E[O]-V[O]);(ct>=1||gt>=1)&&at(V)}}),$=(g,{animation:S=!0}={})=>{S?fn(H,rt.current,g,{duration:n.transitions.duration.standard}):rt.current[H]=g},so=g=>{let S=rt.current[H];z?S+=g:S+=g*(a?-1:1),$(S)},io=()=>{const g=rt.current[ot];let S=0;const L=Array.from(st.current.children);for(let k=0;kg){k===0&&(S=g);break}S+=V[ot]}return S},Yo=()=>{so(-1*io())},qo=()=>{so(io())},[Xo,{onChange:lo,...Go}]=nt("scrollbar",{className:w(K.scrollableX,K.hideScrollbar),elementType:Rn,shouldForwardComponentProp:!0,externalForwardedProps:ut,ownerState:et}),_o=c.useCallback(g=>{lo?.(g),Vt({overflow:null,scrollbarWidth:g})},[lo]),[co,po]=nt("scrollButtons",{className:w(K.scrollButtons,F.className),elementType:xn,externalForwardedProps:ut,ownerState:et,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:pt,endScrollButtonIcon:It}}}),Zo=()=>{const g={};g.scrollbarSizeListener=B?p.jsx(Xo,{...Go,onChange:_o}):null;const L=B&&(I==="auto"&&(Mt||kt)||I===!0);return g.scrollButtonStart=L?p.jsx(co,{direction:a?"right":"left",onClick:Yo,disabled:!Mt,...po}):null,g.scrollButtonEnd=L?p.jsx(co,{direction:a?"left":"right",onClick:qo,disabled:!kt,...po}):null,g},uo=ht(g=>{const{tabsMeta:S,tabMeta:L}=Pt();if(!(!L||!S)){if(L[W]S[X]){const k=S[H]+(L[X]-S[X]);$(k,{animation:g})}}}),Et=ht(()=>{B&&I!==!1&&Dt(!Tt)});c.useEffect(()=>{const g=Oo(()=>{rt.current&&bt()});let S;const L=ct=>{ct.forEach(gt=>{gt.removedNodes.forEach(Bt=>{S?.unobserve(Bt)}),gt.addedNodes.forEach(Bt=>{S?.observe(Bt)})}),g(),Et()},k=Do(rt.current);k.addEventListener("resize",g);let V;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(g),Array.from(st.current.children).forEach(ct=>{S.observe(ct)})),typeof MutationObserver<"u"&&(V=new MutationObserver(L),V.observe(st.current,{childList:!0})),()=>{g.clear(),k.removeEventListener("resize",g),V?.disconnect(),S?.disconnect()}},[bt,Et]),c.useEffect(()=>{const g=Array.from(st.current.children),S=g.length;if(typeof IntersectionObserver<"u"&&S>0&&B&&I!==!1){const L=g[0],k=g[S-1],V={root:rt.current,threshold:.99},ct=Ut=>{Ot(!Ut[0].isIntersecting)},gt=new IntersectionObserver(ct,V);gt.observe(L);const Bt=Ut=>{Wt(!Ut[0].isIntersecting)},bo=new IntersectionObserver(Bt,V);return bo.observe(k),()=>{gt.disconnect(),bo.disconnect()}}},[B,I,Tt,u?.length]),c.useEffect(()=>{$t(!0)},[]),c.useEffect(()=>{bt()}),c.useEffect(()=>{uo(Mo!==E)},[uo,E]),c.useImperativeHandle(l,()=>({updateIndicator:bt,updateScrollButtons:Et}),[bt,Et]);const[Qo,Jo]=nt("indicator",{className:w(K.indicator,T.className),elementType:Bn,externalForwardedProps:ut,ownerState:et,additionalProps:{style:E}}),fo=p.jsx(Qo,{...Jo});let Lt=0;const te=c.Children.map(u,g=>{if(!c.isValidElement(g))return null;const S=g.props.value===void 0?Lt:g.props.value;zt.set(S,Lt);const L=S===q;return Lt+=1,c.cloneElement(g,{fullWidth:A==="fullWidth",indicator:L&&!mt&&fo,selected:L,selectionFollowsFocus:j,onChange:m,textColor:Y,value:S,...Lt===1&&q===!1&&!g.props.tabIndex?{tabIndex:0}:{}})}),oe=g=>{if(g.altKey||g.shiftKey||g.ctrlKey||g.metaKey)return;const S=st.current,L=Wo(S).activeElement;if(L.getAttribute("role")!=="tab")return;let V=y==="horizontal"?"ArrowLeft":"ArrowUp",ct=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(V="ArrowRight",ct="ArrowLeft"),g.key){case V:g.preventDefault(),At(S,L,wo);break;case ct:g.preventDefault(),At(S,L,Ro);break;case"Home":g.preventDefault(),At(S,null,Ro);break;case"End":g.preventDefault(),At(S,null,wo);break}},Ft=Zo(),[ee,re]=nt("root",{ref:e,className:w(K.root,f),elementType:In,externalForwardedProps:{...ut,...D,component:v},ownerState:et}),[ne,ae]=nt("scroller",{ref:rt,className:K.scroller,elementType:$n,externalForwardedProps:ut,ownerState:et,additionalProps:{style:{overflow:xt.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:U?void 0:-xt.scrollbarWidth}}}),[se,ie]=nt("list",{ref:st,className:w(K.list,K.flexContainer),elementType:Pn,externalForwardedProps:ut,ownerState:et,getSlotProps:g=>({...g,onKeyDown:S=>{oe(S),g.onKeyDown?.(S)}})});return p.jsxs(ee,{...re,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,p.jsxs(ne,{...ae,children:[p.jsx(se,{"aria-label":s,"aria-labelledby":i,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...ie,children:te}),mt&&fo]}),Ft.scrollButtonEnd]})}),Mn=({currentPath:t})=>{const o=Ao(),{currentDocument:e,extractionById:r}=jo(l=>l.document),n=[{label:"Téléversement",path:"/",alwaysEnabled:!0},{label:"Extraction",path:"/extraction",alwaysEnabled:!0},{label:"Contexte",path:"/contexte",alwaysEnabled:!1},{label:"Conseil",path:"/conseil",alwaysEnabled:!1}],a=n.findIndex(l=>l.path===t),s=e&&r[e.id],i=(l,d)=>{const u=n[d];(u.alwaysEnabled||s)&&o(u.path)};return p.jsx(Kt,{sx:{borderBottom:1,borderColor:"divider"},children:p.jsx(wn,{value:a>=0?a:0,onChange:i,"aria-label":"navigation tabs",variant:"scrollable",scrollButtons:"auto",children:n.map((l,d)=>p.jsx(nn,{label:l.label,disabled:!l.alwaysEnabled&&!s,sx:{opacity:!l.alwaysEnabled&&!s?.5:1,"&.Mui-disabled":{color:"text.disabled"}}},d))})})},An=({children:t})=>{const o=Ao(),e=be(),r=ge(),{documents:n,extractionById:a,loading:s,currentDocument:i,contextResult:l,conseilResult:d,analysisResult:u}=jo(y=>y.document),f=c.useRef(new Set),v=c.useRef([]),C=c.useRef(!1),h=async()=>{if(!(C.current||v.current.length===0)){for(C.current=!0;v.current.length>0;){const y=v.current.shift();if(y){console.log(`🚀 [LAYOUT] Traitement de la queue: ${y}`);try{const P=n.find(I=>I.id===y);P&&(P.status="processing"),await r(xe(y)),await new Promise(I=>setTimeout(I,500))}catch(P){console.error(`❌ [LAYOUT] Erreur extraction ${y}:`,P);const I=n.find(j=>j.id===y);I&&(I.status="error")}}}C.current=!1}},m=c.useMemo(()=>(console.log(`📋 [LAYOUT] Recalcul de la liste des documents: ${n.length}`),n),[n]);return c.useEffect(()=>{console.log(`📋 [LAYOUT] ${m.length} documents détectés`),m.forEach(y=>{const P=a[y.id],I=f.current.has(y.id),j=y.status==="processing",x=y.status==="completed";console.log(`📄 [LAYOUT] Document ${y.id}: hasExtraction=${!!P}, isProcessed=${I}, isProcessing=${j}, isCompleted=${x}`),P&&!I?(console.log(`✅ [LAYOUT] Document ${y.id} a déjà un résultat, marqué comme traité`),f.current.add(y.id),y.status!=="completed"&&(y.status="completed")):!P&&!I&&!j&&!x&&(console.log(`🚀 [LAYOUT] Ajout à la queue: ${y.id}`),f.current.add(y.id),v.current.push(y.id))}),h()},[n,r,a]),c.useEffect(()=>{i&&(u||r(ve(i.id)),l||r(ye(i.id)),d||r(he(i.id)))},[i,u,l,d,r]),p.jsxs(Kt,{sx:{flexGrow:1},children:[p.jsx(Rr,{position:"static",children:p.jsx(cn,{children:p.jsx(me,{variant:"h6",component:"div",sx:{flexGrow:1,cursor:"pointer"},onClick:()=>o("/"),children:"IA - Lecoffre.io"})})}),p.jsx(Mn,{currentPath:e.pathname}),s&&p.jsx(Kt,{sx:{px:2,pt:1},children:p.jsx(tn,{})}),p.jsx(Hr,{maxWidth:"xl",sx:{mt:3,mb:3},children:t})]})};export{Tn as A,En as B,Ln as C,fr as I,An as L,no as P,ro as T,Ee as _,ht as a,No as b,ft as c,Oo as d,nt as e,Wo as f,qe as g,Nt as h,Ye as i,Fe as j,zn as k,St as l,xo as m,ze as n,Do as o,yo as p,tn as q,wt as u}; diff --git a/public/assets/Layout-BwmFxbkK.js b/public/assets/Layout-BwmFxbkK.js new file mode 100644 index 0000000..6706e91 --- /dev/null +++ b/public/assets/Layout-BwmFxbkK.js @@ -0,0 +1,125 @@ +import{W as le,X as ko,Y as To,r as c,j as p,c as w,f as b,h as Q,Z as ce,b as J,_ as de,$ as pe,a as tt,d as Z,s as M,m as _,u as zo,R as Rt,a0 as ue,a1 as go,a2 as vo,v as Ct,k as Eo,o as G,D as Lo,n as fe,p as Jt,t as to,a3 as Ao,y as jo,B as Kt,a4 as be,x as ge,U as ve,O as ye,S as he,T as me,a5 as xe}from"./index-CuLfHvEh.js";const Se=le();function Ce(t){const{theme:o,name:e,props:r}=t;return!o||!o.components||!o.components[e]||!o.components[e].defaultProps?r:ko(o.components[e].defaultProps,r)}function Ie({props:t,name:o,defaultTheme:e,themeId:r}){let n=To(e);return r&&(n=n[r]||n),Ce({theme:n,name:o,props:t})}const $e=ce(),Pe=Se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),Be=t=>Ie({props:t,name:"MuiContainer",defaultTheme:$e}),Re=(t,o)=>{const e=l=>J(o,l),{classes:r,fixed:n,disableGutters:a,maxWidth:s}=t,i={root:["root",s&&`maxWidth${b(String(s))}`,n&&"fixed",a&&"disableGutters"]};return Q(i,e,r)};function we(t={}){const{createStyledComponent:o=Pe,useThemeProps:e=Be,componentName:r="MuiContainer"}=t,n=o(({theme:s,ownerState:i})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!i.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:i})=>i.fixed&&Object.keys(s.breakpoints.values).reduce((l,d)=>{const u=d,f=s.breakpoints.values[u];return f!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:i})=>({...i.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...i.maxWidth&&i.maxWidth!=="xs"&&{[s.breakpoints.up(i.maxWidth)]:{maxWidth:`${s.breakpoints.values[i.maxWidth]}${s.breakpoints.unit}`}}}));return c.forwardRef(function(i,l){const d=e(i),{className:u,component:f="div",disableGutters:v=!1,fixed:C=!1,maxWidth:h="lg",classes:m,...y}=d,P={...d,component:f,disableGutters:v,fixed:C,maxWidth:h},I=Re(P,r);return p.jsx(n,{as:f,ownerState:P,className:w(I.root,u),ref:l,...y})})}function No(){const t=To(pe);return t[de]||t}function Me(t){return J("MuiSvgIcon",t)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ke=t=>{const{color:o,fontSize:e,classes:r}=t,n={root:["root",o!=="inherit"&&`color${b(o)}`,`fontSize${b(e)}`]};return Q(n,Me,r)},Te=M("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.color!=="inherit"&&o[`color${b(e.color)}`],o[`fontSize${b(e.fontSize)}`]]}})(_(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:o=>!o.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,o])=>o&&o.main).map(([o])=>({props:{color:o},style:{color:(t.vars??t).palette?.[o]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Yt=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiSvgIcon"}),{children:n,className:a,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:v="0 0 24 24",...C}=r,h=c.isValidElement(n)&&n.type==="svg",m={...r,color:s,component:i,fontSize:l,instanceFontSize:o.fontSize,inheritViewBox:u,viewBox:v,hasSvgAsChild:h},y={};u||(y.viewBox=v);const P=ke(m);return p.jsxs(Te,{as:i,className:w(P.root,a),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:e,...y,...C,...h&&n.props,ownerState:m,children:[h?n.props.children:n,f?p.jsx("title",{children:f}):null]})});Yt.muiName="SvgIcon";function ft(t,o){function e(r,n){return p.jsx(Yt,{"data-testid":void 0,ref:n,...r,children:t})}return e.muiName=Yt.muiName,c.memo(c.forwardRef(e))}function Oo(t,o=166){let e;function r(...n){const a=()=>{t.apply(this,n)};clearTimeout(e),e=setTimeout(a,o)}return r.clear=()=>{clearTimeout(e)},r}function Wo(t){return t&&t.ownerDocument||document}function Do(t){return Wo(t).defaultView||window}function ht(t){const o=c.useRef(t);return zo(()=>{o.current=t}),c.useRef((...e)=>(0,o.current)(...e)).current}function wt(...t){const o=c.useRef(void 0),e=c.useCallback(r=>{const n=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,i=s(r);return typeof i=="function"?i:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{n.forEach(a=>a?.())}},t);return c.useMemo(()=>t.every(r=>r==null)?null:r=>{o.current&&(o.current(),o.current=void 0),r!=null&&(o.current=e(r))},t)}function ze(t,o){if(t==null)return{};var e={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(o.indexOf(r)!==-1)continue;e[r]=t[r]}return e}function qt(t,o){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},qt(t,o)}function Ee(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,qt(t,o)}const yo=Rt.createContext(null);function Le(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oo(t,o){var e=function(a){return o&&c.isValidElement(a)?o(a):a},r=Object.create(null);return t&&c.Children.map(t,function(n){return n}).forEach(function(n){r[n.key]=e(n)}),r}function Ae(t,o){t=t||{},o=o||{};function e(u){return u in o?o[u]:t[u]}var r=Object.create(null),n=[];for(var a in t)a in o?n.length&&(r[a]=n,n=[]):n.push(a);var s,i={};for(var l in o){if(r[l])for(s=0;s{this.currentId=null,e()},o)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Fe(){const t=Vo(ro.create).current;return Ve(t.disposeEffect),t}function Ue(t){return J("MuiPaper",t)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const He=t=>{const{square:o,elevation:e,variant:r,classes:n}=t,a={root:["root",r,!o&&"rounded",r==="elevation"&&`elevation${e}`]};return Q(a,Ue,n)},Ke=M("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],!e.square&&o.rounded,e.variant==="elevation"&&o[`elevation${e.elevation}`]]}})(_(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),no=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiPaper"}),n=No(),{className:a,component:s="div",elevation:i=1,square:l=!1,variant:d="elevation",...u}=r,f={...r,component:s,elevation:i,square:l,variant:d},v=He(f);return p.jsx(Ke,{as:s,ownerState:f,className:w(v.root,a),ref:e,...u,style:{...d==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[i],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[i]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${go("#fff",vo(i))}, ${go("#fff",vo(i))})`}},...u.style}})});function Ye(t){return typeof t=="string"}function Fo(t,o,e){return t===void 0||Ye(t)?o:{...o,ownerState:{...o.ownerState,...e}}}function Uo(t,o,e){return typeof t=="function"?t(o,e):t}function qe(t,o=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!o.includes(r)).forEach(r=>{e[r]=t[r]}),e}function mo(t){if(t===void 0)return{};const o={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{o[e]=t[e]}),o}function Ho(t){const{getSlotProps:o,additionalProps:e,externalSlotProps:r,externalForwardedProps:n,className:a}=t;if(!o){const C=w(e?.className,a,n?.className,r?.className),h={...e?.style,...n?.style,...r?.style},m={...e,...n,...r};return C.length>0&&(m.className=C),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const s=qe({...n,...r}),i=mo(r),l=mo(n),d=o(s),u=w(d?.className,e?.className,a,n?.className,r?.className),f={...d?.style,...e?.style,...n?.style,...r?.style},v={...d,...e,...l,...i};return u.length>0&&(v.className=u),Object.keys(f).length>0&&(v.style=f),{props:v,internalRef:d.ref}}function nt(t,o){const{className:e,elementType:r,ownerState:n,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:i=!1,...l}=o,{component:d,slots:u={[t]:void 0},slotProps:f={[t]:void 0},...v}=a,C=u[t]||r,h=Uo(f[t],n),{props:{component:m,...y},internalRef:P}=Ho({className:e,...l,externalForwardedProps:t==="root"?v:void 0,externalSlotProps:h}),I=wt(P,h?.ref,o.ref),j=t==="root"?m||d:m,x=Fo(C,{...t==="root"&&!d&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...y,...j&&!i&&{as:j},...j&&i&&{component:j},ref:I},n);return[C,x]}function xo(t){try{return t.matches(":focus-visible")}catch{}return!1}class jt{static create(){return new jt}static use(){const o=Vo(jt.create).current,[e,r]=c.useState(!1);return o.shouldMount=e,o.setShouldMount=r,c.useEffect(o.mountEffect,[e]),o}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Ge(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...o){this.mount().then(()=>this.ref.current?.start(...o))}stop(...o){this.mount().then(()=>this.ref.current?.stop(...o))}pulsate(...o){this.mount().then(()=>this.ref.current?.pulsate(...o))}}function Xe(){return jt.use()}function Ge(){let t,o;const e=new Promise((r,n)=>{t=r,o=n});return e.resolve=t,e.reject=o,e}function _e(t){const{className:o,classes:e,pulsate:r=!1,rippleX:n,rippleY:a,rippleSize:s,in:i,onExited:l,timeout:d}=t,[u,f]=c.useState(!1),v=w(o,e.ripple,e.rippleVisible,r&&e.ripplePulsate),C={width:s,height:s,top:-(s/2)+a,left:-(s/2)+n},h=w(e.child,u&&e.childLeaving,r&&e.childPulsate);return!i&&!u&&f(!0),c.useEffect(()=>{if(!i&&l!=null){const m=setTimeout(l,d);return()=>{clearTimeout(m)}}},[l,i,d]),p.jsx("span",{className:v,style:C,children:p.jsx("span",{className:h})})}const lt=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=550,Ze=80,Qe=Ct` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,Je=Ct` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,tr=Ct` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,or=M("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),er=M(_e,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${lt.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${Qe}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${lt.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${lt.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${lt.childLeaving} { + opacity: 0; + animation-name: ${Je}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${lt.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${tr}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTouchRipple"}),{center:n=!1,classes:a={},className:s,...i}=r,[l,d]=c.useState([]),u=c.useRef(0),f=c.useRef(null);c.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const v=c.useRef(!1),C=Fe(),h=c.useRef(null),m=c.useRef(null),y=c.useCallback(x=>{const{pulsate:N,rippleX:T,rippleY:F,rippleSize:Y,cb:q}=x;d(A=>[...A,p.jsx(er,{classes:{ripple:w(a.ripple,lt.ripple),rippleVisible:w(a.rippleVisible,lt.rippleVisible),ripplePulsate:w(a.ripplePulsate,lt.ripplePulsate),child:w(a.child,lt.child),childLeaving:w(a.childLeaving,lt.childLeaving),childPulsate:w(a.childPulsate,lt.childPulsate)},timeout:Xt,pulsate:N,rippleX:T,rippleY:F,rippleSize:Y},u.current)]),u.current+=1,f.current=q},[a]),P=c.useCallback((x={},N={},T=()=>{})=>{const{pulsate:F=!1,center:Y=n||N.pulsate,fakeElement:q=!1}=N;if(x?.type==="mousedown"&&v.current){v.current=!1;return}x?.type==="touchstart"&&(v.current=!0);const A=q?null:m.current,U=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,B,z;if(Y||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)D=Math.round(U.width/2),B=Math.round(U.height/2);else{const{clientX:H,clientY:W}=x.touches&&x.touches.length>0?x.touches[0]:x;D=Math.round(H-U.left),B=Math.round(W-U.top)}if(Y)z=Math.sqrt((2*U.width**2+U.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-D),D)*2+2,W=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;z=Math.sqrt(H**2+W**2)}x?.touches?h.current===null&&(h.current=()=>{y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},C.start(Ze,()=>{h.current&&(h.current(),h.current=null)})):y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},[n,y,C]),I=c.useCallback(()=>{P({},{pulsate:!0})},[P]),j=c.useCallback((x,N)=>{if(C.clear(),x?.type==="touchend"&&h.current){h.current(),h.current=null,C.start(0,()=>{j(x,N)});return}h.current=null,d(T=>T.length>0?T.slice(1):T),f.current=N},[C]);return c.useImperativeHandle(e,()=>({pulsate:I,start:P,stop:j}),[I,P,j]),p.jsx(or,{className:w(lt.root,a.root,s),ref:m,...i,children:p.jsx(eo,{component:null,exit:!0,children:l})})});function nr(t){return J("MuiButtonBase",t)}const ar=tt("MuiButtonBase",["root","disabled","focusVisible"]),sr=t=>{const{disabled:o,focusVisible:e,focusVisibleClassName:r,classes:n}=t,s=Q({root:["root",o&&"disabled",e&&"focusVisible"]},nr,n);return e&&r&&(s.root+=` ${r}`),s},ir=M("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ar.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),St=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiButtonBase"}),{action:n,centerRipple:a=!1,children:s,className:i,component:l="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:v=!1,focusVisibleClassName:C,LinkComponent:h="a",onBlur:m,onClick:y,onContextMenu:P,onDragLeave:I,onFocus:j,onFocusVisible:x,onKeyDown:N,onKeyUp:T,onMouseDown:F,onMouseLeave:Y,onMouseUp:q,onTouchEnd:A,onTouchMove:U,onTouchStart:D,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:H,type:W,...X}=r,ot=c.useRef(null),O=Xe(),et=wt(O.ref,H),[K,pt]=c.useState(!1);d&&K&&pt(!1),c.useImperativeHandle(n,()=>({focusVisible:()=>{pt(!0),ot.current.focus()}}),[]);const It=O.shouldMount&&!u&&!d;c.useEffect(()=>{K&&v&&!u&&O.pulsate()},[u,v,K,O]);const mt=dt(O,"start",F,f),$t=dt(O,"stop",P,f),E=dt(O,"stop",I,f),at=dt(O,"stop",q,f),Mt=dt(O,"stop",$=>{K&&$.preventDefault(),Y&&Y($)},f),Ot=dt(O,"start",D,f),kt=dt(O,"stop",A,f),Wt=dt(O,"stop",U,f),Tt=dt(O,"stop",$=>{xo($.target)||pt(!1),m&&m($)},!1),Dt=ht($=>{ot.current||(ot.current=$.currentTarget),xo($.target)&&(pt(!0),x&&x($)),j&&j($)}),xt=()=>{const $=ot.current;return l&&l!=="button"&&!($.tagName==="A"&&$.href)},Vt=ht($=>{v&&!$.repeat&&K&&$.key===" "&&O.stop($,()=>{O.start($)}),$.target===$.currentTarget&&xt()&&$.key===" "&&$.preventDefault(),N&&N($),$.target===$.currentTarget&&xt()&&$.key==="Enter"&&!d&&($.preventDefault(),y&&y($))}),zt=ht($=>{v&&$.key===" "&&K&&!$.defaultPrevented&&O.stop($,()=>{O.pulsate($)}),T&&T($),y&&$.target===$.currentTarget&&xt()&&$.key===" "&&!$.defaultPrevented&&y($)});let rt=l;rt==="button"&&(X.href||X.to)&&(rt=h);const st={};rt==="button"?(st.type=W===void 0?"button":W,st.disabled=d):(!X.href&&!X.to&&(st.role="button"),d&&(st["aria-disabled"]=d));const ut=wt(e,ot),Pt={...r,centerRipple:a,component:l,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:v,tabIndex:B,focusVisible:K},bt=sr(Pt);return p.jsxs(ir,{as:rt,className:w(bt.root,i),ownerState:Pt,onBlur:Tt,onClick:y,onContextMenu:$t,onFocus:Dt,onKeyDown:Vt,onKeyUp:zt,onMouseDown:mt,onMouseLeave:Mt,onMouseUp:at,onDragLeave:E,onTouchEnd:kt,onTouchMove:Wt,onTouchStart:Ot,ref:ut,tabIndex:d?-1:B,type:W,...st,...X,children:[s,It?p.jsx(rr,{ref:et,center:a,...z}):null]})});function dt(t,o,e,r=!1){return ht(n=>(e&&e(n),r||t[o](n),!0))}function lr(t){return J("MuiAlert",t)}const So=tt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function cr(t){return J("MuiIconButton",t)}const Co=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),dr=t=>{const{classes:o,disabled:e,color:r,edge:n,size:a,loading:s}=t,i={root:["root",s&&"loading",e&&"disabled",r!=="default"&&`color${b(r)}`,n&&`edge${b(n)}`,`size${b(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Q(i,cr,o)},pr=M(St,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.loading&&o.loading,e.color!=="default"&&o[`color${b(e.color)}`],e.edge&&o[`edge${b(e.edge)}`],o[`size${b(e.size)}`]]}})(_(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:o=>!o.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{color:(t.vars||t).palette[o].main}})),...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Co.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Co.loading}`]:{color:"transparent"}}))),ur=M("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),fr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiIconButton"}),{edge:n=!1,children:a,className:s,color:i="default",disabled:l=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:v=null,loadingIndicator:C,...h}=r,m=Eo(f),y=C??p.jsx(Lo,{"aria-labelledby":m,color:"inherit",size:16}),P={...r,edge:n,color:i,disabled:l,disableFocusRipple:d,loading:v,loadingIndicator:y,size:u},I=dr(P);return p.jsxs(pr,{id:v?m:f,className:w(I.root,s),centerRipple:!0,focusRipple:!d,disabled:l||v,ref:e,...h,ownerState:P,children:[typeof v=="boolean"&&p.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:p.jsx(ur,{className:I.loadingIndicator,ownerState:P,children:v&&y})}),a]})}),br=ft(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),gr=ft(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),vr=ft(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),yr=ft(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),hr=ft(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),mr=t=>{const{variant:o,color:e,severity:r,classes:n}=t,a={root:["root",`color${b(e||r)}`,`${o}${b(e||r)}`,`${o}`],icon:["icon"],message:["message"],action:["action"]};return Q(a,lr,n)},xr=M(no,{name:"MuiAlert",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color||e.severity)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.darken:t.lighten,e=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:e(t.palette[r].light,.9),[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),Sr=M("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Cr=M("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ir=M("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Io={success:p.jsx(br,{fontSize:"inherit"}),warning:p.jsx(gr,{fontSize:"inherit"}),error:p.jsx(vr,{fontSize:"inherit"}),info:p.jsx(yr,{fontSize:"inherit"})},Tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAlert"}),{action:n,children:a,className:s,closeText:i="Close",color:l,components:d={},componentsProps:u={},icon:f,iconMapping:v=Io,onClose:C,role:h="alert",severity:m="success",slotProps:y={},slots:P={},variant:I="standard",...j}=r,x={...r,color:l,severity:m,variant:I,colorSeverity:l||m},N=mr(x),T={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...P},slotProps:{...u,...y}},[F,Y]=nt("root",{ref:e,shouldForwardComponentProp:!0,className:w(N.root,s),elementType:xr,externalForwardedProps:{...T,...j},ownerState:x,additionalProps:{role:h,elevation:0}}),[q,A]=nt("icon",{className:N.icon,elementType:Sr,externalForwardedProps:T,ownerState:x}),[U,D]=nt("message",{className:N.message,elementType:Cr,externalForwardedProps:T,ownerState:x}),[B,z]=nt("action",{className:N.action,elementType:Ir,externalForwardedProps:T,ownerState:x}),[H,W]=nt("closeButton",{elementType:fr,externalForwardedProps:T,ownerState:x}),[X,ot]=nt("closeIcon",{elementType:hr,externalForwardedProps:T,ownerState:x});return p.jsxs(F,{...Y,children:[f!==!1?p.jsx(q,{...A,children:f||v[m]||Io[m]}):null,p.jsx(U,{...D,children:a}),n!=null?p.jsx(B,{...z,children:n}):null,n==null&&C?p.jsx(B,{...z,children:p.jsx(H,{size:"small","aria-label":i,title:i,color:"inherit",onClick:C,...W,children:p.jsx(X,{fontSize:"small",...ot})})}):null]})});function $r(t){return J("MuiAppBar",t)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Pr=t=>{const{color:o,position:e,classes:r}=t,n={root:["root",`color${b(o)}`,`position${b(e)}`]};return Q(n,$r,r)},$o=(t,o)=>t?`${t?.replace(")","")}, ${o})`:o,Br=M(no,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`position${b(e.position)}`],o[`color${b(e.color)}`]]}})(_(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([o])=>({props:{color:o},style:{"--AppBar-background":(t.vars??t).palette[o].main,"--AppBar-color":(t.vars??t).palette[o].contrastText}})),{props:o=>o.enableColorOnDark===!0&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:o=>o.enableColorOnDark===!1&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?$o(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?$o(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),Rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAppBar"}),{className:n,color:a="primary",enableColorOnDark:s=!1,position:i="fixed",...l}=r,d={...r,color:a,position:i,enableColorOnDark:s},u=Pr(d);return p.jsx(Br,{square:!0,component:"header",ownerState:d,elevation:4,className:w(u.root,n,i==="fixed"&&"mui-fixed"),ref:e,...l})});function Nt(t){const{elementType:o,externalSlotProps:e,ownerState:r,skipResolvingSlotProps:n=!1,...a}=t,s=n?{}:Uo(e,r),{props:i,internalRef:l}=Ho({...a,externalSlotProps:s}),d=wt(l,s?.ref,t.additionalProps?.ref);return Fo(o,{...i,ref:d},r)}const wr=ft(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Mr(t){return J("MuiChip",t)}const R=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),kr=t=>{const{classes:o,disabled:e,size:r,color:n,iconColor:a,onDelete:s,clickable:i,variant:l}=t,d={root:["root",l,e&&"disabled",`size${b(r)}`,`color${b(n)}`,i&&"clickable",i&&`clickableColor${b(n)}`,s&&"deletable",s&&`deletableColor${b(n)}`,`${l}${b(n)}`],label:["label",`label${b(r)}`],avatar:["avatar",`avatar${b(r)}`,`avatarColor${b(n)}`],icon:["icon",`icon${b(r)}`,`iconColor${b(a)}`],deleteIcon:["deleteIcon",`deleteIcon${b(r)}`,`deleteIconColor${b(n)}`,`deleteIcon${b(l)}Color${b(n)}`]};return Q(d,Mr,o)},Tr=M("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t,{color:r,iconColor:n,clickable:a,onDelete:s,size:i,variant:l}=e;return[{[`& .${R.avatar}`]:o.avatar},{[`& .${R.avatar}`]:o[`avatar${b(i)}`]},{[`& .${R.avatar}`]:o[`avatarColor${b(r)}`]},{[`& .${R.icon}`]:o.icon},{[`& .${R.icon}`]:o[`icon${b(i)}`]},{[`& .${R.icon}`]:o[`iconColor${b(n)}`]},{[`& .${R.deleteIcon}`]:o.deleteIcon},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(i)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIconColor${b(r)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(l)}Color${b(r)}`]},o.root,o[`size${b(i)}`],o[`color${b(r)}`],a&&o.clickable,a&&r!=="default"&&o[`clickableColor${b(r)})`],s&&o.deletable,s&&r!=="default"&&o[`deletableColor${b(r)}`],o[l],o[`${l}${b(r)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${R.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${R.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:o,fontSize:t.typography.pxToRem(12)},[`& .${R.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${R.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${R.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${R.icon}`]:{marginLeft:5,marginRight:-6},[`& .${R.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${R.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${R.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText,[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${R.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:o}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${R.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,onDelete:!0},style:{[`&.${R.focusVisible}`]:{background:(t.vars||t).palette[e].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,clickable:!0},style:{[`&:hover, &.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${R.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${R.avatar}`]:{marginLeft:4},[`& .${R.avatarSmall}`]:{marginLeft:2},[`& .${R.icon}`]:{marginLeft:4},[`& .${R.iconSmall}`]:{marginLeft:2},[`& .${R.deleteIcon}`]:{marginRight:5},[`& .${R.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(G()).map(([e])=>({props:{variant:"outlined",color:e},style:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.7)}`,[`&.${R.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.focusOpacity)},[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].main}}}}))]}})),zr=M("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,o)=>{const{ownerState:e}=t,{size:r}=e;return[o.label,o[`label${b(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Po(t){return t.key==="Backspace"||t.key==="Delete"}const zn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiChip"}),{avatar:n,className:a,clickable:s,color:i="default",component:l,deleteIcon:d,disabled:u=!1,icon:f,label:v,onClick:C,onDelete:h,onKeyDown:m,onKeyUp:y,size:P="medium",variant:I="filled",tabIndex:j,skipFocusWhenDisabled:x=!1,slots:N={},slotProps:T={},...F}=r,Y=c.useRef(null),q=wt(Y,e),A=E=>{E.stopPropagation(),h&&h(E)},U=E=>{E.currentTarget===E.target&&Po(E)&&E.preventDefault(),m&&m(E)},D=E=>{E.currentTarget===E.target&&h&&Po(E)&&h(E),y&&y(E)},B=s!==!1&&C?!0:s,z=B||h?St:l||"div",H={...r,component:z,disabled:u,size:P,color:i,iconColor:c.isValidElement(f)&&f.props.color||i,onDelete:!!h,clickable:B,variant:I},W=kr(H),X=z===St?{component:l||"div",focusVisibleClassName:W.focusVisible,...h&&{disableRipple:!0}}:{};let ot=null;h&&(ot=d&&c.isValidElement(d)?c.cloneElement(d,{className:w(d.props.className,W.deleteIcon),onClick:A}):p.jsx(wr,{className:W.deleteIcon,onClick:A}));let O=null;n&&c.isValidElement(n)&&(O=c.cloneElement(n,{className:w(W.avatar,n.props.className)}));let et=null;f&&c.isValidElement(f)&&(et=c.cloneElement(f,{className:w(W.icon,f.props.className)}));const K={slots:N,slotProps:T},[pt,It]=nt("root",{elementType:Tr,externalForwardedProps:{...K,...F},ownerState:H,shouldForwardComponentProp:!0,ref:q,className:w(W.root,a),additionalProps:{disabled:B&&u?!0:void 0,tabIndex:x&&u?-1:j,...X},getSlotProps:E=>({...E,onClick:at=>{E.onClick?.(at),C?.(at)},onKeyDown:at=>{E.onKeyDown?.(at),U(at)},onKeyUp:at=>{E.onKeyUp?.(at),D(at)}})}),[mt,$t]=nt("label",{elementType:zr,externalForwardedProps:K,ownerState:H,className:W.label});return p.jsxs(pt,{as:z,...It,children:[O||et,p.jsx(mt,{...$t,children:v}),ot]})});function Er(t){return J("MuiButton",t)}const vt=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Lr=c.createContext({}),Ar=c.createContext(void 0),jr=t=>{const{color:o,disableElevation:e,fullWidth:r,size:n,variant:a,loading:s,loadingPosition:i,classes:l}=t,d={root:["root",s&&"loading",a,`${a}${b(o)}`,`size${b(n)}`,`${a}Size${b(n)}`,`color${b(o)}`,e&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${b(i)}`],startIcon:["icon","startIcon",`iconSize${b(n)}`],endIcon:["icon","endIcon",`iconSize${b(n)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Q(d,Er,l);return{...l,...u}},Ko=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Nr=M(St,{shouldForwardProp:t=>fe(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color)}`],o[`size${b(e.size)}`],o[`${e.variant}Size${b(e.size)}`],e.color==="inherit"&&o.colorInherit,e.disableElevation&&o.disableElevation,e.fullWidth&&o.fullWidth,e.loading&&o.loading]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],e=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${vt.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${vt.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(G()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:o,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:e,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${vt.loading}`]:{color:"transparent"}}}]}})),Or=M("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.startIcon,e.loading&&o.startIconLoadingStart,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ko]})),Wr=M("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.endIcon,e.loading&&o.endIconLoadingEnd,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ko]})),Dr=M("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Bo=M("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),En=c.forwardRef(function(o,e){const r=c.useContext(Lr),n=c.useContext(Ar),a=ko(r,o),s=Z({props:a,name:"MuiButton"}),{children:i,color:l="primary",component:d="button",className:u,disabled:f=!1,disableElevation:v=!1,disableFocusRipple:C=!1,endIcon:h,focusVisibleClassName:m,fullWidth:y=!1,id:P,loading:I=null,loadingIndicator:j,loadingPosition:x="center",size:N="medium",startIcon:T,type:F,variant:Y="text",...q}=s,A=Eo(P),U=j??p.jsx(Lo,{"aria-labelledby":A,color:"inherit",size:16}),D={...s,color:l,component:d,disabled:f,disableElevation:v,disableFocusRipple:C,fullWidth:y,loading:I,loadingIndicator:U,loadingPosition:x,size:N,type:F,variant:Y},B=jr(D),z=(T||I&&x==="start")&&p.jsx(Or,{className:B.startIcon,ownerState:D,children:T||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),H=(h||I&&x==="end")&&p.jsx(Wr,{className:B.endIcon,ownerState:D,children:h||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),W=n||"",X=typeof I=="boolean"?p.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:I&&p.jsx(Dr,{className:B.loadingIndicator,ownerState:D,children:U})}):null;return p.jsxs(Nr,{ownerState:D,className:w(r.className,B.root,u,W),component:d,disabled:f||I,focusRipple:!C,focusVisibleClassName:w(B.focusVisible,m),ref:e,type:F,id:I?A:P,...q,classes:B,children:[z,x!=="end"&&X,i,x==="end"&&X,H]})});function Vr(t){return J("MuiCard",t)}tt("MuiCard",["root"]);const Fr=t=>{const{classes:o}=t;return Q({root:["root"]},Vr,o)},Ur=M(no,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ln=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiCard"}),{className:n,raised:a=!1,...s}=r,i={...r,raised:a},l=Fr(i);return p.jsx(Ur,{className:w(l.root,n),elevation:a?8:void 0,ref:e,ownerState:i,...s})}),Hr=we({createStyledComponent:M("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),useThemeProps:t=>Z({props:t,name:"MuiContainer"})});function Kr(t){return J("MuiLinearProgress",t)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Gt=4,_t=Ct` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,Yr=typeof _t!="string"?to` + animation: ${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Zt=Ct` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,qr=typeof Zt!="string"?to` + animation: ${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,Qt=Ct` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,Xr=typeof Qt!="string"?to` + animation: ${Qt} 3s infinite linear; + `:null,Gr=t=>{const{classes:o,variant:e,color:r}=t,n={root:["root",`color${b(r)}`,e],dashed:["dashed",`dashedColor${b(r)}`],bar1:["bar","bar1",`barColor${b(r)}`,(e==="indeterminate"||e==="query")&&"bar1Indeterminate",e==="determinate"&&"bar1Determinate",e==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",e!=="buffer"&&`barColor${b(r)}`,e==="buffer"&&`color${b(r)}`,(e==="indeterminate"||e==="query")&&"bar2Indeterminate",e==="buffer"&&"bar2Buffer"]};return Q(n,Kr,o)},ao=(t,o)=>t.vars?t.vars.palette.LinearProgress[`${o}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[o].main,.62):t.darken(t.palette[o].main,.5),_r=M("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`color${b(e.color)}`],o[e.variant]]}})(_(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:ao(t,o)}})),{props:({ownerState:o})=>o.color==="inherit"&&o.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Zr=M("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.dashed,o[`dashedColor${b(e.color)}`]]}})(_(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(G()).map(([o])=>{const e=ao(t,o);return{props:{color:o},style:{backgroundImage:`radial-gradient(${e} 0%, ${e} 16%, transparent 42%)`}}})]})),Xr||{animation:`${Qt} 3s infinite linear`}),Qr=M("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar1,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar1Indeterminate,e.variant==="determinate"&&o.bar1Determinate,e.variant==="buffer"&&o.bar1Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:(t.vars||t).palette[o].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Gt}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Gt}s linear`}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Yr||{animation:`${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Jr=M("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar2,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar2Indeterminate,e.variant==="buffer"&&o.bar2Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[o].main}})),{props:({ownerState:o})=>o.variant!=="buffer"&&o.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:o})=>o.variant!=="buffer"&&o.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o,variant:"buffer"},style:{backgroundColor:ao(t,o),transition:`transform .${Gt}s linear`}})),{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:qr||{animation:`${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiLinearProgress"}),{className:n,color:a="primary",value:s,valueBuffer:i,variant:l="indeterminate",...d}=r,u={...r,color:a,variant:l},f=Gr(u),v=Jt(),C={},h={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){C["aria-valuenow"]=Math.round(s),C["aria-valuemin"]=0,C["aria-valuemax"]=100;let m=s-100;v&&(m=-m),h.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&i!==void 0){let m=(i||0)-100;v&&(m=-m),h.bar2.transform=`translateX(${m}%)`}return p.jsxs(_r,{className:w(f.root,n),ownerState:u,role:"progressbar",...C,ref:e,...d,children:[l==="buffer"?p.jsx(Zr,{className:f.dashed,ownerState:u}):null,p.jsx(Qr,{className:f.bar1,ownerState:u,style:h.bar1}),l==="determinate"?null:p.jsx(Jr,{className:f.bar2,ownerState:u,style:h.bar2})]})});function on(t){return J("MuiTab",t)}const it=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),en=t=>{const{classes:o,textColor:e,fullWidth:r,wrapped:n,icon:a,label:s,selected:i,disabled:l}=t,d={root:["root",a&&s&&"labelIcon",`textColor${b(e)}`,r&&"fullWidth",n&&"wrapped",i&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Q(d,on,o)},rn=M(St,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.label&&e.icon&&o.labelIcon,o[`textColor${b(e.textColor)}`],e.fullWidth&&o.fullWidth,e.wrapped&&o.wrapped,{[`& .${it.iconWrapper}`]:o.iconWrapper},{[`& .${it.icon}`]:o.icon}]}})(_(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:o})=>o.label&&(o.iconPosition==="top"||o.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:o})=>o.label&&o.iconPosition!=="top"&&o.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:o})=>o.icon&&o.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="top",style:{[`& > .${it.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="bottom",style:{[`& > .${it.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="start",style:{[`& > .${it.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="end",style:{[`& > .${it.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${it.selected}`]:{opacity:1},[`&.${it.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:o})=>o.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:o})=>o.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),nn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:d="top",indicator:u,label:f,onChange:v,onClick:C,onFocus:h,selected:m,selectionFollowsFocus:y,textColor:P="inherit",value:I,wrapped:j=!1,...x}=r,N={...r,disabled:a,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:d,label:!!f,fullWidth:i,textColor:P,wrapped:j},T=en(N),F=l&&f&&c.isValidElement(l)?c.cloneElement(l,{className:w(T.icon,l.props.className)}):l,Y=A=>{!m&&v&&v(A,I),C&&C(A)},q=A=>{y&&!m&&v&&v(A,I),h&&h(A)};return p.jsxs(rn,{focusRipple:!s,className:w(T.root,n),ref:e,role:"tab","aria-selected":m,disabled:a,onClick:Y,onFocus:q,ownerState:N,tabIndex:m?0:-1,...x,children:[d==="top"||d==="start"?p.jsxs(c.Fragment,{children:[F,f]}):p.jsxs(c.Fragment,{children:[f,F]}),u]})});function an(t){return J("MuiToolbar",t)}tt("MuiToolbar",["root","gutters","regular","dense"]);const sn=t=>{const{classes:o,disableGutters:e,variant:r}=t;return Q({root:["root",!e&&"gutters",r]},an,o)},ln=M("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,!e.disableGutters&&o.gutters,o[e.variant]]}})(_(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),cn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiToolbar"}),{className:n,component:a="div",disableGutters:s=!1,variant:i="regular",...l}=r,d={...r,component:a,disableGutters:s,variant:i},u=sn(d);return p.jsx(ln,{as:a,className:w(u.root,n),ref:e,ownerState:d,...l})}),dn=ft(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),pn=ft(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function un(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fn(t,o,e,r={},n=()=>{}){const{ease:a=un,duration:s=300}=r;let i=null;const l=o[t];let d=!1;const u=()=>{d=!0},f=v=>{if(d){n(new Error("Animation cancelled"));return}i===null&&(i=v);const C=Math.min(1,(v-i)/s);if(o[t]=a(C)*(e-l)+l,C>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(f)};return l===e?(n(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const bn={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function gn(t){const{onChange:o,...e}=t,r=c.useRef(),n=c.useRef(null),a=()=>{r.current=n.current.offsetHeight-n.current.clientHeight};return zo(()=>{const s=Oo(()=>{const l=r.current;a(),l!==r.current&&o(r.current)}),i=Do(n.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[o]),c.useEffect(()=>{a(),o(r.current)},[o]),p.jsx("div",{style:bn,...e,ref:n})}function vn(t){return J("MuiTabScrollButton",t)}const yn=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),hn=t=>{const{classes:o,orientation:e,disabled:r}=t;return Q({root:["root",e,r&&"disabled"]},vn,o)},mn=M(St,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.orientation&&o[e.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${yn.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),xn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabScrollButton"}),{className:n,slots:a={},slotProps:s={},direction:i,orientation:l,disabled:d,...u}=r,f=Jt(),v={isRtl:f,...r},C=hn(v),h=a.StartScrollButtonIcon??dn,m=a.EndScrollButtonIcon??pn,y=Nt({elementType:h,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),P=Nt({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return p.jsx(mn,{component:"div",className:w(C.root,n),ref:e,role:null,ownerState:v,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:i==="left"?p.jsx(h,{...y}):p.jsx(m,{...P})})});function Sn(t){return J("MuiTabs",t)}const Ht=tt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ro=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,wo=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,At=(t,o,e)=>{let r=!1,n=e(t,o);for(;n;){if(n===t.firstChild){if(r)return;r=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=e(t,n);else{n.focus();return}}},Cn=t=>{const{vertical:o,fixed:e,hideScrollbar:r,scrollableX:n,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=t;return Q({root:["root",o&&"vertical"],scroller:["scroller",e&&"fixed",r&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",o&&"flexContainerVertical",o&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Sn,l)},In=M("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[{[`& .${Ht.scrollButtons}`]:o.scrollButtons},{[`& .${Ht.scrollButtons}`]:e.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,e.vertical&&o.vertical]}})(_(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.scrollButtonsHideMobile,style:{[`& .${Ht.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),$n=M("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.scroller,e.fixed&&o.fixed,e.hideScrollbar&&o.hideScrollbar,e.scrollableX&&o.scrollableX,e.scrollableY&&o.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Pn=M("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.list,o.flexContainer,e.vertical&&o.flexContainerVertical,e.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Bn=M("span",{name:"MuiTabs",slot:"Indicator"})(_(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:o})=>o.vertical,style:{height:"100%",width:2,right:0}}]}))),Rn=M(gn)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Mo={},wn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabs"}),n=No(),a=Jt(),{"aria-label":s,"aria-labelledby":i,action:l,centered:d=!1,children:u,className:f,component:v="div",allowScrollButtonsMobile:C=!1,indicatorColor:h="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:P,scrollButtons:I="auto",selectionFollowsFocus:j,slots:x={},slotProps:N={},TabIndicatorProps:T={},TabScrollButtonProps:F={},textColor:Y="primary",value:q,variant:A="standard",visibleScrollbar:U=!1,...D}=r,B=A==="scrollable",z=y==="vertical",H=z?"scrollTop":"scrollLeft",W=z?"top":"left",X=z?"bottom":"right",ot=z?"clientHeight":"clientWidth",O=z?"height":"width",et={...r,component:v,allowScrollButtonsMobile:C,indicatorColor:h,orientation:y,vertical:z,scrollButtons:I,textColor:Y,variant:A,visibleScrollbar:U,fixed:!B,hideScrollbar:B&&!U,scrollableX:B&&!z,scrollableY:B&&z,centered:d&&!B,scrollButtonsHideMobile:!C},K=Cn(et),pt=Nt({elementType:x.StartScrollButtonIcon,externalSlotProps:N.startScrollButtonIcon,ownerState:et}),It=Nt({elementType:x.EndScrollButtonIcon,externalSlotProps:N.endScrollButtonIcon,ownerState:et}),[mt,$t]=c.useState(!1),[E,at]=c.useState(Mo),[Mt,Ot]=c.useState(!1),[kt,Wt]=c.useState(!1),[Tt,Dt]=c.useState(!1),[xt,Vt]=c.useState({overflow:"hidden",scrollbarWidth:0}),zt=new Map,rt=c.useRef(null),st=c.useRef(null),ut={slots:x,slotProps:{indicator:T,scrollButton:F,...N}},Pt=()=>{const g=rt.current;let S;if(g){const k=g.getBoundingClientRect();S={clientWidth:g.clientWidth,scrollLeft:g.scrollLeft,scrollTop:g.scrollTop,scrollWidth:g.scrollWidth,top:k.top,bottom:k.bottom,left:k.left,right:k.right}}let L;if(g&&q!==!1){const k=st.current.children;if(k.length>0){const V=k[zt.get(q)];L=V?V.getBoundingClientRect():null}}return{tabsMeta:S,tabMeta:L}},bt=ht(()=>{const{tabsMeta:g,tabMeta:S}=Pt();let L=0,k;z?(k="top",S&&g&&(L=S.top-g.top+g.scrollTop)):(k=a?"right":"left",S&&g&&(L=(a?-1:1)*(S[k]-g[k]+g.scrollLeft)));const V={[k]:L,[O]:S?S[O]:0};if(typeof E[k]!="number"||typeof E[O]!="number")at(V);else{const ct=Math.abs(E[k]-V[k]),gt=Math.abs(E[O]-V[O]);(ct>=1||gt>=1)&&at(V)}}),$=(g,{animation:S=!0}={})=>{S?fn(H,rt.current,g,{duration:n.transitions.duration.standard}):rt.current[H]=g},so=g=>{let S=rt.current[H];z?S+=g:S+=g*(a?-1:1),$(S)},io=()=>{const g=rt.current[ot];let S=0;const L=Array.from(st.current.children);for(let k=0;kg){k===0&&(S=g);break}S+=V[ot]}return S},Yo=()=>{so(-1*io())},qo=()=>{so(io())},[Xo,{onChange:lo,...Go}]=nt("scrollbar",{className:w(K.scrollableX,K.hideScrollbar),elementType:Rn,shouldForwardComponentProp:!0,externalForwardedProps:ut,ownerState:et}),_o=c.useCallback(g=>{lo?.(g),Vt({overflow:null,scrollbarWidth:g})},[lo]),[co,po]=nt("scrollButtons",{className:w(K.scrollButtons,F.className),elementType:xn,externalForwardedProps:ut,ownerState:et,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:pt,endScrollButtonIcon:It}}}),Zo=()=>{const g={};g.scrollbarSizeListener=B?p.jsx(Xo,{...Go,onChange:_o}):null;const L=B&&(I==="auto"&&(Mt||kt)||I===!0);return g.scrollButtonStart=L?p.jsx(co,{direction:a?"right":"left",onClick:Yo,disabled:!Mt,...po}):null,g.scrollButtonEnd=L?p.jsx(co,{direction:a?"left":"right",onClick:qo,disabled:!kt,...po}):null,g},uo=ht(g=>{const{tabsMeta:S,tabMeta:L}=Pt();if(!(!L||!S)){if(L[W]S[X]){const k=S[H]+(L[X]-S[X]);$(k,{animation:g})}}}),Et=ht(()=>{B&&I!==!1&&Dt(!Tt)});c.useEffect(()=>{const g=Oo(()=>{rt.current&&bt()});let S;const L=ct=>{ct.forEach(gt=>{gt.removedNodes.forEach(Bt=>{S?.unobserve(Bt)}),gt.addedNodes.forEach(Bt=>{S?.observe(Bt)})}),g(),Et()},k=Do(rt.current);k.addEventListener("resize",g);let V;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(g),Array.from(st.current.children).forEach(ct=>{S.observe(ct)})),typeof MutationObserver<"u"&&(V=new MutationObserver(L),V.observe(st.current,{childList:!0})),()=>{g.clear(),k.removeEventListener("resize",g),V?.disconnect(),S?.disconnect()}},[bt,Et]),c.useEffect(()=>{const g=Array.from(st.current.children),S=g.length;if(typeof IntersectionObserver<"u"&&S>0&&B&&I!==!1){const L=g[0],k=g[S-1],V={root:rt.current,threshold:.99},ct=Ut=>{Ot(!Ut[0].isIntersecting)},gt=new IntersectionObserver(ct,V);gt.observe(L);const Bt=Ut=>{Wt(!Ut[0].isIntersecting)},bo=new IntersectionObserver(Bt,V);return bo.observe(k),()=>{gt.disconnect(),bo.disconnect()}}},[B,I,Tt,u?.length]),c.useEffect(()=>{$t(!0)},[]),c.useEffect(()=>{bt()}),c.useEffect(()=>{uo(Mo!==E)},[uo,E]),c.useImperativeHandle(l,()=>({updateIndicator:bt,updateScrollButtons:Et}),[bt,Et]);const[Qo,Jo]=nt("indicator",{className:w(K.indicator,T.className),elementType:Bn,externalForwardedProps:ut,ownerState:et,additionalProps:{style:E}}),fo=p.jsx(Qo,{...Jo});let Lt=0;const te=c.Children.map(u,g=>{if(!c.isValidElement(g))return null;const S=g.props.value===void 0?Lt:g.props.value;zt.set(S,Lt);const L=S===q;return Lt+=1,c.cloneElement(g,{fullWidth:A==="fullWidth",indicator:L&&!mt&&fo,selected:L,selectionFollowsFocus:j,onChange:m,textColor:Y,value:S,...Lt===1&&q===!1&&!g.props.tabIndex?{tabIndex:0}:{}})}),oe=g=>{if(g.altKey||g.shiftKey||g.ctrlKey||g.metaKey)return;const S=st.current,L=Wo(S).activeElement;if(L.getAttribute("role")!=="tab")return;let V=y==="horizontal"?"ArrowLeft":"ArrowUp",ct=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(V="ArrowRight",ct="ArrowLeft"),g.key){case V:g.preventDefault(),At(S,L,wo);break;case ct:g.preventDefault(),At(S,L,Ro);break;case"Home":g.preventDefault(),At(S,null,Ro);break;case"End":g.preventDefault(),At(S,null,wo);break}},Ft=Zo(),[ee,re]=nt("root",{ref:e,className:w(K.root,f),elementType:In,externalForwardedProps:{...ut,...D,component:v},ownerState:et}),[ne,ae]=nt("scroller",{ref:rt,className:K.scroller,elementType:$n,externalForwardedProps:ut,ownerState:et,additionalProps:{style:{overflow:xt.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:U?void 0:-xt.scrollbarWidth}}}),[se,ie]=nt("list",{ref:st,className:w(K.list,K.flexContainer),elementType:Pn,externalForwardedProps:ut,ownerState:et,getSlotProps:g=>({...g,onKeyDown:S=>{oe(S),g.onKeyDown?.(S)}})});return p.jsxs(ee,{...re,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,p.jsxs(ne,{...ae,children:[p.jsx(se,{"aria-label":s,"aria-labelledby":i,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...ie,children:te}),mt&&fo]}),Ft.scrollButtonEnd]})}),Mn=({currentPath:t})=>{const o=Ao(),{currentDocument:e,extractionById:r}=jo(l=>l.document),n=[{label:"Téléversement",path:"/",alwaysEnabled:!0},{label:"Extraction",path:"/extraction",alwaysEnabled:!0},{label:"Contexte",path:"/contexte",alwaysEnabled:!1},{label:"Conseil",path:"/conseil",alwaysEnabled:!1}],a=n.findIndex(l=>l.path===t),s=e&&r[e.id],i=(l,d)=>{const u=n[d];(u.alwaysEnabled||s)&&o(u.path)};return p.jsx(Kt,{sx:{borderBottom:1,borderColor:"divider"},children:p.jsx(wn,{value:a>=0?a:0,onChange:i,"aria-label":"navigation tabs",variant:"scrollable",scrollButtons:"auto",children:n.map((l,d)=>p.jsx(nn,{label:l.label,disabled:!l.alwaysEnabled&&!s,sx:{opacity:!l.alwaysEnabled&&!s?.5:1,"&.Mui-disabled":{color:"text.disabled"}}},d))})})},An=({children:t})=>{const o=Ao(),e=be(),r=ge(),{documents:n,extractionById:a,loading:s,currentDocument:i,contextResult:l,conseilResult:d,analysisResult:u}=jo(y=>y.document),f=c.useRef(new Set),v=c.useRef([]),C=c.useRef(!1),h=async()=>{if(!(C.current||v.current.length===0)){for(C.current=!0;v.current.length>0;){const y=v.current.shift();if(y){console.log(`🚀 [LAYOUT] Traitement de la queue: ${y}`);try{const P=n.find(I=>I.id===y);P&&(P.status="processing"),await r(xe(y)),await new Promise(I=>setTimeout(I,500))}catch(P){console.error(`❌ [LAYOUT] Erreur extraction ${y}:`,P);const I=n.find(j=>j.id===y);I&&(I.status="error")}}}C.current=!1}},m=c.useMemo(()=>(console.log(`📋 [LAYOUT] Recalcul de la liste des documents: ${n.length}`),n),[n]);return c.useEffect(()=>{console.log(`📋 [LAYOUT] ${m.length} documents détectés`),m.forEach(y=>{const P=a[y.id],I=f.current.has(y.id),j=y.status==="processing",x=y.status==="completed";console.log(`📄 [LAYOUT] Document ${y.id}: hasExtraction=${!!P}, isProcessed=${I}, isProcessing=${j}, isCompleted=${x}`),P&&!I?(console.log(`✅ [LAYOUT] Document ${y.id} a déjà un résultat, marqué comme traité`),f.current.add(y.id),y.status!=="completed"&&(y.status="completed")):!P&&!I&&!j&&!x&&(console.log(`🚀 [LAYOUT] Ajout à la queue: ${y.id}`),f.current.add(y.id),v.current.push(y.id))}),h()},[n,r,a]),c.useEffect(()=>{i&&(u||r(ve(i.id)),l||r(ye(i.id)),d||r(he(i.id)))},[i,u,l,d,r]),p.jsxs(Kt,{sx:{flexGrow:1},children:[p.jsx(Rr,{position:"static",children:p.jsx(cn,{children:p.jsx(me,{variant:"h6",component:"div",sx:{flexGrow:1,cursor:"pointer"},onClick:()=>o("/"),children:"IA - Lecoffre.io"})})}),p.jsx(Mn,{currentPath:e.pathname}),s&&p.jsx(Kt,{sx:{px:2,pt:1},children:p.jsx(tn,{})}),p.jsx(Hr,{maxWidth:"xl",sx:{mt:3,mb:3},children:t})]})};export{Tn as A,En as B,Ln as C,fr as I,An as L,no as P,ro as T,Ee as _,ht as a,No as b,ft as c,Oo as d,nt as e,Wo as f,qe as g,Nt as h,Ye as i,Fe as j,zn as k,St as l,xo as m,ze as n,Do as o,yo as p,tn as q,wt as u}; diff --git a/public/assets/Layout-D-i60CyA.js b/public/assets/Layout-D-i60CyA.js new file mode 100644 index 0000000..81e9f9a --- /dev/null +++ b/public/assets/Layout-D-i60CyA.js @@ -0,0 +1,125 @@ +import{W as le,X as ko,Y as To,r as c,j as p,c as w,f as b,h as Q,Z as ce,b as J,_ as de,$ as pe,a as tt,d as Z,s as M,m as _,u as zo,R as Rt,a0 as ue,a1 as go,a2 as vo,v as Ct,k as Eo,o as G,D as Lo,n as fe,p as Jt,t as to,a3 as Ao,y as jo,B as Kt,a4 as be,x as ge,U as ve,O as ye,S as he,T as me,a5 as xe}from"./index-CedKFzDs.js";const Se=le();function Ce(t){const{theme:o,name:e,props:r}=t;return!o||!o.components||!o.components[e]||!o.components[e].defaultProps?r:ko(o.components[e].defaultProps,r)}function Ie({props:t,name:o,defaultTheme:e,themeId:r}){let n=To(e);return r&&(n=n[r]||n),Ce({theme:n,name:o,props:t})}const $e=ce(),Pe=Se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),Be=t=>Ie({props:t,name:"MuiContainer",defaultTheme:$e}),Re=(t,o)=>{const e=l=>J(o,l),{classes:r,fixed:n,disableGutters:a,maxWidth:s}=t,i={root:["root",s&&`maxWidth${b(String(s))}`,n&&"fixed",a&&"disableGutters"]};return Q(i,e,r)};function we(t={}){const{createStyledComponent:o=Pe,useThemeProps:e=Be,componentName:r="MuiContainer"}=t,n=o(({theme:s,ownerState:i})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!i.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:i})=>i.fixed&&Object.keys(s.breakpoints.values).reduce((l,d)=>{const u=d,f=s.breakpoints.values[u];return f!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:i})=>({...i.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...i.maxWidth&&i.maxWidth!=="xs"&&{[s.breakpoints.up(i.maxWidth)]:{maxWidth:`${s.breakpoints.values[i.maxWidth]}${s.breakpoints.unit}`}}}));return c.forwardRef(function(i,l){const d=e(i),{className:u,component:f="div",disableGutters:v=!1,fixed:C=!1,maxWidth:h="lg",classes:m,...y}=d,P={...d,component:f,disableGutters:v,fixed:C,maxWidth:h},I=Re(P,r);return p.jsx(n,{as:f,ownerState:P,className:w(I.root,u),ref:l,...y})})}function No(){const t=To(pe);return t[de]||t}function Me(t){return J("MuiSvgIcon",t)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ke=t=>{const{color:o,fontSize:e,classes:r}=t,n={root:["root",o!=="inherit"&&`color${b(o)}`,`fontSize${b(e)}`]};return Q(n,Me,r)},Te=M("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.color!=="inherit"&&o[`color${b(e.color)}`],o[`fontSize${b(e.fontSize)}`]]}})(_(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:o=>!o.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,o])=>o&&o.main).map(([o])=>({props:{color:o},style:{color:(t.vars??t).palette?.[o]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Yt=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiSvgIcon"}),{children:n,className:a,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:v="0 0 24 24",...C}=r,h=c.isValidElement(n)&&n.type==="svg",m={...r,color:s,component:i,fontSize:l,instanceFontSize:o.fontSize,inheritViewBox:u,viewBox:v,hasSvgAsChild:h},y={};u||(y.viewBox=v);const P=ke(m);return p.jsxs(Te,{as:i,className:w(P.root,a),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:e,...y,...C,...h&&n.props,ownerState:m,children:[h?n.props.children:n,f?p.jsx("title",{children:f}):null]})});Yt.muiName="SvgIcon";function ft(t,o){function e(r,n){return p.jsx(Yt,{"data-testid":void 0,ref:n,...r,children:t})}return e.muiName=Yt.muiName,c.memo(c.forwardRef(e))}function Oo(t,o=166){let e;function r(...n){const a=()=>{t.apply(this,n)};clearTimeout(e),e=setTimeout(a,o)}return r.clear=()=>{clearTimeout(e)},r}function Wo(t){return t&&t.ownerDocument||document}function Do(t){return Wo(t).defaultView||window}function ht(t){const o=c.useRef(t);return zo(()=>{o.current=t}),c.useRef((...e)=>(0,o.current)(...e)).current}function wt(...t){const o=c.useRef(void 0),e=c.useCallback(r=>{const n=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,i=s(r);return typeof i=="function"?i:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{n.forEach(a=>a?.())}},t);return c.useMemo(()=>t.every(r=>r==null)?null:r=>{o.current&&(o.current(),o.current=void 0),r!=null&&(o.current=e(r))},t)}function ze(t,o){if(t==null)return{};var e={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(o.indexOf(r)!==-1)continue;e[r]=t[r]}return e}function qt(t,o){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},qt(t,o)}function Ee(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,qt(t,o)}const yo=Rt.createContext(null);function Le(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oo(t,o){var e=function(a){return o&&c.isValidElement(a)?o(a):a},r=Object.create(null);return t&&c.Children.map(t,function(n){return n}).forEach(function(n){r[n.key]=e(n)}),r}function Ae(t,o){t=t||{},o=o||{};function e(u){return u in o?o[u]:t[u]}var r=Object.create(null),n=[];for(var a in t)a in o?n.length&&(r[a]=n,n=[]):n.push(a);var s,i={};for(var l in o){if(r[l])for(s=0;s{this.currentId=null,e()},o)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Fe(){const t=Vo(ro.create).current;return Ve(t.disposeEffect),t}function Ue(t){return J("MuiPaper",t)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const He=t=>{const{square:o,elevation:e,variant:r,classes:n}=t,a={root:["root",r,!o&&"rounded",r==="elevation"&&`elevation${e}`]};return Q(a,Ue,n)},Ke=M("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],!e.square&&o.rounded,e.variant==="elevation"&&o[`elevation${e.elevation}`]]}})(_(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),no=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiPaper"}),n=No(),{className:a,component:s="div",elevation:i=1,square:l=!1,variant:d="elevation",...u}=r,f={...r,component:s,elevation:i,square:l,variant:d},v=He(f);return p.jsx(Ke,{as:s,ownerState:f,className:w(v.root,a),ref:e,...u,style:{...d==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[i],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[i]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${go("#fff",vo(i))}, ${go("#fff",vo(i))})`}},...u.style}})});function Ye(t){return typeof t=="string"}function Fo(t,o,e){return t===void 0||Ye(t)?o:{...o,ownerState:{...o.ownerState,...e}}}function Uo(t,o,e){return typeof t=="function"?t(o,e):t}function qe(t,o=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!o.includes(r)).forEach(r=>{e[r]=t[r]}),e}function mo(t){if(t===void 0)return{};const o={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{o[e]=t[e]}),o}function Ho(t){const{getSlotProps:o,additionalProps:e,externalSlotProps:r,externalForwardedProps:n,className:a}=t;if(!o){const C=w(e?.className,a,n?.className,r?.className),h={...e?.style,...n?.style,...r?.style},m={...e,...n,...r};return C.length>0&&(m.className=C),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const s=qe({...n,...r}),i=mo(r),l=mo(n),d=o(s),u=w(d?.className,e?.className,a,n?.className,r?.className),f={...d?.style,...e?.style,...n?.style,...r?.style},v={...d,...e,...l,...i};return u.length>0&&(v.className=u),Object.keys(f).length>0&&(v.style=f),{props:v,internalRef:d.ref}}function nt(t,o){const{className:e,elementType:r,ownerState:n,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:i=!1,...l}=o,{component:d,slots:u={[t]:void 0},slotProps:f={[t]:void 0},...v}=a,C=u[t]||r,h=Uo(f[t],n),{props:{component:m,...y},internalRef:P}=Ho({className:e,...l,externalForwardedProps:t==="root"?v:void 0,externalSlotProps:h}),I=wt(P,h?.ref,o.ref),j=t==="root"?m||d:m,x=Fo(C,{...t==="root"&&!d&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...y,...j&&!i&&{as:j},...j&&i&&{component:j},ref:I},n);return[C,x]}function xo(t){try{return t.matches(":focus-visible")}catch{}return!1}class jt{static create(){return new jt}static use(){const o=Vo(jt.create).current,[e,r]=c.useState(!1);return o.shouldMount=e,o.setShouldMount=r,c.useEffect(o.mountEffect,[e]),o}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Ge(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...o){this.mount().then(()=>this.ref.current?.start(...o))}stop(...o){this.mount().then(()=>this.ref.current?.stop(...o))}pulsate(...o){this.mount().then(()=>this.ref.current?.pulsate(...o))}}function Xe(){return jt.use()}function Ge(){let t,o;const e=new Promise((r,n)=>{t=r,o=n});return e.resolve=t,e.reject=o,e}function _e(t){const{className:o,classes:e,pulsate:r=!1,rippleX:n,rippleY:a,rippleSize:s,in:i,onExited:l,timeout:d}=t,[u,f]=c.useState(!1),v=w(o,e.ripple,e.rippleVisible,r&&e.ripplePulsate),C={width:s,height:s,top:-(s/2)+a,left:-(s/2)+n},h=w(e.child,u&&e.childLeaving,r&&e.childPulsate);return!i&&!u&&f(!0),c.useEffect(()=>{if(!i&&l!=null){const m=setTimeout(l,d);return()=>{clearTimeout(m)}}},[l,i,d]),p.jsx("span",{className:v,style:C,children:p.jsx("span",{className:h})})}const lt=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=550,Ze=80,Qe=Ct` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,Je=Ct` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,tr=Ct` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,or=M("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),er=M(_e,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${lt.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${Qe}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${lt.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${lt.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${lt.childLeaving} { + opacity: 0; + animation-name: ${Je}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${lt.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${tr}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTouchRipple"}),{center:n=!1,classes:a={},className:s,...i}=r,[l,d]=c.useState([]),u=c.useRef(0),f=c.useRef(null);c.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const v=c.useRef(!1),C=Fe(),h=c.useRef(null),m=c.useRef(null),y=c.useCallback(x=>{const{pulsate:N,rippleX:T,rippleY:F,rippleSize:Y,cb:q}=x;d(A=>[...A,p.jsx(er,{classes:{ripple:w(a.ripple,lt.ripple),rippleVisible:w(a.rippleVisible,lt.rippleVisible),ripplePulsate:w(a.ripplePulsate,lt.ripplePulsate),child:w(a.child,lt.child),childLeaving:w(a.childLeaving,lt.childLeaving),childPulsate:w(a.childPulsate,lt.childPulsate)},timeout:Xt,pulsate:N,rippleX:T,rippleY:F,rippleSize:Y},u.current)]),u.current+=1,f.current=q},[a]),P=c.useCallback((x={},N={},T=()=>{})=>{const{pulsate:F=!1,center:Y=n||N.pulsate,fakeElement:q=!1}=N;if(x?.type==="mousedown"&&v.current){v.current=!1;return}x?.type==="touchstart"&&(v.current=!0);const A=q?null:m.current,U=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,B,z;if(Y||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)D=Math.round(U.width/2),B=Math.round(U.height/2);else{const{clientX:H,clientY:W}=x.touches&&x.touches.length>0?x.touches[0]:x;D=Math.round(H-U.left),B=Math.round(W-U.top)}if(Y)z=Math.sqrt((2*U.width**2+U.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-D),D)*2+2,W=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;z=Math.sqrt(H**2+W**2)}x?.touches?h.current===null&&(h.current=()=>{y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},C.start(Ze,()=>{h.current&&(h.current(),h.current=null)})):y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},[n,y,C]),I=c.useCallback(()=>{P({},{pulsate:!0})},[P]),j=c.useCallback((x,N)=>{if(C.clear(),x?.type==="touchend"&&h.current){h.current(),h.current=null,C.start(0,()=>{j(x,N)});return}h.current=null,d(T=>T.length>0?T.slice(1):T),f.current=N},[C]);return c.useImperativeHandle(e,()=>({pulsate:I,start:P,stop:j}),[I,P,j]),p.jsx(or,{className:w(lt.root,a.root,s),ref:m,...i,children:p.jsx(eo,{component:null,exit:!0,children:l})})});function nr(t){return J("MuiButtonBase",t)}const ar=tt("MuiButtonBase",["root","disabled","focusVisible"]),sr=t=>{const{disabled:o,focusVisible:e,focusVisibleClassName:r,classes:n}=t,s=Q({root:["root",o&&"disabled",e&&"focusVisible"]},nr,n);return e&&r&&(s.root+=` ${r}`),s},ir=M("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ar.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),St=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiButtonBase"}),{action:n,centerRipple:a=!1,children:s,className:i,component:l="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:v=!1,focusVisibleClassName:C,LinkComponent:h="a",onBlur:m,onClick:y,onContextMenu:P,onDragLeave:I,onFocus:j,onFocusVisible:x,onKeyDown:N,onKeyUp:T,onMouseDown:F,onMouseLeave:Y,onMouseUp:q,onTouchEnd:A,onTouchMove:U,onTouchStart:D,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:H,type:W,...X}=r,ot=c.useRef(null),O=Xe(),et=wt(O.ref,H),[K,pt]=c.useState(!1);d&&K&&pt(!1),c.useImperativeHandle(n,()=>({focusVisible:()=>{pt(!0),ot.current.focus()}}),[]);const It=O.shouldMount&&!u&&!d;c.useEffect(()=>{K&&v&&!u&&O.pulsate()},[u,v,K,O]);const mt=dt(O,"start",F,f),$t=dt(O,"stop",P,f),E=dt(O,"stop",I,f),at=dt(O,"stop",q,f),Mt=dt(O,"stop",$=>{K&&$.preventDefault(),Y&&Y($)},f),Ot=dt(O,"start",D,f),kt=dt(O,"stop",A,f),Wt=dt(O,"stop",U,f),Tt=dt(O,"stop",$=>{xo($.target)||pt(!1),m&&m($)},!1),Dt=ht($=>{ot.current||(ot.current=$.currentTarget),xo($.target)&&(pt(!0),x&&x($)),j&&j($)}),xt=()=>{const $=ot.current;return l&&l!=="button"&&!($.tagName==="A"&&$.href)},Vt=ht($=>{v&&!$.repeat&&K&&$.key===" "&&O.stop($,()=>{O.start($)}),$.target===$.currentTarget&&xt()&&$.key===" "&&$.preventDefault(),N&&N($),$.target===$.currentTarget&&xt()&&$.key==="Enter"&&!d&&($.preventDefault(),y&&y($))}),zt=ht($=>{v&&$.key===" "&&K&&!$.defaultPrevented&&O.stop($,()=>{O.pulsate($)}),T&&T($),y&&$.target===$.currentTarget&&xt()&&$.key===" "&&!$.defaultPrevented&&y($)});let rt=l;rt==="button"&&(X.href||X.to)&&(rt=h);const st={};rt==="button"?(st.type=W===void 0?"button":W,st.disabled=d):(!X.href&&!X.to&&(st.role="button"),d&&(st["aria-disabled"]=d));const ut=wt(e,ot),Pt={...r,centerRipple:a,component:l,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:v,tabIndex:B,focusVisible:K},bt=sr(Pt);return p.jsxs(ir,{as:rt,className:w(bt.root,i),ownerState:Pt,onBlur:Tt,onClick:y,onContextMenu:$t,onFocus:Dt,onKeyDown:Vt,onKeyUp:zt,onMouseDown:mt,onMouseLeave:Mt,onMouseUp:at,onDragLeave:E,onTouchEnd:kt,onTouchMove:Wt,onTouchStart:Ot,ref:ut,tabIndex:d?-1:B,type:W,...st,...X,children:[s,It?p.jsx(rr,{ref:et,center:a,...z}):null]})});function dt(t,o,e,r=!1){return ht(n=>(e&&e(n),r||t[o](n),!0))}function lr(t){return J("MuiAlert",t)}const So=tt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function cr(t){return J("MuiIconButton",t)}const Co=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),dr=t=>{const{classes:o,disabled:e,color:r,edge:n,size:a,loading:s}=t,i={root:["root",s&&"loading",e&&"disabled",r!=="default"&&`color${b(r)}`,n&&`edge${b(n)}`,`size${b(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Q(i,cr,o)},pr=M(St,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.loading&&o.loading,e.color!=="default"&&o[`color${b(e.color)}`],e.edge&&o[`edge${b(e.edge)}`],o[`size${b(e.size)}`]]}})(_(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:o=>!o.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{color:(t.vars||t).palette[o].main}})),...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Co.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Co.loading}`]:{color:"transparent"}}))),ur=M("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),fr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiIconButton"}),{edge:n=!1,children:a,className:s,color:i="default",disabled:l=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:v=null,loadingIndicator:C,...h}=r,m=Eo(f),y=C??p.jsx(Lo,{"aria-labelledby":m,color:"inherit",size:16}),P={...r,edge:n,color:i,disabled:l,disableFocusRipple:d,loading:v,loadingIndicator:y,size:u},I=dr(P);return p.jsxs(pr,{id:v?m:f,className:w(I.root,s),centerRipple:!0,focusRipple:!d,disabled:l||v,ref:e,...h,ownerState:P,children:[typeof v=="boolean"&&p.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:p.jsx(ur,{className:I.loadingIndicator,ownerState:P,children:v&&y})}),a]})}),br=ft(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),gr=ft(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),vr=ft(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),yr=ft(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),hr=ft(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),mr=t=>{const{variant:o,color:e,severity:r,classes:n}=t,a={root:["root",`color${b(e||r)}`,`${o}${b(e||r)}`,`${o}`],icon:["icon"],message:["message"],action:["action"]};return Q(a,lr,n)},xr=M(no,{name:"MuiAlert",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color||e.severity)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.darken:t.lighten,e=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:e(t.palette[r].light,.9),[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),Sr=M("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Cr=M("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ir=M("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Io={success:p.jsx(br,{fontSize:"inherit"}),warning:p.jsx(gr,{fontSize:"inherit"}),error:p.jsx(vr,{fontSize:"inherit"}),info:p.jsx(yr,{fontSize:"inherit"})},Tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAlert"}),{action:n,children:a,className:s,closeText:i="Close",color:l,components:d={},componentsProps:u={},icon:f,iconMapping:v=Io,onClose:C,role:h="alert",severity:m="success",slotProps:y={},slots:P={},variant:I="standard",...j}=r,x={...r,color:l,severity:m,variant:I,colorSeverity:l||m},N=mr(x),T={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...P},slotProps:{...u,...y}},[F,Y]=nt("root",{ref:e,shouldForwardComponentProp:!0,className:w(N.root,s),elementType:xr,externalForwardedProps:{...T,...j},ownerState:x,additionalProps:{role:h,elevation:0}}),[q,A]=nt("icon",{className:N.icon,elementType:Sr,externalForwardedProps:T,ownerState:x}),[U,D]=nt("message",{className:N.message,elementType:Cr,externalForwardedProps:T,ownerState:x}),[B,z]=nt("action",{className:N.action,elementType:Ir,externalForwardedProps:T,ownerState:x}),[H,W]=nt("closeButton",{elementType:fr,externalForwardedProps:T,ownerState:x}),[X,ot]=nt("closeIcon",{elementType:hr,externalForwardedProps:T,ownerState:x});return p.jsxs(F,{...Y,children:[f!==!1?p.jsx(q,{...A,children:f||v[m]||Io[m]}):null,p.jsx(U,{...D,children:a}),n!=null?p.jsx(B,{...z,children:n}):null,n==null&&C?p.jsx(B,{...z,children:p.jsx(H,{size:"small","aria-label":i,title:i,color:"inherit",onClick:C,...W,children:p.jsx(X,{fontSize:"small",...ot})})}):null]})});function $r(t){return J("MuiAppBar",t)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Pr=t=>{const{color:o,position:e,classes:r}=t,n={root:["root",`color${b(o)}`,`position${b(e)}`]};return Q(n,$r,r)},$o=(t,o)=>t?`${t?.replace(")","")}, ${o})`:o,Br=M(no,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`position${b(e.position)}`],o[`color${b(e.color)}`]]}})(_(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([o])=>({props:{color:o},style:{"--AppBar-background":(t.vars??t).palette[o].main,"--AppBar-color":(t.vars??t).palette[o].contrastText}})),{props:o=>o.enableColorOnDark===!0&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:o=>o.enableColorOnDark===!1&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?$o(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?$o(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),Rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAppBar"}),{className:n,color:a="primary",enableColorOnDark:s=!1,position:i="fixed",...l}=r,d={...r,color:a,position:i,enableColorOnDark:s},u=Pr(d);return p.jsx(Br,{square:!0,component:"header",ownerState:d,elevation:4,className:w(u.root,n,i==="fixed"&&"mui-fixed"),ref:e,...l})});function Nt(t){const{elementType:o,externalSlotProps:e,ownerState:r,skipResolvingSlotProps:n=!1,...a}=t,s=n?{}:Uo(e,r),{props:i,internalRef:l}=Ho({...a,externalSlotProps:s}),d=wt(l,s?.ref,t.additionalProps?.ref);return Fo(o,{...i,ref:d},r)}const wr=ft(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Mr(t){return J("MuiChip",t)}const R=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),kr=t=>{const{classes:o,disabled:e,size:r,color:n,iconColor:a,onDelete:s,clickable:i,variant:l}=t,d={root:["root",l,e&&"disabled",`size${b(r)}`,`color${b(n)}`,i&&"clickable",i&&`clickableColor${b(n)}`,s&&"deletable",s&&`deletableColor${b(n)}`,`${l}${b(n)}`],label:["label",`label${b(r)}`],avatar:["avatar",`avatar${b(r)}`,`avatarColor${b(n)}`],icon:["icon",`icon${b(r)}`,`iconColor${b(a)}`],deleteIcon:["deleteIcon",`deleteIcon${b(r)}`,`deleteIconColor${b(n)}`,`deleteIcon${b(l)}Color${b(n)}`]};return Q(d,Mr,o)},Tr=M("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t,{color:r,iconColor:n,clickable:a,onDelete:s,size:i,variant:l}=e;return[{[`& .${R.avatar}`]:o.avatar},{[`& .${R.avatar}`]:o[`avatar${b(i)}`]},{[`& .${R.avatar}`]:o[`avatarColor${b(r)}`]},{[`& .${R.icon}`]:o.icon},{[`& .${R.icon}`]:o[`icon${b(i)}`]},{[`& .${R.icon}`]:o[`iconColor${b(n)}`]},{[`& .${R.deleteIcon}`]:o.deleteIcon},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(i)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIconColor${b(r)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(l)}Color${b(r)}`]},o.root,o[`size${b(i)}`],o[`color${b(r)}`],a&&o.clickable,a&&r!=="default"&&o[`clickableColor${b(r)})`],s&&o.deletable,s&&r!=="default"&&o[`deletableColor${b(r)}`],o[l],o[`${l}${b(r)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${R.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${R.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:o,fontSize:t.typography.pxToRem(12)},[`& .${R.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${R.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${R.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${R.icon}`]:{marginLeft:5,marginRight:-6},[`& .${R.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${R.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${R.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText,[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${R.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:o}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${R.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,onDelete:!0},style:{[`&.${R.focusVisible}`]:{background:(t.vars||t).palette[e].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,clickable:!0},style:{[`&:hover, &.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${R.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${R.avatar}`]:{marginLeft:4},[`& .${R.avatarSmall}`]:{marginLeft:2},[`& .${R.icon}`]:{marginLeft:4},[`& .${R.iconSmall}`]:{marginLeft:2},[`& .${R.deleteIcon}`]:{marginRight:5},[`& .${R.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(G()).map(([e])=>({props:{variant:"outlined",color:e},style:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.7)}`,[`&.${R.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.focusOpacity)},[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].main}}}}))]}})),zr=M("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,o)=>{const{ownerState:e}=t,{size:r}=e;return[o.label,o[`label${b(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Po(t){return t.key==="Backspace"||t.key==="Delete"}const zn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiChip"}),{avatar:n,className:a,clickable:s,color:i="default",component:l,deleteIcon:d,disabled:u=!1,icon:f,label:v,onClick:C,onDelete:h,onKeyDown:m,onKeyUp:y,size:P="medium",variant:I="filled",tabIndex:j,skipFocusWhenDisabled:x=!1,slots:N={},slotProps:T={},...F}=r,Y=c.useRef(null),q=wt(Y,e),A=E=>{E.stopPropagation(),h&&h(E)},U=E=>{E.currentTarget===E.target&&Po(E)&&E.preventDefault(),m&&m(E)},D=E=>{E.currentTarget===E.target&&h&&Po(E)&&h(E),y&&y(E)},B=s!==!1&&C?!0:s,z=B||h?St:l||"div",H={...r,component:z,disabled:u,size:P,color:i,iconColor:c.isValidElement(f)&&f.props.color||i,onDelete:!!h,clickable:B,variant:I},W=kr(H),X=z===St?{component:l||"div",focusVisibleClassName:W.focusVisible,...h&&{disableRipple:!0}}:{};let ot=null;h&&(ot=d&&c.isValidElement(d)?c.cloneElement(d,{className:w(d.props.className,W.deleteIcon),onClick:A}):p.jsx(wr,{className:W.deleteIcon,onClick:A}));let O=null;n&&c.isValidElement(n)&&(O=c.cloneElement(n,{className:w(W.avatar,n.props.className)}));let et=null;f&&c.isValidElement(f)&&(et=c.cloneElement(f,{className:w(W.icon,f.props.className)}));const K={slots:N,slotProps:T},[pt,It]=nt("root",{elementType:Tr,externalForwardedProps:{...K,...F},ownerState:H,shouldForwardComponentProp:!0,ref:q,className:w(W.root,a),additionalProps:{disabled:B&&u?!0:void 0,tabIndex:x&&u?-1:j,...X},getSlotProps:E=>({...E,onClick:at=>{E.onClick?.(at),C?.(at)},onKeyDown:at=>{E.onKeyDown?.(at),U(at)},onKeyUp:at=>{E.onKeyUp?.(at),D(at)}})}),[mt,$t]=nt("label",{elementType:zr,externalForwardedProps:K,ownerState:H,className:W.label});return p.jsxs(pt,{as:z,...It,children:[O||et,p.jsx(mt,{...$t,children:v}),ot]})});function Er(t){return J("MuiButton",t)}const vt=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Lr=c.createContext({}),Ar=c.createContext(void 0),jr=t=>{const{color:o,disableElevation:e,fullWidth:r,size:n,variant:a,loading:s,loadingPosition:i,classes:l}=t,d={root:["root",s&&"loading",a,`${a}${b(o)}`,`size${b(n)}`,`${a}Size${b(n)}`,`color${b(o)}`,e&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${b(i)}`],startIcon:["icon","startIcon",`iconSize${b(n)}`],endIcon:["icon","endIcon",`iconSize${b(n)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Q(d,Er,l);return{...l,...u}},Ko=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Nr=M(St,{shouldForwardProp:t=>fe(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color)}`],o[`size${b(e.size)}`],o[`${e.variant}Size${b(e.size)}`],e.color==="inherit"&&o.colorInherit,e.disableElevation&&o.disableElevation,e.fullWidth&&o.fullWidth,e.loading&&o.loading]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],e=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${vt.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${vt.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(G()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:o,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:e,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${vt.loading}`]:{color:"transparent"}}}]}})),Or=M("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.startIcon,e.loading&&o.startIconLoadingStart,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ko]})),Wr=M("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.endIcon,e.loading&&o.endIconLoadingEnd,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ko]})),Dr=M("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Bo=M("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),En=c.forwardRef(function(o,e){const r=c.useContext(Lr),n=c.useContext(Ar),a=ko(r,o),s=Z({props:a,name:"MuiButton"}),{children:i,color:l="primary",component:d="button",className:u,disabled:f=!1,disableElevation:v=!1,disableFocusRipple:C=!1,endIcon:h,focusVisibleClassName:m,fullWidth:y=!1,id:P,loading:I=null,loadingIndicator:j,loadingPosition:x="center",size:N="medium",startIcon:T,type:F,variant:Y="text",...q}=s,A=Eo(P),U=j??p.jsx(Lo,{"aria-labelledby":A,color:"inherit",size:16}),D={...s,color:l,component:d,disabled:f,disableElevation:v,disableFocusRipple:C,fullWidth:y,loading:I,loadingIndicator:U,loadingPosition:x,size:N,type:F,variant:Y},B=jr(D),z=(T||I&&x==="start")&&p.jsx(Or,{className:B.startIcon,ownerState:D,children:T||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),H=(h||I&&x==="end")&&p.jsx(Wr,{className:B.endIcon,ownerState:D,children:h||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),W=n||"",X=typeof I=="boolean"?p.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:I&&p.jsx(Dr,{className:B.loadingIndicator,ownerState:D,children:U})}):null;return p.jsxs(Nr,{ownerState:D,className:w(r.className,B.root,u,W),component:d,disabled:f||I,focusRipple:!C,focusVisibleClassName:w(B.focusVisible,m),ref:e,type:F,id:I?A:P,...q,classes:B,children:[z,x!=="end"&&X,i,x==="end"&&X,H]})});function Vr(t){return J("MuiCard",t)}tt("MuiCard",["root"]);const Fr=t=>{const{classes:o}=t;return Q({root:["root"]},Vr,o)},Ur=M(no,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ln=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiCard"}),{className:n,raised:a=!1,...s}=r,i={...r,raised:a},l=Fr(i);return p.jsx(Ur,{className:w(l.root,n),elevation:a?8:void 0,ref:e,ownerState:i,...s})}),Hr=we({createStyledComponent:M("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),useThemeProps:t=>Z({props:t,name:"MuiContainer"})});function Kr(t){return J("MuiLinearProgress",t)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Gt=4,_t=Ct` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,Yr=typeof _t!="string"?to` + animation: ${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Zt=Ct` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,qr=typeof Zt!="string"?to` + animation: ${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,Qt=Ct` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,Xr=typeof Qt!="string"?to` + animation: ${Qt} 3s infinite linear; + `:null,Gr=t=>{const{classes:o,variant:e,color:r}=t,n={root:["root",`color${b(r)}`,e],dashed:["dashed",`dashedColor${b(r)}`],bar1:["bar","bar1",`barColor${b(r)}`,(e==="indeterminate"||e==="query")&&"bar1Indeterminate",e==="determinate"&&"bar1Determinate",e==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",e!=="buffer"&&`barColor${b(r)}`,e==="buffer"&&`color${b(r)}`,(e==="indeterminate"||e==="query")&&"bar2Indeterminate",e==="buffer"&&"bar2Buffer"]};return Q(n,Kr,o)},ao=(t,o)=>t.vars?t.vars.palette.LinearProgress[`${o}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[o].main,.62):t.darken(t.palette[o].main,.5),_r=M("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`color${b(e.color)}`],o[e.variant]]}})(_(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:ao(t,o)}})),{props:({ownerState:o})=>o.color==="inherit"&&o.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Zr=M("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.dashed,o[`dashedColor${b(e.color)}`]]}})(_(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(G()).map(([o])=>{const e=ao(t,o);return{props:{color:o},style:{backgroundImage:`radial-gradient(${e} 0%, ${e} 16%, transparent 42%)`}}})]})),Xr||{animation:`${Qt} 3s infinite linear`}),Qr=M("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar1,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar1Indeterminate,e.variant==="determinate"&&o.bar1Determinate,e.variant==="buffer"&&o.bar1Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:(t.vars||t).palette[o].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Gt}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Gt}s linear`}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Yr||{animation:`${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Jr=M("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar2,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar2Indeterminate,e.variant==="buffer"&&o.bar2Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[o].main}})),{props:({ownerState:o})=>o.variant!=="buffer"&&o.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:o})=>o.variant!=="buffer"&&o.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o,variant:"buffer"},style:{backgroundColor:ao(t,o),transition:`transform .${Gt}s linear`}})),{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:qr||{animation:`${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiLinearProgress"}),{className:n,color:a="primary",value:s,valueBuffer:i,variant:l="indeterminate",...d}=r,u={...r,color:a,variant:l},f=Gr(u),v=Jt(),C={},h={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){C["aria-valuenow"]=Math.round(s),C["aria-valuemin"]=0,C["aria-valuemax"]=100;let m=s-100;v&&(m=-m),h.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&i!==void 0){let m=(i||0)-100;v&&(m=-m),h.bar2.transform=`translateX(${m}%)`}return p.jsxs(_r,{className:w(f.root,n),ownerState:u,role:"progressbar",...C,ref:e,...d,children:[l==="buffer"?p.jsx(Zr,{className:f.dashed,ownerState:u}):null,p.jsx(Qr,{className:f.bar1,ownerState:u,style:h.bar1}),l==="determinate"?null:p.jsx(Jr,{className:f.bar2,ownerState:u,style:h.bar2})]})});function on(t){return J("MuiTab",t)}const it=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),en=t=>{const{classes:o,textColor:e,fullWidth:r,wrapped:n,icon:a,label:s,selected:i,disabled:l}=t,d={root:["root",a&&s&&"labelIcon",`textColor${b(e)}`,r&&"fullWidth",n&&"wrapped",i&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Q(d,on,o)},rn=M(St,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.label&&e.icon&&o.labelIcon,o[`textColor${b(e.textColor)}`],e.fullWidth&&o.fullWidth,e.wrapped&&o.wrapped,{[`& .${it.iconWrapper}`]:o.iconWrapper},{[`& .${it.icon}`]:o.icon}]}})(_(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:o})=>o.label&&(o.iconPosition==="top"||o.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:o})=>o.label&&o.iconPosition!=="top"&&o.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:o})=>o.icon&&o.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="top",style:{[`& > .${it.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="bottom",style:{[`& > .${it.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="start",style:{[`& > .${it.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="end",style:{[`& > .${it.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${it.selected}`]:{opacity:1},[`&.${it.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:o})=>o.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:o})=>o.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),nn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:d="top",indicator:u,label:f,onChange:v,onClick:C,onFocus:h,selected:m,selectionFollowsFocus:y,textColor:P="inherit",value:I,wrapped:j=!1,...x}=r,N={...r,disabled:a,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:d,label:!!f,fullWidth:i,textColor:P,wrapped:j},T=en(N),F=l&&f&&c.isValidElement(l)?c.cloneElement(l,{className:w(T.icon,l.props.className)}):l,Y=A=>{!m&&v&&v(A,I),C&&C(A)},q=A=>{y&&!m&&v&&v(A,I),h&&h(A)};return p.jsxs(rn,{focusRipple:!s,className:w(T.root,n),ref:e,role:"tab","aria-selected":m,disabled:a,onClick:Y,onFocus:q,ownerState:N,tabIndex:m?0:-1,...x,children:[d==="top"||d==="start"?p.jsxs(c.Fragment,{children:[F,f]}):p.jsxs(c.Fragment,{children:[f,F]}),u]})});function an(t){return J("MuiToolbar",t)}tt("MuiToolbar",["root","gutters","regular","dense"]);const sn=t=>{const{classes:o,disableGutters:e,variant:r}=t;return Q({root:["root",!e&&"gutters",r]},an,o)},ln=M("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,!e.disableGutters&&o.gutters,o[e.variant]]}})(_(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),cn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiToolbar"}),{className:n,component:a="div",disableGutters:s=!1,variant:i="regular",...l}=r,d={...r,component:a,disableGutters:s,variant:i},u=sn(d);return p.jsx(ln,{as:a,className:w(u.root,n),ref:e,ownerState:d,...l})}),dn=ft(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),pn=ft(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function un(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fn(t,o,e,r={},n=()=>{}){const{ease:a=un,duration:s=300}=r;let i=null;const l=o[t];let d=!1;const u=()=>{d=!0},f=v=>{if(d){n(new Error("Animation cancelled"));return}i===null&&(i=v);const C=Math.min(1,(v-i)/s);if(o[t]=a(C)*(e-l)+l,C>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(f)};return l===e?(n(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const bn={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function gn(t){const{onChange:o,...e}=t,r=c.useRef(),n=c.useRef(null),a=()=>{r.current=n.current.offsetHeight-n.current.clientHeight};return zo(()=>{const s=Oo(()=>{const l=r.current;a(),l!==r.current&&o(r.current)}),i=Do(n.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[o]),c.useEffect(()=>{a(),o(r.current)},[o]),p.jsx("div",{style:bn,...e,ref:n})}function vn(t){return J("MuiTabScrollButton",t)}const yn=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),hn=t=>{const{classes:o,orientation:e,disabled:r}=t;return Q({root:["root",e,r&&"disabled"]},vn,o)},mn=M(St,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.orientation&&o[e.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${yn.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),xn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabScrollButton"}),{className:n,slots:a={},slotProps:s={},direction:i,orientation:l,disabled:d,...u}=r,f=Jt(),v={isRtl:f,...r},C=hn(v),h=a.StartScrollButtonIcon??dn,m=a.EndScrollButtonIcon??pn,y=Nt({elementType:h,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),P=Nt({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return p.jsx(mn,{component:"div",className:w(C.root,n),ref:e,role:null,ownerState:v,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:i==="left"?p.jsx(h,{...y}):p.jsx(m,{...P})})});function Sn(t){return J("MuiTabs",t)}const Ht=tt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ro=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,wo=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,At=(t,o,e)=>{let r=!1,n=e(t,o);for(;n;){if(n===t.firstChild){if(r)return;r=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=e(t,n);else{n.focus();return}}},Cn=t=>{const{vertical:o,fixed:e,hideScrollbar:r,scrollableX:n,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=t;return Q({root:["root",o&&"vertical"],scroller:["scroller",e&&"fixed",r&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",o&&"flexContainerVertical",o&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Sn,l)},In=M("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[{[`& .${Ht.scrollButtons}`]:o.scrollButtons},{[`& .${Ht.scrollButtons}`]:e.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,e.vertical&&o.vertical]}})(_(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.scrollButtonsHideMobile,style:{[`& .${Ht.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),$n=M("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.scroller,e.fixed&&o.fixed,e.hideScrollbar&&o.hideScrollbar,e.scrollableX&&o.scrollableX,e.scrollableY&&o.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Pn=M("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.list,o.flexContainer,e.vertical&&o.flexContainerVertical,e.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Bn=M("span",{name:"MuiTabs",slot:"Indicator"})(_(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:o})=>o.vertical,style:{height:"100%",width:2,right:0}}]}))),Rn=M(gn)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Mo={},wn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabs"}),n=No(),a=Jt(),{"aria-label":s,"aria-labelledby":i,action:l,centered:d=!1,children:u,className:f,component:v="div",allowScrollButtonsMobile:C=!1,indicatorColor:h="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:P,scrollButtons:I="auto",selectionFollowsFocus:j,slots:x={},slotProps:N={},TabIndicatorProps:T={},TabScrollButtonProps:F={},textColor:Y="primary",value:q,variant:A="standard",visibleScrollbar:U=!1,...D}=r,B=A==="scrollable",z=y==="vertical",H=z?"scrollTop":"scrollLeft",W=z?"top":"left",X=z?"bottom":"right",ot=z?"clientHeight":"clientWidth",O=z?"height":"width",et={...r,component:v,allowScrollButtonsMobile:C,indicatorColor:h,orientation:y,vertical:z,scrollButtons:I,textColor:Y,variant:A,visibleScrollbar:U,fixed:!B,hideScrollbar:B&&!U,scrollableX:B&&!z,scrollableY:B&&z,centered:d&&!B,scrollButtonsHideMobile:!C},K=Cn(et),pt=Nt({elementType:x.StartScrollButtonIcon,externalSlotProps:N.startScrollButtonIcon,ownerState:et}),It=Nt({elementType:x.EndScrollButtonIcon,externalSlotProps:N.endScrollButtonIcon,ownerState:et}),[mt,$t]=c.useState(!1),[E,at]=c.useState(Mo),[Mt,Ot]=c.useState(!1),[kt,Wt]=c.useState(!1),[Tt,Dt]=c.useState(!1),[xt,Vt]=c.useState({overflow:"hidden",scrollbarWidth:0}),zt=new Map,rt=c.useRef(null),st=c.useRef(null),ut={slots:x,slotProps:{indicator:T,scrollButton:F,...N}},Pt=()=>{const g=rt.current;let S;if(g){const k=g.getBoundingClientRect();S={clientWidth:g.clientWidth,scrollLeft:g.scrollLeft,scrollTop:g.scrollTop,scrollWidth:g.scrollWidth,top:k.top,bottom:k.bottom,left:k.left,right:k.right}}let L;if(g&&q!==!1){const k=st.current.children;if(k.length>0){const V=k[zt.get(q)];L=V?V.getBoundingClientRect():null}}return{tabsMeta:S,tabMeta:L}},bt=ht(()=>{const{tabsMeta:g,tabMeta:S}=Pt();let L=0,k;z?(k="top",S&&g&&(L=S.top-g.top+g.scrollTop)):(k=a?"right":"left",S&&g&&(L=(a?-1:1)*(S[k]-g[k]+g.scrollLeft)));const V={[k]:L,[O]:S?S[O]:0};if(typeof E[k]!="number"||typeof E[O]!="number")at(V);else{const ct=Math.abs(E[k]-V[k]),gt=Math.abs(E[O]-V[O]);(ct>=1||gt>=1)&&at(V)}}),$=(g,{animation:S=!0}={})=>{S?fn(H,rt.current,g,{duration:n.transitions.duration.standard}):rt.current[H]=g},so=g=>{let S=rt.current[H];z?S+=g:S+=g*(a?-1:1),$(S)},io=()=>{const g=rt.current[ot];let S=0;const L=Array.from(st.current.children);for(let k=0;kg){k===0&&(S=g);break}S+=V[ot]}return S},Yo=()=>{so(-1*io())},qo=()=>{so(io())},[Xo,{onChange:lo,...Go}]=nt("scrollbar",{className:w(K.scrollableX,K.hideScrollbar),elementType:Rn,shouldForwardComponentProp:!0,externalForwardedProps:ut,ownerState:et}),_o=c.useCallback(g=>{lo?.(g),Vt({overflow:null,scrollbarWidth:g})},[lo]),[co,po]=nt("scrollButtons",{className:w(K.scrollButtons,F.className),elementType:xn,externalForwardedProps:ut,ownerState:et,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:pt,endScrollButtonIcon:It}}}),Zo=()=>{const g={};g.scrollbarSizeListener=B?p.jsx(Xo,{...Go,onChange:_o}):null;const L=B&&(I==="auto"&&(Mt||kt)||I===!0);return g.scrollButtonStart=L?p.jsx(co,{direction:a?"right":"left",onClick:Yo,disabled:!Mt,...po}):null,g.scrollButtonEnd=L?p.jsx(co,{direction:a?"left":"right",onClick:qo,disabled:!kt,...po}):null,g},uo=ht(g=>{const{tabsMeta:S,tabMeta:L}=Pt();if(!(!L||!S)){if(L[W]S[X]){const k=S[H]+(L[X]-S[X]);$(k,{animation:g})}}}),Et=ht(()=>{B&&I!==!1&&Dt(!Tt)});c.useEffect(()=>{const g=Oo(()=>{rt.current&&bt()});let S;const L=ct=>{ct.forEach(gt=>{gt.removedNodes.forEach(Bt=>{S?.unobserve(Bt)}),gt.addedNodes.forEach(Bt=>{S?.observe(Bt)})}),g(),Et()},k=Do(rt.current);k.addEventListener("resize",g);let V;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(g),Array.from(st.current.children).forEach(ct=>{S.observe(ct)})),typeof MutationObserver<"u"&&(V=new MutationObserver(L),V.observe(st.current,{childList:!0})),()=>{g.clear(),k.removeEventListener("resize",g),V?.disconnect(),S?.disconnect()}},[bt,Et]),c.useEffect(()=>{const g=Array.from(st.current.children),S=g.length;if(typeof IntersectionObserver<"u"&&S>0&&B&&I!==!1){const L=g[0],k=g[S-1],V={root:rt.current,threshold:.99},ct=Ut=>{Ot(!Ut[0].isIntersecting)},gt=new IntersectionObserver(ct,V);gt.observe(L);const Bt=Ut=>{Wt(!Ut[0].isIntersecting)},bo=new IntersectionObserver(Bt,V);return bo.observe(k),()=>{gt.disconnect(),bo.disconnect()}}},[B,I,Tt,u?.length]),c.useEffect(()=>{$t(!0)},[]),c.useEffect(()=>{bt()}),c.useEffect(()=>{uo(Mo!==E)},[uo,E]),c.useImperativeHandle(l,()=>({updateIndicator:bt,updateScrollButtons:Et}),[bt,Et]);const[Qo,Jo]=nt("indicator",{className:w(K.indicator,T.className),elementType:Bn,externalForwardedProps:ut,ownerState:et,additionalProps:{style:E}}),fo=p.jsx(Qo,{...Jo});let Lt=0;const te=c.Children.map(u,g=>{if(!c.isValidElement(g))return null;const S=g.props.value===void 0?Lt:g.props.value;zt.set(S,Lt);const L=S===q;return Lt+=1,c.cloneElement(g,{fullWidth:A==="fullWidth",indicator:L&&!mt&&fo,selected:L,selectionFollowsFocus:j,onChange:m,textColor:Y,value:S,...Lt===1&&q===!1&&!g.props.tabIndex?{tabIndex:0}:{}})}),oe=g=>{if(g.altKey||g.shiftKey||g.ctrlKey||g.metaKey)return;const S=st.current,L=Wo(S).activeElement;if(L.getAttribute("role")!=="tab")return;let V=y==="horizontal"?"ArrowLeft":"ArrowUp",ct=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(V="ArrowRight",ct="ArrowLeft"),g.key){case V:g.preventDefault(),At(S,L,wo);break;case ct:g.preventDefault(),At(S,L,Ro);break;case"Home":g.preventDefault(),At(S,null,Ro);break;case"End":g.preventDefault(),At(S,null,wo);break}},Ft=Zo(),[ee,re]=nt("root",{ref:e,className:w(K.root,f),elementType:In,externalForwardedProps:{...ut,...D,component:v},ownerState:et}),[ne,ae]=nt("scroller",{ref:rt,className:K.scroller,elementType:$n,externalForwardedProps:ut,ownerState:et,additionalProps:{style:{overflow:xt.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:U?void 0:-xt.scrollbarWidth}}}),[se,ie]=nt("list",{ref:st,className:w(K.list,K.flexContainer),elementType:Pn,externalForwardedProps:ut,ownerState:et,getSlotProps:g=>({...g,onKeyDown:S=>{oe(S),g.onKeyDown?.(S)}})});return p.jsxs(ee,{...re,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,p.jsxs(ne,{...ae,children:[p.jsx(se,{"aria-label":s,"aria-labelledby":i,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...ie,children:te}),mt&&fo]}),Ft.scrollButtonEnd]})}),Mn=({currentPath:t})=>{const o=Ao(),{currentDocument:e,extractionById:r}=jo(l=>l.document),n=[{label:"Téléversement",path:"/",alwaysEnabled:!0},{label:"Extraction",path:"/extraction",alwaysEnabled:!0},{label:"Contexte",path:"/contexte",alwaysEnabled:!1},{label:"Conseil",path:"/conseil",alwaysEnabled:!1}],a=n.findIndex(l=>l.path===t),s=e&&r[e.id],i=(l,d)=>{const u=n[d];(u.alwaysEnabled||s)&&o(u.path)};return p.jsx(Kt,{sx:{borderBottom:1,borderColor:"divider"},children:p.jsx(wn,{value:a>=0?a:0,onChange:i,"aria-label":"navigation tabs",variant:"scrollable",scrollButtons:"auto",children:n.map((l,d)=>p.jsx(nn,{label:l.label,disabled:!l.alwaysEnabled&&!s,sx:{opacity:!l.alwaysEnabled&&!s?.5:1,"&.Mui-disabled":{color:"text.disabled"}}},d))})})},An=({children:t})=>{const o=Ao(),e=be(),r=ge(),{documents:n,extractionById:a,loading:s,currentDocument:i,contextResult:l,conseilResult:d,analysisResult:u}=jo(y=>y.document),f=c.useRef(new Set),v=c.useRef([]),C=c.useRef(!1),h=async()=>{if(!(C.current||v.current.length===0)){for(C.current=!0;v.current.length>0;){const y=v.current.shift();if(y){console.log(`🚀 [LAYOUT] Traitement de la queue: ${y}`);try{const P=n.find(I=>I.id===y);P&&(P.status="processing"),await r(xe(y)),await new Promise(I=>setTimeout(I,500))}catch(P){console.error(`❌ [LAYOUT] Erreur extraction ${y}:`,P);const I=n.find(j=>j.id===y);I&&(I.status="error")}}}C.current=!1}},m=c.useMemo(()=>(console.log(`📋 [LAYOUT] Recalcul de la liste des documents: ${n.length}`),n),[n]);return c.useEffect(()=>{console.log(`📋 [LAYOUT] ${m.length} documents détectés`),m.forEach(y=>{const P=a[y.id],I=f.current.has(y.id),j=y.status==="processing",x=y.status==="completed";console.log(`📄 [LAYOUT] Document ${y.id}: hasExtraction=${!!P}, isProcessed=${I}, isProcessing=${j}, isCompleted=${x}`),P&&!I?(console.log(`✅ [LAYOUT] Document ${y.id} a déjà un résultat, marqué comme traité`),f.current.add(y.id),y.status!=="completed"&&(y.status="completed")):!P&&!I&&!j&&!x&&(console.log(`🚀 [LAYOUT] Ajout à la queue: ${y.id}`),f.current.add(y.id),v.current.push(y.id))}),h()},[n,r,a]),c.useEffect(()=>{i&&(u||r(ve(i.id)),l||r(ye(i.id)),d||r(he(i.id)))},[i,u,l,d,r]),p.jsxs(Kt,{sx:{flexGrow:1},children:[p.jsx(Rr,{position:"static",children:p.jsx(cn,{children:p.jsx(me,{variant:"h6",component:"div",sx:{flexGrow:1,cursor:"pointer"},onClick:()=>o("/"),children:"IA - Lecoffre.io"})})}),p.jsx(Mn,{currentPath:e.pathname}),s&&p.jsx(Kt,{sx:{px:2,pt:1},children:p.jsx(tn,{})}),p.jsx(Hr,{maxWidth:"xl",sx:{mt:3,mb:3},children:t})]})};export{Tn as A,En as B,Ln as C,fr as I,An as L,no as P,ro as T,Ee as _,ht as a,No as b,ft as c,Oo as d,nt as e,Wo as f,qe as g,Nt as h,Ye as i,Fe as j,zn as k,St as l,xo as m,ze as n,Do as o,yo as p,tn as q,wt as u}; diff --git a/public/assets/Layout-EP4xiiHA.js b/public/assets/Layout-EP4xiiHA.js new file mode 100644 index 0000000..8f00228 --- /dev/null +++ b/public/assets/Layout-EP4xiiHA.js @@ -0,0 +1,125 @@ +import{W as le,X as ko,Y as To,r as c,j as p,c as w,f as b,h as Q,Z as ce,b as J,_ as de,$ as pe,a as tt,d as Z,s as M,m as _,u as zo,R as Rt,a0 as ue,a1 as go,a2 as vo,v as Ct,k as Eo,o as G,D as Lo,n as fe,p as Jt,t as to,a3 as Ao,y as jo,B as Kt,a4 as be,x as ge,U as ve,O as ye,S as he,T as me,a5 as xe}from"./index-ChSrE95j.js";const Se=le();function Ce(t){const{theme:o,name:e,props:r}=t;return!o||!o.components||!o.components[e]||!o.components[e].defaultProps?r:ko(o.components[e].defaultProps,r)}function Ie({props:t,name:o,defaultTheme:e,themeId:r}){let n=To(e);return r&&(n=n[r]||n),Ce({theme:n,name:o,props:t})}const $e=ce(),Pe=Se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),Be=t=>Ie({props:t,name:"MuiContainer",defaultTheme:$e}),Re=(t,o)=>{const e=l=>J(o,l),{classes:r,fixed:n,disableGutters:a,maxWidth:s}=t,i={root:["root",s&&`maxWidth${b(String(s))}`,n&&"fixed",a&&"disableGutters"]};return Q(i,e,r)};function we(t={}){const{createStyledComponent:o=Pe,useThemeProps:e=Be,componentName:r="MuiContainer"}=t,n=o(({theme:s,ownerState:i})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!i.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:i})=>i.fixed&&Object.keys(s.breakpoints.values).reduce((l,d)=>{const u=d,f=s.breakpoints.values[u];return f!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:i})=>({...i.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...i.maxWidth&&i.maxWidth!=="xs"&&{[s.breakpoints.up(i.maxWidth)]:{maxWidth:`${s.breakpoints.values[i.maxWidth]}${s.breakpoints.unit}`}}}));return c.forwardRef(function(i,l){const d=e(i),{className:u,component:f="div",disableGutters:v=!1,fixed:C=!1,maxWidth:h="lg",classes:m,...y}=d,P={...d,component:f,disableGutters:v,fixed:C,maxWidth:h},I=Re(P,r);return p.jsx(n,{as:f,ownerState:P,className:w(I.root,u),ref:l,...y})})}function No(){const t=To(pe);return t[de]||t}function Me(t){return J("MuiSvgIcon",t)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ke=t=>{const{color:o,fontSize:e,classes:r}=t,n={root:["root",o!=="inherit"&&`color${b(o)}`,`fontSize${b(e)}`]};return Q(n,Me,r)},Te=M("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.color!=="inherit"&&o[`color${b(e.color)}`],o[`fontSize${b(e.fontSize)}`]]}})(_(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:o=>!o.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,o])=>o&&o.main).map(([o])=>({props:{color:o},style:{color:(t.vars??t).palette?.[o]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Yt=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiSvgIcon"}),{children:n,className:a,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:v="0 0 24 24",...C}=r,h=c.isValidElement(n)&&n.type==="svg",m={...r,color:s,component:i,fontSize:l,instanceFontSize:o.fontSize,inheritViewBox:u,viewBox:v,hasSvgAsChild:h},y={};u||(y.viewBox=v);const P=ke(m);return p.jsxs(Te,{as:i,className:w(P.root,a),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:e,...y,...C,...h&&n.props,ownerState:m,children:[h?n.props.children:n,f?p.jsx("title",{children:f}):null]})});Yt.muiName="SvgIcon";function ft(t,o){function e(r,n){return p.jsx(Yt,{"data-testid":void 0,ref:n,...r,children:t})}return e.muiName=Yt.muiName,c.memo(c.forwardRef(e))}function Oo(t,o=166){let e;function r(...n){const a=()=>{t.apply(this,n)};clearTimeout(e),e=setTimeout(a,o)}return r.clear=()=>{clearTimeout(e)},r}function Wo(t){return t&&t.ownerDocument||document}function Do(t){return Wo(t).defaultView||window}function ht(t){const o=c.useRef(t);return zo(()=>{o.current=t}),c.useRef((...e)=>(0,o.current)(...e)).current}function wt(...t){const o=c.useRef(void 0),e=c.useCallback(r=>{const n=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,i=s(r);return typeof i=="function"?i:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{n.forEach(a=>a?.())}},t);return c.useMemo(()=>t.every(r=>r==null)?null:r=>{o.current&&(o.current(),o.current=void 0),r!=null&&(o.current=e(r))},t)}function ze(t,o){if(t==null)return{};var e={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(o.indexOf(r)!==-1)continue;e[r]=t[r]}return e}function qt(t,o){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},qt(t,o)}function Ee(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,qt(t,o)}const yo=Rt.createContext(null);function Le(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oo(t,o){var e=function(a){return o&&c.isValidElement(a)?o(a):a},r=Object.create(null);return t&&c.Children.map(t,function(n){return n}).forEach(function(n){r[n.key]=e(n)}),r}function Ae(t,o){t=t||{},o=o||{};function e(u){return u in o?o[u]:t[u]}var r=Object.create(null),n=[];for(var a in t)a in o?n.length&&(r[a]=n,n=[]):n.push(a);var s,i={};for(var l in o){if(r[l])for(s=0;s{this.currentId=null,e()},o)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Fe(){const t=Vo(ro.create).current;return Ve(t.disposeEffect),t}function Ue(t){return J("MuiPaper",t)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const He=t=>{const{square:o,elevation:e,variant:r,classes:n}=t,a={root:["root",r,!o&&"rounded",r==="elevation"&&`elevation${e}`]};return Q(a,Ue,n)},Ke=M("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],!e.square&&o.rounded,e.variant==="elevation"&&o[`elevation${e.elevation}`]]}})(_(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),no=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiPaper"}),n=No(),{className:a,component:s="div",elevation:i=1,square:l=!1,variant:d="elevation",...u}=r,f={...r,component:s,elevation:i,square:l,variant:d},v=He(f);return p.jsx(Ke,{as:s,ownerState:f,className:w(v.root,a),ref:e,...u,style:{...d==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[i],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[i]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${go("#fff",vo(i))}, ${go("#fff",vo(i))})`}},...u.style}})});function Ye(t){return typeof t=="string"}function Fo(t,o,e){return t===void 0||Ye(t)?o:{...o,ownerState:{...o.ownerState,...e}}}function Uo(t,o,e){return typeof t=="function"?t(o,e):t}function qe(t,o=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!o.includes(r)).forEach(r=>{e[r]=t[r]}),e}function mo(t){if(t===void 0)return{};const o={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{o[e]=t[e]}),o}function Ho(t){const{getSlotProps:o,additionalProps:e,externalSlotProps:r,externalForwardedProps:n,className:a}=t;if(!o){const C=w(e?.className,a,n?.className,r?.className),h={...e?.style,...n?.style,...r?.style},m={...e,...n,...r};return C.length>0&&(m.className=C),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const s=qe({...n,...r}),i=mo(r),l=mo(n),d=o(s),u=w(d?.className,e?.className,a,n?.className,r?.className),f={...d?.style,...e?.style,...n?.style,...r?.style},v={...d,...e,...l,...i};return u.length>0&&(v.className=u),Object.keys(f).length>0&&(v.style=f),{props:v,internalRef:d.ref}}function nt(t,o){const{className:e,elementType:r,ownerState:n,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:i=!1,...l}=o,{component:d,slots:u={[t]:void 0},slotProps:f={[t]:void 0},...v}=a,C=u[t]||r,h=Uo(f[t],n),{props:{component:m,...y},internalRef:P}=Ho({className:e,...l,externalForwardedProps:t==="root"?v:void 0,externalSlotProps:h}),I=wt(P,h?.ref,o.ref),j=t==="root"?m||d:m,x=Fo(C,{...t==="root"&&!d&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...y,...j&&!i&&{as:j},...j&&i&&{component:j},ref:I},n);return[C,x]}function xo(t){try{return t.matches(":focus-visible")}catch{}return!1}class jt{static create(){return new jt}static use(){const o=Vo(jt.create).current,[e,r]=c.useState(!1);return o.shouldMount=e,o.setShouldMount=r,c.useEffect(o.mountEffect,[e]),o}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Ge(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...o){this.mount().then(()=>this.ref.current?.start(...o))}stop(...o){this.mount().then(()=>this.ref.current?.stop(...o))}pulsate(...o){this.mount().then(()=>this.ref.current?.pulsate(...o))}}function Xe(){return jt.use()}function Ge(){let t,o;const e=new Promise((r,n)=>{t=r,o=n});return e.resolve=t,e.reject=o,e}function _e(t){const{className:o,classes:e,pulsate:r=!1,rippleX:n,rippleY:a,rippleSize:s,in:i,onExited:l,timeout:d}=t,[u,f]=c.useState(!1),v=w(o,e.ripple,e.rippleVisible,r&&e.ripplePulsate),C={width:s,height:s,top:-(s/2)+a,left:-(s/2)+n},h=w(e.child,u&&e.childLeaving,r&&e.childPulsate);return!i&&!u&&f(!0),c.useEffect(()=>{if(!i&&l!=null){const m=setTimeout(l,d);return()=>{clearTimeout(m)}}},[l,i,d]),p.jsx("span",{className:v,style:C,children:p.jsx("span",{className:h})})}const lt=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=550,Ze=80,Qe=Ct` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,Je=Ct` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,tr=Ct` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,or=M("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),er=M(_e,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${lt.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${Qe}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${lt.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${lt.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${lt.childLeaving} { + opacity: 0; + animation-name: ${Je}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${lt.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${tr}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTouchRipple"}),{center:n=!1,classes:a={},className:s,...i}=r,[l,d]=c.useState([]),u=c.useRef(0),f=c.useRef(null);c.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const v=c.useRef(!1),C=Fe(),h=c.useRef(null),m=c.useRef(null),y=c.useCallback(x=>{const{pulsate:N,rippleX:T,rippleY:F,rippleSize:Y,cb:q}=x;d(A=>[...A,p.jsx(er,{classes:{ripple:w(a.ripple,lt.ripple),rippleVisible:w(a.rippleVisible,lt.rippleVisible),ripplePulsate:w(a.ripplePulsate,lt.ripplePulsate),child:w(a.child,lt.child),childLeaving:w(a.childLeaving,lt.childLeaving),childPulsate:w(a.childPulsate,lt.childPulsate)},timeout:Xt,pulsate:N,rippleX:T,rippleY:F,rippleSize:Y},u.current)]),u.current+=1,f.current=q},[a]),P=c.useCallback((x={},N={},T=()=>{})=>{const{pulsate:F=!1,center:Y=n||N.pulsate,fakeElement:q=!1}=N;if(x?.type==="mousedown"&&v.current){v.current=!1;return}x?.type==="touchstart"&&(v.current=!0);const A=q?null:m.current,U=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,B,z;if(Y||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)D=Math.round(U.width/2),B=Math.round(U.height/2);else{const{clientX:H,clientY:W}=x.touches&&x.touches.length>0?x.touches[0]:x;D=Math.round(H-U.left),B=Math.round(W-U.top)}if(Y)z=Math.sqrt((2*U.width**2+U.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-D),D)*2+2,W=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;z=Math.sqrt(H**2+W**2)}x?.touches?h.current===null&&(h.current=()=>{y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},C.start(Ze,()=>{h.current&&(h.current(),h.current=null)})):y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},[n,y,C]),I=c.useCallback(()=>{P({},{pulsate:!0})},[P]),j=c.useCallback((x,N)=>{if(C.clear(),x?.type==="touchend"&&h.current){h.current(),h.current=null,C.start(0,()=>{j(x,N)});return}h.current=null,d(T=>T.length>0?T.slice(1):T),f.current=N},[C]);return c.useImperativeHandle(e,()=>({pulsate:I,start:P,stop:j}),[I,P,j]),p.jsx(or,{className:w(lt.root,a.root,s),ref:m,...i,children:p.jsx(eo,{component:null,exit:!0,children:l})})});function nr(t){return J("MuiButtonBase",t)}const ar=tt("MuiButtonBase",["root","disabled","focusVisible"]),sr=t=>{const{disabled:o,focusVisible:e,focusVisibleClassName:r,classes:n}=t,s=Q({root:["root",o&&"disabled",e&&"focusVisible"]},nr,n);return e&&r&&(s.root+=` ${r}`),s},ir=M("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ar.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),St=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiButtonBase"}),{action:n,centerRipple:a=!1,children:s,className:i,component:l="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:v=!1,focusVisibleClassName:C,LinkComponent:h="a",onBlur:m,onClick:y,onContextMenu:P,onDragLeave:I,onFocus:j,onFocusVisible:x,onKeyDown:N,onKeyUp:T,onMouseDown:F,onMouseLeave:Y,onMouseUp:q,onTouchEnd:A,onTouchMove:U,onTouchStart:D,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:H,type:W,...X}=r,ot=c.useRef(null),O=Xe(),et=wt(O.ref,H),[K,pt]=c.useState(!1);d&&K&&pt(!1),c.useImperativeHandle(n,()=>({focusVisible:()=>{pt(!0),ot.current.focus()}}),[]);const It=O.shouldMount&&!u&&!d;c.useEffect(()=>{K&&v&&!u&&O.pulsate()},[u,v,K,O]);const mt=dt(O,"start",F,f),$t=dt(O,"stop",P,f),E=dt(O,"stop",I,f),at=dt(O,"stop",q,f),Mt=dt(O,"stop",$=>{K&&$.preventDefault(),Y&&Y($)},f),Ot=dt(O,"start",D,f),kt=dt(O,"stop",A,f),Wt=dt(O,"stop",U,f),Tt=dt(O,"stop",$=>{xo($.target)||pt(!1),m&&m($)},!1),Dt=ht($=>{ot.current||(ot.current=$.currentTarget),xo($.target)&&(pt(!0),x&&x($)),j&&j($)}),xt=()=>{const $=ot.current;return l&&l!=="button"&&!($.tagName==="A"&&$.href)},Vt=ht($=>{v&&!$.repeat&&K&&$.key===" "&&O.stop($,()=>{O.start($)}),$.target===$.currentTarget&&xt()&&$.key===" "&&$.preventDefault(),N&&N($),$.target===$.currentTarget&&xt()&&$.key==="Enter"&&!d&&($.preventDefault(),y&&y($))}),zt=ht($=>{v&&$.key===" "&&K&&!$.defaultPrevented&&O.stop($,()=>{O.pulsate($)}),T&&T($),y&&$.target===$.currentTarget&&xt()&&$.key===" "&&!$.defaultPrevented&&y($)});let rt=l;rt==="button"&&(X.href||X.to)&&(rt=h);const st={};rt==="button"?(st.type=W===void 0?"button":W,st.disabled=d):(!X.href&&!X.to&&(st.role="button"),d&&(st["aria-disabled"]=d));const ut=wt(e,ot),Pt={...r,centerRipple:a,component:l,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:v,tabIndex:B,focusVisible:K},bt=sr(Pt);return p.jsxs(ir,{as:rt,className:w(bt.root,i),ownerState:Pt,onBlur:Tt,onClick:y,onContextMenu:$t,onFocus:Dt,onKeyDown:Vt,onKeyUp:zt,onMouseDown:mt,onMouseLeave:Mt,onMouseUp:at,onDragLeave:E,onTouchEnd:kt,onTouchMove:Wt,onTouchStart:Ot,ref:ut,tabIndex:d?-1:B,type:W,...st,...X,children:[s,It?p.jsx(rr,{ref:et,center:a,...z}):null]})});function dt(t,o,e,r=!1){return ht(n=>(e&&e(n),r||t[o](n),!0))}function lr(t){return J("MuiAlert",t)}const So=tt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function cr(t){return J("MuiIconButton",t)}const Co=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),dr=t=>{const{classes:o,disabled:e,color:r,edge:n,size:a,loading:s}=t,i={root:["root",s&&"loading",e&&"disabled",r!=="default"&&`color${b(r)}`,n&&`edge${b(n)}`,`size${b(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Q(i,cr,o)},pr=M(St,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.loading&&o.loading,e.color!=="default"&&o[`color${b(e.color)}`],e.edge&&o[`edge${b(e.edge)}`],o[`size${b(e.size)}`]]}})(_(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:o=>!o.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{color:(t.vars||t).palette[o].main}})),...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Co.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Co.loading}`]:{color:"transparent"}}))),ur=M("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),fr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiIconButton"}),{edge:n=!1,children:a,className:s,color:i="default",disabled:l=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:v=null,loadingIndicator:C,...h}=r,m=Eo(f),y=C??p.jsx(Lo,{"aria-labelledby":m,color:"inherit",size:16}),P={...r,edge:n,color:i,disabled:l,disableFocusRipple:d,loading:v,loadingIndicator:y,size:u},I=dr(P);return p.jsxs(pr,{id:v?m:f,className:w(I.root,s),centerRipple:!0,focusRipple:!d,disabled:l||v,ref:e,...h,ownerState:P,children:[typeof v=="boolean"&&p.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:p.jsx(ur,{className:I.loadingIndicator,ownerState:P,children:v&&y})}),a]})}),br=ft(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),gr=ft(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),vr=ft(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),yr=ft(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),hr=ft(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),mr=t=>{const{variant:o,color:e,severity:r,classes:n}=t,a={root:["root",`color${b(e||r)}`,`${o}${b(e||r)}`,`${o}`],icon:["icon"],message:["message"],action:["action"]};return Q(a,lr,n)},xr=M(no,{name:"MuiAlert",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color||e.severity)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.darken:t.lighten,e=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:e(t.palette[r].light,.9),[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),Sr=M("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Cr=M("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ir=M("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Io={success:p.jsx(br,{fontSize:"inherit"}),warning:p.jsx(gr,{fontSize:"inherit"}),error:p.jsx(vr,{fontSize:"inherit"}),info:p.jsx(yr,{fontSize:"inherit"})},Tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAlert"}),{action:n,children:a,className:s,closeText:i="Close",color:l,components:d={},componentsProps:u={},icon:f,iconMapping:v=Io,onClose:C,role:h="alert",severity:m="success",slotProps:y={},slots:P={},variant:I="standard",...j}=r,x={...r,color:l,severity:m,variant:I,colorSeverity:l||m},N=mr(x),T={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...P},slotProps:{...u,...y}},[F,Y]=nt("root",{ref:e,shouldForwardComponentProp:!0,className:w(N.root,s),elementType:xr,externalForwardedProps:{...T,...j},ownerState:x,additionalProps:{role:h,elevation:0}}),[q,A]=nt("icon",{className:N.icon,elementType:Sr,externalForwardedProps:T,ownerState:x}),[U,D]=nt("message",{className:N.message,elementType:Cr,externalForwardedProps:T,ownerState:x}),[B,z]=nt("action",{className:N.action,elementType:Ir,externalForwardedProps:T,ownerState:x}),[H,W]=nt("closeButton",{elementType:fr,externalForwardedProps:T,ownerState:x}),[X,ot]=nt("closeIcon",{elementType:hr,externalForwardedProps:T,ownerState:x});return p.jsxs(F,{...Y,children:[f!==!1?p.jsx(q,{...A,children:f||v[m]||Io[m]}):null,p.jsx(U,{...D,children:a}),n!=null?p.jsx(B,{...z,children:n}):null,n==null&&C?p.jsx(B,{...z,children:p.jsx(H,{size:"small","aria-label":i,title:i,color:"inherit",onClick:C,...W,children:p.jsx(X,{fontSize:"small",...ot})})}):null]})});function $r(t){return J("MuiAppBar",t)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Pr=t=>{const{color:o,position:e,classes:r}=t,n={root:["root",`color${b(o)}`,`position${b(e)}`]};return Q(n,$r,r)},$o=(t,o)=>t?`${t?.replace(")","")}, ${o})`:o,Br=M(no,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`position${b(e.position)}`],o[`color${b(e.color)}`]]}})(_(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([o])=>({props:{color:o},style:{"--AppBar-background":(t.vars??t).palette[o].main,"--AppBar-color":(t.vars??t).palette[o].contrastText}})),{props:o=>o.enableColorOnDark===!0&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:o=>o.enableColorOnDark===!1&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?$o(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?$o(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),Rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAppBar"}),{className:n,color:a="primary",enableColorOnDark:s=!1,position:i="fixed",...l}=r,d={...r,color:a,position:i,enableColorOnDark:s},u=Pr(d);return p.jsx(Br,{square:!0,component:"header",ownerState:d,elevation:4,className:w(u.root,n,i==="fixed"&&"mui-fixed"),ref:e,...l})});function Nt(t){const{elementType:o,externalSlotProps:e,ownerState:r,skipResolvingSlotProps:n=!1,...a}=t,s=n?{}:Uo(e,r),{props:i,internalRef:l}=Ho({...a,externalSlotProps:s}),d=wt(l,s?.ref,t.additionalProps?.ref);return Fo(o,{...i,ref:d},r)}const wr=ft(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Mr(t){return J("MuiChip",t)}const R=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),kr=t=>{const{classes:o,disabled:e,size:r,color:n,iconColor:a,onDelete:s,clickable:i,variant:l}=t,d={root:["root",l,e&&"disabled",`size${b(r)}`,`color${b(n)}`,i&&"clickable",i&&`clickableColor${b(n)}`,s&&"deletable",s&&`deletableColor${b(n)}`,`${l}${b(n)}`],label:["label",`label${b(r)}`],avatar:["avatar",`avatar${b(r)}`,`avatarColor${b(n)}`],icon:["icon",`icon${b(r)}`,`iconColor${b(a)}`],deleteIcon:["deleteIcon",`deleteIcon${b(r)}`,`deleteIconColor${b(n)}`,`deleteIcon${b(l)}Color${b(n)}`]};return Q(d,Mr,o)},Tr=M("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t,{color:r,iconColor:n,clickable:a,onDelete:s,size:i,variant:l}=e;return[{[`& .${R.avatar}`]:o.avatar},{[`& .${R.avatar}`]:o[`avatar${b(i)}`]},{[`& .${R.avatar}`]:o[`avatarColor${b(r)}`]},{[`& .${R.icon}`]:o.icon},{[`& .${R.icon}`]:o[`icon${b(i)}`]},{[`& .${R.icon}`]:o[`iconColor${b(n)}`]},{[`& .${R.deleteIcon}`]:o.deleteIcon},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(i)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIconColor${b(r)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(l)}Color${b(r)}`]},o.root,o[`size${b(i)}`],o[`color${b(r)}`],a&&o.clickable,a&&r!=="default"&&o[`clickableColor${b(r)})`],s&&o.deletable,s&&r!=="default"&&o[`deletableColor${b(r)}`],o[l],o[`${l}${b(r)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${R.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${R.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:o,fontSize:t.typography.pxToRem(12)},[`& .${R.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${R.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${R.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${R.icon}`]:{marginLeft:5,marginRight:-6},[`& .${R.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${R.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${R.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText,[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${R.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:o}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${R.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,onDelete:!0},style:{[`&.${R.focusVisible}`]:{background:(t.vars||t).palette[e].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,clickable:!0},style:{[`&:hover, &.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${R.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${R.avatar}`]:{marginLeft:4},[`& .${R.avatarSmall}`]:{marginLeft:2},[`& .${R.icon}`]:{marginLeft:4},[`& .${R.iconSmall}`]:{marginLeft:2},[`& .${R.deleteIcon}`]:{marginRight:5},[`& .${R.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(G()).map(([e])=>({props:{variant:"outlined",color:e},style:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.7)}`,[`&.${R.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.focusOpacity)},[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].main}}}}))]}})),zr=M("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,o)=>{const{ownerState:e}=t,{size:r}=e;return[o.label,o[`label${b(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Po(t){return t.key==="Backspace"||t.key==="Delete"}const zn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiChip"}),{avatar:n,className:a,clickable:s,color:i="default",component:l,deleteIcon:d,disabled:u=!1,icon:f,label:v,onClick:C,onDelete:h,onKeyDown:m,onKeyUp:y,size:P="medium",variant:I="filled",tabIndex:j,skipFocusWhenDisabled:x=!1,slots:N={},slotProps:T={},...F}=r,Y=c.useRef(null),q=wt(Y,e),A=E=>{E.stopPropagation(),h&&h(E)},U=E=>{E.currentTarget===E.target&&Po(E)&&E.preventDefault(),m&&m(E)},D=E=>{E.currentTarget===E.target&&h&&Po(E)&&h(E),y&&y(E)},B=s!==!1&&C?!0:s,z=B||h?St:l||"div",H={...r,component:z,disabled:u,size:P,color:i,iconColor:c.isValidElement(f)&&f.props.color||i,onDelete:!!h,clickable:B,variant:I},W=kr(H),X=z===St?{component:l||"div",focusVisibleClassName:W.focusVisible,...h&&{disableRipple:!0}}:{};let ot=null;h&&(ot=d&&c.isValidElement(d)?c.cloneElement(d,{className:w(d.props.className,W.deleteIcon),onClick:A}):p.jsx(wr,{className:W.deleteIcon,onClick:A}));let O=null;n&&c.isValidElement(n)&&(O=c.cloneElement(n,{className:w(W.avatar,n.props.className)}));let et=null;f&&c.isValidElement(f)&&(et=c.cloneElement(f,{className:w(W.icon,f.props.className)}));const K={slots:N,slotProps:T},[pt,It]=nt("root",{elementType:Tr,externalForwardedProps:{...K,...F},ownerState:H,shouldForwardComponentProp:!0,ref:q,className:w(W.root,a),additionalProps:{disabled:B&&u?!0:void 0,tabIndex:x&&u?-1:j,...X},getSlotProps:E=>({...E,onClick:at=>{E.onClick?.(at),C?.(at)},onKeyDown:at=>{E.onKeyDown?.(at),U(at)},onKeyUp:at=>{E.onKeyUp?.(at),D(at)}})}),[mt,$t]=nt("label",{elementType:zr,externalForwardedProps:K,ownerState:H,className:W.label});return p.jsxs(pt,{as:z,...It,children:[O||et,p.jsx(mt,{...$t,children:v}),ot]})});function Er(t){return J("MuiButton",t)}const vt=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Lr=c.createContext({}),Ar=c.createContext(void 0),jr=t=>{const{color:o,disableElevation:e,fullWidth:r,size:n,variant:a,loading:s,loadingPosition:i,classes:l}=t,d={root:["root",s&&"loading",a,`${a}${b(o)}`,`size${b(n)}`,`${a}Size${b(n)}`,`color${b(o)}`,e&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${b(i)}`],startIcon:["icon","startIcon",`iconSize${b(n)}`],endIcon:["icon","endIcon",`iconSize${b(n)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Q(d,Er,l);return{...l,...u}},Ko=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Nr=M(St,{shouldForwardProp:t=>fe(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color)}`],o[`size${b(e.size)}`],o[`${e.variant}Size${b(e.size)}`],e.color==="inherit"&&o.colorInherit,e.disableElevation&&o.disableElevation,e.fullWidth&&o.fullWidth,e.loading&&o.loading]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],e=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${vt.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${vt.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(G()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:o,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:e,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${vt.loading}`]:{color:"transparent"}}}]}})),Or=M("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.startIcon,e.loading&&o.startIconLoadingStart,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ko]})),Wr=M("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.endIcon,e.loading&&o.endIconLoadingEnd,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ko]})),Dr=M("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Bo=M("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),En=c.forwardRef(function(o,e){const r=c.useContext(Lr),n=c.useContext(Ar),a=ko(r,o),s=Z({props:a,name:"MuiButton"}),{children:i,color:l="primary",component:d="button",className:u,disabled:f=!1,disableElevation:v=!1,disableFocusRipple:C=!1,endIcon:h,focusVisibleClassName:m,fullWidth:y=!1,id:P,loading:I=null,loadingIndicator:j,loadingPosition:x="center",size:N="medium",startIcon:T,type:F,variant:Y="text",...q}=s,A=Eo(P),U=j??p.jsx(Lo,{"aria-labelledby":A,color:"inherit",size:16}),D={...s,color:l,component:d,disabled:f,disableElevation:v,disableFocusRipple:C,fullWidth:y,loading:I,loadingIndicator:U,loadingPosition:x,size:N,type:F,variant:Y},B=jr(D),z=(T||I&&x==="start")&&p.jsx(Or,{className:B.startIcon,ownerState:D,children:T||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),H=(h||I&&x==="end")&&p.jsx(Wr,{className:B.endIcon,ownerState:D,children:h||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),W=n||"",X=typeof I=="boolean"?p.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:I&&p.jsx(Dr,{className:B.loadingIndicator,ownerState:D,children:U})}):null;return p.jsxs(Nr,{ownerState:D,className:w(r.className,B.root,u,W),component:d,disabled:f||I,focusRipple:!C,focusVisibleClassName:w(B.focusVisible,m),ref:e,type:F,id:I?A:P,...q,classes:B,children:[z,x!=="end"&&X,i,x==="end"&&X,H]})});function Vr(t){return J("MuiCard",t)}tt("MuiCard",["root"]);const Fr=t=>{const{classes:o}=t;return Q({root:["root"]},Vr,o)},Ur=M(no,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ln=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiCard"}),{className:n,raised:a=!1,...s}=r,i={...r,raised:a},l=Fr(i);return p.jsx(Ur,{className:w(l.root,n),elevation:a?8:void 0,ref:e,ownerState:i,...s})}),Hr=we({createStyledComponent:M("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),useThemeProps:t=>Z({props:t,name:"MuiContainer"})});function Kr(t){return J("MuiLinearProgress",t)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Gt=4,_t=Ct` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,Yr=typeof _t!="string"?to` + animation: ${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Zt=Ct` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,qr=typeof Zt!="string"?to` + animation: ${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,Qt=Ct` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,Xr=typeof Qt!="string"?to` + animation: ${Qt} 3s infinite linear; + `:null,Gr=t=>{const{classes:o,variant:e,color:r}=t,n={root:["root",`color${b(r)}`,e],dashed:["dashed",`dashedColor${b(r)}`],bar1:["bar","bar1",`barColor${b(r)}`,(e==="indeterminate"||e==="query")&&"bar1Indeterminate",e==="determinate"&&"bar1Determinate",e==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",e!=="buffer"&&`barColor${b(r)}`,e==="buffer"&&`color${b(r)}`,(e==="indeterminate"||e==="query")&&"bar2Indeterminate",e==="buffer"&&"bar2Buffer"]};return Q(n,Kr,o)},ao=(t,o)=>t.vars?t.vars.palette.LinearProgress[`${o}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[o].main,.62):t.darken(t.palette[o].main,.5),_r=M("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`color${b(e.color)}`],o[e.variant]]}})(_(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:ao(t,o)}})),{props:({ownerState:o})=>o.color==="inherit"&&o.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Zr=M("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.dashed,o[`dashedColor${b(e.color)}`]]}})(_(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(G()).map(([o])=>{const e=ao(t,o);return{props:{color:o},style:{backgroundImage:`radial-gradient(${e} 0%, ${e} 16%, transparent 42%)`}}})]})),Xr||{animation:`${Qt} 3s infinite linear`}),Qr=M("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar1,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar1Indeterminate,e.variant==="determinate"&&o.bar1Determinate,e.variant==="buffer"&&o.bar1Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:(t.vars||t).palette[o].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Gt}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Gt}s linear`}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Yr||{animation:`${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Jr=M("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar2,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar2Indeterminate,e.variant==="buffer"&&o.bar2Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[o].main}})),{props:({ownerState:o})=>o.variant!=="buffer"&&o.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:o})=>o.variant!=="buffer"&&o.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o,variant:"buffer"},style:{backgroundColor:ao(t,o),transition:`transform .${Gt}s linear`}})),{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:qr||{animation:`${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiLinearProgress"}),{className:n,color:a="primary",value:s,valueBuffer:i,variant:l="indeterminate",...d}=r,u={...r,color:a,variant:l},f=Gr(u),v=Jt(),C={},h={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){C["aria-valuenow"]=Math.round(s),C["aria-valuemin"]=0,C["aria-valuemax"]=100;let m=s-100;v&&(m=-m),h.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&i!==void 0){let m=(i||0)-100;v&&(m=-m),h.bar2.transform=`translateX(${m}%)`}return p.jsxs(_r,{className:w(f.root,n),ownerState:u,role:"progressbar",...C,ref:e,...d,children:[l==="buffer"?p.jsx(Zr,{className:f.dashed,ownerState:u}):null,p.jsx(Qr,{className:f.bar1,ownerState:u,style:h.bar1}),l==="determinate"?null:p.jsx(Jr,{className:f.bar2,ownerState:u,style:h.bar2})]})});function on(t){return J("MuiTab",t)}const it=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),en=t=>{const{classes:o,textColor:e,fullWidth:r,wrapped:n,icon:a,label:s,selected:i,disabled:l}=t,d={root:["root",a&&s&&"labelIcon",`textColor${b(e)}`,r&&"fullWidth",n&&"wrapped",i&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Q(d,on,o)},rn=M(St,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.label&&e.icon&&o.labelIcon,o[`textColor${b(e.textColor)}`],e.fullWidth&&o.fullWidth,e.wrapped&&o.wrapped,{[`& .${it.iconWrapper}`]:o.iconWrapper},{[`& .${it.icon}`]:o.icon}]}})(_(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:o})=>o.label&&(o.iconPosition==="top"||o.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:o})=>o.label&&o.iconPosition!=="top"&&o.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:o})=>o.icon&&o.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="top",style:{[`& > .${it.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="bottom",style:{[`& > .${it.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="start",style:{[`& > .${it.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="end",style:{[`& > .${it.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${it.selected}`]:{opacity:1},[`&.${it.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:o})=>o.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:o})=>o.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),nn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:d="top",indicator:u,label:f,onChange:v,onClick:C,onFocus:h,selected:m,selectionFollowsFocus:y,textColor:P="inherit",value:I,wrapped:j=!1,...x}=r,N={...r,disabled:a,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:d,label:!!f,fullWidth:i,textColor:P,wrapped:j},T=en(N),F=l&&f&&c.isValidElement(l)?c.cloneElement(l,{className:w(T.icon,l.props.className)}):l,Y=A=>{!m&&v&&v(A,I),C&&C(A)},q=A=>{y&&!m&&v&&v(A,I),h&&h(A)};return p.jsxs(rn,{focusRipple:!s,className:w(T.root,n),ref:e,role:"tab","aria-selected":m,disabled:a,onClick:Y,onFocus:q,ownerState:N,tabIndex:m?0:-1,...x,children:[d==="top"||d==="start"?p.jsxs(c.Fragment,{children:[F,f]}):p.jsxs(c.Fragment,{children:[f,F]}),u]})});function an(t){return J("MuiToolbar",t)}tt("MuiToolbar",["root","gutters","regular","dense"]);const sn=t=>{const{classes:o,disableGutters:e,variant:r}=t;return Q({root:["root",!e&&"gutters",r]},an,o)},ln=M("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,!e.disableGutters&&o.gutters,o[e.variant]]}})(_(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),cn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiToolbar"}),{className:n,component:a="div",disableGutters:s=!1,variant:i="regular",...l}=r,d={...r,component:a,disableGutters:s,variant:i},u=sn(d);return p.jsx(ln,{as:a,className:w(u.root,n),ref:e,ownerState:d,...l})}),dn=ft(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),pn=ft(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function un(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fn(t,o,e,r={},n=()=>{}){const{ease:a=un,duration:s=300}=r;let i=null;const l=o[t];let d=!1;const u=()=>{d=!0},f=v=>{if(d){n(new Error("Animation cancelled"));return}i===null&&(i=v);const C=Math.min(1,(v-i)/s);if(o[t]=a(C)*(e-l)+l,C>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(f)};return l===e?(n(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const bn={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function gn(t){const{onChange:o,...e}=t,r=c.useRef(),n=c.useRef(null),a=()=>{r.current=n.current.offsetHeight-n.current.clientHeight};return zo(()=>{const s=Oo(()=>{const l=r.current;a(),l!==r.current&&o(r.current)}),i=Do(n.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[o]),c.useEffect(()=>{a(),o(r.current)},[o]),p.jsx("div",{style:bn,...e,ref:n})}function vn(t){return J("MuiTabScrollButton",t)}const yn=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),hn=t=>{const{classes:o,orientation:e,disabled:r}=t;return Q({root:["root",e,r&&"disabled"]},vn,o)},mn=M(St,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.orientation&&o[e.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${yn.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),xn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabScrollButton"}),{className:n,slots:a={},slotProps:s={},direction:i,orientation:l,disabled:d,...u}=r,f=Jt(),v={isRtl:f,...r},C=hn(v),h=a.StartScrollButtonIcon??dn,m=a.EndScrollButtonIcon??pn,y=Nt({elementType:h,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),P=Nt({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return p.jsx(mn,{component:"div",className:w(C.root,n),ref:e,role:null,ownerState:v,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:i==="left"?p.jsx(h,{...y}):p.jsx(m,{...P})})});function Sn(t){return J("MuiTabs",t)}const Ht=tt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ro=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,wo=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,At=(t,o,e)=>{let r=!1,n=e(t,o);for(;n;){if(n===t.firstChild){if(r)return;r=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=e(t,n);else{n.focus();return}}},Cn=t=>{const{vertical:o,fixed:e,hideScrollbar:r,scrollableX:n,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=t;return Q({root:["root",o&&"vertical"],scroller:["scroller",e&&"fixed",r&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",o&&"flexContainerVertical",o&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Sn,l)},In=M("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[{[`& .${Ht.scrollButtons}`]:o.scrollButtons},{[`& .${Ht.scrollButtons}`]:e.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,e.vertical&&o.vertical]}})(_(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.scrollButtonsHideMobile,style:{[`& .${Ht.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),$n=M("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.scroller,e.fixed&&o.fixed,e.hideScrollbar&&o.hideScrollbar,e.scrollableX&&o.scrollableX,e.scrollableY&&o.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Pn=M("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.list,o.flexContainer,e.vertical&&o.flexContainerVertical,e.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Bn=M("span",{name:"MuiTabs",slot:"Indicator"})(_(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:o})=>o.vertical,style:{height:"100%",width:2,right:0}}]}))),Rn=M(gn)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Mo={},wn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabs"}),n=No(),a=Jt(),{"aria-label":s,"aria-labelledby":i,action:l,centered:d=!1,children:u,className:f,component:v="div",allowScrollButtonsMobile:C=!1,indicatorColor:h="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:P,scrollButtons:I="auto",selectionFollowsFocus:j,slots:x={},slotProps:N={},TabIndicatorProps:T={},TabScrollButtonProps:F={},textColor:Y="primary",value:q,variant:A="standard",visibleScrollbar:U=!1,...D}=r,B=A==="scrollable",z=y==="vertical",H=z?"scrollTop":"scrollLeft",W=z?"top":"left",X=z?"bottom":"right",ot=z?"clientHeight":"clientWidth",O=z?"height":"width",et={...r,component:v,allowScrollButtonsMobile:C,indicatorColor:h,orientation:y,vertical:z,scrollButtons:I,textColor:Y,variant:A,visibleScrollbar:U,fixed:!B,hideScrollbar:B&&!U,scrollableX:B&&!z,scrollableY:B&&z,centered:d&&!B,scrollButtonsHideMobile:!C},K=Cn(et),pt=Nt({elementType:x.StartScrollButtonIcon,externalSlotProps:N.startScrollButtonIcon,ownerState:et}),It=Nt({elementType:x.EndScrollButtonIcon,externalSlotProps:N.endScrollButtonIcon,ownerState:et}),[mt,$t]=c.useState(!1),[E,at]=c.useState(Mo),[Mt,Ot]=c.useState(!1),[kt,Wt]=c.useState(!1),[Tt,Dt]=c.useState(!1),[xt,Vt]=c.useState({overflow:"hidden",scrollbarWidth:0}),zt=new Map,rt=c.useRef(null),st=c.useRef(null),ut={slots:x,slotProps:{indicator:T,scrollButton:F,...N}},Pt=()=>{const g=rt.current;let S;if(g){const k=g.getBoundingClientRect();S={clientWidth:g.clientWidth,scrollLeft:g.scrollLeft,scrollTop:g.scrollTop,scrollWidth:g.scrollWidth,top:k.top,bottom:k.bottom,left:k.left,right:k.right}}let L;if(g&&q!==!1){const k=st.current.children;if(k.length>0){const V=k[zt.get(q)];L=V?V.getBoundingClientRect():null}}return{tabsMeta:S,tabMeta:L}},bt=ht(()=>{const{tabsMeta:g,tabMeta:S}=Pt();let L=0,k;z?(k="top",S&&g&&(L=S.top-g.top+g.scrollTop)):(k=a?"right":"left",S&&g&&(L=(a?-1:1)*(S[k]-g[k]+g.scrollLeft)));const V={[k]:L,[O]:S?S[O]:0};if(typeof E[k]!="number"||typeof E[O]!="number")at(V);else{const ct=Math.abs(E[k]-V[k]),gt=Math.abs(E[O]-V[O]);(ct>=1||gt>=1)&&at(V)}}),$=(g,{animation:S=!0}={})=>{S?fn(H,rt.current,g,{duration:n.transitions.duration.standard}):rt.current[H]=g},so=g=>{let S=rt.current[H];z?S+=g:S+=g*(a?-1:1),$(S)},io=()=>{const g=rt.current[ot];let S=0;const L=Array.from(st.current.children);for(let k=0;kg){k===0&&(S=g);break}S+=V[ot]}return S},Yo=()=>{so(-1*io())},qo=()=>{so(io())},[Xo,{onChange:lo,...Go}]=nt("scrollbar",{className:w(K.scrollableX,K.hideScrollbar),elementType:Rn,shouldForwardComponentProp:!0,externalForwardedProps:ut,ownerState:et}),_o=c.useCallback(g=>{lo?.(g),Vt({overflow:null,scrollbarWidth:g})},[lo]),[co,po]=nt("scrollButtons",{className:w(K.scrollButtons,F.className),elementType:xn,externalForwardedProps:ut,ownerState:et,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:pt,endScrollButtonIcon:It}}}),Zo=()=>{const g={};g.scrollbarSizeListener=B?p.jsx(Xo,{...Go,onChange:_o}):null;const L=B&&(I==="auto"&&(Mt||kt)||I===!0);return g.scrollButtonStart=L?p.jsx(co,{direction:a?"right":"left",onClick:Yo,disabled:!Mt,...po}):null,g.scrollButtonEnd=L?p.jsx(co,{direction:a?"left":"right",onClick:qo,disabled:!kt,...po}):null,g},uo=ht(g=>{const{tabsMeta:S,tabMeta:L}=Pt();if(!(!L||!S)){if(L[W]S[X]){const k=S[H]+(L[X]-S[X]);$(k,{animation:g})}}}),Et=ht(()=>{B&&I!==!1&&Dt(!Tt)});c.useEffect(()=>{const g=Oo(()=>{rt.current&&bt()});let S;const L=ct=>{ct.forEach(gt=>{gt.removedNodes.forEach(Bt=>{S?.unobserve(Bt)}),gt.addedNodes.forEach(Bt=>{S?.observe(Bt)})}),g(),Et()},k=Do(rt.current);k.addEventListener("resize",g);let V;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(g),Array.from(st.current.children).forEach(ct=>{S.observe(ct)})),typeof MutationObserver<"u"&&(V=new MutationObserver(L),V.observe(st.current,{childList:!0})),()=>{g.clear(),k.removeEventListener("resize",g),V?.disconnect(),S?.disconnect()}},[bt,Et]),c.useEffect(()=>{const g=Array.from(st.current.children),S=g.length;if(typeof IntersectionObserver<"u"&&S>0&&B&&I!==!1){const L=g[0],k=g[S-1],V={root:rt.current,threshold:.99},ct=Ut=>{Ot(!Ut[0].isIntersecting)},gt=new IntersectionObserver(ct,V);gt.observe(L);const Bt=Ut=>{Wt(!Ut[0].isIntersecting)},bo=new IntersectionObserver(Bt,V);return bo.observe(k),()=>{gt.disconnect(),bo.disconnect()}}},[B,I,Tt,u?.length]),c.useEffect(()=>{$t(!0)},[]),c.useEffect(()=>{bt()}),c.useEffect(()=>{uo(Mo!==E)},[uo,E]),c.useImperativeHandle(l,()=>({updateIndicator:bt,updateScrollButtons:Et}),[bt,Et]);const[Qo,Jo]=nt("indicator",{className:w(K.indicator,T.className),elementType:Bn,externalForwardedProps:ut,ownerState:et,additionalProps:{style:E}}),fo=p.jsx(Qo,{...Jo});let Lt=0;const te=c.Children.map(u,g=>{if(!c.isValidElement(g))return null;const S=g.props.value===void 0?Lt:g.props.value;zt.set(S,Lt);const L=S===q;return Lt+=1,c.cloneElement(g,{fullWidth:A==="fullWidth",indicator:L&&!mt&&fo,selected:L,selectionFollowsFocus:j,onChange:m,textColor:Y,value:S,...Lt===1&&q===!1&&!g.props.tabIndex?{tabIndex:0}:{}})}),oe=g=>{if(g.altKey||g.shiftKey||g.ctrlKey||g.metaKey)return;const S=st.current,L=Wo(S).activeElement;if(L.getAttribute("role")!=="tab")return;let V=y==="horizontal"?"ArrowLeft":"ArrowUp",ct=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(V="ArrowRight",ct="ArrowLeft"),g.key){case V:g.preventDefault(),At(S,L,wo);break;case ct:g.preventDefault(),At(S,L,Ro);break;case"Home":g.preventDefault(),At(S,null,Ro);break;case"End":g.preventDefault(),At(S,null,wo);break}},Ft=Zo(),[ee,re]=nt("root",{ref:e,className:w(K.root,f),elementType:In,externalForwardedProps:{...ut,...D,component:v},ownerState:et}),[ne,ae]=nt("scroller",{ref:rt,className:K.scroller,elementType:$n,externalForwardedProps:ut,ownerState:et,additionalProps:{style:{overflow:xt.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:U?void 0:-xt.scrollbarWidth}}}),[se,ie]=nt("list",{ref:st,className:w(K.list,K.flexContainer),elementType:Pn,externalForwardedProps:ut,ownerState:et,getSlotProps:g=>({...g,onKeyDown:S=>{oe(S),g.onKeyDown?.(S)}})});return p.jsxs(ee,{...re,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,p.jsxs(ne,{...ae,children:[p.jsx(se,{"aria-label":s,"aria-labelledby":i,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...ie,children:te}),mt&&fo]}),Ft.scrollButtonEnd]})}),Mn=({currentPath:t})=>{const o=Ao(),{currentDocument:e,extractionById:r}=jo(l=>l.document),n=[{label:"Téléversement",path:"/",alwaysEnabled:!0},{label:"Extraction",path:"/extraction",alwaysEnabled:!0},{label:"Contexte",path:"/contexte",alwaysEnabled:!1},{label:"Conseil",path:"/conseil",alwaysEnabled:!1}],a=n.findIndex(l=>l.path===t),s=e&&r[e.id],i=(l,d)=>{const u=n[d];(u.alwaysEnabled||s)&&o(u.path)};return p.jsx(Kt,{sx:{borderBottom:1,borderColor:"divider"},children:p.jsx(wn,{value:a>=0?a:0,onChange:i,"aria-label":"navigation tabs",variant:"scrollable",scrollButtons:"auto",children:n.map((l,d)=>p.jsx(nn,{label:l.label,disabled:!l.alwaysEnabled&&!s,sx:{opacity:!l.alwaysEnabled&&!s?.5:1,"&.Mui-disabled":{color:"text.disabled"}}},d))})})},An=({children:t})=>{const o=Ao(),e=be(),r=ge(),{documents:n,extractionById:a,loading:s,currentDocument:i,contextResult:l,conseilResult:d,analysisResult:u}=jo(y=>y.document),f=c.useRef(new Set),v=c.useRef([]),C=c.useRef(!1),h=async()=>{if(!(C.current||v.current.length===0)){for(C.current=!0;v.current.length>0;){const y=v.current.shift();if(y){console.log(`🚀 [LAYOUT] Traitement de la queue: ${y}`);try{const P=n.find(I=>I.id===y);P&&(P.status="processing"),await r(xe(y)),await new Promise(I=>setTimeout(I,500))}catch(P){console.error(`❌ [LAYOUT] Erreur extraction ${y}:`,P);const I=n.find(j=>j.id===y);I&&(I.status="error")}}}C.current=!1}},m=c.useMemo(()=>(console.log(`📋 [LAYOUT] Recalcul de la liste des documents: ${n.length}`),n),[n]);return c.useEffect(()=>{console.log(`📋 [LAYOUT] ${m.length} documents détectés`),m.forEach(y=>{const P=a[y.id],I=f.current.has(y.id),j=y.status==="processing",x=y.status==="completed";console.log(`📄 [LAYOUT] Document ${y.id}: hasExtraction=${!!P}, isProcessed=${I}, isProcessing=${j}, isCompleted=${x}`),P&&!I?(console.log(`✅ [LAYOUT] Document ${y.id} a déjà un résultat, marqué comme traité`),f.current.add(y.id),y.status!=="completed"&&(y.status="completed")):!P&&!I&&!j&&!x&&(console.log(`🚀 [LAYOUT] Ajout à la queue: ${y.id}`),f.current.add(y.id),v.current.push(y.id))}),h()},[n,r,a]),c.useEffect(()=>{i&&(u||r(ve(i.id)),l||r(ye(i.id)),d||r(he(i.id)))},[i,u,l,d,r]),p.jsxs(Kt,{sx:{flexGrow:1},children:[p.jsx(Rr,{position:"static",children:p.jsx(cn,{children:p.jsx(me,{variant:"h6",component:"div",sx:{flexGrow:1,cursor:"pointer"},onClick:()=>o("/"),children:"IA - Lecoffre.io"})})}),p.jsx(Mn,{currentPath:e.pathname}),s&&p.jsx(Kt,{sx:{px:2,pt:1},children:p.jsx(tn,{})}),p.jsx(Hr,{maxWidth:"xl",sx:{mt:3,mb:3},children:t})]})};export{Tn as A,En as B,Ln as C,fr as I,An as L,no as P,ro as T,Ee as _,ht as a,No as b,ft as c,Oo as d,nt as e,Wo as f,qe as g,Nt as h,Ye as i,Fe as j,zn as k,St as l,xo as m,ze as n,Do as o,yo as p,tn as q,wt as u}; diff --git a/public/assets/Layout-HUfQIbZm.js b/public/assets/Layout-HUfQIbZm.js new file mode 100644 index 0000000..20c6a3e --- /dev/null +++ b/public/assets/Layout-HUfQIbZm.js @@ -0,0 +1,125 @@ +import{W as le,X as ko,Y as To,r as c,j as p,c as w,f as b,h as Q,Z as ce,b as J,_ as de,$ as pe,a as tt,d as Z,s as M,m as _,u as zo,R as Rt,a0 as ue,a1 as go,a2 as vo,v as Ct,k as Eo,o as G,D as Lo,n as fe,p as Jt,t as to,a3 as Ao,y as jo,B as Kt,a4 as be,x as ge,U as ve,O as ye,S as he,T as me,a5 as xe}from"./index-BkuOAsyQ.js";const Se=le();function Ce(t){const{theme:o,name:e,props:r}=t;return!o||!o.components||!o.components[e]||!o.components[e].defaultProps?r:ko(o.components[e].defaultProps,r)}function Ie({props:t,name:o,defaultTheme:e,themeId:r}){let n=To(e);return r&&(n=n[r]||n),Ce({theme:n,name:o,props:t})}const $e=ce(),Pe=Se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),Be=t=>Ie({props:t,name:"MuiContainer",defaultTheme:$e}),Re=(t,o)=>{const e=l=>J(o,l),{classes:r,fixed:n,disableGutters:a,maxWidth:s}=t,i={root:["root",s&&`maxWidth${b(String(s))}`,n&&"fixed",a&&"disableGutters"]};return Q(i,e,r)};function we(t={}){const{createStyledComponent:o=Pe,useThemeProps:e=Be,componentName:r="MuiContainer"}=t,n=o(({theme:s,ownerState:i})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!i.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:i})=>i.fixed&&Object.keys(s.breakpoints.values).reduce((l,d)=>{const u=d,f=s.breakpoints.values[u];return f!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:i})=>({...i.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...i.maxWidth&&i.maxWidth!=="xs"&&{[s.breakpoints.up(i.maxWidth)]:{maxWidth:`${s.breakpoints.values[i.maxWidth]}${s.breakpoints.unit}`}}}));return c.forwardRef(function(i,l){const d=e(i),{className:u,component:f="div",disableGutters:v=!1,fixed:C=!1,maxWidth:h="lg",classes:m,...y}=d,P={...d,component:f,disableGutters:v,fixed:C,maxWidth:h},I=Re(P,r);return p.jsx(n,{as:f,ownerState:P,className:w(I.root,u),ref:l,...y})})}function No(){const t=To(pe);return t[de]||t}function Me(t){return J("MuiSvgIcon",t)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ke=t=>{const{color:o,fontSize:e,classes:r}=t,n={root:["root",o!=="inherit"&&`color${b(o)}`,`fontSize${b(e)}`]};return Q(n,Me,r)},Te=M("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.color!=="inherit"&&o[`color${b(e.color)}`],o[`fontSize${b(e.fontSize)}`]]}})(_(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:o=>!o.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,o])=>o&&o.main).map(([o])=>({props:{color:o},style:{color:(t.vars??t).palette?.[o]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Yt=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiSvgIcon"}),{children:n,className:a,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:v="0 0 24 24",...C}=r,h=c.isValidElement(n)&&n.type==="svg",m={...r,color:s,component:i,fontSize:l,instanceFontSize:o.fontSize,inheritViewBox:u,viewBox:v,hasSvgAsChild:h},y={};u||(y.viewBox=v);const P=ke(m);return p.jsxs(Te,{as:i,className:w(P.root,a),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:e,...y,...C,...h&&n.props,ownerState:m,children:[h?n.props.children:n,f?p.jsx("title",{children:f}):null]})});Yt.muiName="SvgIcon";function ft(t,o){function e(r,n){return p.jsx(Yt,{"data-testid":void 0,ref:n,...r,children:t})}return e.muiName=Yt.muiName,c.memo(c.forwardRef(e))}function Oo(t,o=166){let e;function r(...n){const a=()=>{t.apply(this,n)};clearTimeout(e),e=setTimeout(a,o)}return r.clear=()=>{clearTimeout(e)},r}function Wo(t){return t&&t.ownerDocument||document}function Do(t){return Wo(t).defaultView||window}function ht(t){const o=c.useRef(t);return zo(()=>{o.current=t}),c.useRef((...e)=>(0,o.current)(...e)).current}function wt(...t){const o=c.useRef(void 0),e=c.useCallback(r=>{const n=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,i=s(r);return typeof i=="function"?i:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{n.forEach(a=>a?.())}},t);return c.useMemo(()=>t.every(r=>r==null)?null:r=>{o.current&&(o.current(),o.current=void 0),r!=null&&(o.current=e(r))},t)}function ze(t,o){if(t==null)return{};var e={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(o.indexOf(r)!==-1)continue;e[r]=t[r]}return e}function qt(t,o){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},qt(t,o)}function Ee(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,qt(t,o)}const yo=Rt.createContext(null);function Le(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oo(t,o){var e=function(a){return o&&c.isValidElement(a)?o(a):a},r=Object.create(null);return t&&c.Children.map(t,function(n){return n}).forEach(function(n){r[n.key]=e(n)}),r}function Ae(t,o){t=t||{},o=o||{};function e(u){return u in o?o[u]:t[u]}var r=Object.create(null),n=[];for(var a in t)a in o?n.length&&(r[a]=n,n=[]):n.push(a);var s,i={};for(var l in o){if(r[l])for(s=0;s{this.currentId=null,e()},o)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Fe(){const t=Vo(ro.create).current;return Ve(t.disposeEffect),t}function Ue(t){return J("MuiPaper",t)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const He=t=>{const{square:o,elevation:e,variant:r,classes:n}=t,a={root:["root",r,!o&&"rounded",r==="elevation"&&`elevation${e}`]};return Q(a,Ue,n)},Ke=M("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],!e.square&&o.rounded,e.variant==="elevation"&&o[`elevation${e.elevation}`]]}})(_(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),no=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiPaper"}),n=No(),{className:a,component:s="div",elevation:i=1,square:l=!1,variant:d="elevation",...u}=r,f={...r,component:s,elevation:i,square:l,variant:d},v=He(f);return p.jsx(Ke,{as:s,ownerState:f,className:w(v.root,a),ref:e,...u,style:{...d==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[i],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[i]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${go("#fff",vo(i))}, ${go("#fff",vo(i))})`}},...u.style}})});function Ye(t){return typeof t=="string"}function Fo(t,o,e){return t===void 0||Ye(t)?o:{...o,ownerState:{...o.ownerState,...e}}}function Uo(t,o,e){return typeof t=="function"?t(o,e):t}function qe(t,o=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!o.includes(r)).forEach(r=>{e[r]=t[r]}),e}function mo(t){if(t===void 0)return{};const o={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{o[e]=t[e]}),o}function Ho(t){const{getSlotProps:o,additionalProps:e,externalSlotProps:r,externalForwardedProps:n,className:a}=t;if(!o){const C=w(e?.className,a,n?.className,r?.className),h={...e?.style,...n?.style,...r?.style},m={...e,...n,...r};return C.length>0&&(m.className=C),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const s=qe({...n,...r}),i=mo(r),l=mo(n),d=o(s),u=w(d?.className,e?.className,a,n?.className,r?.className),f={...d?.style,...e?.style,...n?.style,...r?.style},v={...d,...e,...l,...i};return u.length>0&&(v.className=u),Object.keys(f).length>0&&(v.style=f),{props:v,internalRef:d.ref}}function nt(t,o){const{className:e,elementType:r,ownerState:n,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:i=!1,...l}=o,{component:d,slots:u={[t]:void 0},slotProps:f={[t]:void 0},...v}=a,C=u[t]||r,h=Uo(f[t],n),{props:{component:m,...y},internalRef:P}=Ho({className:e,...l,externalForwardedProps:t==="root"?v:void 0,externalSlotProps:h}),I=wt(P,h?.ref,o.ref),j=t==="root"?m||d:m,x=Fo(C,{...t==="root"&&!d&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...y,...j&&!i&&{as:j},...j&&i&&{component:j},ref:I},n);return[C,x]}function xo(t){try{return t.matches(":focus-visible")}catch{}return!1}class jt{static create(){return new jt}static use(){const o=Vo(jt.create).current,[e,r]=c.useState(!1);return o.shouldMount=e,o.setShouldMount=r,c.useEffect(o.mountEffect,[e]),o}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Ge(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...o){this.mount().then(()=>this.ref.current?.start(...o))}stop(...o){this.mount().then(()=>this.ref.current?.stop(...o))}pulsate(...o){this.mount().then(()=>this.ref.current?.pulsate(...o))}}function Xe(){return jt.use()}function Ge(){let t,o;const e=new Promise((r,n)=>{t=r,o=n});return e.resolve=t,e.reject=o,e}function _e(t){const{className:o,classes:e,pulsate:r=!1,rippleX:n,rippleY:a,rippleSize:s,in:i,onExited:l,timeout:d}=t,[u,f]=c.useState(!1),v=w(o,e.ripple,e.rippleVisible,r&&e.ripplePulsate),C={width:s,height:s,top:-(s/2)+a,left:-(s/2)+n},h=w(e.child,u&&e.childLeaving,r&&e.childPulsate);return!i&&!u&&f(!0),c.useEffect(()=>{if(!i&&l!=null){const m=setTimeout(l,d);return()=>{clearTimeout(m)}}},[l,i,d]),p.jsx("span",{className:v,style:C,children:p.jsx("span",{className:h})})}const lt=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=550,Ze=80,Qe=Ct` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,Je=Ct` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,tr=Ct` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,or=M("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),er=M(_e,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${lt.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${Qe}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${lt.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${lt.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${lt.childLeaving} { + opacity: 0; + animation-name: ${Je}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${lt.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${tr}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTouchRipple"}),{center:n=!1,classes:a={},className:s,...i}=r,[l,d]=c.useState([]),u=c.useRef(0),f=c.useRef(null);c.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const v=c.useRef(!1),C=Fe(),h=c.useRef(null),m=c.useRef(null),y=c.useCallback(x=>{const{pulsate:N,rippleX:T,rippleY:F,rippleSize:Y,cb:q}=x;d(A=>[...A,p.jsx(er,{classes:{ripple:w(a.ripple,lt.ripple),rippleVisible:w(a.rippleVisible,lt.rippleVisible),ripplePulsate:w(a.ripplePulsate,lt.ripplePulsate),child:w(a.child,lt.child),childLeaving:w(a.childLeaving,lt.childLeaving),childPulsate:w(a.childPulsate,lt.childPulsate)},timeout:Xt,pulsate:N,rippleX:T,rippleY:F,rippleSize:Y},u.current)]),u.current+=1,f.current=q},[a]),P=c.useCallback((x={},N={},T=()=>{})=>{const{pulsate:F=!1,center:Y=n||N.pulsate,fakeElement:q=!1}=N;if(x?.type==="mousedown"&&v.current){v.current=!1;return}x?.type==="touchstart"&&(v.current=!0);const A=q?null:m.current,U=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,B,z;if(Y||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)D=Math.round(U.width/2),B=Math.round(U.height/2);else{const{clientX:H,clientY:W}=x.touches&&x.touches.length>0?x.touches[0]:x;D=Math.round(H-U.left),B=Math.round(W-U.top)}if(Y)z=Math.sqrt((2*U.width**2+U.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-D),D)*2+2,W=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;z=Math.sqrt(H**2+W**2)}x?.touches?h.current===null&&(h.current=()=>{y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},C.start(Ze,()=>{h.current&&(h.current(),h.current=null)})):y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},[n,y,C]),I=c.useCallback(()=>{P({},{pulsate:!0})},[P]),j=c.useCallback((x,N)=>{if(C.clear(),x?.type==="touchend"&&h.current){h.current(),h.current=null,C.start(0,()=>{j(x,N)});return}h.current=null,d(T=>T.length>0?T.slice(1):T),f.current=N},[C]);return c.useImperativeHandle(e,()=>({pulsate:I,start:P,stop:j}),[I,P,j]),p.jsx(or,{className:w(lt.root,a.root,s),ref:m,...i,children:p.jsx(eo,{component:null,exit:!0,children:l})})});function nr(t){return J("MuiButtonBase",t)}const ar=tt("MuiButtonBase",["root","disabled","focusVisible"]),sr=t=>{const{disabled:o,focusVisible:e,focusVisibleClassName:r,classes:n}=t,s=Q({root:["root",o&&"disabled",e&&"focusVisible"]},nr,n);return e&&r&&(s.root+=` ${r}`),s},ir=M("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ar.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),St=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiButtonBase"}),{action:n,centerRipple:a=!1,children:s,className:i,component:l="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:v=!1,focusVisibleClassName:C,LinkComponent:h="a",onBlur:m,onClick:y,onContextMenu:P,onDragLeave:I,onFocus:j,onFocusVisible:x,onKeyDown:N,onKeyUp:T,onMouseDown:F,onMouseLeave:Y,onMouseUp:q,onTouchEnd:A,onTouchMove:U,onTouchStart:D,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:H,type:W,...X}=r,ot=c.useRef(null),O=Xe(),et=wt(O.ref,H),[K,pt]=c.useState(!1);d&&K&&pt(!1),c.useImperativeHandle(n,()=>({focusVisible:()=>{pt(!0),ot.current.focus()}}),[]);const It=O.shouldMount&&!u&&!d;c.useEffect(()=>{K&&v&&!u&&O.pulsate()},[u,v,K,O]);const mt=dt(O,"start",F,f),$t=dt(O,"stop",P,f),E=dt(O,"stop",I,f),at=dt(O,"stop",q,f),Mt=dt(O,"stop",$=>{K&&$.preventDefault(),Y&&Y($)},f),Ot=dt(O,"start",D,f),kt=dt(O,"stop",A,f),Wt=dt(O,"stop",U,f),Tt=dt(O,"stop",$=>{xo($.target)||pt(!1),m&&m($)},!1),Dt=ht($=>{ot.current||(ot.current=$.currentTarget),xo($.target)&&(pt(!0),x&&x($)),j&&j($)}),xt=()=>{const $=ot.current;return l&&l!=="button"&&!($.tagName==="A"&&$.href)},Vt=ht($=>{v&&!$.repeat&&K&&$.key===" "&&O.stop($,()=>{O.start($)}),$.target===$.currentTarget&&xt()&&$.key===" "&&$.preventDefault(),N&&N($),$.target===$.currentTarget&&xt()&&$.key==="Enter"&&!d&&($.preventDefault(),y&&y($))}),zt=ht($=>{v&&$.key===" "&&K&&!$.defaultPrevented&&O.stop($,()=>{O.pulsate($)}),T&&T($),y&&$.target===$.currentTarget&&xt()&&$.key===" "&&!$.defaultPrevented&&y($)});let rt=l;rt==="button"&&(X.href||X.to)&&(rt=h);const st={};rt==="button"?(st.type=W===void 0?"button":W,st.disabled=d):(!X.href&&!X.to&&(st.role="button"),d&&(st["aria-disabled"]=d));const ut=wt(e,ot),Pt={...r,centerRipple:a,component:l,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:v,tabIndex:B,focusVisible:K},bt=sr(Pt);return p.jsxs(ir,{as:rt,className:w(bt.root,i),ownerState:Pt,onBlur:Tt,onClick:y,onContextMenu:$t,onFocus:Dt,onKeyDown:Vt,onKeyUp:zt,onMouseDown:mt,onMouseLeave:Mt,onMouseUp:at,onDragLeave:E,onTouchEnd:kt,onTouchMove:Wt,onTouchStart:Ot,ref:ut,tabIndex:d?-1:B,type:W,...st,...X,children:[s,It?p.jsx(rr,{ref:et,center:a,...z}):null]})});function dt(t,o,e,r=!1){return ht(n=>(e&&e(n),r||t[o](n),!0))}function lr(t){return J("MuiAlert",t)}const So=tt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function cr(t){return J("MuiIconButton",t)}const Co=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),dr=t=>{const{classes:o,disabled:e,color:r,edge:n,size:a,loading:s}=t,i={root:["root",s&&"loading",e&&"disabled",r!=="default"&&`color${b(r)}`,n&&`edge${b(n)}`,`size${b(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Q(i,cr,o)},pr=M(St,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.loading&&o.loading,e.color!=="default"&&o[`color${b(e.color)}`],e.edge&&o[`edge${b(e.edge)}`],o[`size${b(e.size)}`]]}})(_(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:o=>!o.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{color:(t.vars||t).palette[o].main}})),...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Co.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Co.loading}`]:{color:"transparent"}}))),ur=M("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),fr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiIconButton"}),{edge:n=!1,children:a,className:s,color:i="default",disabled:l=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:v=null,loadingIndicator:C,...h}=r,m=Eo(f),y=C??p.jsx(Lo,{"aria-labelledby":m,color:"inherit",size:16}),P={...r,edge:n,color:i,disabled:l,disableFocusRipple:d,loading:v,loadingIndicator:y,size:u},I=dr(P);return p.jsxs(pr,{id:v?m:f,className:w(I.root,s),centerRipple:!0,focusRipple:!d,disabled:l||v,ref:e,...h,ownerState:P,children:[typeof v=="boolean"&&p.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:p.jsx(ur,{className:I.loadingIndicator,ownerState:P,children:v&&y})}),a]})}),br=ft(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),gr=ft(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),vr=ft(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),yr=ft(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),hr=ft(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),mr=t=>{const{variant:o,color:e,severity:r,classes:n}=t,a={root:["root",`color${b(e||r)}`,`${o}${b(e||r)}`,`${o}`],icon:["icon"],message:["message"],action:["action"]};return Q(a,lr,n)},xr=M(no,{name:"MuiAlert",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color||e.severity)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.darken:t.lighten,e=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:e(t.palette[r].light,.9),[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),Sr=M("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Cr=M("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ir=M("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Io={success:p.jsx(br,{fontSize:"inherit"}),warning:p.jsx(gr,{fontSize:"inherit"}),error:p.jsx(vr,{fontSize:"inherit"}),info:p.jsx(yr,{fontSize:"inherit"})},Tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAlert"}),{action:n,children:a,className:s,closeText:i="Close",color:l,components:d={},componentsProps:u={},icon:f,iconMapping:v=Io,onClose:C,role:h="alert",severity:m="success",slotProps:y={},slots:P={},variant:I="standard",...j}=r,x={...r,color:l,severity:m,variant:I,colorSeverity:l||m},N=mr(x),T={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...P},slotProps:{...u,...y}},[F,Y]=nt("root",{ref:e,shouldForwardComponentProp:!0,className:w(N.root,s),elementType:xr,externalForwardedProps:{...T,...j},ownerState:x,additionalProps:{role:h,elevation:0}}),[q,A]=nt("icon",{className:N.icon,elementType:Sr,externalForwardedProps:T,ownerState:x}),[U,D]=nt("message",{className:N.message,elementType:Cr,externalForwardedProps:T,ownerState:x}),[B,z]=nt("action",{className:N.action,elementType:Ir,externalForwardedProps:T,ownerState:x}),[H,W]=nt("closeButton",{elementType:fr,externalForwardedProps:T,ownerState:x}),[X,ot]=nt("closeIcon",{elementType:hr,externalForwardedProps:T,ownerState:x});return p.jsxs(F,{...Y,children:[f!==!1?p.jsx(q,{...A,children:f||v[m]||Io[m]}):null,p.jsx(U,{...D,children:a}),n!=null?p.jsx(B,{...z,children:n}):null,n==null&&C?p.jsx(B,{...z,children:p.jsx(H,{size:"small","aria-label":i,title:i,color:"inherit",onClick:C,...W,children:p.jsx(X,{fontSize:"small",...ot})})}):null]})});function $r(t){return J("MuiAppBar",t)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Pr=t=>{const{color:o,position:e,classes:r}=t,n={root:["root",`color${b(o)}`,`position${b(e)}`]};return Q(n,$r,r)},$o=(t,o)=>t?`${t?.replace(")","")}, ${o})`:o,Br=M(no,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`position${b(e.position)}`],o[`color${b(e.color)}`]]}})(_(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([o])=>({props:{color:o},style:{"--AppBar-background":(t.vars??t).palette[o].main,"--AppBar-color":(t.vars??t).palette[o].contrastText}})),{props:o=>o.enableColorOnDark===!0&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:o=>o.enableColorOnDark===!1&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?$o(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?$o(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),Rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAppBar"}),{className:n,color:a="primary",enableColorOnDark:s=!1,position:i="fixed",...l}=r,d={...r,color:a,position:i,enableColorOnDark:s},u=Pr(d);return p.jsx(Br,{square:!0,component:"header",ownerState:d,elevation:4,className:w(u.root,n,i==="fixed"&&"mui-fixed"),ref:e,...l})});function Nt(t){const{elementType:o,externalSlotProps:e,ownerState:r,skipResolvingSlotProps:n=!1,...a}=t,s=n?{}:Uo(e,r),{props:i,internalRef:l}=Ho({...a,externalSlotProps:s}),d=wt(l,s?.ref,t.additionalProps?.ref);return Fo(o,{...i,ref:d},r)}const wr=ft(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Mr(t){return J("MuiChip",t)}const R=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),kr=t=>{const{classes:o,disabled:e,size:r,color:n,iconColor:a,onDelete:s,clickable:i,variant:l}=t,d={root:["root",l,e&&"disabled",`size${b(r)}`,`color${b(n)}`,i&&"clickable",i&&`clickableColor${b(n)}`,s&&"deletable",s&&`deletableColor${b(n)}`,`${l}${b(n)}`],label:["label",`label${b(r)}`],avatar:["avatar",`avatar${b(r)}`,`avatarColor${b(n)}`],icon:["icon",`icon${b(r)}`,`iconColor${b(a)}`],deleteIcon:["deleteIcon",`deleteIcon${b(r)}`,`deleteIconColor${b(n)}`,`deleteIcon${b(l)}Color${b(n)}`]};return Q(d,Mr,o)},Tr=M("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t,{color:r,iconColor:n,clickable:a,onDelete:s,size:i,variant:l}=e;return[{[`& .${R.avatar}`]:o.avatar},{[`& .${R.avatar}`]:o[`avatar${b(i)}`]},{[`& .${R.avatar}`]:o[`avatarColor${b(r)}`]},{[`& .${R.icon}`]:o.icon},{[`& .${R.icon}`]:o[`icon${b(i)}`]},{[`& .${R.icon}`]:o[`iconColor${b(n)}`]},{[`& .${R.deleteIcon}`]:o.deleteIcon},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(i)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIconColor${b(r)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(l)}Color${b(r)}`]},o.root,o[`size${b(i)}`],o[`color${b(r)}`],a&&o.clickable,a&&r!=="default"&&o[`clickableColor${b(r)})`],s&&o.deletable,s&&r!=="default"&&o[`deletableColor${b(r)}`],o[l],o[`${l}${b(r)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${R.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${R.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:o,fontSize:t.typography.pxToRem(12)},[`& .${R.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${R.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${R.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${R.icon}`]:{marginLeft:5,marginRight:-6},[`& .${R.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${R.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${R.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText,[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${R.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:o}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${R.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,onDelete:!0},style:{[`&.${R.focusVisible}`]:{background:(t.vars||t).palette[e].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,clickable:!0},style:{[`&:hover, &.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${R.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${R.avatar}`]:{marginLeft:4},[`& .${R.avatarSmall}`]:{marginLeft:2},[`& .${R.icon}`]:{marginLeft:4},[`& .${R.iconSmall}`]:{marginLeft:2},[`& .${R.deleteIcon}`]:{marginRight:5},[`& .${R.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(G()).map(([e])=>({props:{variant:"outlined",color:e},style:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.7)}`,[`&.${R.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.focusOpacity)},[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].main}}}}))]}})),zr=M("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,o)=>{const{ownerState:e}=t,{size:r}=e;return[o.label,o[`label${b(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Po(t){return t.key==="Backspace"||t.key==="Delete"}const zn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiChip"}),{avatar:n,className:a,clickable:s,color:i="default",component:l,deleteIcon:d,disabled:u=!1,icon:f,label:v,onClick:C,onDelete:h,onKeyDown:m,onKeyUp:y,size:P="medium",variant:I="filled",tabIndex:j,skipFocusWhenDisabled:x=!1,slots:N={},slotProps:T={},...F}=r,Y=c.useRef(null),q=wt(Y,e),A=E=>{E.stopPropagation(),h&&h(E)},U=E=>{E.currentTarget===E.target&&Po(E)&&E.preventDefault(),m&&m(E)},D=E=>{E.currentTarget===E.target&&h&&Po(E)&&h(E),y&&y(E)},B=s!==!1&&C?!0:s,z=B||h?St:l||"div",H={...r,component:z,disabled:u,size:P,color:i,iconColor:c.isValidElement(f)&&f.props.color||i,onDelete:!!h,clickable:B,variant:I},W=kr(H),X=z===St?{component:l||"div",focusVisibleClassName:W.focusVisible,...h&&{disableRipple:!0}}:{};let ot=null;h&&(ot=d&&c.isValidElement(d)?c.cloneElement(d,{className:w(d.props.className,W.deleteIcon),onClick:A}):p.jsx(wr,{className:W.deleteIcon,onClick:A}));let O=null;n&&c.isValidElement(n)&&(O=c.cloneElement(n,{className:w(W.avatar,n.props.className)}));let et=null;f&&c.isValidElement(f)&&(et=c.cloneElement(f,{className:w(W.icon,f.props.className)}));const K={slots:N,slotProps:T},[pt,It]=nt("root",{elementType:Tr,externalForwardedProps:{...K,...F},ownerState:H,shouldForwardComponentProp:!0,ref:q,className:w(W.root,a),additionalProps:{disabled:B&&u?!0:void 0,tabIndex:x&&u?-1:j,...X},getSlotProps:E=>({...E,onClick:at=>{E.onClick?.(at),C?.(at)},onKeyDown:at=>{E.onKeyDown?.(at),U(at)},onKeyUp:at=>{E.onKeyUp?.(at),D(at)}})}),[mt,$t]=nt("label",{elementType:zr,externalForwardedProps:K,ownerState:H,className:W.label});return p.jsxs(pt,{as:z,...It,children:[O||et,p.jsx(mt,{...$t,children:v}),ot]})});function Er(t){return J("MuiButton",t)}const vt=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Lr=c.createContext({}),Ar=c.createContext(void 0),jr=t=>{const{color:o,disableElevation:e,fullWidth:r,size:n,variant:a,loading:s,loadingPosition:i,classes:l}=t,d={root:["root",s&&"loading",a,`${a}${b(o)}`,`size${b(n)}`,`${a}Size${b(n)}`,`color${b(o)}`,e&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${b(i)}`],startIcon:["icon","startIcon",`iconSize${b(n)}`],endIcon:["icon","endIcon",`iconSize${b(n)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Q(d,Er,l);return{...l,...u}},Ko=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Nr=M(St,{shouldForwardProp:t=>fe(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color)}`],o[`size${b(e.size)}`],o[`${e.variant}Size${b(e.size)}`],e.color==="inherit"&&o.colorInherit,e.disableElevation&&o.disableElevation,e.fullWidth&&o.fullWidth,e.loading&&o.loading]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],e=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${vt.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${vt.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(G()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:o,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:e,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${vt.loading}`]:{color:"transparent"}}}]}})),Or=M("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.startIcon,e.loading&&o.startIconLoadingStart,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ko]})),Wr=M("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.endIcon,e.loading&&o.endIconLoadingEnd,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ko]})),Dr=M("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Bo=M("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),En=c.forwardRef(function(o,e){const r=c.useContext(Lr),n=c.useContext(Ar),a=ko(r,o),s=Z({props:a,name:"MuiButton"}),{children:i,color:l="primary",component:d="button",className:u,disabled:f=!1,disableElevation:v=!1,disableFocusRipple:C=!1,endIcon:h,focusVisibleClassName:m,fullWidth:y=!1,id:P,loading:I=null,loadingIndicator:j,loadingPosition:x="center",size:N="medium",startIcon:T,type:F,variant:Y="text",...q}=s,A=Eo(P),U=j??p.jsx(Lo,{"aria-labelledby":A,color:"inherit",size:16}),D={...s,color:l,component:d,disabled:f,disableElevation:v,disableFocusRipple:C,fullWidth:y,loading:I,loadingIndicator:U,loadingPosition:x,size:N,type:F,variant:Y},B=jr(D),z=(T||I&&x==="start")&&p.jsx(Or,{className:B.startIcon,ownerState:D,children:T||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),H=(h||I&&x==="end")&&p.jsx(Wr,{className:B.endIcon,ownerState:D,children:h||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),W=n||"",X=typeof I=="boolean"?p.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:I&&p.jsx(Dr,{className:B.loadingIndicator,ownerState:D,children:U})}):null;return p.jsxs(Nr,{ownerState:D,className:w(r.className,B.root,u,W),component:d,disabled:f||I,focusRipple:!C,focusVisibleClassName:w(B.focusVisible,m),ref:e,type:F,id:I?A:P,...q,classes:B,children:[z,x!=="end"&&X,i,x==="end"&&X,H]})});function Vr(t){return J("MuiCard",t)}tt("MuiCard",["root"]);const Fr=t=>{const{classes:o}=t;return Q({root:["root"]},Vr,o)},Ur=M(no,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ln=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiCard"}),{className:n,raised:a=!1,...s}=r,i={...r,raised:a},l=Fr(i);return p.jsx(Ur,{className:w(l.root,n),elevation:a?8:void 0,ref:e,ownerState:i,...s})}),Hr=we({createStyledComponent:M("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),useThemeProps:t=>Z({props:t,name:"MuiContainer"})});function Kr(t){return J("MuiLinearProgress",t)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Gt=4,_t=Ct` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,Yr=typeof _t!="string"?to` + animation: ${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Zt=Ct` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,qr=typeof Zt!="string"?to` + animation: ${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,Qt=Ct` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,Xr=typeof Qt!="string"?to` + animation: ${Qt} 3s infinite linear; + `:null,Gr=t=>{const{classes:o,variant:e,color:r}=t,n={root:["root",`color${b(r)}`,e],dashed:["dashed",`dashedColor${b(r)}`],bar1:["bar","bar1",`barColor${b(r)}`,(e==="indeterminate"||e==="query")&&"bar1Indeterminate",e==="determinate"&&"bar1Determinate",e==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",e!=="buffer"&&`barColor${b(r)}`,e==="buffer"&&`color${b(r)}`,(e==="indeterminate"||e==="query")&&"bar2Indeterminate",e==="buffer"&&"bar2Buffer"]};return Q(n,Kr,o)},ao=(t,o)=>t.vars?t.vars.palette.LinearProgress[`${o}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[o].main,.62):t.darken(t.palette[o].main,.5),_r=M("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`color${b(e.color)}`],o[e.variant]]}})(_(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:ao(t,o)}})),{props:({ownerState:o})=>o.color==="inherit"&&o.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Zr=M("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.dashed,o[`dashedColor${b(e.color)}`]]}})(_(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(G()).map(([o])=>{const e=ao(t,o);return{props:{color:o},style:{backgroundImage:`radial-gradient(${e} 0%, ${e} 16%, transparent 42%)`}}})]})),Xr||{animation:`${Qt} 3s infinite linear`}),Qr=M("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar1,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar1Indeterminate,e.variant==="determinate"&&o.bar1Determinate,e.variant==="buffer"&&o.bar1Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:(t.vars||t).palette[o].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Gt}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Gt}s linear`}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Yr||{animation:`${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Jr=M("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar2,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar2Indeterminate,e.variant==="buffer"&&o.bar2Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[o].main}})),{props:({ownerState:o})=>o.variant!=="buffer"&&o.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:o})=>o.variant!=="buffer"&&o.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o,variant:"buffer"},style:{backgroundColor:ao(t,o),transition:`transform .${Gt}s linear`}})),{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:qr||{animation:`${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiLinearProgress"}),{className:n,color:a="primary",value:s,valueBuffer:i,variant:l="indeterminate",...d}=r,u={...r,color:a,variant:l},f=Gr(u),v=Jt(),C={},h={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){C["aria-valuenow"]=Math.round(s),C["aria-valuemin"]=0,C["aria-valuemax"]=100;let m=s-100;v&&(m=-m),h.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&i!==void 0){let m=(i||0)-100;v&&(m=-m),h.bar2.transform=`translateX(${m}%)`}return p.jsxs(_r,{className:w(f.root,n),ownerState:u,role:"progressbar",...C,ref:e,...d,children:[l==="buffer"?p.jsx(Zr,{className:f.dashed,ownerState:u}):null,p.jsx(Qr,{className:f.bar1,ownerState:u,style:h.bar1}),l==="determinate"?null:p.jsx(Jr,{className:f.bar2,ownerState:u,style:h.bar2})]})});function on(t){return J("MuiTab",t)}const it=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),en=t=>{const{classes:o,textColor:e,fullWidth:r,wrapped:n,icon:a,label:s,selected:i,disabled:l}=t,d={root:["root",a&&s&&"labelIcon",`textColor${b(e)}`,r&&"fullWidth",n&&"wrapped",i&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Q(d,on,o)},rn=M(St,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.label&&e.icon&&o.labelIcon,o[`textColor${b(e.textColor)}`],e.fullWidth&&o.fullWidth,e.wrapped&&o.wrapped,{[`& .${it.iconWrapper}`]:o.iconWrapper},{[`& .${it.icon}`]:o.icon}]}})(_(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:o})=>o.label&&(o.iconPosition==="top"||o.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:o})=>o.label&&o.iconPosition!=="top"&&o.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:o})=>o.icon&&o.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="top",style:{[`& > .${it.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="bottom",style:{[`& > .${it.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="start",style:{[`& > .${it.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="end",style:{[`& > .${it.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${it.selected}`]:{opacity:1},[`&.${it.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:o})=>o.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:o})=>o.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),nn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:d="top",indicator:u,label:f,onChange:v,onClick:C,onFocus:h,selected:m,selectionFollowsFocus:y,textColor:P="inherit",value:I,wrapped:j=!1,...x}=r,N={...r,disabled:a,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:d,label:!!f,fullWidth:i,textColor:P,wrapped:j},T=en(N),F=l&&f&&c.isValidElement(l)?c.cloneElement(l,{className:w(T.icon,l.props.className)}):l,Y=A=>{!m&&v&&v(A,I),C&&C(A)},q=A=>{y&&!m&&v&&v(A,I),h&&h(A)};return p.jsxs(rn,{focusRipple:!s,className:w(T.root,n),ref:e,role:"tab","aria-selected":m,disabled:a,onClick:Y,onFocus:q,ownerState:N,tabIndex:m?0:-1,...x,children:[d==="top"||d==="start"?p.jsxs(c.Fragment,{children:[F,f]}):p.jsxs(c.Fragment,{children:[f,F]}),u]})});function an(t){return J("MuiToolbar",t)}tt("MuiToolbar",["root","gutters","regular","dense"]);const sn=t=>{const{classes:o,disableGutters:e,variant:r}=t;return Q({root:["root",!e&&"gutters",r]},an,o)},ln=M("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,!e.disableGutters&&o.gutters,o[e.variant]]}})(_(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),cn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiToolbar"}),{className:n,component:a="div",disableGutters:s=!1,variant:i="regular",...l}=r,d={...r,component:a,disableGutters:s,variant:i},u=sn(d);return p.jsx(ln,{as:a,className:w(u.root,n),ref:e,ownerState:d,...l})}),dn=ft(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),pn=ft(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function un(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fn(t,o,e,r={},n=()=>{}){const{ease:a=un,duration:s=300}=r;let i=null;const l=o[t];let d=!1;const u=()=>{d=!0},f=v=>{if(d){n(new Error("Animation cancelled"));return}i===null&&(i=v);const C=Math.min(1,(v-i)/s);if(o[t]=a(C)*(e-l)+l,C>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(f)};return l===e?(n(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const bn={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function gn(t){const{onChange:o,...e}=t,r=c.useRef(),n=c.useRef(null),a=()=>{r.current=n.current.offsetHeight-n.current.clientHeight};return zo(()=>{const s=Oo(()=>{const l=r.current;a(),l!==r.current&&o(r.current)}),i=Do(n.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[o]),c.useEffect(()=>{a(),o(r.current)},[o]),p.jsx("div",{style:bn,...e,ref:n})}function vn(t){return J("MuiTabScrollButton",t)}const yn=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),hn=t=>{const{classes:o,orientation:e,disabled:r}=t;return Q({root:["root",e,r&&"disabled"]},vn,o)},mn=M(St,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.orientation&&o[e.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${yn.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),xn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabScrollButton"}),{className:n,slots:a={},slotProps:s={},direction:i,orientation:l,disabled:d,...u}=r,f=Jt(),v={isRtl:f,...r},C=hn(v),h=a.StartScrollButtonIcon??dn,m=a.EndScrollButtonIcon??pn,y=Nt({elementType:h,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),P=Nt({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return p.jsx(mn,{component:"div",className:w(C.root,n),ref:e,role:null,ownerState:v,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:i==="left"?p.jsx(h,{...y}):p.jsx(m,{...P})})});function Sn(t){return J("MuiTabs",t)}const Ht=tt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ro=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,wo=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,At=(t,o,e)=>{let r=!1,n=e(t,o);for(;n;){if(n===t.firstChild){if(r)return;r=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=e(t,n);else{n.focus();return}}},Cn=t=>{const{vertical:o,fixed:e,hideScrollbar:r,scrollableX:n,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=t;return Q({root:["root",o&&"vertical"],scroller:["scroller",e&&"fixed",r&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",o&&"flexContainerVertical",o&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Sn,l)},In=M("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[{[`& .${Ht.scrollButtons}`]:o.scrollButtons},{[`& .${Ht.scrollButtons}`]:e.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,e.vertical&&o.vertical]}})(_(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.scrollButtonsHideMobile,style:{[`& .${Ht.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),$n=M("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.scroller,e.fixed&&o.fixed,e.hideScrollbar&&o.hideScrollbar,e.scrollableX&&o.scrollableX,e.scrollableY&&o.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Pn=M("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.list,o.flexContainer,e.vertical&&o.flexContainerVertical,e.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Bn=M("span",{name:"MuiTabs",slot:"Indicator"})(_(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:o})=>o.vertical,style:{height:"100%",width:2,right:0}}]}))),Rn=M(gn)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Mo={},wn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabs"}),n=No(),a=Jt(),{"aria-label":s,"aria-labelledby":i,action:l,centered:d=!1,children:u,className:f,component:v="div",allowScrollButtonsMobile:C=!1,indicatorColor:h="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:P,scrollButtons:I="auto",selectionFollowsFocus:j,slots:x={},slotProps:N={},TabIndicatorProps:T={},TabScrollButtonProps:F={},textColor:Y="primary",value:q,variant:A="standard",visibleScrollbar:U=!1,...D}=r,B=A==="scrollable",z=y==="vertical",H=z?"scrollTop":"scrollLeft",W=z?"top":"left",X=z?"bottom":"right",ot=z?"clientHeight":"clientWidth",O=z?"height":"width",et={...r,component:v,allowScrollButtonsMobile:C,indicatorColor:h,orientation:y,vertical:z,scrollButtons:I,textColor:Y,variant:A,visibleScrollbar:U,fixed:!B,hideScrollbar:B&&!U,scrollableX:B&&!z,scrollableY:B&&z,centered:d&&!B,scrollButtonsHideMobile:!C},K=Cn(et),pt=Nt({elementType:x.StartScrollButtonIcon,externalSlotProps:N.startScrollButtonIcon,ownerState:et}),It=Nt({elementType:x.EndScrollButtonIcon,externalSlotProps:N.endScrollButtonIcon,ownerState:et}),[mt,$t]=c.useState(!1),[E,at]=c.useState(Mo),[Mt,Ot]=c.useState(!1),[kt,Wt]=c.useState(!1),[Tt,Dt]=c.useState(!1),[xt,Vt]=c.useState({overflow:"hidden",scrollbarWidth:0}),zt=new Map,rt=c.useRef(null),st=c.useRef(null),ut={slots:x,slotProps:{indicator:T,scrollButton:F,...N}},Pt=()=>{const g=rt.current;let S;if(g){const k=g.getBoundingClientRect();S={clientWidth:g.clientWidth,scrollLeft:g.scrollLeft,scrollTop:g.scrollTop,scrollWidth:g.scrollWidth,top:k.top,bottom:k.bottom,left:k.left,right:k.right}}let L;if(g&&q!==!1){const k=st.current.children;if(k.length>0){const V=k[zt.get(q)];L=V?V.getBoundingClientRect():null}}return{tabsMeta:S,tabMeta:L}},bt=ht(()=>{const{tabsMeta:g,tabMeta:S}=Pt();let L=0,k;z?(k="top",S&&g&&(L=S.top-g.top+g.scrollTop)):(k=a?"right":"left",S&&g&&(L=(a?-1:1)*(S[k]-g[k]+g.scrollLeft)));const V={[k]:L,[O]:S?S[O]:0};if(typeof E[k]!="number"||typeof E[O]!="number")at(V);else{const ct=Math.abs(E[k]-V[k]),gt=Math.abs(E[O]-V[O]);(ct>=1||gt>=1)&&at(V)}}),$=(g,{animation:S=!0}={})=>{S?fn(H,rt.current,g,{duration:n.transitions.duration.standard}):rt.current[H]=g},so=g=>{let S=rt.current[H];z?S+=g:S+=g*(a?-1:1),$(S)},io=()=>{const g=rt.current[ot];let S=0;const L=Array.from(st.current.children);for(let k=0;kg){k===0&&(S=g);break}S+=V[ot]}return S},Yo=()=>{so(-1*io())},qo=()=>{so(io())},[Xo,{onChange:lo,...Go}]=nt("scrollbar",{className:w(K.scrollableX,K.hideScrollbar),elementType:Rn,shouldForwardComponentProp:!0,externalForwardedProps:ut,ownerState:et}),_o=c.useCallback(g=>{lo?.(g),Vt({overflow:null,scrollbarWidth:g})},[lo]),[co,po]=nt("scrollButtons",{className:w(K.scrollButtons,F.className),elementType:xn,externalForwardedProps:ut,ownerState:et,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:pt,endScrollButtonIcon:It}}}),Zo=()=>{const g={};g.scrollbarSizeListener=B?p.jsx(Xo,{...Go,onChange:_o}):null;const L=B&&(I==="auto"&&(Mt||kt)||I===!0);return g.scrollButtonStart=L?p.jsx(co,{direction:a?"right":"left",onClick:Yo,disabled:!Mt,...po}):null,g.scrollButtonEnd=L?p.jsx(co,{direction:a?"left":"right",onClick:qo,disabled:!kt,...po}):null,g},uo=ht(g=>{const{tabsMeta:S,tabMeta:L}=Pt();if(!(!L||!S)){if(L[W]S[X]){const k=S[H]+(L[X]-S[X]);$(k,{animation:g})}}}),Et=ht(()=>{B&&I!==!1&&Dt(!Tt)});c.useEffect(()=>{const g=Oo(()=>{rt.current&&bt()});let S;const L=ct=>{ct.forEach(gt=>{gt.removedNodes.forEach(Bt=>{S?.unobserve(Bt)}),gt.addedNodes.forEach(Bt=>{S?.observe(Bt)})}),g(),Et()},k=Do(rt.current);k.addEventListener("resize",g);let V;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(g),Array.from(st.current.children).forEach(ct=>{S.observe(ct)})),typeof MutationObserver<"u"&&(V=new MutationObserver(L),V.observe(st.current,{childList:!0})),()=>{g.clear(),k.removeEventListener("resize",g),V?.disconnect(),S?.disconnect()}},[bt,Et]),c.useEffect(()=>{const g=Array.from(st.current.children),S=g.length;if(typeof IntersectionObserver<"u"&&S>0&&B&&I!==!1){const L=g[0],k=g[S-1],V={root:rt.current,threshold:.99},ct=Ut=>{Ot(!Ut[0].isIntersecting)},gt=new IntersectionObserver(ct,V);gt.observe(L);const Bt=Ut=>{Wt(!Ut[0].isIntersecting)},bo=new IntersectionObserver(Bt,V);return bo.observe(k),()=>{gt.disconnect(),bo.disconnect()}}},[B,I,Tt,u?.length]),c.useEffect(()=>{$t(!0)},[]),c.useEffect(()=>{bt()}),c.useEffect(()=>{uo(Mo!==E)},[uo,E]),c.useImperativeHandle(l,()=>({updateIndicator:bt,updateScrollButtons:Et}),[bt,Et]);const[Qo,Jo]=nt("indicator",{className:w(K.indicator,T.className),elementType:Bn,externalForwardedProps:ut,ownerState:et,additionalProps:{style:E}}),fo=p.jsx(Qo,{...Jo});let Lt=0;const te=c.Children.map(u,g=>{if(!c.isValidElement(g))return null;const S=g.props.value===void 0?Lt:g.props.value;zt.set(S,Lt);const L=S===q;return Lt+=1,c.cloneElement(g,{fullWidth:A==="fullWidth",indicator:L&&!mt&&fo,selected:L,selectionFollowsFocus:j,onChange:m,textColor:Y,value:S,...Lt===1&&q===!1&&!g.props.tabIndex?{tabIndex:0}:{}})}),oe=g=>{if(g.altKey||g.shiftKey||g.ctrlKey||g.metaKey)return;const S=st.current,L=Wo(S).activeElement;if(L.getAttribute("role")!=="tab")return;let V=y==="horizontal"?"ArrowLeft":"ArrowUp",ct=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(V="ArrowRight",ct="ArrowLeft"),g.key){case V:g.preventDefault(),At(S,L,wo);break;case ct:g.preventDefault(),At(S,L,Ro);break;case"Home":g.preventDefault(),At(S,null,Ro);break;case"End":g.preventDefault(),At(S,null,wo);break}},Ft=Zo(),[ee,re]=nt("root",{ref:e,className:w(K.root,f),elementType:In,externalForwardedProps:{...ut,...D,component:v},ownerState:et}),[ne,ae]=nt("scroller",{ref:rt,className:K.scroller,elementType:$n,externalForwardedProps:ut,ownerState:et,additionalProps:{style:{overflow:xt.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:U?void 0:-xt.scrollbarWidth}}}),[se,ie]=nt("list",{ref:st,className:w(K.list,K.flexContainer),elementType:Pn,externalForwardedProps:ut,ownerState:et,getSlotProps:g=>({...g,onKeyDown:S=>{oe(S),g.onKeyDown?.(S)}})});return p.jsxs(ee,{...re,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,p.jsxs(ne,{...ae,children:[p.jsx(se,{"aria-label":s,"aria-labelledby":i,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...ie,children:te}),mt&&fo]}),Ft.scrollButtonEnd]})}),Mn=({currentPath:t})=>{const o=Ao(),{currentDocument:e,extractionById:r}=jo(l=>l.document),n=[{label:"Téléversement",path:"/",alwaysEnabled:!0},{label:"Extraction",path:"/extraction",alwaysEnabled:!0},{label:"Contexte",path:"/contexte",alwaysEnabled:!1},{label:"Conseil",path:"/conseil",alwaysEnabled:!1}],a=n.findIndex(l=>l.path===t),s=e&&r[e.id],i=(l,d)=>{const u=n[d];(u.alwaysEnabled||s)&&o(u.path)};return p.jsx(Kt,{sx:{borderBottom:1,borderColor:"divider"},children:p.jsx(wn,{value:a>=0?a:0,onChange:i,"aria-label":"navigation tabs",variant:"scrollable",scrollButtons:"auto",children:n.map((l,d)=>p.jsx(nn,{label:l.label,disabled:!l.alwaysEnabled&&!s,sx:{opacity:!l.alwaysEnabled&&!s?.5:1,"&.Mui-disabled":{color:"text.disabled"}}},d))})})},An=({children:t})=>{const o=Ao(),e=be(),r=ge(),{documents:n,extractionById:a,loading:s,currentDocument:i,contextResult:l,conseilResult:d,analysisResult:u}=jo(y=>y.document),f=c.useRef(new Set),v=c.useRef([]),C=c.useRef(!1),h=async()=>{if(!(C.current||v.current.length===0)){for(C.current=!0;v.current.length>0;){const y=v.current.shift();if(y){console.log(`🚀 [LAYOUT] Traitement de la queue: ${y}`);try{const P=n.find(I=>I.id===y);P&&(P.status="processing"),await r(xe(y)),await new Promise(I=>setTimeout(I,500))}catch(P){console.error(`❌ [LAYOUT] Erreur extraction ${y}:`,P);const I=n.find(j=>j.id===y);I&&(I.status="error")}}}C.current=!1}},m=c.useMemo(()=>(console.log(`📋 [LAYOUT] Recalcul de la liste des documents: ${n.length}`),n),[n]);return c.useEffect(()=>{console.log(`📋 [LAYOUT] ${m.length} documents détectés`),m.forEach(y=>{const P=a[y.id],I=f.current.has(y.id),j=y.status==="processing",x=y.status==="completed";console.log(`📄 [LAYOUT] Document ${y.id}: hasExtraction=${!!P}, isProcessed=${I}, isProcessing=${j}, isCompleted=${x}`),P&&!I?(console.log(`✅ [LAYOUT] Document ${y.id} a déjà un résultat, marqué comme traité`),f.current.add(y.id),y.status!=="completed"&&(y.status="completed")):!P&&!I&&!j&&!x&&(console.log(`🚀 [LAYOUT] Ajout à la queue: ${y.id}`),f.current.add(y.id),v.current.push(y.id))}),h()},[n,r,a]),c.useEffect(()=>{i&&(u||r(ve(i.id)),l||r(ye(i.id)),d||r(he(i.id)))},[i,u,l,d,r]),p.jsxs(Kt,{sx:{flexGrow:1},children:[p.jsx(Rr,{position:"static",children:p.jsx(cn,{children:p.jsx(me,{variant:"h6",component:"div",sx:{flexGrow:1,cursor:"pointer"},onClick:()=>o("/"),children:"IA - Lecoffre.io"})})}),p.jsx(Mn,{currentPath:e.pathname}),s&&p.jsx(Kt,{sx:{px:2,pt:1},children:p.jsx(tn,{})}),p.jsx(Hr,{maxWidth:"xl",sx:{mt:3,mb:3},children:t})]})};export{Tn as A,En as B,Ln as C,fr as I,An as L,no as P,ro as T,Ee as _,ht as a,No as b,ft as c,Oo as d,nt as e,Wo as f,qe as g,Nt as h,Ye as i,Fe as j,zn as k,St as l,xo as m,ze as n,Do as o,yo as p,tn as q,wt as u}; diff --git a/public/assets/Layout-aWSA1CnN.js b/public/assets/Layout-aWSA1CnN.js new file mode 100644 index 0000000..0b3d045 --- /dev/null +++ b/public/assets/Layout-aWSA1CnN.js @@ -0,0 +1,125 @@ +import{W as le,X as ko,Y as To,r as c,j as p,c as w,f as b,h as Q,Z as ce,b as J,_ as de,$ as pe,a as tt,d as Z,s as M,m as _,u as zo,R as Rt,a0 as ue,a1 as go,a2 as vo,v as Ct,k as Eo,o as G,D as Lo,n as fe,p as Jt,t as to,a3 as Ao,y as jo,B as Kt,a4 as be,x as ge,U as ve,O as ye,S as he,T as me,a5 as xe}from"./index-wde0U4qL.js";const Se=le();function Ce(t){const{theme:o,name:e,props:r}=t;return!o||!o.components||!o.components[e]||!o.components[e].defaultProps?r:ko(o.components[e].defaultProps,r)}function Ie({props:t,name:o,defaultTheme:e,themeId:r}){let n=To(e);return r&&(n=n[r]||n),Ce({theme:n,name:o,props:t})}const $e=ce(),Pe=Se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),Be=t=>Ie({props:t,name:"MuiContainer",defaultTheme:$e}),Re=(t,o)=>{const e=l=>J(o,l),{classes:r,fixed:n,disableGutters:a,maxWidth:s}=t,i={root:["root",s&&`maxWidth${b(String(s))}`,n&&"fixed",a&&"disableGutters"]};return Q(i,e,r)};function we(t={}){const{createStyledComponent:o=Pe,useThemeProps:e=Be,componentName:r="MuiContainer"}=t,n=o(({theme:s,ownerState:i})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!i.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:i})=>i.fixed&&Object.keys(s.breakpoints.values).reduce((l,d)=>{const u=d,f=s.breakpoints.values[u];return f!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:i})=>({...i.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...i.maxWidth&&i.maxWidth!=="xs"&&{[s.breakpoints.up(i.maxWidth)]:{maxWidth:`${s.breakpoints.values[i.maxWidth]}${s.breakpoints.unit}`}}}));return c.forwardRef(function(i,l){const d=e(i),{className:u,component:f="div",disableGutters:v=!1,fixed:C=!1,maxWidth:h="lg",classes:m,...y}=d,P={...d,component:f,disableGutters:v,fixed:C,maxWidth:h},I=Re(P,r);return p.jsx(n,{as:f,ownerState:P,className:w(I.root,u),ref:l,...y})})}function No(){const t=To(pe);return t[de]||t}function Me(t){return J("MuiSvgIcon",t)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ke=t=>{const{color:o,fontSize:e,classes:r}=t,n={root:["root",o!=="inherit"&&`color${b(o)}`,`fontSize${b(e)}`]};return Q(n,Me,r)},Te=M("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.color!=="inherit"&&o[`color${b(e.color)}`],o[`fontSize${b(e.fontSize)}`]]}})(_(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:o=>!o.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,o])=>o&&o.main).map(([o])=>({props:{color:o},style:{color:(t.vars??t).palette?.[o]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Yt=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiSvgIcon"}),{children:n,className:a,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:v="0 0 24 24",...C}=r,h=c.isValidElement(n)&&n.type==="svg",m={...r,color:s,component:i,fontSize:l,instanceFontSize:o.fontSize,inheritViewBox:u,viewBox:v,hasSvgAsChild:h},y={};u||(y.viewBox=v);const P=ke(m);return p.jsxs(Te,{as:i,className:w(P.root,a),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:e,...y,...C,...h&&n.props,ownerState:m,children:[h?n.props.children:n,f?p.jsx("title",{children:f}):null]})});Yt.muiName="SvgIcon";function ft(t,o){function e(r,n){return p.jsx(Yt,{"data-testid":void 0,ref:n,...r,children:t})}return e.muiName=Yt.muiName,c.memo(c.forwardRef(e))}function Oo(t,o=166){let e;function r(...n){const a=()=>{t.apply(this,n)};clearTimeout(e),e=setTimeout(a,o)}return r.clear=()=>{clearTimeout(e)},r}function Wo(t){return t&&t.ownerDocument||document}function Do(t){return Wo(t).defaultView||window}function ht(t){const o=c.useRef(t);return zo(()=>{o.current=t}),c.useRef((...e)=>(0,o.current)(...e)).current}function wt(...t){const o=c.useRef(void 0),e=c.useCallback(r=>{const n=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,i=s(r);return typeof i=="function"?i:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{n.forEach(a=>a?.())}},t);return c.useMemo(()=>t.every(r=>r==null)?null:r=>{o.current&&(o.current(),o.current=void 0),r!=null&&(o.current=e(r))},t)}function ze(t,o){if(t==null)return{};var e={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(o.indexOf(r)!==-1)continue;e[r]=t[r]}return e}function qt(t,o){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},qt(t,o)}function Ee(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,qt(t,o)}const yo=Rt.createContext(null);function Le(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oo(t,o){var e=function(a){return o&&c.isValidElement(a)?o(a):a},r=Object.create(null);return t&&c.Children.map(t,function(n){return n}).forEach(function(n){r[n.key]=e(n)}),r}function Ae(t,o){t=t||{},o=o||{};function e(u){return u in o?o[u]:t[u]}var r=Object.create(null),n=[];for(var a in t)a in o?n.length&&(r[a]=n,n=[]):n.push(a);var s,i={};for(var l in o){if(r[l])for(s=0;s{this.currentId=null,e()},o)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Fe(){const t=Vo(ro.create).current;return Ve(t.disposeEffect),t}function Ue(t){return J("MuiPaper",t)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const He=t=>{const{square:o,elevation:e,variant:r,classes:n}=t,a={root:["root",r,!o&&"rounded",r==="elevation"&&`elevation${e}`]};return Q(a,Ue,n)},Ke=M("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],!e.square&&o.rounded,e.variant==="elevation"&&o[`elevation${e.elevation}`]]}})(_(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),no=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiPaper"}),n=No(),{className:a,component:s="div",elevation:i=1,square:l=!1,variant:d="elevation",...u}=r,f={...r,component:s,elevation:i,square:l,variant:d},v=He(f);return p.jsx(Ke,{as:s,ownerState:f,className:w(v.root,a),ref:e,...u,style:{...d==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[i],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[i]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${go("#fff",vo(i))}, ${go("#fff",vo(i))})`}},...u.style}})});function Ye(t){return typeof t=="string"}function Fo(t,o,e){return t===void 0||Ye(t)?o:{...o,ownerState:{...o.ownerState,...e}}}function Uo(t,o,e){return typeof t=="function"?t(o,e):t}function qe(t,o=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!o.includes(r)).forEach(r=>{e[r]=t[r]}),e}function mo(t){if(t===void 0)return{};const o={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{o[e]=t[e]}),o}function Ho(t){const{getSlotProps:o,additionalProps:e,externalSlotProps:r,externalForwardedProps:n,className:a}=t;if(!o){const C=w(e?.className,a,n?.className,r?.className),h={...e?.style,...n?.style,...r?.style},m={...e,...n,...r};return C.length>0&&(m.className=C),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const s=qe({...n,...r}),i=mo(r),l=mo(n),d=o(s),u=w(d?.className,e?.className,a,n?.className,r?.className),f={...d?.style,...e?.style,...n?.style,...r?.style},v={...d,...e,...l,...i};return u.length>0&&(v.className=u),Object.keys(f).length>0&&(v.style=f),{props:v,internalRef:d.ref}}function nt(t,o){const{className:e,elementType:r,ownerState:n,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:i=!1,...l}=o,{component:d,slots:u={[t]:void 0},slotProps:f={[t]:void 0},...v}=a,C=u[t]||r,h=Uo(f[t],n),{props:{component:m,...y},internalRef:P}=Ho({className:e,...l,externalForwardedProps:t==="root"?v:void 0,externalSlotProps:h}),I=wt(P,h?.ref,o.ref),j=t==="root"?m||d:m,x=Fo(C,{...t==="root"&&!d&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...y,...j&&!i&&{as:j},...j&&i&&{component:j},ref:I},n);return[C,x]}function xo(t){try{return t.matches(":focus-visible")}catch{}return!1}class jt{static create(){return new jt}static use(){const o=Vo(jt.create).current,[e,r]=c.useState(!1);return o.shouldMount=e,o.setShouldMount=r,c.useEffect(o.mountEffect,[e]),o}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Ge(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...o){this.mount().then(()=>this.ref.current?.start(...o))}stop(...o){this.mount().then(()=>this.ref.current?.stop(...o))}pulsate(...o){this.mount().then(()=>this.ref.current?.pulsate(...o))}}function Xe(){return jt.use()}function Ge(){let t,o;const e=new Promise((r,n)=>{t=r,o=n});return e.resolve=t,e.reject=o,e}function _e(t){const{className:o,classes:e,pulsate:r=!1,rippleX:n,rippleY:a,rippleSize:s,in:i,onExited:l,timeout:d}=t,[u,f]=c.useState(!1),v=w(o,e.ripple,e.rippleVisible,r&&e.ripplePulsate),C={width:s,height:s,top:-(s/2)+a,left:-(s/2)+n},h=w(e.child,u&&e.childLeaving,r&&e.childPulsate);return!i&&!u&&f(!0),c.useEffect(()=>{if(!i&&l!=null){const m=setTimeout(l,d);return()=>{clearTimeout(m)}}},[l,i,d]),p.jsx("span",{className:v,style:C,children:p.jsx("span",{className:h})})}const lt=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=550,Ze=80,Qe=Ct` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,Je=Ct` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,tr=Ct` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,or=M("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),er=M(_e,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${lt.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${Qe}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${lt.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${lt.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${lt.childLeaving} { + opacity: 0; + animation-name: ${Je}; + animation-duration: ${Xt}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${lt.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${tr}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTouchRipple"}),{center:n=!1,classes:a={},className:s,...i}=r,[l,d]=c.useState([]),u=c.useRef(0),f=c.useRef(null);c.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const v=c.useRef(!1),C=Fe(),h=c.useRef(null),m=c.useRef(null),y=c.useCallback(x=>{const{pulsate:N,rippleX:T,rippleY:F,rippleSize:Y,cb:q}=x;d(A=>[...A,p.jsx(er,{classes:{ripple:w(a.ripple,lt.ripple),rippleVisible:w(a.rippleVisible,lt.rippleVisible),ripplePulsate:w(a.ripplePulsate,lt.ripplePulsate),child:w(a.child,lt.child),childLeaving:w(a.childLeaving,lt.childLeaving),childPulsate:w(a.childPulsate,lt.childPulsate)},timeout:Xt,pulsate:N,rippleX:T,rippleY:F,rippleSize:Y},u.current)]),u.current+=1,f.current=q},[a]),P=c.useCallback((x={},N={},T=()=>{})=>{const{pulsate:F=!1,center:Y=n||N.pulsate,fakeElement:q=!1}=N;if(x?.type==="mousedown"&&v.current){v.current=!1;return}x?.type==="touchstart"&&(v.current=!0);const A=q?null:m.current,U=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,B,z;if(Y||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)D=Math.round(U.width/2),B=Math.round(U.height/2);else{const{clientX:H,clientY:W}=x.touches&&x.touches.length>0?x.touches[0]:x;D=Math.round(H-U.left),B=Math.round(W-U.top)}if(Y)z=Math.sqrt((2*U.width**2+U.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-D),D)*2+2,W=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;z=Math.sqrt(H**2+W**2)}x?.touches?h.current===null&&(h.current=()=>{y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},C.start(Ze,()=>{h.current&&(h.current(),h.current=null)})):y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},[n,y,C]),I=c.useCallback(()=>{P({},{pulsate:!0})},[P]),j=c.useCallback((x,N)=>{if(C.clear(),x?.type==="touchend"&&h.current){h.current(),h.current=null,C.start(0,()=>{j(x,N)});return}h.current=null,d(T=>T.length>0?T.slice(1):T),f.current=N},[C]);return c.useImperativeHandle(e,()=>({pulsate:I,start:P,stop:j}),[I,P,j]),p.jsx(or,{className:w(lt.root,a.root,s),ref:m,...i,children:p.jsx(eo,{component:null,exit:!0,children:l})})});function nr(t){return J("MuiButtonBase",t)}const ar=tt("MuiButtonBase",["root","disabled","focusVisible"]),sr=t=>{const{disabled:o,focusVisible:e,focusVisibleClassName:r,classes:n}=t,s=Q({root:["root",o&&"disabled",e&&"focusVisible"]},nr,n);return e&&r&&(s.root+=` ${r}`),s},ir=M("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ar.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),St=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiButtonBase"}),{action:n,centerRipple:a=!1,children:s,className:i,component:l="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:v=!1,focusVisibleClassName:C,LinkComponent:h="a",onBlur:m,onClick:y,onContextMenu:P,onDragLeave:I,onFocus:j,onFocusVisible:x,onKeyDown:N,onKeyUp:T,onMouseDown:F,onMouseLeave:Y,onMouseUp:q,onTouchEnd:A,onTouchMove:U,onTouchStart:D,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:H,type:W,...X}=r,ot=c.useRef(null),O=Xe(),et=wt(O.ref,H),[K,pt]=c.useState(!1);d&&K&&pt(!1),c.useImperativeHandle(n,()=>({focusVisible:()=>{pt(!0),ot.current.focus()}}),[]);const It=O.shouldMount&&!u&&!d;c.useEffect(()=>{K&&v&&!u&&O.pulsate()},[u,v,K,O]);const mt=dt(O,"start",F,f),$t=dt(O,"stop",P,f),E=dt(O,"stop",I,f),at=dt(O,"stop",q,f),Mt=dt(O,"stop",$=>{K&&$.preventDefault(),Y&&Y($)},f),Ot=dt(O,"start",D,f),kt=dt(O,"stop",A,f),Wt=dt(O,"stop",U,f),Tt=dt(O,"stop",$=>{xo($.target)||pt(!1),m&&m($)},!1),Dt=ht($=>{ot.current||(ot.current=$.currentTarget),xo($.target)&&(pt(!0),x&&x($)),j&&j($)}),xt=()=>{const $=ot.current;return l&&l!=="button"&&!($.tagName==="A"&&$.href)},Vt=ht($=>{v&&!$.repeat&&K&&$.key===" "&&O.stop($,()=>{O.start($)}),$.target===$.currentTarget&&xt()&&$.key===" "&&$.preventDefault(),N&&N($),$.target===$.currentTarget&&xt()&&$.key==="Enter"&&!d&&($.preventDefault(),y&&y($))}),zt=ht($=>{v&&$.key===" "&&K&&!$.defaultPrevented&&O.stop($,()=>{O.pulsate($)}),T&&T($),y&&$.target===$.currentTarget&&xt()&&$.key===" "&&!$.defaultPrevented&&y($)});let rt=l;rt==="button"&&(X.href||X.to)&&(rt=h);const st={};rt==="button"?(st.type=W===void 0?"button":W,st.disabled=d):(!X.href&&!X.to&&(st.role="button"),d&&(st["aria-disabled"]=d));const ut=wt(e,ot),Pt={...r,centerRipple:a,component:l,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:v,tabIndex:B,focusVisible:K},bt=sr(Pt);return p.jsxs(ir,{as:rt,className:w(bt.root,i),ownerState:Pt,onBlur:Tt,onClick:y,onContextMenu:$t,onFocus:Dt,onKeyDown:Vt,onKeyUp:zt,onMouseDown:mt,onMouseLeave:Mt,onMouseUp:at,onDragLeave:E,onTouchEnd:kt,onTouchMove:Wt,onTouchStart:Ot,ref:ut,tabIndex:d?-1:B,type:W,...st,...X,children:[s,It?p.jsx(rr,{ref:et,center:a,...z}):null]})});function dt(t,o,e,r=!1){return ht(n=>(e&&e(n),r||t[o](n),!0))}function lr(t){return J("MuiAlert",t)}const So=tt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function cr(t){return J("MuiIconButton",t)}const Co=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),dr=t=>{const{classes:o,disabled:e,color:r,edge:n,size:a,loading:s}=t,i={root:["root",s&&"loading",e&&"disabled",r!=="default"&&`color${b(r)}`,n&&`edge${b(n)}`,`size${b(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Q(i,cr,o)},pr=M(St,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.loading&&o.loading,e.color!=="default"&&o[`color${b(e.color)}`],e.edge&&o[`edge${b(e.edge)}`],o[`size${b(e.size)}`]]}})(_(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:o=>!o.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{color:(t.vars||t).palette[o].main}})),...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Co.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Co.loading}`]:{color:"transparent"}}))),ur=M("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),fr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiIconButton"}),{edge:n=!1,children:a,className:s,color:i="default",disabled:l=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:v=null,loadingIndicator:C,...h}=r,m=Eo(f),y=C??p.jsx(Lo,{"aria-labelledby":m,color:"inherit",size:16}),P={...r,edge:n,color:i,disabled:l,disableFocusRipple:d,loading:v,loadingIndicator:y,size:u},I=dr(P);return p.jsxs(pr,{id:v?m:f,className:w(I.root,s),centerRipple:!0,focusRipple:!d,disabled:l||v,ref:e,...h,ownerState:P,children:[typeof v=="boolean"&&p.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:p.jsx(ur,{className:I.loadingIndicator,ownerState:P,children:v&&y})}),a]})}),br=ft(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),gr=ft(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),vr=ft(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),yr=ft(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),hr=ft(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),mr=t=>{const{variant:o,color:e,severity:r,classes:n}=t,a={root:["root",`color${b(e||r)}`,`${o}${b(e||r)}`,`${o}`],icon:["icon"],message:["message"],action:["action"]};return Q(a,lr,n)},xr=M(no,{name:"MuiAlert",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color||e.severity)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.darken:t.lighten,e=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:e(t.palette[r].light,.9),[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),Sr=M("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Cr=M("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ir=M("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Io={success:p.jsx(br,{fontSize:"inherit"}),warning:p.jsx(gr,{fontSize:"inherit"}),error:p.jsx(vr,{fontSize:"inherit"}),info:p.jsx(yr,{fontSize:"inherit"})},Tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAlert"}),{action:n,children:a,className:s,closeText:i="Close",color:l,components:d={},componentsProps:u={},icon:f,iconMapping:v=Io,onClose:C,role:h="alert",severity:m="success",slotProps:y={},slots:P={},variant:I="standard",...j}=r,x={...r,color:l,severity:m,variant:I,colorSeverity:l||m},N=mr(x),T={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...P},slotProps:{...u,...y}},[F,Y]=nt("root",{ref:e,shouldForwardComponentProp:!0,className:w(N.root,s),elementType:xr,externalForwardedProps:{...T,...j},ownerState:x,additionalProps:{role:h,elevation:0}}),[q,A]=nt("icon",{className:N.icon,elementType:Sr,externalForwardedProps:T,ownerState:x}),[U,D]=nt("message",{className:N.message,elementType:Cr,externalForwardedProps:T,ownerState:x}),[B,z]=nt("action",{className:N.action,elementType:Ir,externalForwardedProps:T,ownerState:x}),[H,W]=nt("closeButton",{elementType:fr,externalForwardedProps:T,ownerState:x}),[X,ot]=nt("closeIcon",{elementType:hr,externalForwardedProps:T,ownerState:x});return p.jsxs(F,{...Y,children:[f!==!1?p.jsx(q,{...A,children:f||v[m]||Io[m]}):null,p.jsx(U,{...D,children:a}),n!=null?p.jsx(B,{...z,children:n}):null,n==null&&C?p.jsx(B,{...z,children:p.jsx(H,{size:"small","aria-label":i,title:i,color:"inherit",onClick:C,...W,children:p.jsx(X,{fontSize:"small",...ot})})}):null]})});function $r(t){return J("MuiAppBar",t)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Pr=t=>{const{color:o,position:e,classes:r}=t,n={root:["root",`color${b(o)}`,`position${b(e)}`]};return Q(n,$r,r)},$o=(t,o)=>t?`${t?.replace(")","")}, ${o})`:o,Br=M(no,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`position${b(e.position)}`],o[`color${b(e.color)}`]]}})(_(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([o])=>({props:{color:o},style:{"--AppBar-background":(t.vars??t).palette[o].main,"--AppBar-color":(t.vars??t).palette[o].contrastText}})),{props:o=>o.enableColorOnDark===!0&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:o=>o.enableColorOnDark===!1&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?$o(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?$o(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),Rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAppBar"}),{className:n,color:a="primary",enableColorOnDark:s=!1,position:i="fixed",...l}=r,d={...r,color:a,position:i,enableColorOnDark:s},u=Pr(d);return p.jsx(Br,{square:!0,component:"header",ownerState:d,elevation:4,className:w(u.root,n,i==="fixed"&&"mui-fixed"),ref:e,...l})});function Nt(t){const{elementType:o,externalSlotProps:e,ownerState:r,skipResolvingSlotProps:n=!1,...a}=t,s=n?{}:Uo(e,r),{props:i,internalRef:l}=Ho({...a,externalSlotProps:s}),d=wt(l,s?.ref,t.additionalProps?.ref);return Fo(o,{...i,ref:d},r)}const wr=ft(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Mr(t){return J("MuiChip",t)}const R=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),kr=t=>{const{classes:o,disabled:e,size:r,color:n,iconColor:a,onDelete:s,clickable:i,variant:l}=t,d={root:["root",l,e&&"disabled",`size${b(r)}`,`color${b(n)}`,i&&"clickable",i&&`clickableColor${b(n)}`,s&&"deletable",s&&`deletableColor${b(n)}`,`${l}${b(n)}`],label:["label",`label${b(r)}`],avatar:["avatar",`avatar${b(r)}`,`avatarColor${b(n)}`],icon:["icon",`icon${b(r)}`,`iconColor${b(a)}`],deleteIcon:["deleteIcon",`deleteIcon${b(r)}`,`deleteIconColor${b(n)}`,`deleteIcon${b(l)}Color${b(n)}`]};return Q(d,Mr,o)},Tr=M("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t,{color:r,iconColor:n,clickable:a,onDelete:s,size:i,variant:l}=e;return[{[`& .${R.avatar}`]:o.avatar},{[`& .${R.avatar}`]:o[`avatar${b(i)}`]},{[`& .${R.avatar}`]:o[`avatarColor${b(r)}`]},{[`& .${R.icon}`]:o.icon},{[`& .${R.icon}`]:o[`icon${b(i)}`]},{[`& .${R.icon}`]:o[`iconColor${b(n)}`]},{[`& .${R.deleteIcon}`]:o.deleteIcon},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(i)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIconColor${b(r)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(l)}Color${b(r)}`]},o.root,o[`size${b(i)}`],o[`color${b(r)}`],a&&o.clickable,a&&r!=="default"&&o[`clickableColor${b(r)})`],s&&o.deletable,s&&r!=="default"&&o[`deletableColor${b(r)}`],o[l],o[`${l}${b(r)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${R.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${R.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:o,fontSize:t.typography.pxToRem(12)},[`& .${R.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${R.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${R.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${R.icon}`]:{marginLeft:5,marginRight:-6},[`& .${R.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${R.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${R.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText,[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${R.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:o}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${R.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,onDelete:!0},style:{[`&.${R.focusVisible}`]:{background:(t.vars||t).palette[e].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,clickable:!0},style:{[`&:hover, &.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${R.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${R.avatar}`]:{marginLeft:4},[`& .${R.avatarSmall}`]:{marginLeft:2},[`& .${R.icon}`]:{marginLeft:4},[`& .${R.iconSmall}`]:{marginLeft:2},[`& .${R.deleteIcon}`]:{marginRight:5},[`& .${R.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(G()).map(([e])=>({props:{variant:"outlined",color:e},style:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.7)}`,[`&.${R.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.focusOpacity)},[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].main}}}}))]}})),zr=M("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,o)=>{const{ownerState:e}=t,{size:r}=e;return[o.label,o[`label${b(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Po(t){return t.key==="Backspace"||t.key==="Delete"}const zn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiChip"}),{avatar:n,className:a,clickable:s,color:i="default",component:l,deleteIcon:d,disabled:u=!1,icon:f,label:v,onClick:C,onDelete:h,onKeyDown:m,onKeyUp:y,size:P="medium",variant:I="filled",tabIndex:j,skipFocusWhenDisabled:x=!1,slots:N={},slotProps:T={},...F}=r,Y=c.useRef(null),q=wt(Y,e),A=E=>{E.stopPropagation(),h&&h(E)},U=E=>{E.currentTarget===E.target&&Po(E)&&E.preventDefault(),m&&m(E)},D=E=>{E.currentTarget===E.target&&h&&Po(E)&&h(E),y&&y(E)},B=s!==!1&&C?!0:s,z=B||h?St:l||"div",H={...r,component:z,disabled:u,size:P,color:i,iconColor:c.isValidElement(f)&&f.props.color||i,onDelete:!!h,clickable:B,variant:I},W=kr(H),X=z===St?{component:l||"div",focusVisibleClassName:W.focusVisible,...h&&{disableRipple:!0}}:{};let ot=null;h&&(ot=d&&c.isValidElement(d)?c.cloneElement(d,{className:w(d.props.className,W.deleteIcon),onClick:A}):p.jsx(wr,{className:W.deleteIcon,onClick:A}));let O=null;n&&c.isValidElement(n)&&(O=c.cloneElement(n,{className:w(W.avatar,n.props.className)}));let et=null;f&&c.isValidElement(f)&&(et=c.cloneElement(f,{className:w(W.icon,f.props.className)}));const K={slots:N,slotProps:T},[pt,It]=nt("root",{elementType:Tr,externalForwardedProps:{...K,...F},ownerState:H,shouldForwardComponentProp:!0,ref:q,className:w(W.root,a),additionalProps:{disabled:B&&u?!0:void 0,tabIndex:x&&u?-1:j,...X},getSlotProps:E=>({...E,onClick:at=>{E.onClick?.(at),C?.(at)},onKeyDown:at=>{E.onKeyDown?.(at),U(at)},onKeyUp:at=>{E.onKeyUp?.(at),D(at)}})}),[mt,$t]=nt("label",{elementType:zr,externalForwardedProps:K,ownerState:H,className:W.label});return p.jsxs(pt,{as:z,...It,children:[O||et,p.jsx(mt,{...$t,children:v}),ot]})});function Er(t){return J("MuiButton",t)}const vt=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Lr=c.createContext({}),Ar=c.createContext(void 0),jr=t=>{const{color:o,disableElevation:e,fullWidth:r,size:n,variant:a,loading:s,loadingPosition:i,classes:l}=t,d={root:["root",s&&"loading",a,`${a}${b(o)}`,`size${b(n)}`,`${a}Size${b(n)}`,`color${b(o)}`,e&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${b(i)}`],startIcon:["icon","startIcon",`iconSize${b(n)}`],endIcon:["icon","endIcon",`iconSize${b(n)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Q(d,Er,l);return{...l,...u}},Ko=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Nr=M(St,{shouldForwardProp:t=>fe(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color)}`],o[`size${b(e.size)}`],o[`${e.variant}Size${b(e.size)}`],e.color==="inherit"&&o.colorInherit,e.disableElevation&&o.disableElevation,e.fullWidth&&o.fullWidth,e.loading&&o.loading]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],e=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${vt.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${vt.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(G()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:o,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:e,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${vt.loading}`]:{color:"transparent"}}}]}})),Or=M("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.startIcon,e.loading&&o.startIconLoadingStart,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ko]})),Wr=M("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.endIcon,e.loading&&o.endIconLoadingEnd,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ko]})),Dr=M("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Bo=M("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),En=c.forwardRef(function(o,e){const r=c.useContext(Lr),n=c.useContext(Ar),a=ko(r,o),s=Z({props:a,name:"MuiButton"}),{children:i,color:l="primary",component:d="button",className:u,disabled:f=!1,disableElevation:v=!1,disableFocusRipple:C=!1,endIcon:h,focusVisibleClassName:m,fullWidth:y=!1,id:P,loading:I=null,loadingIndicator:j,loadingPosition:x="center",size:N="medium",startIcon:T,type:F,variant:Y="text",...q}=s,A=Eo(P),U=j??p.jsx(Lo,{"aria-labelledby":A,color:"inherit",size:16}),D={...s,color:l,component:d,disabled:f,disableElevation:v,disableFocusRipple:C,fullWidth:y,loading:I,loadingIndicator:U,loadingPosition:x,size:N,type:F,variant:Y},B=jr(D),z=(T||I&&x==="start")&&p.jsx(Or,{className:B.startIcon,ownerState:D,children:T||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),H=(h||I&&x==="end")&&p.jsx(Wr,{className:B.endIcon,ownerState:D,children:h||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),W=n||"",X=typeof I=="boolean"?p.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:I&&p.jsx(Dr,{className:B.loadingIndicator,ownerState:D,children:U})}):null;return p.jsxs(Nr,{ownerState:D,className:w(r.className,B.root,u,W),component:d,disabled:f||I,focusRipple:!C,focusVisibleClassName:w(B.focusVisible,m),ref:e,type:F,id:I?A:P,...q,classes:B,children:[z,x!=="end"&&X,i,x==="end"&&X,H]})});function Vr(t){return J("MuiCard",t)}tt("MuiCard",["root"]);const Fr=t=>{const{classes:o}=t;return Q({root:["root"]},Vr,o)},Ur=M(no,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ln=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiCard"}),{className:n,raised:a=!1,...s}=r,i={...r,raised:a},l=Fr(i);return p.jsx(Ur,{className:w(l.root,n),elevation:a?8:void 0,ref:e,ownerState:i,...s})}),Hr=we({createStyledComponent:M("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),useThemeProps:t=>Z({props:t,name:"MuiContainer"})});function Kr(t){return J("MuiLinearProgress",t)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Gt=4,_t=Ct` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,Yr=typeof _t!="string"?to` + animation: ${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,Zt=Ct` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,qr=typeof Zt!="string"?to` + animation: ${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,Qt=Ct` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,Xr=typeof Qt!="string"?to` + animation: ${Qt} 3s infinite linear; + `:null,Gr=t=>{const{classes:o,variant:e,color:r}=t,n={root:["root",`color${b(r)}`,e],dashed:["dashed",`dashedColor${b(r)}`],bar1:["bar","bar1",`barColor${b(r)}`,(e==="indeterminate"||e==="query")&&"bar1Indeterminate",e==="determinate"&&"bar1Determinate",e==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",e!=="buffer"&&`barColor${b(r)}`,e==="buffer"&&`color${b(r)}`,(e==="indeterminate"||e==="query")&&"bar2Indeterminate",e==="buffer"&&"bar2Buffer"]};return Q(n,Kr,o)},ao=(t,o)=>t.vars?t.vars.palette.LinearProgress[`${o}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[o].main,.62):t.darken(t.palette[o].main,.5),_r=M("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`color${b(e.color)}`],o[e.variant]]}})(_(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:ao(t,o)}})),{props:({ownerState:o})=>o.color==="inherit"&&o.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Zr=M("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.dashed,o[`dashedColor${b(e.color)}`]]}})(_(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(G()).map(([o])=>{const e=ao(t,o);return{props:{color:o},style:{backgroundImage:`radial-gradient(${e} 0%, ${e} 16%, transparent 42%)`}}})]})),Xr||{animation:`${Qt} 3s infinite linear`}),Qr=M("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar1,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar1Indeterminate,e.variant==="determinate"&&o.bar1Determinate,e.variant==="buffer"&&o.bar1Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:(t.vars||t).palette[o].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Gt}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Gt}s linear`}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Yr||{animation:`${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Jr=M("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar2,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar2Indeterminate,e.variant==="buffer"&&o.bar2Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[o].main}})),{props:({ownerState:o})=>o.variant!=="buffer"&&o.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:o})=>o.variant!=="buffer"&&o.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o,variant:"buffer"},style:{backgroundColor:ao(t,o),transition:`transform .${Gt}s linear`}})),{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:qr||{animation:`${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiLinearProgress"}),{className:n,color:a="primary",value:s,valueBuffer:i,variant:l="indeterminate",...d}=r,u={...r,color:a,variant:l},f=Gr(u),v=Jt(),C={},h={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){C["aria-valuenow"]=Math.round(s),C["aria-valuemin"]=0,C["aria-valuemax"]=100;let m=s-100;v&&(m=-m),h.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&i!==void 0){let m=(i||0)-100;v&&(m=-m),h.bar2.transform=`translateX(${m}%)`}return p.jsxs(_r,{className:w(f.root,n),ownerState:u,role:"progressbar",...C,ref:e,...d,children:[l==="buffer"?p.jsx(Zr,{className:f.dashed,ownerState:u}):null,p.jsx(Qr,{className:f.bar1,ownerState:u,style:h.bar1}),l==="determinate"?null:p.jsx(Jr,{className:f.bar2,ownerState:u,style:h.bar2})]})});function on(t){return J("MuiTab",t)}const it=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),en=t=>{const{classes:o,textColor:e,fullWidth:r,wrapped:n,icon:a,label:s,selected:i,disabled:l}=t,d={root:["root",a&&s&&"labelIcon",`textColor${b(e)}`,r&&"fullWidth",n&&"wrapped",i&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Q(d,on,o)},rn=M(St,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.label&&e.icon&&o.labelIcon,o[`textColor${b(e.textColor)}`],e.fullWidth&&o.fullWidth,e.wrapped&&o.wrapped,{[`& .${it.iconWrapper}`]:o.iconWrapper},{[`& .${it.icon}`]:o.icon}]}})(_(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:o})=>o.label&&(o.iconPosition==="top"||o.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:o})=>o.label&&o.iconPosition!=="top"&&o.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:o})=>o.icon&&o.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="top",style:{[`& > .${it.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="bottom",style:{[`& > .${it.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="start",style:{[`& > .${it.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="end",style:{[`& > .${it.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${it.selected}`]:{opacity:1},[`&.${it.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:o})=>o.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:o})=>o.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),nn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:d="top",indicator:u,label:f,onChange:v,onClick:C,onFocus:h,selected:m,selectionFollowsFocus:y,textColor:P="inherit",value:I,wrapped:j=!1,...x}=r,N={...r,disabled:a,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:d,label:!!f,fullWidth:i,textColor:P,wrapped:j},T=en(N),F=l&&f&&c.isValidElement(l)?c.cloneElement(l,{className:w(T.icon,l.props.className)}):l,Y=A=>{!m&&v&&v(A,I),C&&C(A)},q=A=>{y&&!m&&v&&v(A,I),h&&h(A)};return p.jsxs(rn,{focusRipple:!s,className:w(T.root,n),ref:e,role:"tab","aria-selected":m,disabled:a,onClick:Y,onFocus:q,ownerState:N,tabIndex:m?0:-1,...x,children:[d==="top"||d==="start"?p.jsxs(c.Fragment,{children:[F,f]}):p.jsxs(c.Fragment,{children:[f,F]}),u]})});function an(t){return J("MuiToolbar",t)}tt("MuiToolbar",["root","gutters","regular","dense"]);const sn=t=>{const{classes:o,disableGutters:e,variant:r}=t;return Q({root:["root",!e&&"gutters",r]},an,o)},ln=M("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,!e.disableGutters&&o.gutters,o[e.variant]]}})(_(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),cn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiToolbar"}),{className:n,component:a="div",disableGutters:s=!1,variant:i="regular",...l}=r,d={...r,component:a,disableGutters:s,variant:i},u=sn(d);return p.jsx(ln,{as:a,className:w(u.root,n),ref:e,ownerState:d,...l})}),dn=ft(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),pn=ft(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function un(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fn(t,o,e,r={},n=()=>{}){const{ease:a=un,duration:s=300}=r;let i=null;const l=o[t];let d=!1;const u=()=>{d=!0},f=v=>{if(d){n(new Error("Animation cancelled"));return}i===null&&(i=v);const C=Math.min(1,(v-i)/s);if(o[t]=a(C)*(e-l)+l,C>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(f)};return l===e?(n(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const bn={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function gn(t){const{onChange:o,...e}=t,r=c.useRef(),n=c.useRef(null),a=()=>{r.current=n.current.offsetHeight-n.current.clientHeight};return zo(()=>{const s=Oo(()=>{const l=r.current;a(),l!==r.current&&o(r.current)}),i=Do(n.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[o]),c.useEffect(()=>{a(),o(r.current)},[o]),p.jsx("div",{style:bn,...e,ref:n})}function vn(t){return J("MuiTabScrollButton",t)}const yn=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),hn=t=>{const{classes:o,orientation:e,disabled:r}=t;return Q({root:["root",e,r&&"disabled"]},vn,o)},mn=M(St,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.orientation&&o[e.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${yn.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),xn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabScrollButton"}),{className:n,slots:a={},slotProps:s={},direction:i,orientation:l,disabled:d,...u}=r,f=Jt(),v={isRtl:f,...r},C=hn(v),h=a.StartScrollButtonIcon??dn,m=a.EndScrollButtonIcon??pn,y=Nt({elementType:h,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),P=Nt({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return p.jsx(mn,{component:"div",className:w(C.root,n),ref:e,role:null,ownerState:v,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:i==="left"?p.jsx(h,{...y}):p.jsx(m,{...P})})});function Sn(t){return J("MuiTabs",t)}const Ht=tt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ro=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,wo=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,At=(t,o,e)=>{let r=!1,n=e(t,o);for(;n;){if(n===t.firstChild){if(r)return;r=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=e(t,n);else{n.focus();return}}},Cn=t=>{const{vertical:o,fixed:e,hideScrollbar:r,scrollableX:n,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=t;return Q({root:["root",o&&"vertical"],scroller:["scroller",e&&"fixed",r&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",o&&"flexContainerVertical",o&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Sn,l)},In=M("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[{[`& .${Ht.scrollButtons}`]:o.scrollButtons},{[`& .${Ht.scrollButtons}`]:e.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,e.vertical&&o.vertical]}})(_(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.scrollButtonsHideMobile,style:{[`& .${Ht.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),$n=M("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.scroller,e.fixed&&o.fixed,e.hideScrollbar&&o.hideScrollbar,e.scrollableX&&o.scrollableX,e.scrollableY&&o.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Pn=M("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.list,o.flexContainer,e.vertical&&o.flexContainerVertical,e.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Bn=M("span",{name:"MuiTabs",slot:"Indicator"})(_(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:o})=>o.vertical,style:{height:"100%",width:2,right:0}}]}))),Rn=M(gn)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Mo={},wn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabs"}),n=No(),a=Jt(),{"aria-label":s,"aria-labelledby":i,action:l,centered:d=!1,children:u,className:f,component:v="div",allowScrollButtonsMobile:C=!1,indicatorColor:h="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:P,scrollButtons:I="auto",selectionFollowsFocus:j,slots:x={},slotProps:N={},TabIndicatorProps:T={},TabScrollButtonProps:F={},textColor:Y="primary",value:q,variant:A="standard",visibleScrollbar:U=!1,...D}=r,B=A==="scrollable",z=y==="vertical",H=z?"scrollTop":"scrollLeft",W=z?"top":"left",X=z?"bottom":"right",ot=z?"clientHeight":"clientWidth",O=z?"height":"width",et={...r,component:v,allowScrollButtonsMobile:C,indicatorColor:h,orientation:y,vertical:z,scrollButtons:I,textColor:Y,variant:A,visibleScrollbar:U,fixed:!B,hideScrollbar:B&&!U,scrollableX:B&&!z,scrollableY:B&&z,centered:d&&!B,scrollButtonsHideMobile:!C},K=Cn(et),pt=Nt({elementType:x.StartScrollButtonIcon,externalSlotProps:N.startScrollButtonIcon,ownerState:et}),It=Nt({elementType:x.EndScrollButtonIcon,externalSlotProps:N.endScrollButtonIcon,ownerState:et}),[mt,$t]=c.useState(!1),[E,at]=c.useState(Mo),[Mt,Ot]=c.useState(!1),[kt,Wt]=c.useState(!1),[Tt,Dt]=c.useState(!1),[xt,Vt]=c.useState({overflow:"hidden",scrollbarWidth:0}),zt=new Map,rt=c.useRef(null),st=c.useRef(null),ut={slots:x,slotProps:{indicator:T,scrollButton:F,...N}},Pt=()=>{const g=rt.current;let S;if(g){const k=g.getBoundingClientRect();S={clientWidth:g.clientWidth,scrollLeft:g.scrollLeft,scrollTop:g.scrollTop,scrollWidth:g.scrollWidth,top:k.top,bottom:k.bottom,left:k.left,right:k.right}}let L;if(g&&q!==!1){const k=st.current.children;if(k.length>0){const V=k[zt.get(q)];L=V?V.getBoundingClientRect():null}}return{tabsMeta:S,tabMeta:L}},bt=ht(()=>{const{tabsMeta:g,tabMeta:S}=Pt();let L=0,k;z?(k="top",S&&g&&(L=S.top-g.top+g.scrollTop)):(k=a?"right":"left",S&&g&&(L=(a?-1:1)*(S[k]-g[k]+g.scrollLeft)));const V={[k]:L,[O]:S?S[O]:0};if(typeof E[k]!="number"||typeof E[O]!="number")at(V);else{const ct=Math.abs(E[k]-V[k]),gt=Math.abs(E[O]-V[O]);(ct>=1||gt>=1)&&at(V)}}),$=(g,{animation:S=!0}={})=>{S?fn(H,rt.current,g,{duration:n.transitions.duration.standard}):rt.current[H]=g},so=g=>{let S=rt.current[H];z?S+=g:S+=g*(a?-1:1),$(S)},io=()=>{const g=rt.current[ot];let S=0;const L=Array.from(st.current.children);for(let k=0;kg){k===0&&(S=g);break}S+=V[ot]}return S},Yo=()=>{so(-1*io())},qo=()=>{so(io())},[Xo,{onChange:lo,...Go}]=nt("scrollbar",{className:w(K.scrollableX,K.hideScrollbar),elementType:Rn,shouldForwardComponentProp:!0,externalForwardedProps:ut,ownerState:et}),_o=c.useCallback(g=>{lo?.(g),Vt({overflow:null,scrollbarWidth:g})},[lo]),[co,po]=nt("scrollButtons",{className:w(K.scrollButtons,F.className),elementType:xn,externalForwardedProps:ut,ownerState:et,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:pt,endScrollButtonIcon:It}}}),Zo=()=>{const g={};g.scrollbarSizeListener=B?p.jsx(Xo,{...Go,onChange:_o}):null;const L=B&&(I==="auto"&&(Mt||kt)||I===!0);return g.scrollButtonStart=L?p.jsx(co,{direction:a?"right":"left",onClick:Yo,disabled:!Mt,...po}):null,g.scrollButtonEnd=L?p.jsx(co,{direction:a?"left":"right",onClick:qo,disabled:!kt,...po}):null,g},uo=ht(g=>{const{tabsMeta:S,tabMeta:L}=Pt();if(!(!L||!S)){if(L[W]S[X]){const k=S[H]+(L[X]-S[X]);$(k,{animation:g})}}}),Et=ht(()=>{B&&I!==!1&&Dt(!Tt)});c.useEffect(()=>{const g=Oo(()=>{rt.current&&bt()});let S;const L=ct=>{ct.forEach(gt=>{gt.removedNodes.forEach(Bt=>{S?.unobserve(Bt)}),gt.addedNodes.forEach(Bt=>{S?.observe(Bt)})}),g(),Et()},k=Do(rt.current);k.addEventListener("resize",g);let V;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(g),Array.from(st.current.children).forEach(ct=>{S.observe(ct)})),typeof MutationObserver<"u"&&(V=new MutationObserver(L),V.observe(st.current,{childList:!0})),()=>{g.clear(),k.removeEventListener("resize",g),V?.disconnect(),S?.disconnect()}},[bt,Et]),c.useEffect(()=>{const g=Array.from(st.current.children),S=g.length;if(typeof IntersectionObserver<"u"&&S>0&&B&&I!==!1){const L=g[0],k=g[S-1],V={root:rt.current,threshold:.99},ct=Ut=>{Ot(!Ut[0].isIntersecting)},gt=new IntersectionObserver(ct,V);gt.observe(L);const Bt=Ut=>{Wt(!Ut[0].isIntersecting)},bo=new IntersectionObserver(Bt,V);return bo.observe(k),()=>{gt.disconnect(),bo.disconnect()}}},[B,I,Tt,u?.length]),c.useEffect(()=>{$t(!0)},[]),c.useEffect(()=>{bt()}),c.useEffect(()=>{uo(Mo!==E)},[uo,E]),c.useImperativeHandle(l,()=>({updateIndicator:bt,updateScrollButtons:Et}),[bt,Et]);const[Qo,Jo]=nt("indicator",{className:w(K.indicator,T.className),elementType:Bn,externalForwardedProps:ut,ownerState:et,additionalProps:{style:E}}),fo=p.jsx(Qo,{...Jo});let Lt=0;const te=c.Children.map(u,g=>{if(!c.isValidElement(g))return null;const S=g.props.value===void 0?Lt:g.props.value;zt.set(S,Lt);const L=S===q;return Lt+=1,c.cloneElement(g,{fullWidth:A==="fullWidth",indicator:L&&!mt&&fo,selected:L,selectionFollowsFocus:j,onChange:m,textColor:Y,value:S,...Lt===1&&q===!1&&!g.props.tabIndex?{tabIndex:0}:{}})}),oe=g=>{if(g.altKey||g.shiftKey||g.ctrlKey||g.metaKey)return;const S=st.current,L=Wo(S).activeElement;if(L.getAttribute("role")!=="tab")return;let V=y==="horizontal"?"ArrowLeft":"ArrowUp",ct=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(V="ArrowRight",ct="ArrowLeft"),g.key){case V:g.preventDefault(),At(S,L,wo);break;case ct:g.preventDefault(),At(S,L,Ro);break;case"Home":g.preventDefault(),At(S,null,Ro);break;case"End":g.preventDefault(),At(S,null,wo);break}},Ft=Zo(),[ee,re]=nt("root",{ref:e,className:w(K.root,f),elementType:In,externalForwardedProps:{...ut,...D,component:v},ownerState:et}),[ne,ae]=nt("scroller",{ref:rt,className:K.scroller,elementType:$n,externalForwardedProps:ut,ownerState:et,additionalProps:{style:{overflow:xt.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:U?void 0:-xt.scrollbarWidth}}}),[se,ie]=nt("list",{ref:st,className:w(K.list,K.flexContainer),elementType:Pn,externalForwardedProps:ut,ownerState:et,getSlotProps:g=>({...g,onKeyDown:S=>{oe(S),g.onKeyDown?.(S)}})});return p.jsxs(ee,{...re,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,p.jsxs(ne,{...ae,children:[p.jsx(se,{"aria-label":s,"aria-labelledby":i,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...ie,children:te}),mt&&fo]}),Ft.scrollButtonEnd]})}),Mn=({currentPath:t})=>{const o=Ao(),{currentDocument:e,extractionById:r}=jo(l=>l.document),n=[{label:"Téléversement",path:"/",alwaysEnabled:!0},{label:"Extraction",path:"/extraction",alwaysEnabled:!0},{label:"Contexte",path:"/contexte",alwaysEnabled:!1},{label:"Conseil",path:"/conseil",alwaysEnabled:!1}],a=n.findIndex(l=>l.path===t),s=e&&r[e.id],i=(l,d)=>{const u=n[d];(u.alwaysEnabled||s)&&o(u.path)};return p.jsx(Kt,{sx:{borderBottom:1,borderColor:"divider"},children:p.jsx(wn,{value:a>=0?a:0,onChange:i,"aria-label":"navigation tabs",variant:"scrollable",scrollButtons:"auto",children:n.map((l,d)=>p.jsx(nn,{label:l.label,disabled:!l.alwaysEnabled&&!s,sx:{opacity:!l.alwaysEnabled&&!s?.5:1,"&.Mui-disabled":{color:"text.disabled"}}},d))})})},An=({children:t})=>{const o=Ao(),e=be(),r=ge(),{documents:n,extractionById:a,loading:s,currentDocument:i,contextResult:l,conseilResult:d,analysisResult:u}=jo(y=>y.document),f=c.useRef(new Set),v=c.useRef([]),C=c.useRef(!1),h=async()=>{if(!(C.current||v.current.length===0)){for(C.current=!0;v.current.length>0;){const y=v.current.shift();if(y){console.log(`🚀 [LAYOUT] Traitement de la queue: ${y}`);try{const P=n.find(I=>I.id===y);P&&(P.status="processing"),await r(xe(y)),await new Promise(I=>setTimeout(I,500))}catch(P){console.error(`❌ [LAYOUT] Erreur extraction ${y}:`,P);const I=n.find(j=>j.id===y);I&&(I.status="error")}}}C.current=!1}},m=c.useMemo(()=>(console.log(`📋 [LAYOUT] Recalcul de la liste des documents: ${n.length}`),n),[n]);return c.useEffect(()=>{console.log(`📋 [LAYOUT] ${m.length} documents détectés`),m.forEach(y=>{const P=a[y.id],I=f.current.has(y.id),j=y.status==="processing",x=y.status==="completed";console.log(`📄 [LAYOUT] Document ${y.id}: hasExtraction=${!!P}, isProcessed=${I}, isProcessing=${j}, isCompleted=${x}`),P&&!I?(console.log(`✅ [LAYOUT] Document ${y.id} a déjà un résultat, marqué comme traité`),f.current.add(y.id),y.status!=="completed"&&(y.status="completed")):!P&&!I&&!j&&!x&&(console.log(`🚀 [LAYOUT] Ajout à la queue: ${y.id}`),f.current.add(y.id),v.current.push(y.id))}),h()},[n,r,a]),c.useEffect(()=>{i&&(u||r(ve(i.id)),l||r(ye(i.id)),d||r(he(i.id)))},[i,u,l,d,r]),p.jsxs(Kt,{sx:{flexGrow:1},children:[p.jsx(Rr,{position:"static",children:p.jsx(cn,{children:p.jsx(me,{variant:"h6",component:"div",sx:{flexGrow:1,cursor:"pointer"},onClick:()=>o("/"),children:"IA - Lecoffre.io"})})}),p.jsx(Mn,{currentPath:e.pathname}),s&&p.jsx(Kt,{sx:{px:2,pt:1},children:p.jsx(tn,{})}),p.jsx(Hr,{maxWidth:"xl",sx:{mt:3,mb:3},children:t})]})};export{Tn as A,En as B,Ln as C,fr as I,An as L,no as P,ro as T,Ee as _,ht as a,No as b,ft as c,Oo as d,nt as e,Wo as f,qe as g,Nt as h,Ye as i,Fe as j,zn as k,St as l,xo as m,ze as n,Do as o,yo as p,tn as q,wt as u}; diff --git a/public/assets/ListItemIcon-BghqebyC.js b/public/assets/ListItemIcon-BghqebyC.js new file mode 100644 index 0000000..e2b92c1 --- /dev/null +++ b/public/assets/ListItemIcon-BghqebyC.js @@ -0,0 +1 @@ +import{b as m,a as I,r as n,d as x,j as p,s as u,c as f,h as g,m as L}from"./index-BkuOAsyQ.js";import{c as d}from"./ListItemText-siZDedtT.js";function C(t){return m("MuiListItemIcon",t)}I("MuiListItemIcon",["root","alignItemsFlexStart"]);const v=t=>{const{alignItems:s,classes:e}=t;return g({root:["root",s==="flex-start"&&"alignItemsFlexStart"]},C,e)},y=u("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:e}=t;return[s.root,e.alignItems==="flex-start"&&s.alignItemsFlexStart]}})(L(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),h=n.forwardRef(function(s,e){const o=x({props:s,name:"MuiListItemIcon"}),{className:r,...i}=o,l=n.useContext(d),a={...o,alignItems:l.alignItems},c=v(a);return p.jsx(y,{className:f(c.root,r),ownerState:a,ref:e,...i})});export{h as L}; diff --git a/public/assets/ListItemIcon-Bjh9BWiV.js b/public/assets/ListItemIcon-Bjh9BWiV.js new file mode 100644 index 0000000..a595a1a --- /dev/null +++ b/public/assets/ListItemIcon-Bjh9BWiV.js @@ -0,0 +1 @@ +import{b as m,a as I,r as n,d as x,j as p,s as u,c as f,h as g,m as L}from"./index-DwyPw-ga.js";import{c as d}from"./ListItemText-DU5FWiy7.js";function C(t){return m("MuiListItemIcon",t)}I("MuiListItemIcon",["root","alignItemsFlexStart"]);const v=t=>{const{alignItems:s,classes:e}=t;return g({root:["root",s==="flex-start"&&"alignItemsFlexStart"]},C,e)},y=u("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:e}=t;return[s.root,e.alignItems==="flex-start"&&s.alignItemsFlexStart]}})(L(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),h=n.forwardRef(function(s,e){const o=x({props:s,name:"MuiListItemIcon"}),{className:r,...i}=o,l=n.useContext(d),a={...o,alignItems:l.alignItems},c=v(a);return p.jsx(y,{className:f(c.root,r),ownerState:a,ref:e,...i})});export{h as L}; diff --git a/public/assets/ListItemIcon-CEKqafqQ.js b/public/assets/ListItemIcon-CEKqafqQ.js new file mode 100644 index 0000000..9be1a08 --- /dev/null +++ b/public/assets/ListItemIcon-CEKqafqQ.js @@ -0,0 +1 @@ +import{b as m,a as I,r as n,d as x,j as p,s as u,c as f,h as g,m as L}from"./index-CuLfHvEh.js";import{c as d}from"./ListItemText-CTwsrdAB.js";function C(t){return m("MuiListItemIcon",t)}I("MuiListItemIcon",["root","alignItemsFlexStart"]);const v=t=>{const{alignItems:s,classes:e}=t;return g({root:["root",s==="flex-start"&&"alignItemsFlexStart"]},C,e)},y=u("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:e}=t;return[s.root,e.alignItems==="flex-start"&&s.alignItemsFlexStart]}})(L(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),h=n.forwardRef(function(s,e){const o=x({props:s,name:"MuiListItemIcon"}),{className:r,...i}=o,l=n.useContext(d),a={...o,alignItems:l.alignItems},c=v(a);return p.jsx(y,{className:f(c.root,r),ownerState:a,ref:e,...i})});export{h as L}; diff --git a/public/assets/ListItemIcon-Cbif7BYI.js b/public/assets/ListItemIcon-Cbif7BYI.js new file mode 100644 index 0000000..62a0de0 --- /dev/null +++ b/public/assets/ListItemIcon-Cbif7BYI.js @@ -0,0 +1 @@ +import{b as m,a as I,r as n,d as x,j as p,s as u,c as f,h as g,m as L}from"./index-ChSrE95j.js";import{c as d}from"./ListItemText-y3geWUGz.js";function C(t){return m("MuiListItemIcon",t)}I("MuiListItemIcon",["root","alignItemsFlexStart"]);const v=t=>{const{alignItems:s,classes:e}=t;return g({root:["root",s==="flex-start"&&"alignItemsFlexStart"]},C,e)},y=u("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:e}=t;return[s.root,e.alignItems==="flex-start"&&s.alignItemsFlexStart]}})(L(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),h=n.forwardRef(function(s,e){const o=x({props:s,name:"MuiListItemIcon"}),{className:r,...i}=o,l=n.useContext(d),a={...o,alignItems:l.alignItems},c=v(a);return p.jsx(y,{className:f(c.root,r),ownerState:a,ref:e,...i})});export{h as L}; diff --git a/public/assets/ListItemIcon-CvUOm9xw.js b/public/assets/ListItemIcon-CvUOm9xw.js new file mode 100644 index 0000000..66aea95 --- /dev/null +++ b/public/assets/ListItemIcon-CvUOm9xw.js @@ -0,0 +1 @@ +import{b as m,a as I,r as n,d as x,j as p,s as u,c as f,h as g,m as L}from"./index-wde0U4qL.js";import{c as d}from"./ListItemText-MHCbhB9z.js";function C(t){return m("MuiListItemIcon",t)}I("MuiListItemIcon",["root","alignItemsFlexStart"]);const v=t=>{const{alignItems:s,classes:e}=t;return g({root:["root",s==="flex-start"&&"alignItemsFlexStart"]},C,e)},y=u("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:e}=t;return[s.root,e.alignItems==="flex-start"&&s.alignItemsFlexStart]}})(L(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),h=n.forwardRef(function(s,e){const o=x({props:s,name:"MuiListItemIcon"}),{className:r,...i}=o,l=n.useContext(d),a={...o,alignItems:l.alignItems},c=v(a);return p.jsx(y,{className:f(c.root,r),ownerState:a,ref:e,...i})});export{h as L}; diff --git a/public/assets/ListItemIcon-xnvZhg7A.js b/public/assets/ListItemIcon-xnvZhg7A.js new file mode 100644 index 0000000..44eaa8e --- /dev/null +++ b/public/assets/ListItemIcon-xnvZhg7A.js @@ -0,0 +1 @@ +import{b as m,a as I,r as n,d as x,j as p,s as u,c as f,h as g,m as L}from"./index-CedKFzDs.js";import{c as d}from"./ListItemText-BuuBgG3W.js";function C(t){return m("MuiListItemIcon",t)}I("MuiListItemIcon",["root","alignItemsFlexStart"]);const v=t=>{const{alignItems:s,classes:e}=t;return g({root:["root",s==="flex-start"&&"alignItemsFlexStart"]},C,e)},y=u("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:e}=t;return[s.root,e.alignItems==="flex-start"&&s.alignItemsFlexStart]}})(L(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),h=n.forwardRef(function(s,e){const o=x({props:s,name:"MuiListItemIcon"}),{className:r,...i}=o,l=n.useContext(d),a={...o,alignItems:l.alignItems},c=v(a);return p.jsx(y,{className:f(c.root,r),ownerState:a,ref:e,...i})});export{h as L}; diff --git a/public/assets/ListItemText-BuuBgG3W.js b/public/assets/ListItemText-BuuBgG3W.js new file mode 100644 index 0000000..4856835 --- /dev/null +++ b/public/assets/ListItemText-BuuBgG3W.js @@ -0,0 +1 @@ +import{r as a,b as w,a as N,d as E,j as l,s as j,c as M,h as D,m as q,T as k,V as W}from"./index-CedKFzDs.js";import{u as J,i as Y,e as z}from"./Layout-D-i60CyA.js";function K(e,t){return a.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const v=a.createContext({});function Q(e){return w("MuiList",e)}N("MuiList",["root","padding","dense","subheader"]);const X=e=>{const{classes:t,disablePadding:s,dense:o,subheader:n}=e;return D({root:["root",!s&&"padding",o&&"dense",n&&"subheader"]},Q,t)},Z=j("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,!s.disablePadding&&t.padding,s.dense&&t.dense,s.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiList"}),{children:n,className:d,component:r="ul",dense:i=!1,disablePadding:c=!1,subheader:I,...y}=o,L=a.useMemo(()=>({dense:i}),[i]),g={...o,component:r,dense:i,disablePadding:c},x=X(g);return l.jsx(v.Provider,{value:L,children:l.jsxs(Z,{as:r,className:M(x.root,d),ref:s,ownerState:g,...y,children:[I,n]})})});function tt(e){return w("MuiListItem",e)}N("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function gt(e){return w("MuiListItemButton",e)}const et=N("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function st(e){return w("MuiListItemSecondaryAction",e)}N("MuiListItemSecondaryAction",["root","disableGutters"]);const ot=e=>{const{disableGutters:t,classes:s}=e;return D({root:["root",t&&"disableGutters"]},st,s)},nt=j("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),_=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemSecondaryAction"}),{className:n,...d}=o,r=a.useContext(v),i={...o,disableGutters:r.disableGutters},c=ot(i);return l.jsx(nt,{className:M(c.root,n),ownerState:i,ref:s,...d})});_.muiName="ListItemSecondaryAction";const rt=(e,t)=>{const{ownerState:s}=e;return[t.root,s.dense&&t.dense,s.alignItems==="flex-start"&&t.alignItemsFlexStart,s.divider&&t.divider,!s.disableGutters&&t.gutters,!s.disablePadding&&t.padding,s.hasSecondaryAction&&t.secondaryAction]},it=e=>{const{alignItems:t,classes:s,dense:o,disableGutters:n,disablePadding:d,divider:r,hasSecondaryAction:i}=e;return D({root:["root",o&&"dense",!n&&"gutters",!d&&"padding",r&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},tt,s)},at=j("div",{name:"MuiListItem",slot:"Root",overridesResolver:rt})(q(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${et.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),dt=j("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),xt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItem"}),{alignItems:n="center",children:d,className:r,component:i,components:c={},componentsProps:I={},ContainerComponent:y="li",ContainerProps:{className:L,...g}={},dense:x=!1,disableGutters:C=!1,disablePadding:G=!1,divider:u=!1,secondaryAction:p,slotProps:f={},slots:S={},...P}=o,U=a.useContext(v),R=a.useMemo(()=>({dense:x||U.dense||!1,alignItems:n,disableGutters:C}),[n,U.dense,x,C]),V=a.useRef(null),m=a.Children.toArray(d),$=m.length&&K(m[m.length-1],["ListItemSecondaryAction"]),b={...o,alignItems:n,dense:R.dense,disableGutters:C,disablePadding:G,divider:u,hasSecondaryAction:$},H=it(b),O=J(V,s),B=S.root||c.Root||at,T=f.root||I.root||{},A={className:M(H.root,T.className,r),...P};let h=i||"li";return $?(h=!A.component&&!i?"div":h,y==="li"&&(h==="li"?h="div":A.component==="li"&&(A.component="div")),l.jsx(v.Provider,{value:R,children:l.jsxs(dt,{as:y,className:M(H.container,L),ref:O,ownerState:b,...g,children:[l.jsx(B,{...T,...!Y(B)&&{as:h,ownerState:{...b,...T.ownerState}},...A,children:m}),m.pop()]})})):l.jsx(v.Provider,{value:R,children:l.jsxs(B,{...T,as:h,ref:O,...!Y(B)&&{ownerState:{...b,...T.ownerState}},...A,children:[m,p&&l.jsx(_,{children:p})]})})});function lt(e){return w("MuiListItemText",e)}const F=N("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ct=e=>{const{classes:t,inset:s,primary:o,secondary:n,dense:d}=e;return D({root:["root",s&&"inset",d&&"dense",o&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},lt,t)},pt=j("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${F.primary}`]:t.primary},{[`& .${F.secondary}`]:t.secondary},t.root,s.inset&&t.inset,s.primary&&s.secondary&&t.multiline,s.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${W.root}:where(& .${F.primary})`]:{display:"block"},[`.${W.root}:where(& .${F.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ft=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemText"}),{children:n,className:d,disableTypography:r=!1,inset:i=!1,primary:c,primaryTypographyProps:I,secondary:y,secondaryTypographyProps:L,slots:g={},slotProps:x={},...C}=o,{dense:G}=a.useContext(v);let u=c??n,p=y;const f={...o,disableTypography:r,inset:i,primary:!!u,secondary:!!p,dense:G},S=ct(f),P={slots:g,slotProps:{primary:I,secondary:L,...x}},[U,R]=z("root",{className:M(S.root,d),elementType:pt,externalForwardedProps:{...P,...C},ownerState:f,ref:s}),[V,m]=z("primary",{className:S.primary,elementType:k,externalForwardedProps:P,ownerState:f}),[$,b]=z("secondary",{className:S.secondary,elementType:k,externalForwardedProps:P,ownerState:f});return u!=null&&u.type!==k&&!r&&(u=l.jsx(V,{variant:G?"body2":"body1",component:m?.variant?void 0:"span",...m,children:u})),p!=null&&p.type!==k&&!r&&(p=l.jsx($,{variant:"body2",color:"textSecondary",...b,children:p})),l.jsxs(U,{...R,children:[u,p]})});export{yt as L,xt as a,ft as b,v as c,gt as g,K as i,et as l}; diff --git a/public/assets/ListItemText-CTwsrdAB.js b/public/assets/ListItemText-CTwsrdAB.js new file mode 100644 index 0000000..5fe7afd --- /dev/null +++ b/public/assets/ListItemText-CTwsrdAB.js @@ -0,0 +1 @@ +import{r as a,b as w,a as N,d as E,j as l,s as j,c as M,h as D,m as q,T as k,V as W}from"./index-CuLfHvEh.js";import{u as J,i as Y,e as z}from"./Layout-BwmFxbkK.js";function K(e,t){return a.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const v=a.createContext({});function Q(e){return w("MuiList",e)}N("MuiList",["root","padding","dense","subheader"]);const X=e=>{const{classes:t,disablePadding:s,dense:o,subheader:n}=e;return D({root:["root",!s&&"padding",o&&"dense",n&&"subheader"]},Q,t)},Z=j("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,!s.disablePadding&&t.padding,s.dense&&t.dense,s.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiList"}),{children:n,className:d,component:r="ul",dense:i=!1,disablePadding:c=!1,subheader:I,...y}=o,L=a.useMemo(()=>({dense:i}),[i]),g={...o,component:r,dense:i,disablePadding:c},x=X(g);return l.jsx(v.Provider,{value:L,children:l.jsxs(Z,{as:r,className:M(x.root,d),ref:s,ownerState:g,...y,children:[I,n]})})});function tt(e){return w("MuiListItem",e)}N("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function gt(e){return w("MuiListItemButton",e)}const et=N("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function st(e){return w("MuiListItemSecondaryAction",e)}N("MuiListItemSecondaryAction",["root","disableGutters"]);const ot=e=>{const{disableGutters:t,classes:s}=e;return D({root:["root",t&&"disableGutters"]},st,s)},nt=j("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),_=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemSecondaryAction"}),{className:n,...d}=o,r=a.useContext(v),i={...o,disableGutters:r.disableGutters},c=ot(i);return l.jsx(nt,{className:M(c.root,n),ownerState:i,ref:s,...d})});_.muiName="ListItemSecondaryAction";const rt=(e,t)=>{const{ownerState:s}=e;return[t.root,s.dense&&t.dense,s.alignItems==="flex-start"&&t.alignItemsFlexStart,s.divider&&t.divider,!s.disableGutters&&t.gutters,!s.disablePadding&&t.padding,s.hasSecondaryAction&&t.secondaryAction]},it=e=>{const{alignItems:t,classes:s,dense:o,disableGutters:n,disablePadding:d,divider:r,hasSecondaryAction:i}=e;return D({root:["root",o&&"dense",!n&&"gutters",!d&&"padding",r&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},tt,s)},at=j("div",{name:"MuiListItem",slot:"Root",overridesResolver:rt})(q(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${et.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),dt=j("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),xt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItem"}),{alignItems:n="center",children:d,className:r,component:i,components:c={},componentsProps:I={},ContainerComponent:y="li",ContainerProps:{className:L,...g}={},dense:x=!1,disableGutters:C=!1,disablePadding:G=!1,divider:u=!1,secondaryAction:p,slotProps:f={},slots:S={},...P}=o,U=a.useContext(v),R=a.useMemo(()=>({dense:x||U.dense||!1,alignItems:n,disableGutters:C}),[n,U.dense,x,C]),V=a.useRef(null),m=a.Children.toArray(d),$=m.length&&K(m[m.length-1],["ListItemSecondaryAction"]),b={...o,alignItems:n,dense:R.dense,disableGutters:C,disablePadding:G,divider:u,hasSecondaryAction:$},H=it(b),O=J(V,s),B=S.root||c.Root||at,T=f.root||I.root||{},A={className:M(H.root,T.className,r),...P};let h=i||"li";return $?(h=!A.component&&!i?"div":h,y==="li"&&(h==="li"?h="div":A.component==="li"&&(A.component="div")),l.jsx(v.Provider,{value:R,children:l.jsxs(dt,{as:y,className:M(H.container,L),ref:O,ownerState:b,...g,children:[l.jsx(B,{...T,...!Y(B)&&{as:h,ownerState:{...b,...T.ownerState}},...A,children:m}),m.pop()]})})):l.jsx(v.Provider,{value:R,children:l.jsxs(B,{...T,as:h,ref:O,...!Y(B)&&{ownerState:{...b,...T.ownerState}},...A,children:[m,p&&l.jsx(_,{children:p})]})})});function lt(e){return w("MuiListItemText",e)}const F=N("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ct=e=>{const{classes:t,inset:s,primary:o,secondary:n,dense:d}=e;return D({root:["root",s&&"inset",d&&"dense",o&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},lt,t)},pt=j("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${F.primary}`]:t.primary},{[`& .${F.secondary}`]:t.secondary},t.root,s.inset&&t.inset,s.primary&&s.secondary&&t.multiline,s.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${W.root}:where(& .${F.primary})`]:{display:"block"},[`.${W.root}:where(& .${F.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ft=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemText"}),{children:n,className:d,disableTypography:r=!1,inset:i=!1,primary:c,primaryTypographyProps:I,secondary:y,secondaryTypographyProps:L,slots:g={},slotProps:x={},...C}=o,{dense:G}=a.useContext(v);let u=c??n,p=y;const f={...o,disableTypography:r,inset:i,primary:!!u,secondary:!!p,dense:G},S=ct(f),P={slots:g,slotProps:{primary:I,secondary:L,...x}},[U,R]=z("root",{className:M(S.root,d),elementType:pt,externalForwardedProps:{...P,...C},ownerState:f,ref:s}),[V,m]=z("primary",{className:S.primary,elementType:k,externalForwardedProps:P,ownerState:f}),[$,b]=z("secondary",{className:S.secondary,elementType:k,externalForwardedProps:P,ownerState:f});return u!=null&&u.type!==k&&!r&&(u=l.jsx(V,{variant:G?"body2":"body1",component:m?.variant?void 0:"span",...m,children:u})),p!=null&&p.type!==k&&!r&&(p=l.jsx($,{variant:"body2",color:"textSecondary",...b,children:p})),l.jsxs(U,{...R,children:[u,p]})});export{yt as L,xt as a,ft as b,v as c,gt as g,K as i,et as l}; diff --git a/public/assets/ListItemText-DU5FWiy7.js b/public/assets/ListItemText-DU5FWiy7.js new file mode 100644 index 0000000..3acdb3e --- /dev/null +++ b/public/assets/ListItemText-DU5FWiy7.js @@ -0,0 +1 @@ +import{r as a,b as w,a as N,d as E,j as l,s as j,c as M,h as D,m as q,T as k,V as W}from"./index-DwyPw-ga.js";import{u as J,i as Y,e as z}from"./Layout-BXCKqMhs.js";function K(e,t){return a.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const v=a.createContext({});function Q(e){return w("MuiList",e)}N("MuiList",["root","padding","dense","subheader"]);const X=e=>{const{classes:t,disablePadding:s,dense:o,subheader:n}=e;return D({root:["root",!s&&"padding",o&&"dense",n&&"subheader"]},Q,t)},Z=j("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,!s.disablePadding&&t.padding,s.dense&&t.dense,s.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiList"}),{children:n,className:d,component:r="ul",dense:i=!1,disablePadding:c=!1,subheader:I,...y}=o,L=a.useMemo(()=>({dense:i}),[i]),g={...o,component:r,dense:i,disablePadding:c},x=X(g);return l.jsx(v.Provider,{value:L,children:l.jsxs(Z,{as:r,className:M(x.root,d),ref:s,ownerState:g,...y,children:[I,n]})})});function tt(e){return w("MuiListItem",e)}N("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function gt(e){return w("MuiListItemButton",e)}const et=N("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function st(e){return w("MuiListItemSecondaryAction",e)}N("MuiListItemSecondaryAction",["root","disableGutters"]);const ot=e=>{const{disableGutters:t,classes:s}=e;return D({root:["root",t&&"disableGutters"]},st,s)},nt=j("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),_=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemSecondaryAction"}),{className:n,...d}=o,r=a.useContext(v),i={...o,disableGutters:r.disableGutters},c=ot(i);return l.jsx(nt,{className:M(c.root,n),ownerState:i,ref:s,...d})});_.muiName="ListItemSecondaryAction";const rt=(e,t)=>{const{ownerState:s}=e;return[t.root,s.dense&&t.dense,s.alignItems==="flex-start"&&t.alignItemsFlexStart,s.divider&&t.divider,!s.disableGutters&&t.gutters,!s.disablePadding&&t.padding,s.hasSecondaryAction&&t.secondaryAction]},it=e=>{const{alignItems:t,classes:s,dense:o,disableGutters:n,disablePadding:d,divider:r,hasSecondaryAction:i}=e;return D({root:["root",o&&"dense",!n&&"gutters",!d&&"padding",r&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},tt,s)},at=j("div",{name:"MuiListItem",slot:"Root",overridesResolver:rt})(q(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${et.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),dt=j("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),xt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItem"}),{alignItems:n="center",children:d,className:r,component:i,components:c={},componentsProps:I={},ContainerComponent:y="li",ContainerProps:{className:L,...g}={},dense:x=!1,disableGutters:C=!1,disablePadding:G=!1,divider:u=!1,secondaryAction:p,slotProps:f={},slots:S={},...P}=o,U=a.useContext(v),R=a.useMemo(()=>({dense:x||U.dense||!1,alignItems:n,disableGutters:C}),[n,U.dense,x,C]),V=a.useRef(null),m=a.Children.toArray(d),$=m.length&&K(m[m.length-1],["ListItemSecondaryAction"]),b={...o,alignItems:n,dense:R.dense,disableGutters:C,disablePadding:G,divider:u,hasSecondaryAction:$},H=it(b),O=J(V,s),B=S.root||c.Root||at,T=f.root||I.root||{},A={className:M(H.root,T.className,r),...P};let h=i||"li";return $?(h=!A.component&&!i?"div":h,y==="li"&&(h==="li"?h="div":A.component==="li"&&(A.component="div")),l.jsx(v.Provider,{value:R,children:l.jsxs(dt,{as:y,className:M(H.container,L),ref:O,ownerState:b,...g,children:[l.jsx(B,{...T,...!Y(B)&&{as:h,ownerState:{...b,...T.ownerState}},...A,children:m}),m.pop()]})})):l.jsx(v.Provider,{value:R,children:l.jsxs(B,{...T,as:h,ref:O,...!Y(B)&&{ownerState:{...b,...T.ownerState}},...A,children:[m,p&&l.jsx(_,{children:p})]})})});function lt(e){return w("MuiListItemText",e)}const F=N("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ct=e=>{const{classes:t,inset:s,primary:o,secondary:n,dense:d}=e;return D({root:["root",s&&"inset",d&&"dense",o&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},lt,t)},pt=j("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${F.primary}`]:t.primary},{[`& .${F.secondary}`]:t.secondary},t.root,s.inset&&t.inset,s.primary&&s.secondary&&t.multiline,s.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${W.root}:where(& .${F.primary})`]:{display:"block"},[`.${W.root}:where(& .${F.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ft=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemText"}),{children:n,className:d,disableTypography:r=!1,inset:i=!1,primary:c,primaryTypographyProps:I,secondary:y,secondaryTypographyProps:L,slots:g={},slotProps:x={},...C}=o,{dense:G}=a.useContext(v);let u=c??n,p=y;const f={...o,disableTypography:r,inset:i,primary:!!u,secondary:!!p,dense:G},S=ct(f),P={slots:g,slotProps:{primary:I,secondary:L,...x}},[U,R]=z("root",{className:M(S.root,d),elementType:pt,externalForwardedProps:{...P,...C},ownerState:f,ref:s}),[V,m]=z("primary",{className:S.primary,elementType:k,externalForwardedProps:P,ownerState:f}),[$,b]=z("secondary",{className:S.secondary,elementType:k,externalForwardedProps:P,ownerState:f});return u!=null&&u.type!==k&&!r&&(u=l.jsx(V,{variant:G?"body2":"body1",component:m?.variant?void 0:"span",...m,children:u})),p!=null&&p.type!==k&&!r&&(p=l.jsx($,{variant:"body2",color:"textSecondary",...b,children:p})),l.jsxs(U,{...R,children:[u,p]})});export{yt as L,xt as a,ft as b,v as c,gt as g,K as i,et as l}; diff --git a/public/assets/ListItemText-MHCbhB9z.js b/public/assets/ListItemText-MHCbhB9z.js new file mode 100644 index 0000000..0ffa0db --- /dev/null +++ b/public/assets/ListItemText-MHCbhB9z.js @@ -0,0 +1 @@ +import{r as a,b as w,a as N,d as E,j as l,s as j,c as M,h as D,m as q,T as k,V as W}from"./index-wde0U4qL.js";import{u as J,i as Y,e as z}from"./Layout-aWSA1CnN.js";function K(e,t){return a.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const v=a.createContext({});function Q(e){return w("MuiList",e)}N("MuiList",["root","padding","dense","subheader"]);const X=e=>{const{classes:t,disablePadding:s,dense:o,subheader:n}=e;return D({root:["root",!s&&"padding",o&&"dense",n&&"subheader"]},Q,t)},Z=j("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,!s.disablePadding&&t.padding,s.dense&&t.dense,s.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiList"}),{children:n,className:d,component:r="ul",dense:i=!1,disablePadding:c=!1,subheader:I,...y}=o,L=a.useMemo(()=>({dense:i}),[i]),g={...o,component:r,dense:i,disablePadding:c},x=X(g);return l.jsx(v.Provider,{value:L,children:l.jsxs(Z,{as:r,className:M(x.root,d),ref:s,ownerState:g,...y,children:[I,n]})})});function tt(e){return w("MuiListItem",e)}N("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function gt(e){return w("MuiListItemButton",e)}const et=N("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function st(e){return w("MuiListItemSecondaryAction",e)}N("MuiListItemSecondaryAction",["root","disableGutters"]);const ot=e=>{const{disableGutters:t,classes:s}=e;return D({root:["root",t&&"disableGutters"]},st,s)},nt=j("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),_=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemSecondaryAction"}),{className:n,...d}=o,r=a.useContext(v),i={...o,disableGutters:r.disableGutters},c=ot(i);return l.jsx(nt,{className:M(c.root,n),ownerState:i,ref:s,...d})});_.muiName="ListItemSecondaryAction";const rt=(e,t)=>{const{ownerState:s}=e;return[t.root,s.dense&&t.dense,s.alignItems==="flex-start"&&t.alignItemsFlexStart,s.divider&&t.divider,!s.disableGutters&&t.gutters,!s.disablePadding&&t.padding,s.hasSecondaryAction&&t.secondaryAction]},it=e=>{const{alignItems:t,classes:s,dense:o,disableGutters:n,disablePadding:d,divider:r,hasSecondaryAction:i}=e;return D({root:["root",o&&"dense",!n&&"gutters",!d&&"padding",r&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},tt,s)},at=j("div",{name:"MuiListItem",slot:"Root",overridesResolver:rt})(q(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${et.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),dt=j("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),xt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItem"}),{alignItems:n="center",children:d,className:r,component:i,components:c={},componentsProps:I={},ContainerComponent:y="li",ContainerProps:{className:L,...g}={},dense:x=!1,disableGutters:C=!1,disablePadding:G=!1,divider:u=!1,secondaryAction:p,slotProps:f={},slots:S={},...P}=o,U=a.useContext(v),R=a.useMemo(()=>({dense:x||U.dense||!1,alignItems:n,disableGutters:C}),[n,U.dense,x,C]),V=a.useRef(null),m=a.Children.toArray(d),$=m.length&&K(m[m.length-1],["ListItemSecondaryAction"]),b={...o,alignItems:n,dense:R.dense,disableGutters:C,disablePadding:G,divider:u,hasSecondaryAction:$},H=it(b),O=J(V,s),B=S.root||c.Root||at,T=f.root||I.root||{},A={className:M(H.root,T.className,r),...P};let h=i||"li";return $?(h=!A.component&&!i?"div":h,y==="li"&&(h==="li"?h="div":A.component==="li"&&(A.component="div")),l.jsx(v.Provider,{value:R,children:l.jsxs(dt,{as:y,className:M(H.container,L),ref:O,ownerState:b,...g,children:[l.jsx(B,{...T,...!Y(B)&&{as:h,ownerState:{...b,...T.ownerState}},...A,children:m}),m.pop()]})})):l.jsx(v.Provider,{value:R,children:l.jsxs(B,{...T,as:h,ref:O,...!Y(B)&&{ownerState:{...b,...T.ownerState}},...A,children:[m,p&&l.jsx(_,{children:p})]})})});function lt(e){return w("MuiListItemText",e)}const F=N("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ct=e=>{const{classes:t,inset:s,primary:o,secondary:n,dense:d}=e;return D({root:["root",s&&"inset",d&&"dense",o&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},lt,t)},pt=j("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${F.primary}`]:t.primary},{[`& .${F.secondary}`]:t.secondary},t.root,s.inset&&t.inset,s.primary&&s.secondary&&t.multiline,s.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${W.root}:where(& .${F.primary})`]:{display:"block"},[`.${W.root}:where(& .${F.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ft=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemText"}),{children:n,className:d,disableTypography:r=!1,inset:i=!1,primary:c,primaryTypographyProps:I,secondary:y,secondaryTypographyProps:L,slots:g={},slotProps:x={},...C}=o,{dense:G}=a.useContext(v);let u=c??n,p=y;const f={...o,disableTypography:r,inset:i,primary:!!u,secondary:!!p,dense:G},S=ct(f),P={slots:g,slotProps:{primary:I,secondary:L,...x}},[U,R]=z("root",{className:M(S.root,d),elementType:pt,externalForwardedProps:{...P,...C},ownerState:f,ref:s}),[V,m]=z("primary",{className:S.primary,elementType:k,externalForwardedProps:P,ownerState:f}),[$,b]=z("secondary",{className:S.secondary,elementType:k,externalForwardedProps:P,ownerState:f});return u!=null&&u.type!==k&&!r&&(u=l.jsx(V,{variant:G?"body2":"body1",component:m?.variant?void 0:"span",...m,children:u})),p!=null&&p.type!==k&&!r&&(p=l.jsx($,{variant:"body2",color:"textSecondary",...b,children:p})),l.jsxs(U,{...R,children:[u,p]})});export{yt as L,xt as a,ft as b,v as c,gt as g,K as i,et as l}; diff --git a/public/assets/ListItemText-siZDedtT.js b/public/assets/ListItemText-siZDedtT.js new file mode 100644 index 0000000..01c9877 --- /dev/null +++ b/public/assets/ListItemText-siZDedtT.js @@ -0,0 +1 @@ +import{r as a,b as w,a as N,d as E,j as l,s as j,c as M,h as D,m as q,T as k,V as W}from"./index-BkuOAsyQ.js";import{u as J,i as Y,e as z}from"./Layout-HUfQIbZm.js";function K(e,t){return a.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const v=a.createContext({});function Q(e){return w("MuiList",e)}N("MuiList",["root","padding","dense","subheader"]);const X=e=>{const{classes:t,disablePadding:s,dense:o,subheader:n}=e;return D({root:["root",!s&&"padding",o&&"dense",n&&"subheader"]},Q,t)},Z=j("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,!s.disablePadding&&t.padding,s.dense&&t.dense,s.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiList"}),{children:n,className:d,component:r="ul",dense:i=!1,disablePadding:c=!1,subheader:I,...y}=o,L=a.useMemo(()=>({dense:i}),[i]),g={...o,component:r,dense:i,disablePadding:c},x=X(g);return l.jsx(v.Provider,{value:L,children:l.jsxs(Z,{as:r,className:M(x.root,d),ref:s,ownerState:g,...y,children:[I,n]})})});function tt(e){return w("MuiListItem",e)}N("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function gt(e){return w("MuiListItemButton",e)}const et=N("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function st(e){return w("MuiListItemSecondaryAction",e)}N("MuiListItemSecondaryAction",["root","disableGutters"]);const ot=e=>{const{disableGutters:t,classes:s}=e;return D({root:["root",t&&"disableGutters"]},st,s)},nt=j("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),_=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemSecondaryAction"}),{className:n,...d}=o,r=a.useContext(v),i={...o,disableGutters:r.disableGutters},c=ot(i);return l.jsx(nt,{className:M(c.root,n),ownerState:i,ref:s,...d})});_.muiName="ListItemSecondaryAction";const rt=(e,t)=>{const{ownerState:s}=e;return[t.root,s.dense&&t.dense,s.alignItems==="flex-start"&&t.alignItemsFlexStart,s.divider&&t.divider,!s.disableGutters&&t.gutters,!s.disablePadding&&t.padding,s.hasSecondaryAction&&t.secondaryAction]},it=e=>{const{alignItems:t,classes:s,dense:o,disableGutters:n,disablePadding:d,divider:r,hasSecondaryAction:i}=e;return D({root:["root",o&&"dense",!n&&"gutters",!d&&"padding",r&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},tt,s)},at=j("div",{name:"MuiListItem",slot:"Root",overridesResolver:rt})(q(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${et.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),dt=j("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),xt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItem"}),{alignItems:n="center",children:d,className:r,component:i,components:c={},componentsProps:I={},ContainerComponent:y="li",ContainerProps:{className:L,...g}={},dense:x=!1,disableGutters:C=!1,disablePadding:G=!1,divider:u=!1,secondaryAction:p,slotProps:f={},slots:S={},...P}=o,U=a.useContext(v),R=a.useMemo(()=>({dense:x||U.dense||!1,alignItems:n,disableGutters:C}),[n,U.dense,x,C]),V=a.useRef(null),m=a.Children.toArray(d),$=m.length&&K(m[m.length-1],["ListItemSecondaryAction"]),b={...o,alignItems:n,dense:R.dense,disableGutters:C,disablePadding:G,divider:u,hasSecondaryAction:$},H=it(b),O=J(V,s),B=S.root||c.Root||at,T=f.root||I.root||{},A={className:M(H.root,T.className,r),...P};let h=i||"li";return $?(h=!A.component&&!i?"div":h,y==="li"&&(h==="li"?h="div":A.component==="li"&&(A.component="div")),l.jsx(v.Provider,{value:R,children:l.jsxs(dt,{as:y,className:M(H.container,L),ref:O,ownerState:b,...g,children:[l.jsx(B,{...T,...!Y(B)&&{as:h,ownerState:{...b,...T.ownerState}},...A,children:m}),m.pop()]})})):l.jsx(v.Provider,{value:R,children:l.jsxs(B,{...T,as:h,ref:O,...!Y(B)&&{ownerState:{...b,...T.ownerState}},...A,children:[m,p&&l.jsx(_,{children:p})]})})});function lt(e){return w("MuiListItemText",e)}const F=N("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ct=e=>{const{classes:t,inset:s,primary:o,secondary:n,dense:d}=e;return D({root:["root",s&&"inset",d&&"dense",o&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},lt,t)},pt=j("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${F.primary}`]:t.primary},{[`& .${F.secondary}`]:t.secondary},t.root,s.inset&&t.inset,s.primary&&s.secondary&&t.multiline,s.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${W.root}:where(& .${F.primary})`]:{display:"block"},[`.${W.root}:where(& .${F.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ft=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemText"}),{children:n,className:d,disableTypography:r=!1,inset:i=!1,primary:c,primaryTypographyProps:I,secondary:y,secondaryTypographyProps:L,slots:g={},slotProps:x={},...C}=o,{dense:G}=a.useContext(v);let u=c??n,p=y;const f={...o,disableTypography:r,inset:i,primary:!!u,secondary:!!p,dense:G},S=ct(f),P={slots:g,slotProps:{primary:I,secondary:L,...x}},[U,R]=z("root",{className:M(S.root,d),elementType:pt,externalForwardedProps:{...P,...C},ownerState:f,ref:s}),[V,m]=z("primary",{className:S.primary,elementType:k,externalForwardedProps:P,ownerState:f}),[$,b]=z("secondary",{className:S.secondary,elementType:k,externalForwardedProps:P,ownerState:f});return u!=null&&u.type!==k&&!r&&(u=l.jsx(V,{variant:G?"body2":"body1",component:m?.variant?void 0:"span",...m,children:u})),p!=null&&p.type!==k&&!r&&(p=l.jsx($,{variant:"body2",color:"textSecondary",...b,children:p})),l.jsxs(U,{...R,children:[u,p]})});export{yt as L,xt as a,ft as b,v as c,gt as g,K as i,et as l}; diff --git a/public/assets/ListItemText-y3geWUGz.js b/public/assets/ListItemText-y3geWUGz.js new file mode 100644 index 0000000..59a1ca1 --- /dev/null +++ b/public/assets/ListItemText-y3geWUGz.js @@ -0,0 +1 @@ +import{r as a,b as w,a as N,d as E,j as l,s as j,c as M,h as D,m as q,T as k,V as W}from"./index-ChSrE95j.js";import{u as J,i as Y,e as z}from"./Layout-EP4xiiHA.js";function K(e,t){return a.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const v=a.createContext({});function Q(e){return w("MuiList",e)}N("MuiList",["root","padding","dense","subheader"]);const X=e=>{const{classes:t,disablePadding:s,dense:o,subheader:n}=e;return D({root:["root",!s&&"padding",o&&"dense",n&&"subheader"]},Q,t)},Z=j("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,!s.disablePadding&&t.padding,s.dense&&t.dense,s.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiList"}),{children:n,className:d,component:r="ul",dense:i=!1,disablePadding:c=!1,subheader:I,...y}=o,L=a.useMemo(()=>({dense:i}),[i]),g={...o,component:r,dense:i,disablePadding:c},x=X(g);return l.jsx(v.Provider,{value:L,children:l.jsxs(Z,{as:r,className:M(x.root,d),ref:s,ownerState:g,...y,children:[I,n]})})});function tt(e){return w("MuiListItem",e)}N("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function gt(e){return w("MuiListItemButton",e)}const et=N("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function st(e){return w("MuiListItemSecondaryAction",e)}N("MuiListItemSecondaryAction",["root","disableGutters"]);const ot=e=>{const{disableGutters:t,classes:s}=e;return D({root:["root",t&&"disableGutters"]},st,s)},nt=j("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),_=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemSecondaryAction"}),{className:n,...d}=o,r=a.useContext(v),i={...o,disableGutters:r.disableGutters},c=ot(i);return l.jsx(nt,{className:M(c.root,n),ownerState:i,ref:s,...d})});_.muiName="ListItemSecondaryAction";const rt=(e,t)=>{const{ownerState:s}=e;return[t.root,s.dense&&t.dense,s.alignItems==="flex-start"&&t.alignItemsFlexStart,s.divider&&t.divider,!s.disableGutters&&t.gutters,!s.disablePadding&&t.padding,s.hasSecondaryAction&&t.secondaryAction]},it=e=>{const{alignItems:t,classes:s,dense:o,disableGutters:n,disablePadding:d,divider:r,hasSecondaryAction:i}=e;return D({root:["root",o&&"dense",!n&&"gutters",!d&&"padding",r&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},tt,s)},at=j("div",{name:"MuiListItem",slot:"Root",overridesResolver:rt})(q(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${et.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),dt=j("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),xt=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItem"}),{alignItems:n="center",children:d,className:r,component:i,components:c={},componentsProps:I={},ContainerComponent:y="li",ContainerProps:{className:L,...g}={},dense:x=!1,disableGutters:C=!1,disablePadding:G=!1,divider:u=!1,secondaryAction:p,slotProps:f={},slots:S={},...P}=o,U=a.useContext(v),R=a.useMemo(()=>({dense:x||U.dense||!1,alignItems:n,disableGutters:C}),[n,U.dense,x,C]),V=a.useRef(null),m=a.Children.toArray(d),$=m.length&&K(m[m.length-1],["ListItemSecondaryAction"]),b={...o,alignItems:n,dense:R.dense,disableGutters:C,disablePadding:G,divider:u,hasSecondaryAction:$},H=it(b),O=J(V,s),B=S.root||c.Root||at,T=f.root||I.root||{},A={className:M(H.root,T.className,r),...P};let h=i||"li";return $?(h=!A.component&&!i?"div":h,y==="li"&&(h==="li"?h="div":A.component==="li"&&(A.component="div")),l.jsx(v.Provider,{value:R,children:l.jsxs(dt,{as:y,className:M(H.container,L),ref:O,ownerState:b,...g,children:[l.jsx(B,{...T,...!Y(B)&&{as:h,ownerState:{...b,...T.ownerState}},...A,children:m}),m.pop()]})})):l.jsx(v.Provider,{value:R,children:l.jsxs(B,{...T,as:h,ref:O,...!Y(B)&&{ownerState:{...b,...T.ownerState}},...A,children:[m,p&&l.jsx(_,{children:p})]})})});function lt(e){return w("MuiListItemText",e)}const F=N("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ct=e=>{const{classes:t,inset:s,primary:o,secondary:n,dense:d}=e;return D({root:["root",s&&"inset",d&&"dense",o&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},lt,t)},pt=j("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${F.primary}`]:t.primary},{[`& .${F.secondary}`]:t.secondary},t.root,s.inset&&t.inset,s.primary&&s.secondary&&t.multiline,s.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${W.root}:where(& .${F.primary})`]:{display:"block"},[`.${W.root}:where(& .${F.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ft=a.forwardRef(function(t,s){const o=E({props:t,name:"MuiListItemText"}),{children:n,className:d,disableTypography:r=!1,inset:i=!1,primary:c,primaryTypographyProps:I,secondary:y,secondaryTypographyProps:L,slots:g={},slotProps:x={},...C}=o,{dense:G}=a.useContext(v);let u=c??n,p=y;const f={...o,disableTypography:r,inset:i,primary:!!u,secondary:!!p,dense:G},S=ct(f),P={slots:g,slotProps:{primary:I,secondary:L,...x}},[U,R]=z("root",{className:M(S.root,d),elementType:pt,externalForwardedProps:{...P,...C},ownerState:f,ref:s}),[V,m]=z("primary",{className:S.primary,elementType:k,externalForwardedProps:P,ownerState:f}),[$,b]=z("secondary",{className:S.secondary,elementType:k,externalForwardedProps:P,ownerState:f});return u!=null&&u.type!==k&&!r&&(u=l.jsx(V,{variant:G?"body2":"body1",component:m?.variant?void 0:"span",...m,children:u})),p!=null&&p.type!==k&&!r&&(p=l.jsx($,{variant:"body2",color:"textSecondary",...b,children:p})),l.jsxs(U,{...R,children:[u,p]})});export{yt as L,xt as a,ft as b,v as c,gt as g,K as i,et as l}; diff --git a/public/assets/LocationOn-B18XNb8Q.js b/public/assets/LocationOn-B18XNb8Q.js new file mode 100644 index 0000000..d6b505a --- /dev/null +++ b/public/assets/LocationOn-B18XNb8Q.js @@ -0,0 +1 @@ +import{b as J,a as K,r as u,d as Q,P as po,j as r,s as b,c as L,h as X,m as j}from"./index-DwyPw-ga.js";import{b as uo,j as mo,u as ho,e as $,P as go,l as fo,c as to}from"./Layout-BXCKqMhs.js";import{T as xo,g as eo,u as yo}from"./utils-CKR531ip.js";function bo(o){return J("MuiCollapse",o)}K("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Co=o=>{const{orientation:t,classes:e}=o,s={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return X(s,bo,e)},vo=b("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,t[e.orientation],e.state==="entered"&&t.entered,e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&t.hidden]}})(j(({theme:o})=>({height:0,overflow:"hidden",transition:o.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:o.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),So=b("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),wo=b("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),oo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiCollapse"}),{addEndListener:d,children:x,className:y,collapsedSize:p="0px",component:C,easing:H,in:v,onEnter:A,onEntered:P,onEntering:D,onExit:z,onExited:I,onExiting:N,orientation:i="vertical",style:m,timeout:c=po.standard,TransitionComponent:E=xo,...F}=s,S={...s,orientation:i,collapsedSize:p},l=Co(S),w=uo(),G=mo(),a=u.useRef(null),h=u.useRef(),W=typeof p=="number"?`${p}px`:p,M=i==="horizontal",T=M?"width":"height",V=u.useRef(null),Y=ho(e,V),R=n=>g=>{if(n){const f=V.current;g===void 0?n(f):n(f,g)}},B=()=>a.current?a.current[M?"clientWidth":"clientHeight"]:0,Z=R((n,g)=>{a.current&&M&&(a.current.style.position="absolute"),n.style[T]=W,A&&A(n,g)}),_=R((n,g)=>{const f=B();a.current&&M&&(a.current.style.position="");const{duration:U,easing:q}=eo({style:m,timeout:c,easing:H},{mode:"enter"});if(c==="auto"){const no=w.transitions.getAutoHeightDuration(f);n.style.transitionDuration=`${no}ms`,h.current=no}else n.style.transitionDuration=typeof U=="string"?U:`${U}ms`;n.style[T]=`${f}px`,n.style.transitionTimingFunction=q,D&&D(n,g)}),ro=R((n,g)=>{n.style[T]="auto",P&&P(n,g)}),io=R(n=>{n.style[T]=`${B()}px`,z&&z(n)}),ao=R(I),co=R(n=>{const g=B(),{duration:f,easing:U}=eo({style:m,timeout:c,easing:H},{mode:"exit"});if(c==="auto"){const q=w.transitions.getAutoHeightDuration(g);n.style.transitionDuration=`${q}ms`,h.current=q}else n.style.transitionDuration=typeof f=="string"?f:`${f}ms`;n.style[T]=W,n.style.transitionTimingFunction=U,N&&N(n)}),lo=n=>{c==="auto"&&G.start(h.current||0,n),d&&d(V.current,n)};return r.jsx(E,{in:v,onEnter:Z,onEntered:ro,onEntering:_,onExit:io,onExited:ao,onExiting:co,addEndListener:lo,nodeRef:V,timeout:c==="auto"?null:c,...F,children:(n,{ownerState:g,...f})=>r.jsx(vo,{as:C,className:L(l.root,y,{entered:l.entered,exited:!v&&W==="0px"&&l.hidden}[n]),style:{[M?"minWidth":"minHeight"]:W,...m},ref:Y,ownerState:{...S,state:n},...f,children:r.jsx(So,{ownerState:{...S,state:n},className:l.wrapper,ref:a,children:r.jsx(wo,{ownerState:{...S,state:n},className:l.wrapperInner,children:x})})})})});oo&&(oo.muiSupportAuto=!0);const so=u.createContext({});function Ro(o){return J("MuiAccordion",o)}const O=K("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),Ao=o=>{const{classes:t,square:e,expanded:s,disabled:d,disableGutters:x}=o;return X({root:["root",!e&&"rounded",s&&"expanded",d&&"disabled",!x&&"gutters"],heading:["heading"],region:["region"]},Ro,t)},Po=b(go,{name:"MuiAccordion",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[{[`& .${O.region}`]:t.region},t.root,!e.square&&t.rounded,!e.disableGutters&&t.gutters]}})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{position:"relative",transition:o.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(o.vars||o).palette.divider,transition:o.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${O.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${O.disabled}`]:{backgroundColor:(o.vars||o).palette.action.disabledBackground}}}),j(({theme:o})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(o.vars||o).shape.borderRadius,borderTopRightRadius:(o.vars||o).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(o.vars||o).shape.borderRadius,borderBottomRightRadius:(o.vars||o).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${O.expanded}`]:{margin:"16px 0"}}}]}))),zo=b("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),Eo=b("div",{name:"MuiAccordion",slot:"Region"})({}),Fo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordion"}),{children:d,className:x,defaultExpanded:y=!1,disabled:p=!1,disableGutters:C=!1,expanded:H,onChange:v,square:A=!1,slots:P={},slotProps:D={},TransitionComponent:z,TransitionProps:I,...N}=s,[i,m]=yo({controlled:H,default:y,name:"Accordion",state:"expanded"}),c=u.useCallback(_=>{m(!i),v&&v(_,!i)},[i,v,m]),[E,...F]=u.Children.toArray(d),S=u.useMemo(()=>({expanded:i,disabled:p,disableGutters:C,toggle:c}),[i,p,C,c]),l={...s,square:A,disabled:p,disableGutters:C,expanded:i},w=Ao(l),G={transition:z,...P},a={transition:I,...D},h={slots:G,slotProps:a},[W,M]=$("root",{elementType:Po,externalForwardedProps:{...h,...N},className:L(w.root,x),shouldForwardComponentProp:!0,ownerState:l,ref:e,additionalProps:{square:A}}),[T,V]=$("heading",{elementType:zo,externalForwardedProps:h,className:w.heading,ownerState:l}),[Y,R]=$("transition",{elementType:oo,externalForwardedProps:h,ownerState:l}),[B,Z]=$("region",{elementType:Eo,externalForwardedProps:h,ownerState:l,className:w.region,additionalProps:{"aria-labelledby":E.props.id,id:E.props["aria-controls"],role:"region"}});return r.jsxs(W,{...M,children:[r.jsx(T,{...V,children:r.jsx(so.Provider,{value:S,children:E})}),r.jsx(Y,{in:i,timeout:"auto",...R,children:r.jsx(B,{...Z,children:F})})]})});function Mo(o){return J("MuiAccordionDetails",o)}K("MuiAccordionDetails",["root"]);const To=o=>{const{classes:t}=o;return X({root:["root"]},Mo,t)},$o=b("div",{name:"MuiAccordionDetails",slot:"Root"})(j(({theme:o})=>({padding:o.spacing(1,2,2)}))),Go=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionDetails"}),{className:d,...x}=s,y=s,p=To(y);return r.jsx($o,{className:L(p.root,d),ref:e,ownerState:y,...x})});function jo(o){return J("MuiAccordionSummary",o)}const k=K("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Ho=o=>{const{classes:t,expanded:e,disabled:s,disableGutters:d}=o;return X({root:["root",e&&"expanded",s&&"disabled",!d&&"gutters"],focusVisible:["focusVisible"],content:["content",e&&"expanded",!d&&"contentGutters"],expandIconWrapper:["expandIconWrapper",e&&"expanded"]},jo,t)},Do=b(fo,{name:"MuiAccordionSummary",slot:"Root"})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:o.spacing(0,2),transition:o.transitions.create(["min-height","background-color"],t),[`&.${k.focusVisible}`]:{backgroundColor:(o.vars||o).palette.action.focus},[`&.${k.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity},[`&:hover:not(.${k.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${k.expanded}`]:{minHeight:64}}}]}})),Io=b("span",{name:"MuiAccordionSummary",slot:"Content"})(j(({theme:o})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:o.transitions.create(["margin"],{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{margin:"20px 0"}}}]}))),No=b("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(j(({theme:o})=>({display:"flex",color:(o.vars||o).palette.action.active,transform:"rotate(0deg)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{transform:"rotate(180deg)"}}))),Bo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionSummary"}),{children:d,className:x,expandIcon:y,focusVisibleClassName:p,onClick:C,slots:H,slotProps:v,...A}=s,{disabled:P=!1,disableGutters:D,expanded:z,toggle:I}=u.useContext(so),N=a=>{I&&I(a),C&&C(a)},i={...s,expanded:z,disabled:P,disableGutters:D},m=Ho(i),c={slots:H,slotProps:v},[E,F]=$("root",{ref:e,shouldForwardComponentProp:!0,className:L(m.root,x),elementType:Do,externalForwardedProps:{...c,...A},ownerState:i,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:P,"aria-expanded":z,focusVisibleClassName:L(m.focusVisible,p)},getSlotProps:a=>({...a,onClick:h=>{a.onClick?.(h),N(h)}})}),[S,l]=$("content",{className:m.content,elementType:Io,externalForwardedProps:c,ownerState:i}),[w,G]=$("expandIconWrapper",{className:m.expandIconWrapper,elementType:No,externalForwardedProps:c,ownerState:i});return r.jsxs(E,{...F,children:[r.jsx(S,{...l,children:d}),y&&r.jsx(w,{...G,children:y})]})}),Uo=to(r.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),Lo=to(r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),qo=to(r.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}));export{Fo as A,Uo as B,Lo as E,qo as L,Bo as a,Go as b}; diff --git a/public/assets/LocationOn-BJaJHvbZ.js b/public/assets/LocationOn-BJaJHvbZ.js new file mode 100644 index 0000000..73729ab --- /dev/null +++ b/public/assets/LocationOn-BJaJHvbZ.js @@ -0,0 +1 @@ +import{b as J,a as K,r as u,d as Q,P as po,j as r,s as b,c as L,h as X,m as j}from"./index-CuLfHvEh.js";import{b as uo,j as mo,u as ho,e as $,P as go,l as fo,c as to}from"./Layout-BwmFxbkK.js";import{T as xo,g as eo,u as yo}from"./utils-D0Kc04Qe.js";function bo(o){return J("MuiCollapse",o)}K("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Co=o=>{const{orientation:t,classes:e}=o,s={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return X(s,bo,e)},vo=b("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,t[e.orientation],e.state==="entered"&&t.entered,e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&t.hidden]}})(j(({theme:o})=>({height:0,overflow:"hidden",transition:o.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:o.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),So=b("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),wo=b("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),oo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiCollapse"}),{addEndListener:d,children:x,className:y,collapsedSize:p="0px",component:C,easing:H,in:v,onEnter:A,onEntered:P,onEntering:D,onExit:z,onExited:I,onExiting:N,orientation:i="vertical",style:m,timeout:c=po.standard,TransitionComponent:E=xo,...F}=s,S={...s,orientation:i,collapsedSize:p},l=Co(S),w=uo(),G=mo(),a=u.useRef(null),h=u.useRef(),W=typeof p=="number"?`${p}px`:p,M=i==="horizontal",T=M?"width":"height",V=u.useRef(null),Y=ho(e,V),R=n=>g=>{if(n){const f=V.current;g===void 0?n(f):n(f,g)}},B=()=>a.current?a.current[M?"clientWidth":"clientHeight"]:0,Z=R((n,g)=>{a.current&&M&&(a.current.style.position="absolute"),n.style[T]=W,A&&A(n,g)}),_=R((n,g)=>{const f=B();a.current&&M&&(a.current.style.position="");const{duration:U,easing:q}=eo({style:m,timeout:c,easing:H},{mode:"enter"});if(c==="auto"){const no=w.transitions.getAutoHeightDuration(f);n.style.transitionDuration=`${no}ms`,h.current=no}else n.style.transitionDuration=typeof U=="string"?U:`${U}ms`;n.style[T]=`${f}px`,n.style.transitionTimingFunction=q,D&&D(n,g)}),ro=R((n,g)=>{n.style[T]="auto",P&&P(n,g)}),io=R(n=>{n.style[T]=`${B()}px`,z&&z(n)}),ao=R(I),co=R(n=>{const g=B(),{duration:f,easing:U}=eo({style:m,timeout:c,easing:H},{mode:"exit"});if(c==="auto"){const q=w.transitions.getAutoHeightDuration(g);n.style.transitionDuration=`${q}ms`,h.current=q}else n.style.transitionDuration=typeof f=="string"?f:`${f}ms`;n.style[T]=W,n.style.transitionTimingFunction=U,N&&N(n)}),lo=n=>{c==="auto"&&G.start(h.current||0,n),d&&d(V.current,n)};return r.jsx(E,{in:v,onEnter:Z,onEntered:ro,onEntering:_,onExit:io,onExited:ao,onExiting:co,addEndListener:lo,nodeRef:V,timeout:c==="auto"?null:c,...F,children:(n,{ownerState:g,...f})=>r.jsx(vo,{as:C,className:L(l.root,y,{entered:l.entered,exited:!v&&W==="0px"&&l.hidden}[n]),style:{[M?"minWidth":"minHeight"]:W,...m},ref:Y,ownerState:{...S,state:n},...f,children:r.jsx(So,{ownerState:{...S,state:n},className:l.wrapper,ref:a,children:r.jsx(wo,{ownerState:{...S,state:n},className:l.wrapperInner,children:x})})})})});oo&&(oo.muiSupportAuto=!0);const so=u.createContext({});function Ro(o){return J("MuiAccordion",o)}const O=K("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),Ao=o=>{const{classes:t,square:e,expanded:s,disabled:d,disableGutters:x}=o;return X({root:["root",!e&&"rounded",s&&"expanded",d&&"disabled",!x&&"gutters"],heading:["heading"],region:["region"]},Ro,t)},Po=b(go,{name:"MuiAccordion",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[{[`& .${O.region}`]:t.region},t.root,!e.square&&t.rounded,!e.disableGutters&&t.gutters]}})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{position:"relative",transition:o.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(o.vars||o).palette.divider,transition:o.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${O.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${O.disabled}`]:{backgroundColor:(o.vars||o).palette.action.disabledBackground}}}),j(({theme:o})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(o.vars||o).shape.borderRadius,borderTopRightRadius:(o.vars||o).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(o.vars||o).shape.borderRadius,borderBottomRightRadius:(o.vars||o).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${O.expanded}`]:{margin:"16px 0"}}}]}))),zo=b("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),Eo=b("div",{name:"MuiAccordion",slot:"Region"})({}),Fo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordion"}),{children:d,className:x,defaultExpanded:y=!1,disabled:p=!1,disableGutters:C=!1,expanded:H,onChange:v,square:A=!1,slots:P={},slotProps:D={},TransitionComponent:z,TransitionProps:I,...N}=s,[i,m]=yo({controlled:H,default:y,name:"Accordion",state:"expanded"}),c=u.useCallback(_=>{m(!i),v&&v(_,!i)},[i,v,m]),[E,...F]=u.Children.toArray(d),S=u.useMemo(()=>({expanded:i,disabled:p,disableGutters:C,toggle:c}),[i,p,C,c]),l={...s,square:A,disabled:p,disableGutters:C,expanded:i},w=Ao(l),G={transition:z,...P},a={transition:I,...D},h={slots:G,slotProps:a},[W,M]=$("root",{elementType:Po,externalForwardedProps:{...h,...N},className:L(w.root,x),shouldForwardComponentProp:!0,ownerState:l,ref:e,additionalProps:{square:A}}),[T,V]=$("heading",{elementType:zo,externalForwardedProps:h,className:w.heading,ownerState:l}),[Y,R]=$("transition",{elementType:oo,externalForwardedProps:h,ownerState:l}),[B,Z]=$("region",{elementType:Eo,externalForwardedProps:h,ownerState:l,className:w.region,additionalProps:{"aria-labelledby":E.props.id,id:E.props["aria-controls"],role:"region"}});return r.jsxs(W,{...M,children:[r.jsx(T,{...V,children:r.jsx(so.Provider,{value:S,children:E})}),r.jsx(Y,{in:i,timeout:"auto",...R,children:r.jsx(B,{...Z,children:F})})]})});function Mo(o){return J("MuiAccordionDetails",o)}K("MuiAccordionDetails",["root"]);const To=o=>{const{classes:t}=o;return X({root:["root"]},Mo,t)},$o=b("div",{name:"MuiAccordionDetails",slot:"Root"})(j(({theme:o})=>({padding:o.spacing(1,2,2)}))),Go=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionDetails"}),{className:d,...x}=s,y=s,p=To(y);return r.jsx($o,{className:L(p.root,d),ref:e,ownerState:y,...x})});function jo(o){return J("MuiAccordionSummary",o)}const k=K("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Ho=o=>{const{classes:t,expanded:e,disabled:s,disableGutters:d}=o;return X({root:["root",e&&"expanded",s&&"disabled",!d&&"gutters"],focusVisible:["focusVisible"],content:["content",e&&"expanded",!d&&"contentGutters"],expandIconWrapper:["expandIconWrapper",e&&"expanded"]},jo,t)},Do=b(fo,{name:"MuiAccordionSummary",slot:"Root"})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:o.spacing(0,2),transition:o.transitions.create(["min-height","background-color"],t),[`&.${k.focusVisible}`]:{backgroundColor:(o.vars||o).palette.action.focus},[`&.${k.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity},[`&:hover:not(.${k.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${k.expanded}`]:{minHeight:64}}}]}})),Io=b("span",{name:"MuiAccordionSummary",slot:"Content"})(j(({theme:o})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:o.transitions.create(["margin"],{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{margin:"20px 0"}}}]}))),No=b("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(j(({theme:o})=>({display:"flex",color:(o.vars||o).palette.action.active,transform:"rotate(0deg)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{transform:"rotate(180deg)"}}))),Bo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionSummary"}),{children:d,className:x,expandIcon:y,focusVisibleClassName:p,onClick:C,slots:H,slotProps:v,...A}=s,{disabled:P=!1,disableGutters:D,expanded:z,toggle:I}=u.useContext(so),N=a=>{I&&I(a),C&&C(a)},i={...s,expanded:z,disabled:P,disableGutters:D},m=Ho(i),c={slots:H,slotProps:v},[E,F]=$("root",{ref:e,shouldForwardComponentProp:!0,className:L(m.root,x),elementType:Do,externalForwardedProps:{...c,...A},ownerState:i,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:P,"aria-expanded":z,focusVisibleClassName:L(m.focusVisible,p)},getSlotProps:a=>({...a,onClick:h=>{a.onClick?.(h),N(h)}})}),[S,l]=$("content",{className:m.content,elementType:Io,externalForwardedProps:c,ownerState:i}),[w,G]=$("expandIconWrapper",{className:m.expandIconWrapper,elementType:No,externalForwardedProps:c,ownerState:i});return r.jsxs(E,{...F,children:[r.jsx(S,{...l,children:d}),y&&r.jsx(w,{...G,children:y})]})}),Uo=to(r.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),Lo=to(r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),qo=to(r.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}));export{Fo as A,Uo as B,Lo as E,qo as L,Bo as a,Go as b}; diff --git a/public/assets/LocationOn-CcUeyQI8.js b/public/assets/LocationOn-CcUeyQI8.js new file mode 100644 index 0000000..97558da --- /dev/null +++ b/public/assets/LocationOn-CcUeyQI8.js @@ -0,0 +1 @@ +import{b as J,a as K,r as u,d as Q,P as po,j as r,s as b,c as L,h as X,m as j}from"./index-ChSrE95j.js";import{b as uo,j as mo,u as ho,e as $,P as go,l as fo,c as to}from"./Layout-EP4xiiHA.js";import{T as xo,g as eo,u as yo}from"./utils-CND5M_oZ.js";function bo(o){return J("MuiCollapse",o)}K("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Co=o=>{const{orientation:t,classes:e}=o,s={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return X(s,bo,e)},vo=b("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,t[e.orientation],e.state==="entered"&&t.entered,e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&t.hidden]}})(j(({theme:o})=>({height:0,overflow:"hidden",transition:o.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:o.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),So=b("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),wo=b("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),oo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiCollapse"}),{addEndListener:d,children:x,className:y,collapsedSize:p="0px",component:C,easing:H,in:v,onEnter:A,onEntered:P,onEntering:D,onExit:z,onExited:I,onExiting:N,orientation:i="vertical",style:m,timeout:c=po.standard,TransitionComponent:E=xo,...F}=s,S={...s,orientation:i,collapsedSize:p},l=Co(S),w=uo(),G=mo(),a=u.useRef(null),h=u.useRef(),W=typeof p=="number"?`${p}px`:p,M=i==="horizontal",T=M?"width":"height",V=u.useRef(null),Y=ho(e,V),R=n=>g=>{if(n){const f=V.current;g===void 0?n(f):n(f,g)}},B=()=>a.current?a.current[M?"clientWidth":"clientHeight"]:0,Z=R((n,g)=>{a.current&&M&&(a.current.style.position="absolute"),n.style[T]=W,A&&A(n,g)}),_=R((n,g)=>{const f=B();a.current&&M&&(a.current.style.position="");const{duration:U,easing:q}=eo({style:m,timeout:c,easing:H},{mode:"enter"});if(c==="auto"){const no=w.transitions.getAutoHeightDuration(f);n.style.transitionDuration=`${no}ms`,h.current=no}else n.style.transitionDuration=typeof U=="string"?U:`${U}ms`;n.style[T]=`${f}px`,n.style.transitionTimingFunction=q,D&&D(n,g)}),ro=R((n,g)=>{n.style[T]="auto",P&&P(n,g)}),io=R(n=>{n.style[T]=`${B()}px`,z&&z(n)}),ao=R(I),co=R(n=>{const g=B(),{duration:f,easing:U}=eo({style:m,timeout:c,easing:H},{mode:"exit"});if(c==="auto"){const q=w.transitions.getAutoHeightDuration(g);n.style.transitionDuration=`${q}ms`,h.current=q}else n.style.transitionDuration=typeof f=="string"?f:`${f}ms`;n.style[T]=W,n.style.transitionTimingFunction=U,N&&N(n)}),lo=n=>{c==="auto"&&G.start(h.current||0,n),d&&d(V.current,n)};return r.jsx(E,{in:v,onEnter:Z,onEntered:ro,onEntering:_,onExit:io,onExited:ao,onExiting:co,addEndListener:lo,nodeRef:V,timeout:c==="auto"?null:c,...F,children:(n,{ownerState:g,...f})=>r.jsx(vo,{as:C,className:L(l.root,y,{entered:l.entered,exited:!v&&W==="0px"&&l.hidden}[n]),style:{[M?"minWidth":"minHeight"]:W,...m},ref:Y,ownerState:{...S,state:n},...f,children:r.jsx(So,{ownerState:{...S,state:n},className:l.wrapper,ref:a,children:r.jsx(wo,{ownerState:{...S,state:n},className:l.wrapperInner,children:x})})})})});oo&&(oo.muiSupportAuto=!0);const so=u.createContext({});function Ro(o){return J("MuiAccordion",o)}const O=K("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),Ao=o=>{const{classes:t,square:e,expanded:s,disabled:d,disableGutters:x}=o;return X({root:["root",!e&&"rounded",s&&"expanded",d&&"disabled",!x&&"gutters"],heading:["heading"],region:["region"]},Ro,t)},Po=b(go,{name:"MuiAccordion",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[{[`& .${O.region}`]:t.region},t.root,!e.square&&t.rounded,!e.disableGutters&&t.gutters]}})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{position:"relative",transition:o.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(o.vars||o).palette.divider,transition:o.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${O.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${O.disabled}`]:{backgroundColor:(o.vars||o).palette.action.disabledBackground}}}),j(({theme:o})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(o.vars||o).shape.borderRadius,borderTopRightRadius:(o.vars||o).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(o.vars||o).shape.borderRadius,borderBottomRightRadius:(o.vars||o).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${O.expanded}`]:{margin:"16px 0"}}}]}))),zo=b("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),Eo=b("div",{name:"MuiAccordion",slot:"Region"})({}),Fo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordion"}),{children:d,className:x,defaultExpanded:y=!1,disabled:p=!1,disableGutters:C=!1,expanded:H,onChange:v,square:A=!1,slots:P={},slotProps:D={},TransitionComponent:z,TransitionProps:I,...N}=s,[i,m]=yo({controlled:H,default:y,name:"Accordion",state:"expanded"}),c=u.useCallback(_=>{m(!i),v&&v(_,!i)},[i,v,m]),[E,...F]=u.Children.toArray(d),S=u.useMemo(()=>({expanded:i,disabled:p,disableGutters:C,toggle:c}),[i,p,C,c]),l={...s,square:A,disabled:p,disableGutters:C,expanded:i},w=Ao(l),G={transition:z,...P},a={transition:I,...D},h={slots:G,slotProps:a},[W,M]=$("root",{elementType:Po,externalForwardedProps:{...h,...N},className:L(w.root,x),shouldForwardComponentProp:!0,ownerState:l,ref:e,additionalProps:{square:A}}),[T,V]=$("heading",{elementType:zo,externalForwardedProps:h,className:w.heading,ownerState:l}),[Y,R]=$("transition",{elementType:oo,externalForwardedProps:h,ownerState:l}),[B,Z]=$("region",{elementType:Eo,externalForwardedProps:h,ownerState:l,className:w.region,additionalProps:{"aria-labelledby":E.props.id,id:E.props["aria-controls"],role:"region"}});return r.jsxs(W,{...M,children:[r.jsx(T,{...V,children:r.jsx(so.Provider,{value:S,children:E})}),r.jsx(Y,{in:i,timeout:"auto",...R,children:r.jsx(B,{...Z,children:F})})]})});function Mo(o){return J("MuiAccordionDetails",o)}K("MuiAccordionDetails",["root"]);const To=o=>{const{classes:t}=o;return X({root:["root"]},Mo,t)},$o=b("div",{name:"MuiAccordionDetails",slot:"Root"})(j(({theme:o})=>({padding:o.spacing(1,2,2)}))),Go=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionDetails"}),{className:d,...x}=s,y=s,p=To(y);return r.jsx($o,{className:L(p.root,d),ref:e,ownerState:y,...x})});function jo(o){return J("MuiAccordionSummary",o)}const k=K("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Ho=o=>{const{classes:t,expanded:e,disabled:s,disableGutters:d}=o;return X({root:["root",e&&"expanded",s&&"disabled",!d&&"gutters"],focusVisible:["focusVisible"],content:["content",e&&"expanded",!d&&"contentGutters"],expandIconWrapper:["expandIconWrapper",e&&"expanded"]},jo,t)},Do=b(fo,{name:"MuiAccordionSummary",slot:"Root"})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:o.spacing(0,2),transition:o.transitions.create(["min-height","background-color"],t),[`&.${k.focusVisible}`]:{backgroundColor:(o.vars||o).palette.action.focus},[`&.${k.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity},[`&:hover:not(.${k.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${k.expanded}`]:{minHeight:64}}}]}})),Io=b("span",{name:"MuiAccordionSummary",slot:"Content"})(j(({theme:o})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:o.transitions.create(["margin"],{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{margin:"20px 0"}}}]}))),No=b("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(j(({theme:o})=>({display:"flex",color:(o.vars||o).palette.action.active,transform:"rotate(0deg)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{transform:"rotate(180deg)"}}))),Bo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionSummary"}),{children:d,className:x,expandIcon:y,focusVisibleClassName:p,onClick:C,slots:H,slotProps:v,...A}=s,{disabled:P=!1,disableGutters:D,expanded:z,toggle:I}=u.useContext(so),N=a=>{I&&I(a),C&&C(a)},i={...s,expanded:z,disabled:P,disableGutters:D},m=Ho(i),c={slots:H,slotProps:v},[E,F]=$("root",{ref:e,shouldForwardComponentProp:!0,className:L(m.root,x),elementType:Do,externalForwardedProps:{...c,...A},ownerState:i,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:P,"aria-expanded":z,focusVisibleClassName:L(m.focusVisible,p)},getSlotProps:a=>({...a,onClick:h=>{a.onClick?.(h),N(h)}})}),[S,l]=$("content",{className:m.content,elementType:Io,externalForwardedProps:c,ownerState:i}),[w,G]=$("expandIconWrapper",{className:m.expandIconWrapper,elementType:No,externalForwardedProps:c,ownerState:i});return r.jsxs(E,{...F,children:[r.jsx(S,{...l,children:d}),y&&r.jsx(w,{...G,children:y})]})}),Uo=to(r.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),Lo=to(r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),qo=to(r.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}));export{Fo as A,Uo as B,Lo as E,qo as L,Bo as a,Go as b}; diff --git a/public/assets/LocationOn-D6dNBkVX.js b/public/assets/LocationOn-D6dNBkVX.js new file mode 100644 index 0000000..97d62fb --- /dev/null +++ b/public/assets/LocationOn-D6dNBkVX.js @@ -0,0 +1 @@ +import{b as J,a as K,r as u,d as Q,P as po,j as r,s as b,c as L,h as X,m as j}from"./index-wde0U4qL.js";import{b as uo,j as mo,u as ho,e as $,P as go,l as fo,c as to}from"./Layout-aWSA1CnN.js";import{T as xo,g as eo,u as yo}from"./utils-ZQUdJD-K.js";function bo(o){return J("MuiCollapse",o)}K("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Co=o=>{const{orientation:t,classes:e}=o,s={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return X(s,bo,e)},vo=b("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,t[e.orientation],e.state==="entered"&&t.entered,e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&t.hidden]}})(j(({theme:o})=>({height:0,overflow:"hidden",transition:o.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:o.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),So=b("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),wo=b("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),oo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiCollapse"}),{addEndListener:d,children:x,className:y,collapsedSize:p="0px",component:C,easing:H,in:v,onEnter:A,onEntered:P,onEntering:D,onExit:z,onExited:I,onExiting:N,orientation:i="vertical",style:m,timeout:c=po.standard,TransitionComponent:E=xo,...F}=s,S={...s,orientation:i,collapsedSize:p},l=Co(S),w=uo(),G=mo(),a=u.useRef(null),h=u.useRef(),W=typeof p=="number"?`${p}px`:p,M=i==="horizontal",T=M?"width":"height",V=u.useRef(null),Y=ho(e,V),R=n=>g=>{if(n){const f=V.current;g===void 0?n(f):n(f,g)}},B=()=>a.current?a.current[M?"clientWidth":"clientHeight"]:0,Z=R((n,g)=>{a.current&&M&&(a.current.style.position="absolute"),n.style[T]=W,A&&A(n,g)}),_=R((n,g)=>{const f=B();a.current&&M&&(a.current.style.position="");const{duration:U,easing:q}=eo({style:m,timeout:c,easing:H},{mode:"enter"});if(c==="auto"){const no=w.transitions.getAutoHeightDuration(f);n.style.transitionDuration=`${no}ms`,h.current=no}else n.style.transitionDuration=typeof U=="string"?U:`${U}ms`;n.style[T]=`${f}px`,n.style.transitionTimingFunction=q,D&&D(n,g)}),ro=R((n,g)=>{n.style[T]="auto",P&&P(n,g)}),io=R(n=>{n.style[T]=`${B()}px`,z&&z(n)}),ao=R(I),co=R(n=>{const g=B(),{duration:f,easing:U}=eo({style:m,timeout:c,easing:H},{mode:"exit"});if(c==="auto"){const q=w.transitions.getAutoHeightDuration(g);n.style.transitionDuration=`${q}ms`,h.current=q}else n.style.transitionDuration=typeof f=="string"?f:`${f}ms`;n.style[T]=W,n.style.transitionTimingFunction=U,N&&N(n)}),lo=n=>{c==="auto"&&G.start(h.current||0,n),d&&d(V.current,n)};return r.jsx(E,{in:v,onEnter:Z,onEntered:ro,onEntering:_,onExit:io,onExited:ao,onExiting:co,addEndListener:lo,nodeRef:V,timeout:c==="auto"?null:c,...F,children:(n,{ownerState:g,...f})=>r.jsx(vo,{as:C,className:L(l.root,y,{entered:l.entered,exited:!v&&W==="0px"&&l.hidden}[n]),style:{[M?"minWidth":"minHeight"]:W,...m},ref:Y,ownerState:{...S,state:n},...f,children:r.jsx(So,{ownerState:{...S,state:n},className:l.wrapper,ref:a,children:r.jsx(wo,{ownerState:{...S,state:n},className:l.wrapperInner,children:x})})})})});oo&&(oo.muiSupportAuto=!0);const so=u.createContext({});function Ro(o){return J("MuiAccordion",o)}const O=K("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),Ao=o=>{const{classes:t,square:e,expanded:s,disabled:d,disableGutters:x}=o;return X({root:["root",!e&&"rounded",s&&"expanded",d&&"disabled",!x&&"gutters"],heading:["heading"],region:["region"]},Ro,t)},Po=b(go,{name:"MuiAccordion",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[{[`& .${O.region}`]:t.region},t.root,!e.square&&t.rounded,!e.disableGutters&&t.gutters]}})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{position:"relative",transition:o.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(o.vars||o).palette.divider,transition:o.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${O.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${O.disabled}`]:{backgroundColor:(o.vars||o).palette.action.disabledBackground}}}),j(({theme:o})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(o.vars||o).shape.borderRadius,borderTopRightRadius:(o.vars||o).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(o.vars||o).shape.borderRadius,borderBottomRightRadius:(o.vars||o).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${O.expanded}`]:{margin:"16px 0"}}}]}))),zo=b("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),Eo=b("div",{name:"MuiAccordion",slot:"Region"})({}),Fo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordion"}),{children:d,className:x,defaultExpanded:y=!1,disabled:p=!1,disableGutters:C=!1,expanded:H,onChange:v,square:A=!1,slots:P={},slotProps:D={},TransitionComponent:z,TransitionProps:I,...N}=s,[i,m]=yo({controlled:H,default:y,name:"Accordion",state:"expanded"}),c=u.useCallback(_=>{m(!i),v&&v(_,!i)},[i,v,m]),[E,...F]=u.Children.toArray(d),S=u.useMemo(()=>({expanded:i,disabled:p,disableGutters:C,toggle:c}),[i,p,C,c]),l={...s,square:A,disabled:p,disableGutters:C,expanded:i},w=Ao(l),G={transition:z,...P},a={transition:I,...D},h={slots:G,slotProps:a},[W,M]=$("root",{elementType:Po,externalForwardedProps:{...h,...N},className:L(w.root,x),shouldForwardComponentProp:!0,ownerState:l,ref:e,additionalProps:{square:A}}),[T,V]=$("heading",{elementType:zo,externalForwardedProps:h,className:w.heading,ownerState:l}),[Y,R]=$("transition",{elementType:oo,externalForwardedProps:h,ownerState:l}),[B,Z]=$("region",{elementType:Eo,externalForwardedProps:h,ownerState:l,className:w.region,additionalProps:{"aria-labelledby":E.props.id,id:E.props["aria-controls"],role:"region"}});return r.jsxs(W,{...M,children:[r.jsx(T,{...V,children:r.jsx(so.Provider,{value:S,children:E})}),r.jsx(Y,{in:i,timeout:"auto",...R,children:r.jsx(B,{...Z,children:F})})]})});function Mo(o){return J("MuiAccordionDetails",o)}K("MuiAccordionDetails",["root"]);const To=o=>{const{classes:t}=o;return X({root:["root"]},Mo,t)},$o=b("div",{name:"MuiAccordionDetails",slot:"Root"})(j(({theme:o})=>({padding:o.spacing(1,2,2)}))),Go=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionDetails"}),{className:d,...x}=s,y=s,p=To(y);return r.jsx($o,{className:L(p.root,d),ref:e,ownerState:y,...x})});function jo(o){return J("MuiAccordionSummary",o)}const k=K("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Ho=o=>{const{classes:t,expanded:e,disabled:s,disableGutters:d}=o;return X({root:["root",e&&"expanded",s&&"disabled",!d&&"gutters"],focusVisible:["focusVisible"],content:["content",e&&"expanded",!d&&"contentGutters"],expandIconWrapper:["expandIconWrapper",e&&"expanded"]},jo,t)},Do=b(fo,{name:"MuiAccordionSummary",slot:"Root"})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:o.spacing(0,2),transition:o.transitions.create(["min-height","background-color"],t),[`&.${k.focusVisible}`]:{backgroundColor:(o.vars||o).palette.action.focus},[`&.${k.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity},[`&:hover:not(.${k.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${k.expanded}`]:{minHeight:64}}}]}})),Io=b("span",{name:"MuiAccordionSummary",slot:"Content"})(j(({theme:o})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:o.transitions.create(["margin"],{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{margin:"20px 0"}}}]}))),No=b("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(j(({theme:o})=>({display:"flex",color:(o.vars||o).palette.action.active,transform:"rotate(0deg)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{transform:"rotate(180deg)"}}))),Bo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionSummary"}),{children:d,className:x,expandIcon:y,focusVisibleClassName:p,onClick:C,slots:H,slotProps:v,...A}=s,{disabled:P=!1,disableGutters:D,expanded:z,toggle:I}=u.useContext(so),N=a=>{I&&I(a),C&&C(a)},i={...s,expanded:z,disabled:P,disableGutters:D},m=Ho(i),c={slots:H,slotProps:v},[E,F]=$("root",{ref:e,shouldForwardComponentProp:!0,className:L(m.root,x),elementType:Do,externalForwardedProps:{...c,...A},ownerState:i,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:P,"aria-expanded":z,focusVisibleClassName:L(m.focusVisible,p)},getSlotProps:a=>({...a,onClick:h=>{a.onClick?.(h),N(h)}})}),[S,l]=$("content",{className:m.content,elementType:Io,externalForwardedProps:c,ownerState:i}),[w,G]=$("expandIconWrapper",{className:m.expandIconWrapper,elementType:No,externalForwardedProps:c,ownerState:i});return r.jsxs(E,{...F,children:[r.jsx(S,{...l,children:d}),y&&r.jsx(w,{...G,children:y})]})}),Uo=to(r.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),Lo=to(r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),qo=to(r.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}));export{Fo as A,Uo as B,Lo as E,qo as L,Bo as a,Go as b}; diff --git a/public/assets/LocationOn-DOH85F_6.js b/public/assets/LocationOn-DOH85F_6.js new file mode 100644 index 0000000..1dc7e16 --- /dev/null +++ b/public/assets/LocationOn-DOH85F_6.js @@ -0,0 +1 @@ +import{b as J,a as K,r as u,d as Q,P as po,j as r,s as b,c as L,h as X,m as j}from"./index-CedKFzDs.js";import{b as uo,j as mo,u as ho,e as $,P as go,l as fo,c as to}from"./Layout-D-i60CyA.js";import{T as xo,g as eo,u as yo}from"./utils-DK0LiU04.js";function bo(o){return J("MuiCollapse",o)}K("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Co=o=>{const{orientation:t,classes:e}=o,s={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return X(s,bo,e)},vo=b("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,t[e.orientation],e.state==="entered"&&t.entered,e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&t.hidden]}})(j(({theme:o})=>({height:0,overflow:"hidden",transition:o.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:o.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),So=b("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),wo=b("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),oo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiCollapse"}),{addEndListener:d,children:x,className:y,collapsedSize:p="0px",component:C,easing:H,in:v,onEnter:A,onEntered:P,onEntering:D,onExit:z,onExited:I,onExiting:N,orientation:i="vertical",style:m,timeout:c=po.standard,TransitionComponent:E=xo,...F}=s,S={...s,orientation:i,collapsedSize:p},l=Co(S),w=uo(),G=mo(),a=u.useRef(null),h=u.useRef(),W=typeof p=="number"?`${p}px`:p,M=i==="horizontal",T=M?"width":"height",V=u.useRef(null),Y=ho(e,V),R=n=>g=>{if(n){const f=V.current;g===void 0?n(f):n(f,g)}},B=()=>a.current?a.current[M?"clientWidth":"clientHeight"]:0,Z=R((n,g)=>{a.current&&M&&(a.current.style.position="absolute"),n.style[T]=W,A&&A(n,g)}),_=R((n,g)=>{const f=B();a.current&&M&&(a.current.style.position="");const{duration:U,easing:q}=eo({style:m,timeout:c,easing:H},{mode:"enter"});if(c==="auto"){const no=w.transitions.getAutoHeightDuration(f);n.style.transitionDuration=`${no}ms`,h.current=no}else n.style.transitionDuration=typeof U=="string"?U:`${U}ms`;n.style[T]=`${f}px`,n.style.transitionTimingFunction=q,D&&D(n,g)}),ro=R((n,g)=>{n.style[T]="auto",P&&P(n,g)}),io=R(n=>{n.style[T]=`${B()}px`,z&&z(n)}),ao=R(I),co=R(n=>{const g=B(),{duration:f,easing:U}=eo({style:m,timeout:c,easing:H},{mode:"exit"});if(c==="auto"){const q=w.transitions.getAutoHeightDuration(g);n.style.transitionDuration=`${q}ms`,h.current=q}else n.style.transitionDuration=typeof f=="string"?f:`${f}ms`;n.style[T]=W,n.style.transitionTimingFunction=U,N&&N(n)}),lo=n=>{c==="auto"&&G.start(h.current||0,n),d&&d(V.current,n)};return r.jsx(E,{in:v,onEnter:Z,onEntered:ro,onEntering:_,onExit:io,onExited:ao,onExiting:co,addEndListener:lo,nodeRef:V,timeout:c==="auto"?null:c,...F,children:(n,{ownerState:g,...f})=>r.jsx(vo,{as:C,className:L(l.root,y,{entered:l.entered,exited:!v&&W==="0px"&&l.hidden}[n]),style:{[M?"minWidth":"minHeight"]:W,...m},ref:Y,ownerState:{...S,state:n},...f,children:r.jsx(So,{ownerState:{...S,state:n},className:l.wrapper,ref:a,children:r.jsx(wo,{ownerState:{...S,state:n},className:l.wrapperInner,children:x})})})})});oo&&(oo.muiSupportAuto=!0);const so=u.createContext({});function Ro(o){return J("MuiAccordion",o)}const O=K("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),Ao=o=>{const{classes:t,square:e,expanded:s,disabled:d,disableGutters:x}=o;return X({root:["root",!e&&"rounded",s&&"expanded",d&&"disabled",!x&&"gutters"],heading:["heading"],region:["region"]},Ro,t)},Po=b(go,{name:"MuiAccordion",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[{[`& .${O.region}`]:t.region},t.root,!e.square&&t.rounded,!e.disableGutters&&t.gutters]}})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{position:"relative",transition:o.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(o.vars||o).palette.divider,transition:o.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${O.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${O.disabled}`]:{backgroundColor:(o.vars||o).palette.action.disabledBackground}}}),j(({theme:o})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(o.vars||o).shape.borderRadius,borderTopRightRadius:(o.vars||o).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(o.vars||o).shape.borderRadius,borderBottomRightRadius:(o.vars||o).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${O.expanded}`]:{margin:"16px 0"}}}]}))),zo=b("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),Eo=b("div",{name:"MuiAccordion",slot:"Region"})({}),Fo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordion"}),{children:d,className:x,defaultExpanded:y=!1,disabled:p=!1,disableGutters:C=!1,expanded:H,onChange:v,square:A=!1,slots:P={},slotProps:D={},TransitionComponent:z,TransitionProps:I,...N}=s,[i,m]=yo({controlled:H,default:y,name:"Accordion",state:"expanded"}),c=u.useCallback(_=>{m(!i),v&&v(_,!i)},[i,v,m]),[E,...F]=u.Children.toArray(d),S=u.useMemo(()=>({expanded:i,disabled:p,disableGutters:C,toggle:c}),[i,p,C,c]),l={...s,square:A,disabled:p,disableGutters:C,expanded:i},w=Ao(l),G={transition:z,...P},a={transition:I,...D},h={slots:G,slotProps:a},[W,M]=$("root",{elementType:Po,externalForwardedProps:{...h,...N},className:L(w.root,x),shouldForwardComponentProp:!0,ownerState:l,ref:e,additionalProps:{square:A}}),[T,V]=$("heading",{elementType:zo,externalForwardedProps:h,className:w.heading,ownerState:l}),[Y,R]=$("transition",{elementType:oo,externalForwardedProps:h,ownerState:l}),[B,Z]=$("region",{elementType:Eo,externalForwardedProps:h,ownerState:l,className:w.region,additionalProps:{"aria-labelledby":E.props.id,id:E.props["aria-controls"],role:"region"}});return r.jsxs(W,{...M,children:[r.jsx(T,{...V,children:r.jsx(so.Provider,{value:S,children:E})}),r.jsx(Y,{in:i,timeout:"auto",...R,children:r.jsx(B,{...Z,children:F})})]})});function Mo(o){return J("MuiAccordionDetails",o)}K("MuiAccordionDetails",["root"]);const To=o=>{const{classes:t}=o;return X({root:["root"]},Mo,t)},$o=b("div",{name:"MuiAccordionDetails",slot:"Root"})(j(({theme:o})=>({padding:o.spacing(1,2,2)}))),Go=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionDetails"}),{className:d,...x}=s,y=s,p=To(y);return r.jsx($o,{className:L(p.root,d),ref:e,ownerState:y,...x})});function jo(o){return J("MuiAccordionSummary",o)}const k=K("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Ho=o=>{const{classes:t,expanded:e,disabled:s,disableGutters:d}=o;return X({root:["root",e&&"expanded",s&&"disabled",!d&&"gutters"],focusVisible:["focusVisible"],content:["content",e&&"expanded",!d&&"contentGutters"],expandIconWrapper:["expandIconWrapper",e&&"expanded"]},jo,t)},Do=b(fo,{name:"MuiAccordionSummary",slot:"Root"})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:o.spacing(0,2),transition:o.transitions.create(["min-height","background-color"],t),[`&.${k.focusVisible}`]:{backgroundColor:(o.vars||o).palette.action.focus},[`&.${k.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity},[`&:hover:not(.${k.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${k.expanded}`]:{minHeight:64}}}]}})),Io=b("span",{name:"MuiAccordionSummary",slot:"Content"})(j(({theme:o})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:o.transitions.create(["margin"],{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{margin:"20px 0"}}}]}))),No=b("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(j(({theme:o})=>({display:"flex",color:(o.vars||o).palette.action.active,transform:"rotate(0deg)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{transform:"rotate(180deg)"}}))),Bo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionSummary"}),{children:d,className:x,expandIcon:y,focusVisibleClassName:p,onClick:C,slots:H,slotProps:v,...A}=s,{disabled:P=!1,disableGutters:D,expanded:z,toggle:I}=u.useContext(so),N=a=>{I&&I(a),C&&C(a)},i={...s,expanded:z,disabled:P,disableGutters:D},m=Ho(i),c={slots:H,slotProps:v},[E,F]=$("root",{ref:e,shouldForwardComponentProp:!0,className:L(m.root,x),elementType:Do,externalForwardedProps:{...c,...A},ownerState:i,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:P,"aria-expanded":z,focusVisibleClassName:L(m.focusVisible,p)},getSlotProps:a=>({...a,onClick:h=>{a.onClick?.(h),N(h)}})}),[S,l]=$("content",{className:m.content,elementType:Io,externalForwardedProps:c,ownerState:i}),[w,G]=$("expandIconWrapper",{className:m.expandIconWrapper,elementType:No,externalForwardedProps:c,ownerState:i});return r.jsxs(E,{...F,children:[r.jsx(S,{...l,children:d}),y&&r.jsx(w,{...G,children:y})]})}),Uo=to(r.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),Lo=to(r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),qo=to(r.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}));export{Fo as A,Uo as B,Lo as E,qo as L,Bo as a,Go as b}; diff --git a/public/assets/LocationOn-g4BgcU6o.js b/public/assets/LocationOn-g4BgcU6o.js new file mode 100644 index 0000000..9b57add --- /dev/null +++ b/public/assets/LocationOn-g4BgcU6o.js @@ -0,0 +1 @@ +import{b as J,a as K,r as u,d as Q,P as po,j as r,s as b,c as L,h as X,m as j}from"./index-BkuOAsyQ.js";import{b as uo,j as mo,u as ho,e as $,P as go,l as fo,c as to}from"./Layout-HUfQIbZm.js";import{T as xo,g as eo,u as yo}from"./utils-DOxjq0mC.js";function bo(o){return J("MuiCollapse",o)}K("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Co=o=>{const{orientation:t,classes:e}=o,s={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return X(s,bo,e)},vo=b("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,t[e.orientation],e.state==="entered"&&t.entered,e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&t.hidden]}})(j(({theme:o})=>({height:0,overflow:"hidden",transition:o.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:o.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),So=b("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),wo=b("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),oo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiCollapse"}),{addEndListener:d,children:x,className:y,collapsedSize:p="0px",component:C,easing:H,in:v,onEnter:A,onEntered:P,onEntering:D,onExit:z,onExited:I,onExiting:N,orientation:i="vertical",style:m,timeout:c=po.standard,TransitionComponent:E=xo,...F}=s,S={...s,orientation:i,collapsedSize:p},l=Co(S),w=uo(),G=mo(),a=u.useRef(null),h=u.useRef(),W=typeof p=="number"?`${p}px`:p,M=i==="horizontal",T=M?"width":"height",V=u.useRef(null),Y=ho(e,V),R=n=>g=>{if(n){const f=V.current;g===void 0?n(f):n(f,g)}},B=()=>a.current?a.current[M?"clientWidth":"clientHeight"]:0,Z=R((n,g)=>{a.current&&M&&(a.current.style.position="absolute"),n.style[T]=W,A&&A(n,g)}),_=R((n,g)=>{const f=B();a.current&&M&&(a.current.style.position="");const{duration:U,easing:q}=eo({style:m,timeout:c,easing:H},{mode:"enter"});if(c==="auto"){const no=w.transitions.getAutoHeightDuration(f);n.style.transitionDuration=`${no}ms`,h.current=no}else n.style.transitionDuration=typeof U=="string"?U:`${U}ms`;n.style[T]=`${f}px`,n.style.transitionTimingFunction=q,D&&D(n,g)}),ro=R((n,g)=>{n.style[T]="auto",P&&P(n,g)}),io=R(n=>{n.style[T]=`${B()}px`,z&&z(n)}),ao=R(I),co=R(n=>{const g=B(),{duration:f,easing:U}=eo({style:m,timeout:c,easing:H},{mode:"exit"});if(c==="auto"){const q=w.transitions.getAutoHeightDuration(g);n.style.transitionDuration=`${q}ms`,h.current=q}else n.style.transitionDuration=typeof f=="string"?f:`${f}ms`;n.style[T]=W,n.style.transitionTimingFunction=U,N&&N(n)}),lo=n=>{c==="auto"&&G.start(h.current||0,n),d&&d(V.current,n)};return r.jsx(E,{in:v,onEnter:Z,onEntered:ro,onEntering:_,onExit:io,onExited:ao,onExiting:co,addEndListener:lo,nodeRef:V,timeout:c==="auto"?null:c,...F,children:(n,{ownerState:g,...f})=>r.jsx(vo,{as:C,className:L(l.root,y,{entered:l.entered,exited:!v&&W==="0px"&&l.hidden}[n]),style:{[M?"minWidth":"minHeight"]:W,...m},ref:Y,ownerState:{...S,state:n},...f,children:r.jsx(So,{ownerState:{...S,state:n},className:l.wrapper,ref:a,children:r.jsx(wo,{ownerState:{...S,state:n},className:l.wrapperInner,children:x})})})})});oo&&(oo.muiSupportAuto=!0);const so=u.createContext({});function Ro(o){return J("MuiAccordion",o)}const O=K("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),Ao=o=>{const{classes:t,square:e,expanded:s,disabled:d,disableGutters:x}=o;return X({root:["root",!e&&"rounded",s&&"expanded",d&&"disabled",!x&&"gutters"],heading:["heading"],region:["region"]},Ro,t)},Po=b(go,{name:"MuiAccordion",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[{[`& .${O.region}`]:t.region},t.root,!e.square&&t.rounded,!e.disableGutters&&t.gutters]}})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{position:"relative",transition:o.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(o.vars||o).palette.divider,transition:o.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${O.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${O.disabled}`]:{backgroundColor:(o.vars||o).palette.action.disabledBackground}}}),j(({theme:o})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(o.vars||o).shape.borderRadius,borderTopRightRadius:(o.vars||o).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(o.vars||o).shape.borderRadius,borderBottomRightRadius:(o.vars||o).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${O.expanded}`]:{margin:"16px 0"}}}]}))),zo=b("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),Eo=b("div",{name:"MuiAccordion",slot:"Region"})({}),Fo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordion"}),{children:d,className:x,defaultExpanded:y=!1,disabled:p=!1,disableGutters:C=!1,expanded:H,onChange:v,square:A=!1,slots:P={},slotProps:D={},TransitionComponent:z,TransitionProps:I,...N}=s,[i,m]=yo({controlled:H,default:y,name:"Accordion",state:"expanded"}),c=u.useCallback(_=>{m(!i),v&&v(_,!i)},[i,v,m]),[E,...F]=u.Children.toArray(d),S=u.useMemo(()=>({expanded:i,disabled:p,disableGutters:C,toggle:c}),[i,p,C,c]),l={...s,square:A,disabled:p,disableGutters:C,expanded:i},w=Ao(l),G={transition:z,...P},a={transition:I,...D},h={slots:G,slotProps:a},[W,M]=$("root",{elementType:Po,externalForwardedProps:{...h,...N},className:L(w.root,x),shouldForwardComponentProp:!0,ownerState:l,ref:e,additionalProps:{square:A}}),[T,V]=$("heading",{elementType:zo,externalForwardedProps:h,className:w.heading,ownerState:l}),[Y,R]=$("transition",{elementType:oo,externalForwardedProps:h,ownerState:l}),[B,Z]=$("region",{elementType:Eo,externalForwardedProps:h,ownerState:l,className:w.region,additionalProps:{"aria-labelledby":E.props.id,id:E.props["aria-controls"],role:"region"}});return r.jsxs(W,{...M,children:[r.jsx(T,{...V,children:r.jsx(so.Provider,{value:S,children:E})}),r.jsx(Y,{in:i,timeout:"auto",...R,children:r.jsx(B,{...Z,children:F})})]})});function Mo(o){return J("MuiAccordionDetails",o)}K("MuiAccordionDetails",["root"]);const To=o=>{const{classes:t}=o;return X({root:["root"]},Mo,t)},$o=b("div",{name:"MuiAccordionDetails",slot:"Root"})(j(({theme:o})=>({padding:o.spacing(1,2,2)}))),Go=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionDetails"}),{className:d,...x}=s,y=s,p=To(y);return r.jsx($o,{className:L(p.root,d),ref:e,ownerState:y,...x})});function jo(o){return J("MuiAccordionSummary",o)}const k=K("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Ho=o=>{const{classes:t,expanded:e,disabled:s,disableGutters:d}=o;return X({root:["root",e&&"expanded",s&&"disabled",!d&&"gutters"],focusVisible:["focusVisible"],content:["content",e&&"expanded",!d&&"contentGutters"],expandIconWrapper:["expandIconWrapper",e&&"expanded"]},jo,t)},Do=b(fo,{name:"MuiAccordionSummary",slot:"Root"})(j(({theme:o})=>{const t={duration:o.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:o.spacing(0,2),transition:o.transitions.create(["min-height","background-color"],t),[`&.${k.focusVisible}`]:{backgroundColor:(o.vars||o).palette.action.focus},[`&.${k.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity},[`&:hover:not(.${k.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${k.expanded}`]:{minHeight:64}}}]}})),Io=b("span",{name:"MuiAccordionSummary",slot:"Content"})(j(({theme:o})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:o.transitions.create(["margin"],{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{margin:"20px 0"}}}]}))),No=b("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(j(({theme:o})=>({display:"flex",color:(o.vars||o).palette.action.active,transform:"rotate(0deg)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shortest}),[`&.${k.expanded}`]:{transform:"rotate(180deg)"}}))),Bo=u.forwardRef(function(t,e){const s=Q({props:t,name:"MuiAccordionSummary"}),{children:d,className:x,expandIcon:y,focusVisibleClassName:p,onClick:C,slots:H,slotProps:v,...A}=s,{disabled:P=!1,disableGutters:D,expanded:z,toggle:I}=u.useContext(so),N=a=>{I&&I(a),C&&C(a)},i={...s,expanded:z,disabled:P,disableGutters:D},m=Ho(i),c={slots:H,slotProps:v},[E,F]=$("root",{ref:e,shouldForwardComponentProp:!0,className:L(m.root,x),elementType:Do,externalForwardedProps:{...c,...A},ownerState:i,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:P,"aria-expanded":z,focusVisibleClassName:L(m.focusVisible,p)},getSlotProps:a=>({...a,onClick:h=>{a.onClick?.(h),N(h)}})}),[S,l]=$("content",{className:m.content,elementType:Io,externalForwardedProps:c,ownerState:i}),[w,G]=$("expandIconWrapper",{className:m.expandIconWrapper,elementType:No,externalForwardedProps:c,ownerState:i});return r.jsxs(E,{...F,children:[r.jsx(S,{...l,children:d}),y&&r.jsx(w,{...G,children:y})]})}),Uo=to(r.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),Lo=to(r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),qo=to(r.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}));export{Fo as A,Uo as B,Lo as E,qo as L,Bo as a,Go as b}; diff --git a/public/assets/UploadView-B8ejIPq8.js b/public/assets/UploadView-B8ejIPq8.js new file mode 100644 index 0000000..826abf1 --- /dev/null +++ b/public/assets/UploadView-B8ejIPq8.js @@ -0,0 +1,43 @@ +import{g as xo,c as de,r as c,u as wt,j as i,a as he,b as be,s as W,d as ye,e as Vo,m as ke,f as fe,h as ve,i as go,k as sn,T as Y,l as ln,n as He,o as Pt,p as Go,q as Xo,t as ho,v as bo,w as bn,R as Yo,x as yo,y as ct,B as N,C as wo,z as At,A as ze,D as zt,E as Jo,F as Zo,G as Qo,H as ei,I as yn,J as wn}from"./index-DwyPw-ga.js";import{u as Be,o as We,a as tt,d as ko,i as Ut,c as Fe,b as cn,e as pe,f as Te,g as _t,P as mt,h as ti,j as ni,I as Kt,B as re,A as Vt,L as kn,C as oi,k as Ue}from"./Layout-BXCKqMhs.js";import{T as ii,g as Cn,r as ai,u as jn}from"./utils-CKR531ip.js";import{g as Et,P as ri,G as Co,T as Gt,D as Sn}from"./Description-D3TUU4JV.js";import{i as Mt,L as Xt,a as Yt,b as Jt}from"./ListItemText-DU5FWiy7.js";import{L as jo}from"./ListItemIcon-Bjh9BWiV.js";import{E as si,C as li}from"./Error-KwpHlgI1.js";var Ot={exports:{}},Lt,Rn;function ci(){if(Rn)return Lt;Rn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lt=e,Lt}var Nt,Pn;function pi(){if(Pn)return Nt;Pn=1;var e=ci();function t(){}function n(){}return n.resetWarningCache=t,Nt=function(){function o(s,l,p,m,v,h){if(h!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}o.isRequired=o;function a(){return o}var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},Nt}var En;function di(){return En||(En=1,Ot.exports=pi()()),Ot.exports}var ui=di();const se=xo(ui);function mi(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function fi(e){return parseFloat(e)}function Fn(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function vi(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function xi(e,t){if(!e)return t;function n(s,l){const p={};return Object.keys(l).forEach(m=>{vi(m,l[m])&&typeof s[m]=="function"&&(p[m]=(...v)=>{s[m](...v),l[m](...v)})}),p}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,p=typeof e=="function"?e({...s,...l}):e,m=de(s?.className,l?.className,p?.className),v=n(p,l);return{...l,...p,...v,...!!m&&{className:m},...l?.style&&p?.style&&{style:{...l.style,...p.style}},...l?.sx&&p?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(p.sx)?p.sx:[p.sx]]}}};const o=t,a=n(e,o),r=de(o?.className,e?.className);return{...t,...e,...a,...!!r&&{className:r},...o?.style&&e?.style&&{style:{...o.style,...e.style}},...o?.sx&&e?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function vt(e){return parseInt(e,10)||0}const gi={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function hi(e){for(const t in e)return!1;return!0}function In(e){return hi(e)||e.outerHeightStyle===0&&!e.overflowing}const bi=c.forwardRef(function(t,n){const{onChange:o,maxRows:a,minRows:r=1,style:s,value:l,...p}=t,{current:m}=c.useRef(l!=null),v=c.useRef(null),h=Be(n,v),w=c.useRef(null),f=c.useRef(null),u=c.useCallback(()=>{const x=v.current,y=f.current;if(!x||!y)return;const S=We(x).getComputedStyle(x);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};y.style.width=S.width,y.value=x.value||t.placeholder||"x",y.value.slice(-1)===` +`&&(y.value+=" ");const P=S.boxSizing,D=vt(S.paddingBottom)+vt(S.paddingTop),A=vt(S.borderBottomWidth)+vt(S.borderTopWidth),O=y.scrollHeight;y.value="x";const H=y.scrollHeight;let B=O;r&&(B=Math.max(Number(r)*H,B)),a&&(B=Math.min(Number(a)*H,B)),B=Math.max(B,H);const q=B+(P==="border-box"?D+A:0),F=Math.abs(B-O)<=1;return{outerHeightStyle:q,overflowing:F}},[a,r,t.placeholder]),k=tt(()=>{const x=v.current,y=u();if(!x||!y||In(y))return!1;const d=y.outerHeightStyle;return w.current!=null&&w.current!==d}),b=c.useCallback(()=>{const x=v.current,y=u();if(!x||!y||In(y))return;const d=y.outerHeightStyle;w.current!==d&&(w.current=d,x.style.height=`${d}px`),x.style.overflow=y.overflowing?"hidden":""},[u]),g=c.useRef(-1);wt(()=>{const x=ko(b),y=v?.current;if(!y)return;const d=We(y);d.addEventListener("resize",x);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{k()&&(S.unobserve(y),cancelAnimationFrame(g.current),b(),g.current=requestAnimationFrame(()=>{S.observe(y)}))}),S.observe(y)),()=>{x.clear(),cancelAnimationFrame(g.current),d.removeEventListener("resize",x),S&&S.disconnect()}},[u,b,k]),wt(()=>{b()});const j=x=>{m||b();const y=x.target,d=y.value.length,S=y.value.endsWith(` +`),P=y.selectionStart===d;S&&P&&y.setSelectionRange(d,d),o&&o(x)};return i.jsxs(c.Fragment,{children:[i.jsx("textarea",{value:l,onChange:j,ref:h,rows:r,style:s,...p}),i.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...gi.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function it({props:e,states:t,muiFormControl:n}){return t.reduce((o,a)=>(o[a]=e[a],n&&typeof e[a]>"u"&&(o[a]=n[a]),o),{})}const pn=c.createContext(void 0);function at(){return c.useContext(pn)}function Tn(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function kt(e,t=!1){return e&&(Tn(e.value)&&e.value!==""||t&&Tn(e.defaultValue)&&e.defaultValue!=="")}function yi(e){return e.startAdornment}function wi(e){return be("MuiInputBase",e)}const nt=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Dn;const Ft=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},It=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ki=e=>{const{classes:t,color:n,disabled:o,error:a,endAdornment:r,focused:s,formControl:l,fullWidth:p,hiddenLabel:m,multiline:v,readOnly:h,size:w,startAdornment:f,type:u}=e,k={root:["root",`color${fe(n)}`,o&&"disabled",a&&"error",p&&"fullWidth",s&&"focused",l&&"formControl",w&&w!=="medium"&&`size${fe(w)}`,v&&"multiline",f&&"adornedStart",r&&"adornedEnd",m&&"hiddenLabel",h&&"readOnly"],input:["input",o&&"disabled",u==="search"&&"inputTypeSearch",v&&"inputMultiline",w==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",f&&"inputAdornedStart",r&&"inputAdornedEnd",h&&"readOnly"]};return ve(k,wi,t)},Tt=W("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ft})(ke(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nt.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Dt=W("input",{name:"MuiInputBase",slot:"Input",overridesResolver:It})(ke(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nt.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${nt.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:r})=>!r.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:r})=>r.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),An=Vo({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dn=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:r,autoFocus:s,className:l,color:p,components:m={},componentsProps:v={},defaultValue:h,disabled:w,disableInjectingGlobalStyles:f,endAdornment:u,error:k,fullWidth:b=!1,id:g,inputComponent:j="input",inputProps:x={},inputRef:y,margin:d,maxRows:S,minRows:P,multiline:D=!1,name:A,onBlur:O,onChange:H,onClick:B,onFocus:q,onKeyDown:F,onKeyUp:E,placeholder:I,readOnly:V,renderSuffix:ee,rows:T,size:Q,slotProps:ne={},slots:J={},startAdornment:G,type:X="text",value:oe,...ce}=o,ue=x.value!=null?x.value:oe,{current:Ce}=c.useRef(ue!=null),te=c.useRef(),$=c.useCallback(ae=>{},[]),U=Be(te,y,x.ref,$),[_,K]=c.useState(!1),C=at(),z=it({props:o,muiFormControl:C,states:["color","disabled","error","hiddenLabel","size","required","filled"]});z.focused=C?C.focused:_,c.useEffect(()=>{!C&&w&&_&&(K(!1),O&&O())},[C,w,_,O]);const Z=C&&C.onFilled,xe=C&&C.onEmpty,Pe=c.useCallback(ae=>{kt(ae)?Z&&Z():xe&&xe()},[Z,xe]);wt(()=>{Ce&&Pe({value:ue})},[ue,Pe,Ce]);const Ie=ae=>{q&&q(ae),x.onFocus&&x.onFocus(ae),C&&C.onFocus?C.onFocus(ae):K(!0)},Re=ae=>{O&&O(ae),x.onBlur&&x.onBlur(ae),C&&C.onBlur?C.onBlur(ae):K(!1)},Se=(ae,...Oe)=>{if(!Ce){const qe=ae.target||te.current;if(qe==null)throw new Error(go(1));Pe({value:qe.value})}x.onChange&&x.onChange(ae,...Oe),H&&H(ae,...Oe)};c.useEffect(()=>{Pe(te.current)},[]);const De=ae=>{te.current&&ae.currentTarget===ae.target&&te.current.focus(),B&&B(ae)};let Me=j,R=x;D&&Me==="input"&&(T?R={type:void 0,minRows:T,maxRows:T,...R}:R={type:void 0,maxRows:S,minRows:P,...R},Me=bi);const M=ae=>{Pe(ae.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};c.useEffect(()=>{C&&C.setAdornedStart(!!G)},[C,G]);const le={...o,color:z.color||"primary",disabled:z.disabled,endAdornment:u,error:z.error,focused:z.focused,formControl:C,fullWidth:b,hiddenLabel:z.hiddenLabel,multiline:D,size:z.size,startAdornment:G,type:X},me=ki(le),je=J.root||m.Root||Tt,Ae=ne.root||v.root||{},Ee=J.input||m.Input||Dt;return R={...R,...ne.input??v.input},i.jsxs(c.Fragment,{children:[!f&&typeof An=="function"&&(Dn||(Dn=i.jsx(An,{}))),i.jsxs(je,{...Ae,ref:n,onClick:De,...ce,...!Ut(je)&&{ownerState:{...le,...Ae.ownerState}},className:de(me.root,Ae.className,l,V&&"MuiInputBase-readOnly"),children:[G,i.jsx(pn.Provider,{value:null,children:i.jsx(Ee,{"aria-invalid":z.error,"aria-describedby":a,autoComplete:r,autoFocus:s,defaultValue:h,disabled:z.disabled,id:g,onAnimationStart:M,name:A,placeholder:I,readOnly:V,required:z.required,rows:T,value:ue,onKeyDown:F,onKeyUp:E,type:X,...R,...!Ut(Ee)&&{as:Me,ownerState:{...le,...R.ownerState}},ref:U,className:de(me.input,R.className,V&&"MuiInputBase-readOnly"),onBlur:Re,onChange:Se,onFocus:Ie})}),u,ee?ee({...z,startAdornment:G}):null]})]})});function Ci(e){return be("MuiInput",e)}const rt={...nt,...he("MuiInput",["root","underline","input"])};function ji(e){return be("MuiOutlinedInput",e)}const Ne={...nt,...he("MuiOutlinedInput",["root","notchedOutline","input"])};function Si(e){return be("MuiFilledInput",e)}const Ke={...nt,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Ri=Fe(i.jsx("path",{d:"M7 10l5 5 5-5z"})),Pi={entering:{opacity:1},entered:{opacity:1}},Zt=c.forwardRef(function(t,n){const o=cn(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:l,easing:p,in:m,onEnter:v,onEntered:h,onEntering:w,onExit:f,onExited:u,onExiting:k,style:b,timeout:g=a,TransitionComponent:j=ii,...x}=t,y=c.useRef(null),d=Be(y,Et(l),n),S=F=>E=>{if(F){const I=y.current;E===void 0?F(I):F(I,E)}},P=S(w),D=S((F,E)=>{ai(F);const I=Cn({style:b,timeout:g,easing:p},{mode:"enter"});F.style.webkitTransition=o.transitions.create("opacity",I),F.style.transition=o.transitions.create("opacity",I),v&&v(F,E)}),A=S(h),O=S(k),H=S(F=>{const E=Cn({style:b,timeout:g,easing:p},{mode:"exit"});F.style.webkitTransition=o.transitions.create("opacity",E),F.style.transition=o.transitions.create("opacity",E),f&&f(F)}),B=S(u),q=F=>{r&&r(y.current,F)};return i.jsx(j,{appear:s,in:m,nodeRef:y,onEnter:D,onEntered:A,onEntering:P,onExit:H,onExited:B,onExiting:O,addEndListener:q,timeout:g,...x,children:(F,{ownerState:E,...I})=>c.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!m?"hidden":void 0,...Pi[F],...b,...l.props.style},ref:d,...I})})});function Ei(e){return be("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const Fi=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},Ei,t)},Ii=W("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),So=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiBackdrop"}),{children:a,className:r,component:s="div",invisible:l=!1,open:p,components:m={},componentsProps:v={},slotProps:h={},slots:w={},TransitionComponent:f,transitionDuration:u,...k}=o,b={...o,component:s,invisible:l},g=Fi(b),j={transition:f,root:m.Root,...w},x={...v,...h},y={component:s,slots:j,slotProps:x},[d,S]=pe("root",{elementType:Ii,externalForwardedProps:y,className:de(g.root,r),ownerState:b}),[P,D]=pe("transition",{elementType:Zt,externalForwardedProps:y,ownerState:b});return i.jsx(P,{in:p,timeout:u,...k,...D,children:i.jsx(d,{"aria-hidden":!0,...S,classes:g,ref:n,children:a})})});function zn(e){return e.substring(2).toLowerCase()}function Ti(e,t){return t.documentElement.clientWidth(setTimeout(()=>{p.current=!0},0),()=>{p.current=!1}),[]);const v=Be(Et(t),l),h=tt(u=>{const k=m.current;m.current=!1;const b=Te(l.current);if(!p.current||!l.current||"clientX"in u&&Ti(u,b))return;if(s.current){s.current=!1;return}let g;u.composedPath?g=u.composedPath().includes(l.current):g=!b.documentElement.contains(u.target)||l.current.contains(u.target),!g&&(n||!k)&&a(u)}),w=u=>k=>{m.current=!0;const b=t.props[u];b&&b(k)},f={ref:v};return r!==!1&&(f[r]=w(r)),c.useEffect(()=>{if(r!==!1){const u=zn(r),k=Te(l.current),b=()=>{s.current=!0};return k.addEventListener(u,h),k.addEventListener("touchmove",b),()=>{k.removeEventListener(u,h),k.removeEventListener("touchmove",b)}}},[h,r]),o!==!1&&(f[o]=w(o)),c.useEffect(()=>{if(o!==!1){const u=zn(o),k=Te(l.current);return k.addEventListener(u,h),()=>{k.removeEventListener(u,h)}}},[h,o]),c.cloneElement(t,f)}function Ro(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ai(e){const t=Te(e);return t.body===e?We(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pt(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mn(e){return parseInt(We(e).getComputedStyle(e).paddingRight,10)||0}function zi(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function On(e,t,n,o,a){const r=[t,n,...o];[].forEach.call(e.children,s=>{const l=!r.includes(s),p=!zi(s);l&&p&&pt(s,a)})}function $t(e,t){let n=-1;return e.some((o,a)=>t(o)?(n=a,!0):!1),n}function Mi(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(Ai(o)){const s=Ro(We(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Mn(o)+s}px`;const l=Te(o).querySelectorAll(".mui-fixed");[].forEach.call(l,p=>{n.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${Mn(p)+s}px`})}let r;if(o.parentNode instanceof DocumentFragment)r=Te(o).body;else{const s=o.parentElement,l=We(o);r=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:o}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:s,property:l})=>{r?s.style.setProperty(l,r):s.style.removeProperty(l)})}}function Oi(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Li{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&pt(t.modalRef,!1);const a=Oi(n);On(n,t.mount,t.modalRef,a,!0);const r=$t(this.containers,s=>s.container===n);return r!==-1?(this.containers[r].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),o)}mount(t,n){const o=$t(this.containers,r=>r.modals.includes(t)),a=this.containers[o];a.restore||(a.restore=Mi(a,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const a=$t(this.containers,s=>s.modals.includes(t)),r=this.containers[a];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(o,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&pt(t.modalRef,n),On(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=r.modals[r.modals.length-1];s.modalRef&&pt(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Ni=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $i(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Wi(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Hi(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Wi(e))}function Bi(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ni)).forEach((o,a)=>{const r=$i(o);r===-1||!Hi(o)||(r===0?t.push(o):n.push({documentOrder:a,tabIndex:r,node:o}))}),n.sort((o,a)=>o.tabIndex===a.tabIndex?o.documentOrder-a.documentOrder:o.tabIndex-a.tabIndex).map(o=>o.node).concat(t)}function qi(){return!0}function Ui(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:r=Bi,isEnabled:s=qi,open:l}=e,p=c.useRef(!1),m=c.useRef(null),v=c.useRef(null),h=c.useRef(null),w=c.useRef(null),f=c.useRef(!1),u=c.useRef(null),k=Be(Et(t),u),b=c.useRef(null);c.useEffect(()=>{!l||!u.current||(f.current=!n)},[n,l]),c.useEffect(()=>{if(!l||!u.current)return;const x=Te(u.current);return u.current.contains(x.activeElement)||(u.current.hasAttribute("tabIndex")||u.current.setAttribute("tabIndex","-1"),f.current&&u.current.focus()),()=>{a||(h.current&&h.current.focus&&(p.current=!0,h.current.focus()),h.current=null)}},[l]),c.useEffect(()=>{if(!l||!u.current)return;const x=Te(u.current),y=P=>{b.current=P,!(o||!s()||P.key!=="Tab")&&x.activeElement===u.current&&P.shiftKey&&(p.current=!0,v.current&&v.current.focus())},d=()=>{const P=u.current;if(P===null)return;if(!x.hasFocus()||!s()||p.current){p.current=!1;return}if(P.contains(x.activeElement)||o&&x.activeElement!==m.current&&x.activeElement!==v.current)return;if(x.activeElement!==w.current)w.current=null;else if(w.current!==null)return;if(!f.current)return;let D=[];if((x.activeElement===m.current||x.activeElement===v.current)&&(D=r(u.current)),D.length>0){const A=!!(b.current?.shiftKey&&b.current?.key==="Tab"),O=D[0],H=D[D.length-1];typeof O!="string"&&typeof H!="string"&&(A?H.focus():O.focus())}else P.focus()};x.addEventListener("focusin",d),x.addEventListener("keydown",y,!0);const S=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&d()},50);return()=>{clearInterval(S),x.removeEventListener("focusin",d),x.removeEventListener("keydown",y,!0)}},[n,o,a,s,l,r]);const g=x=>{h.current===null&&(h.current=x.relatedTarget),f.current=!0,w.current=x.target;const y=t.props.onFocus;y&&y(x)},j=x=>{h.current===null&&(h.current=x.relatedTarget),f.current=!0};return i.jsxs(c.Fragment,{children:[i.jsx("div",{tabIndex:l?0:-1,onFocus:j,ref:m,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:k,onFocus:g}),i.jsx("div",{tabIndex:l?0:-1,onFocus:j,ref:v,"data-testid":"sentinelEnd"})]})}function _i(e){return typeof e=="function"?e():e}function Ki(e){return e?e.props.hasOwnProperty("in"):!1}const Ln=()=>{},xt=new Li;function Vi(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:a=!1,onTransitionEnter:r,onTransitionExited:s,children:l,onClose:p,open:m,rootRef:v}=e,h=c.useRef({}),w=c.useRef(null),f=c.useRef(null),u=Be(f,v),[k,b]=c.useState(!m),g=Ki(l);let j=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(j=!1);const x=()=>Te(w.current),y=()=>(h.current.modalRef=f.current,h.current.mount=w.current,h.current),d=()=>{xt.mount(y(),{disableScrollLock:o}),f.current&&(f.current.scrollTop=0)},S=tt(()=>{const E=_i(t)||x().body;xt.add(y(),E),f.current&&d()}),P=()=>xt.isTopModal(y()),D=tt(E=>{w.current=E,E&&(m&&P()?d():f.current&&pt(f.current,j))}),A=c.useCallback(()=>{xt.remove(y(),j)},[j]);c.useEffect(()=>()=>{A()},[A]),c.useEffect(()=>{m?S():(!g||!a)&&A()},[m,A,g,a,S]);const O=E=>I=>{E.onKeyDown?.(I),!(I.key!=="Escape"||I.which===229||!P())&&(n||(I.stopPropagation(),p&&p(I,"escapeKeyDown")))},H=E=>I=>{E.onClick?.(I),I.target===I.currentTarget&&p&&p(I,"backdropClick")};return{getRootProps:(E={})=>{const I=_t(e);delete I.onTransitionEnter,delete I.onTransitionExited;const V={...I,...E};return{role:"presentation",...V,onKeyDown:O(V),ref:u}},getBackdropProps:(E={})=>{const I=E;return{"aria-hidden":!0,...I,onClick:H(I),open:m}},getTransitionProps:()=>{const E=()=>{b(!1),r&&r()},I=()=>{b(!0),s&&s(),a&&A()};return{onEnter:Fn(E,l?.props.onEnter??Ln),onExited:Fn(I,l?.props.onExited??Ln)}},rootRef:u,portalRef:D,isTopModal:P,exited:k,hasTransition:g}}function Gi(e){return be("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const Xi=e=>{const{open:t,exited:n,classes:o}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Gi,o)},Yi=W("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Ji=W(So,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Po=c.forwardRef(function(t,n){const o=ye({name:"MuiModal",props:t}),{BackdropComponent:a=Ji,BackdropProps:r,classes:s,className:l,closeAfterTransition:p=!1,children:m,container:v,component:h,components:w={},componentsProps:f={},disableAutoFocus:u=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:b=!1,disablePortal:g=!1,disableRestoreFocus:j=!1,disableScrollLock:x=!1,hideBackdrop:y=!1,keepMounted:d=!1,onClose:S,onTransitionEnter:P,onTransitionExited:D,open:A,slotProps:O={},slots:H={},theme:B,...q}=o,F={...o,closeAfterTransition:p,disableAutoFocus:u,disableEnforceFocus:k,disableEscapeKeyDown:b,disablePortal:g,disableRestoreFocus:j,disableScrollLock:x,hideBackdrop:y,keepMounted:d},{getRootProps:E,getBackdropProps:I,getTransitionProps:V,portalRef:ee,isTopModal:T,exited:Q,hasTransition:ne}=Vi({...F,rootRef:n}),J={...F,exited:Q},G=Xi(J),X={};if(m.props.tabIndex===void 0&&(X.tabIndex="-1"),ne){const{onEnter:$,onExited:U}=V();X.onEnter=$,X.onExited=U}const oe={slots:{root:w.Root,backdrop:w.Backdrop,...H},slotProps:{...f,...O}},[ce,ue]=pe("root",{ref:n,elementType:Yi,externalForwardedProps:{...oe,...q,component:h},getSlotProps:E,ownerState:J,className:de(l,G?.root,!J.open&&J.exited&&G?.hidden)}),[Ce,te]=pe("backdrop",{ref:r?.ref,elementType:a,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:$=>I({...$,onClick:U=>{$?.onClick&&$.onClick(U)}}),className:de(r?.className,G?.backdrop),ownerState:J});return!d&&!A&&(!ne||Q)?null:i.jsx(ri,{ref:ee,container:v,disablePortal:g,children:i.jsxs(ce,{...ue,children:[!y&&a?i.jsx(Ce,{...te}):null,i.jsx(Ui,{disableEnforceFocus:k,disableAutoFocus:u,disableRestoreFocus:j,isEnabled:T,open:A,children:c.cloneElement(m,X)})]})})});function Zi(e){return be("MuiDialog",e)}const Wt=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Eo=c.createContext({}),Qi=W(So,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ea=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:a,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(o))}`,a&&"paperFullWidth",r&&"paperFullScreen"]};return ve(s,Zi,t)},ta=W(Po,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),na=W("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),oa=W(mt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ke(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wt.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Je=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiDialog"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":p=!0,BackdropComponent:m,BackdropProps:v,children:h,className:w,disableEscapeKeyDown:f=!1,fullScreen:u=!1,fullWidth:k=!1,maxWidth:b="sm",onClick:g,onClose:j,open:x,PaperComponent:y=mt,PaperProps:d={},scroll:S="paper",slots:P={},slotProps:D={},TransitionComponent:A=Zt,transitionDuration:O=r,TransitionProps:H,...B}=o,q={...o,disableEscapeKeyDown:f,fullScreen:u,fullWidth:k,maxWidth:b,scroll:S},F=ea(q),E=c.useRef(),I=K=>{E.current=K.target===K.currentTarget},V=K=>{g&&g(K),E.current&&(E.current=null,j&&j(K,"backdropClick"))},ee=sn(l),T=c.useMemo(()=>({titleId:ee}),[ee]),Q={transition:A,...P},ne={transition:H,paper:d,backdrop:v,...D},J={slots:Q,slotProps:ne},[G,X]=pe("root",{elementType:ta,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:q,className:de(F.root,w),ref:n}),[oe,ce]=pe("backdrop",{elementType:Qi,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:q}),[ue,Ce]=pe("paper",{elementType:oa,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:q,className:de(F.paper,d.className)}),[te,$]=pe("container",{elementType:na,externalForwardedProps:J,ownerState:q,className:F.container}),[U,_]=pe("transition",{elementType:Zt,externalForwardedProps:J,ownerState:q,additionalProps:{appear:!0,in:x,timeout:O,role:"presentation"}});return i.jsx(G,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:O,as:m,...ce}},disableEscapeKeyDown:f,onClose:j,open:x,onClick:V,...X,...B,children:i.jsx(U,{..._,children:i.jsx(te,{onMouseDown:I,...$,children:i.jsx(ue,{as:y,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":ee,"aria-modal":p,...Ce,children:i.jsx(Eo.Provider,{value:T,children:h})})})})})});function ia(e){return be("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const aa=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},ia,t)},ra=W("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Ze=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:r=!1,...s}=o,l={...o,disableSpacing:r},p=aa(l);return i.jsx(ra,{className:de(p.root,a),ownerState:l,ref:n,...s})});function sa(e){return be("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);function la(e){return be("MuiDialogTitle",e)}const ca=he("MuiDialogTitle",["root"]),pa=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},sa,t)},da=W("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ke(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${ca.root} + &`]:{paddingTop:0}}}]}))),Qe=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiDialogContent"}),{className:a,dividers:r=!1,...s}=o,l={...o,dividers:r},p=pa(l);return i.jsx(da,{className:de(p.root,a),ownerState:l,ref:n,...s})}),ua=e=>{const{classes:t}=e;return ve({root:["root"]},la,t)},ma=W(Y,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),et=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiDialogTitle"}),{className:a,id:r,...s}=o,l=o,p=ua(l),{titleId:m=r}=c.useContext(Eo);return i.jsx(ma,{component:"h2",className:de(p.root,a),ownerState:l,ref:n,variant:"h6",id:r??m,...s})});function fa(e){return be("MuiDivider",e)}he("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const va=e=>{const{absolute:t,children:n,classes:o,flexItem:a,light:r,orientation:s,textAlign:l,variant:p}=e;return ve({root:["root",t&&"absolute",p,r&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},fa,o)},xa=W("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ke(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),ga=W("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ke(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ct=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiDivider"}),{absolute:a=!1,children:r,className:s,orientation:l="horizontal",component:p=r||l==="vertical"?"div":"hr",flexItem:m=!1,light:v=!1,role:h=p!=="hr"?"separator":void 0,textAlign:w="center",variant:f="fullWidth",...u}=o,k={...o,absolute:a,component:p,flexItem:m,light:v,orientation:l,role:h,textAlign:w,variant:f},b=va(k);return i.jsx(xa,{as:p,className:de(b.root,s),role:h,ref:n,ownerState:k,"aria-orientation":h==="separator"&&(p!=="hr"||l==="vertical")?l:void 0,...u,children:r?i.jsx(ga,{className:b.wrapper,ownerState:k,children:r}):null})});Ct&&(Ct.muiSkipListHighlight=!0);const ha=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:a,size:r,hiddenLabel:s,multiline:l}=e,p={root:["root",!n&&"underline",o&&"adornedStart",a&&"adornedEnd",r==="small"&&`size${fe(r)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},m=ve(p,Si,t);return{...t,...m}},ba=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ft(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Ke.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Ke.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ke.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ke.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ke.disabled}, .${Ke.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ke.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Pt()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ya=W(Dt,{name:"MuiFilledInput",slot:"Input",overridesResolver:It})(ke(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),un=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,hiddenLabel:p,inputComponent:m="input",multiline:v=!1,slotProps:h,slots:w={},type:f="text",...u}=o,k={...o,disableUnderline:a,fullWidth:l,inputComponent:m,multiline:v,type:f},b=ha(o),g={root:{ownerState:k},input:{ownerState:k}},j=h??s?ln(g,h??s):g,x=w.root??r.Root??ba,y=w.input??r.Input??ya;return i.jsx(dn,{slots:{root:x,input:y},slotProps:j,fullWidth:l,inputComponent:m,multiline:v,ref:n,type:f,...u,classes:b})});un.muiName="Input";function wa(e){return be("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ka=e=>{const{classes:t,margin:n,fullWidth:o}=e,a={root:["root",n!=="none"&&`margin${fe(n)}`,o&&"fullWidth"]};return ve(a,wa,t)},Ca=W("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${fe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ja=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiFormControl"}),{children:a,className:r,color:s="primary",component:l="div",disabled:p=!1,error:m=!1,focused:v,fullWidth:h=!1,hiddenLabel:w=!1,margin:f="none",required:u=!1,size:k="medium",variant:b="outlined",...g}=o,j={...o,color:s,component:l,disabled:p,error:m,fullWidth:h,hiddenLabel:w,margin:f,required:u,size:k,variant:b},x=ka(j),[y,d]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,I=>{if(!Mt(I,["Input","Select"]))return;const V=Mt(I,["Select"])?I.props.input:I;V&&yi(V.props)&&(E=!0)}),E}),[S,P]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,I=>{Mt(I,["Input","Select"])&&(kt(I.props,!0)||kt(I.props.inputProps,!0))&&(E=!0)}),E}),[D,A]=c.useState(!1);p&&D&&A(!1);const O=v!==void 0&&!p?v:D;let H;c.useRef(!1);const B=c.useCallback(()=>{P(!0)},[]),q=c.useCallback(()=>{P(!1)},[]),F=c.useMemo(()=>({adornedStart:y,setAdornedStart:d,color:s,disabled:p,error:m,filled:S,focused:O,fullWidth:h,hiddenLabel:w,size:k,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:q,onFilled:B,registerEffect:H,required:u,variant:b}),[y,s,p,m,S,O,h,w,H,q,B,u,k,b]);return i.jsx(pn.Provider,{value:F,children:i.jsx(Ca,{as:l,ownerState:j,className:de(x.root,r),ref:n,...g,children:a})})});function Sa(e){return be("MuiFormHelperText",e)}const Nn=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $n;const Ra=e=>{const{classes:t,contained:n,size:o,disabled:a,error:r,filled:s,focused:l,required:p}=e,m={root:["root",a&&"disabled",r&&"error",o&&`size${fe(o)}`,n&&"contained",l&&"focused",s&&"filled",p&&"required"]};return ve(m,Sa,t)},Pa=W("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nn.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Ea=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiFormHelperText"}),{children:a,className:r,component:s="p",disabled:l,error:p,filled:m,focused:v,margin:h,required:w,variant:f,...u}=o,k=at(),b=it({props:o,muiFormControl:k,states:["variant","size","disabled","error","filled","focused","required"]}),g={...o,component:s,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete g.ownerState;const j=Ra(g);return i.jsx(Pa,{as:s,className:de(j.root,r),ref:n,...u,ownerState:g,children:a===" "?$n||($n=i.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function Fa(e){return be("MuiFormLabel",e)}const dt=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ia=e=>{const{classes:t,color:n,focused:o,disabled:a,error:r,filled:s,required:l}=e,p={root:["root",`color${fe(n)}`,a&&"disabled",r&&"error",s&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",r&&"error"]};return ve(p,Fa,t)},Ta=W("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{[`&.${dt.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${dt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${dt.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Da=W("span",{name:"MuiFormLabel",slot:"Asterisk"})(ke(({theme:e})=>({[`&.${dt.error}`]:{color:(e.vars||e).palette.error.main}}))),Aa=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiFormLabel"}),{children:a,className:r,color:s,component:l="label",disabled:p,error:m,filled:v,focused:h,required:w,...f}=o,u=at(),k=it({props:o,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),b={...o,color:k.color||"primary",component:l,disabled:k.disabled,error:k.error,filled:k.filled,focused:k.focused,required:k.required},g=Ia(b);return i.jsxs(Ta,{as:l,ownerState:b,className:de(g.root,r),ref:n,...f,children:[a,k.required&&i.jsxs(Da,{ownerState:b,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]})}),za=e=>{const{classes:t,disableUnderline:n}=e,a=ve({root:["root",!n&&"underline"],input:["input"]},Ci,t);return{...t,...a}},Ma=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ft(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${rt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${rt.disabled}, .${rt.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${rt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Pt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),Oa=W(Dt,{name:"MuiInput",slot:"Input",overridesResolver:It})({}),mn=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,inputComponent:p="input",multiline:m=!1,slotProps:v,slots:h={},type:w="text",...f}=o,u=za(o),b={root:{ownerState:{disableUnderline:a}}},g=v??s?ln(v??s,b):b,j=h.root??r.Root??Ma,x=h.input??r.Input??Oa;return i.jsx(dn,{slots:{root:j,input:x},slotProps:g,fullWidth:l,inputComponent:p,multiline:m,ref:n,type:w,...f,classes:u})});mn.muiName="Input";function La(e){return be("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Na=e=>{const{classes:t,formControl:n,size:o,shrink:a,disableAnimation:r,variant:s,required:l}=e,p={root:["root",n&&"formControl",!r&&"animated",a&&"shrink",o&&o!=="medium"&&`size${fe(o)}`,s],asterisk:[l&&"asterisk"]},m=ve(p,La,t);return{...t,...m}},$a=W(Aa,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dt.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Wa=c.forwardRef(function(t,n){const o=ye({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:r,shrink:s,variant:l,className:p,...m}=o,v=at();let h=s;typeof h>"u"&&v&&(h=v.filled||v.focused||v.adornedStart);const w=it({props:o,muiFormControl:v,states:["size","variant","required","focused"]}),f={...o,disableAnimation:a,formControl:v,shrink:h,size:w.size,variant:w.variant,required:w.required,focused:w.focused},u=Na(f);return i.jsx($a,{"data-shrink":h,ref:n,className:de(u.root,p),...m,ownerState:f,classes:u})});function Ht(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wn(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Fo(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function st(e,t,n,o,a,r){let s=!1,l=a(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const p=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Fo(l,r)||p)l=a(e,l,n);else return l.focus(),!0}return!1}const Ha=c.forwardRef(function(t,n){const{actions:o,autoFocus:a=!1,autoFocusItem:r=!1,children:s,className:l,disabledItemsFocusable:p=!1,disableListWrap:m=!1,onKeyDown:v,variant:h="selectedMenu",...w}=t,f=c.useRef(null),u=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wt(()=>{a&&f.current.focus()},[a]),c.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(x,{direction:y})=>{const d=!f.current.style.width;if(x.clientHeight{const y=f.current,d=x.key;if(x.ctrlKey||x.metaKey||x.altKey){v&&v(x);return}const P=Te(y).activeElement;if(d==="ArrowDown")x.preventDefault(),st(y,P,m,p,Ht);else if(d==="ArrowUp")x.preventDefault(),st(y,P,m,p,Wn);else if(d==="Home")x.preventDefault(),st(y,null,m,p,Ht);else if(d==="End")x.preventDefault(),st(y,null,m,p,Wn);else if(d.length===1){const D=u.current,A=d.toLowerCase(),O=performance.now();D.keys.length>0&&(O-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&A!==D.keys[0]&&(D.repeating=!1)),D.lastTime=O,D.keys.push(A);const H=P&&!D.repeating&&Fo(P,D);D.previousKeyMatched&&(H||st(y,P,!1,p,Ht,D))?x.preventDefault():D.previousKeyMatched=!1}v&&v(x)},b=Be(f,n);let g=-1;c.Children.forEach(s,(x,y)=>{if(!c.isValidElement(x)){g===y&&(g+=1,g>=s.length&&(g=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||g===-1)&&(g=y),g===y&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const j=c.Children.map(s,(x,y)=>{if(y===g){const d={};return r&&(d.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(d.tabIndex=0),c.cloneElement(x,d)}return x});return i.jsx(Xt,{role:"menu",ref:b,className:l,onKeyDown:k,tabIndex:a?0:-1,...w,children:j})});function Ba(e){return be("MuiPopover",e)}he("MuiPopover",["root","paper"]);function Hn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Bn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function qn(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function gt(e){return typeof e=="function"?e():e}const qa=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},Ba,t)},Ua=W(Po,{name:"MuiPopover",slot:"Root"})({}),Io=W(mt,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),_a=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiPopover"}),{action:a,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:p="anchorEl",children:m,className:v,container:h,elevation:w=8,marginThreshold:f=16,open:u,PaperProps:k={},slots:b={},slotProps:g={},transformOrigin:j={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:y="auto",TransitionProps:d={},disableScrollLock:S=!1,...P}=o,D=c.useRef(),A={...o,anchorOrigin:s,anchorReference:p,elevation:w,marginThreshold:f,transformOrigin:j,TransitionComponent:x,transitionDuration:y,TransitionProps:d},O=qa(A),H=c.useCallback(()=>{if(p==="anchorPosition")return l;const $=gt(r),_=($&&$.nodeType===1?$:Te(D.current).body).getBoundingClientRect();return{top:_.top+Hn(_,s.vertical),left:_.left+Bn(_,s.horizontal)}},[r,s.horizontal,s.vertical,l,p]),B=c.useCallback($=>({vertical:Hn($,j.vertical),horizontal:Bn($,j.horizontal)}),[j.horizontal,j.vertical]),q=c.useCallback($=>{const U={width:$.offsetWidth,height:$.offsetHeight},_=B(U);if(p==="none")return{top:null,left:null,transformOrigin:qn(_)};const K=H();let C=K.top-_.vertical,z=K.left-_.horizontal;const Z=C+U.height,xe=z+U.width,Pe=We(gt(r)),Ie=Pe.innerHeight-f,Re=Pe.innerWidth-f;if(f!==null&&CIe){const Se=Z-Ie;C-=Se,_.vertical+=Se}if(f!==null&&zRe){const Se=xe-Re;z-=Se,_.horizontal+=Se}return{top:`${Math.round(C)}px`,left:`${Math.round(z)}px`,transformOrigin:qn(_)}},[r,p,H,B,f]),[F,E]=c.useState(u),I=c.useCallback(()=>{const $=D.current;if(!$)return;const U=q($);U.top!==null&&$.style.setProperty("top",U.top),U.left!==null&&($.style.left=U.left),$.style.transformOrigin=U.transformOrigin,E(!0)},[q]);c.useEffect(()=>(S&&window.addEventListener("scroll",I),()=>window.removeEventListener("scroll",I)),[r,S,I]);const V=()=>{I()},ee=()=>{E(!1)};c.useEffect(()=>{u&&I()}),c.useImperativeHandle(a,()=>u?{updatePosition:()=>{I()}}:null,[u,I]),c.useEffect(()=>{if(!u)return;const $=ko(()=>{I()}),U=We(gt(r));return U.addEventListener("resize",$),()=>{$.clear(),U.removeEventListener("resize",$)}},[r,u,I]);let T=y;const Q={slots:{transition:x,...b},slotProps:{transition:d,paper:k,...g}},[ne,J]=pe("transition",{elementType:Co,externalForwardedProps:Q,ownerState:A,getSlotProps:$=>({...$,onEntering:(U,_)=>{$.onEntering?.(U,_),V()},onExited:U=>{$.onExited?.(U),ee()}}),additionalProps:{appear:!0,in:u}});y==="auto"&&!ne.muiSupportAuto&&(T=void 0);const G=h||(r?Te(gt(r)).body:void 0),[X,{slots:oe,slotProps:ce,...ue}]=pe("root",{ref:n,elementType:Ua,externalForwardedProps:{...Q,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:xi(typeof g.backdrop=="function"?g.backdrop(A):g.backdrop,{invisible:!0})},container:G,open:u},ownerState:A,className:de(O.root,v)}),[Ce,te]=pe("paper",{ref:D,className:O.paper,elementType:Io,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:{elevation:w,style:F?void 0:{opacity:0}},ownerState:A});return i.jsx(X,{...ue,...!Ut(X)&&{slots:oe,slotProps:ce,disableScrollLock:S},children:i.jsx(ne,{...J,timeout:T,children:i.jsx(Ce,{...te,children:m})})})});function Ka(e){return be("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Va={vertical:"top",horizontal:"right"},Ga={vertical:"top",horizontal:"left"},Xa=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},Ka,t)},Ya=W(_a,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ja=W(Io,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Za=W(Ha,{name:"MuiMenu",slot:"List"})({outline:0}),Qa=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:r,className:s,disableAutoFocusItem:l=!1,MenuListProps:p={},onClose:m,open:v,PaperProps:h={},PopoverClasses:w,transitionDuration:f="auto",TransitionProps:{onEntering:u,...k}={},variant:b="selectedMenu",slots:g={},slotProps:j={},...x}=o,y=Go(),d={...o,autoFocus:a,disableAutoFocusItem:l,MenuListProps:p,onEntering:u,PaperProps:h,transitionDuration:f,TransitionProps:k,variant:b},S=Xa(d),P=a&&!l&&v,D=c.useRef(null),A=(T,Q)=>{D.current&&D.current.adjustStyleForScrollbar(T,{direction:y?"rtl":"ltr"}),u&&u(T,Q)},O=T=>{T.key==="Tab"&&(T.preventDefault(),m&&m(T,"tabKeyDown"))};let H=-1;c.Children.map(r,(T,Q)=>{c.isValidElement(T)&&(T.props.disabled||(b==="selectedMenu"&&T.props.selected||H===-1)&&(H=Q))});const B={slots:g,slotProps:{list:p,transition:k,paper:h,...j}},q=ti({elementType:g.root,externalSlotProps:j.root,ownerState:d,className:[S.root,s]}),[F,E]=pe("paper",{className:S.paper,elementType:Ja,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:d}),[I,V]=pe("list",{className:de(S.list,p.className),elementType:Za,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:T=>({...T,onKeyDown:Q=>{O(Q),T.onKeyDown?.(Q)}}),ownerState:d}),ee=typeof B.slotProps.transition=="function"?B.slotProps.transition(d):B.slotProps.transition;return i.jsx(Ya,{onClose:m,anchorOrigin:{vertical:"bottom",horizontal:y?"right":"left"},transformOrigin:y?Va:Ga,slots:{root:g.root,paper:F,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:q,paper:E,backdrop:typeof j.backdrop=="function"?j.backdrop(d):j.backdrop,transition:{...ee,onEntering:(...T)=>{A(...T),ee?.onEntering?.(...T)}}},open:v,ref:n,transitionDuration:f,ownerState:d,...x,classes:w,children:i.jsx(I,{actions:D,autoFocus:a&&(H===-1||l),autoFocusItem:P,variant:b,...V,children:r})})});function er(e){return be("MuiNativeSelect",e)}const fn=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tr=e=>{const{classes:t,variant:n,disabled:o,multiple:a,open:r,error:s}=e,l={select:["select",n,o&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",o&&"disabled"]};return ve(l,er,t)},To=W("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${fn.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),nr=W(To,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:He,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${fn.multiple}`]:t.multiple}]}})({}),Do=W("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${fn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),or=W(Do,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),ir=c.forwardRef(function(t,n){const{className:o,disabled:a,error:r,IconComponent:s,inputRef:l,variant:p="standard",...m}=t,v={...t,disabled:a,variant:p,error:r},h=tr(v);return i.jsxs(c.Fragment,{children:[i.jsx(nr,{ownerState:v,className:de(h.select,o),disabled:a,ref:l||n,...m}),t.multiple?null:i.jsx(or,{as:s,ownerState:v,className:h.icon})]})});var Un;const ar=W("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:He})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rr=W("legend",{name:"MuiNotchedOutlined",shouldForwardProp:He})(ke(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function sr(e){const{children:t,classes:n,className:o,label:a,notched:r,...s}=e,l=a!=null&&a!=="",p={...e,notched:r,withLabel:l};return i.jsx(ar,{"aria-hidden":!0,className:o,ownerState:p,...s,children:i.jsx(rr,{ownerState:p,children:l?i.jsx("span",{children:a}):Un||(Un=i.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const lr=e=>{const{classes:t}=e,o=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ji,t);return{...t,...o}},cr=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ft})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ne.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Pt()).map(([n])=>({props:{color:n},style:{[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ne.error} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ne.disabled} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),pr=W(sr,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),dr=W(Dt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:It})(ke(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),vn=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:r=!1,inputComponent:s="input",label:l,multiline:p=!1,notched:m,slots:v={},slotProps:h={},type:w="text",...f}=o,u=lr(o),k=at(),b=it({props:o,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),g={...o,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:k,fullWidth:r,hiddenLabel:b.hiddenLabel,multiline:p,size:b.size,type:w},j=v.root??a.Root??cr,x=v.input??a.Input??dr,[y,d]=pe("notchedOutline",{elementType:pr,className:u.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:v,slotProps:h},additionalProps:{label:l!=null&&l!==""&&b.required?i.jsxs(c.Fragment,{children:[l," ","*"]}):l}});return i.jsx(dn,{slots:{root:j,input:x},slotProps:h,renderSuffix:S=>i.jsx(y,{...d,notched:typeof m<"u"?m:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:r,inputComponent:s,multiline:p,ref:n,type:w,...f,classes:{...u,notchedOutline:null}})});vn.muiName="Input";function Ao(e){return be("MuiSelect",e)}const lt=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _n;const ur=W(To,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${lt.select}`]:t.select},{[`&.${lt.select}`]:t[n.variant]},{[`&.${lt.error}`]:t.error},{[`&.${lt.multiple}`]:t.multiple}]}})({[`&.${lt.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mr=W(Do,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),fr=W("input",{shouldForwardProp:e=>Xo(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Kn(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function vr(e){return e==null||typeof e=="string"&&!e.trim()}const xr=e=>{const{classes:t,variant:n,disabled:o,multiple:a,open:r,error:s}=e,l={select:["select",n,o&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return ve(l,Ao,t)},gr=c.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":a,autoFocus:r,autoWidth:s,children:l,className:p,defaultOpen:m,defaultValue:v,disabled:h,displayEmpty:w,error:f=!1,IconComponent:u,inputRef:k,labelId:b,MenuProps:g={},multiple:j,name:x,onBlur:y,onChange:d,onClose:S,onFocus:P,onOpen:D,open:A,readOnly:O,renderValue:H,required:B,SelectDisplayProps:q={},tabIndex:F,type:E,value:I,variant:V="standard",...ee}=t,[T,Q]=jn({controlled:I,default:v,name:"Select"}),[ne,J]=jn({controlled:A,default:m,name:"Select"}),G=c.useRef(null),X=c.useRef(null),[oe,ce]=c.useState(null),{current:ue}=c.useRef(A!=null),[Ce,te]=c.useState(),$=Be(n,k),U=c.useCallback(L=>{X.current=L,L&&ce(L)},[]),_=oe?.parentNode;c.useImperativeHandle($,()=>({focus:()=>{X.current.focus()},node:G.current,value:T}),[T]),c.useEffect(()=>{m&&ne&&oe&&!ue&&(te(s?null:_.clientWidth),X.current.focus())},[oe,s]),c.useEffect(()=>{r&&X.current.focus()},[r]),c.useEffect(()=>{if(!b)return;const L=Te(X.current).getElementById(b);if(L){const ie=()=>{getSelection().isCollapsed&&X.current.focus()};return L.addEventListener("click",ie),()=>{L.removeEventListener("click",ie)}}},[b]);const K=(L,ie)=>{L?D&&D(ie):S&&S(ie),ue||(te(s?null:_.clientWidth),J(L))},C=L=>{L.button===0&&(L.preventDefault(),X.current.focus(),K(!0,L))},z=L=>{K(!1,L)},Z=c.Children.toArray(l),xe=L=>{const ie=Z.find(we=>we.props.value===L.target.value);ie!==void 0&&(Q(ie.props.value),d&&d(L,ie))},Pe=L=>ie=>{let we;if(ie.currentTarget.hasAttribute("tabindex")){if(j){we=Array.isArray(T)?T.slice():[];const Le=T.indexOf(L.props.value);Le===-1?we.push(L.props.value):we.splice(Le,1)}else we=L.props.value;if(L.props.onClick&&L.props.onClick(ie),T!==we&&(Q(we),d)){const Le=ie.nativeEvent||ie,ft=new Le.constructor(Le.type,Le);Object.defineProperty(ft,"target",{writable:!0,value:{value:we,name:x}}),d(ft,L)}j||K(!1,ie)}},Ie=L=>{O||[" ","ArrowUp","ArrowDown","Enter"].includes(L.key)&&(L.preventDefault(),K(!0,L))},Re=oe!==null&&ne,Se=L=>{!Re&&y&&(Object.defineProperty(L,"target",{writable:!0,value:{value:T,name:x}}),y(L))};delete ee["aria-invalid"];let De,Me;const R=[];let M=!1;(kt({value:T})||w)&&(H?De=H(T):M=!0);const le=Z.map(L=>{if(!c.isValidElement(L))return null;let ie;if(j){if(!Array.isArray(T))throw new Error(go(2));ie=T.some(we=>Kn(we,L.props.value)),ie&&M&&R.push(L.props.children)}else ie=Kn(T,L.props.value),ie&&M&&(Me=L.props.children);return c.cloneElement(L,{"aria-selected":ie?"true":"false",onClick:Pe(L),onKeyUp:we=>{we.key===" "&&we.preventDefault(),L.props.onKeyUp&&L.props.onKeyUp(we)},role:"option",selected:ie,value:void 0,"data-value":L.props.value})});M&&(j?R.length===0?De=null:De=R.reduce((L,ie,we)=>(L.push(ie),we{const{classes:t}=e,o=ve({root:["root"]},Ao,t);return{...t,...o}},xn={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>He(e)&&e!=="variant"},br=W(mn,xn)(""),yr=W(vn,xn)(""),wr=W(un,xn)(""),zo=c.forwardRef(function(t,n){const o=ye({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:r,classes:s={},className:l,defaultOpen:p=!1,displayEmpty:m=!1,IconComponent:v=Ri,id:h,input:w,inputProps:f,label:u,labelId:k,MenuProps:b,multiple:g=!1,native:j=!1,onClose:x,onOpen:y,open:d,renderValue:S,SelectDisplayProps:P,variant:D="outlined",...A}=o,O=j?ir:gr,H=at(),B=it({props:o,muiFormControl:H,states:["variant","error"]}),q=B.variant||D,F={...o,variant:q,classes:s},E=hr(F),{root:I,...V}=E,ee=w||{standard:i.jsx(br,{ownerState:F}),outlined:i.jsx(yr,{label:u,ownerState:F}),filled:i.jsx(wr,{ownerState:F})}[q],T=Be(n,Et(ee));return i.jsx(c.Fragment,{children:c.cloneElement(ee,{inputComponent:O,inputProps:{children:r,error:B.error,IconComponent:v,variant:q,type:void 0,multiple:g,...j?{id:h}:{autoWidth:a,defaultOpen:p,displayEmpty:m,labelId:k,MenuProps:b,onClose:x,onOpen:y,open:d,renderValue:S,SelectDisplayProps:{id:h,...P}},...f,classes:f?ln(V,f.classes):V,...w?w.props.inputProps:{}},...(g&&j||m)&&q==="outlined"?{notched:!0}:{},ref:T,className:de(ee.props.className,l,E.root),...!w&&{variant:q},...A})})});zo.muiName="Select";function kr(e){return be("MuiSkeleton",e)}he("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Cr=e=>{const{classes:t,variant:n,animation:o,hasChildren:a,width:r,height:s}=e;return ve({root:["root",n,o,a&&"withChildren",a&&!r&&"fitContent",a&&!s&&"heightAuto"]},kr,t)},Qt=bo` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`,en=bo` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`,jr=typeof Qt!="string"?ho` + animation: ${Qt} 2s ease-in-out 0.5s infinite; + `:null,Sr=typeof en!="string"?ho` + &::after { + animation: ${en} 2s linear 0.5s infinite; + } + `:null,Rr=W("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(ke(({theme:e})=>{const t=mi(e.shape.borderRadius)||"px",n=fi(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:o})=>o.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:o})=>o.hasChildren&&!o.width,style:{maxWidth:"fit-content"}},{props:({ownerState:o})=>o.hasChildren&&!o.height,style:{height:"auto"}},{props:{animation:"pulse"},style:jr||{animation:`${Qt} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + 90deg, + transparent, + ${(e.vars||e).palette.action.hover}, + transparent + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Sr||{"&::after":{animation:`${en} 2s linear 0.5s infinite`}}}]}})),Ye=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiSkeleton"}),{animation:a="pulse",className:r,component:s="span",height:l,style:p,variant:m="text",width:v,...h}=o,w={...o,animation:a,component:s,variant:m,hasChildren:!!h.children},f=Cr(w);return i.jsx(Rr,{as:s,ref:n,className:de(f.root,r),ownerState:w,...h,style:{width:v,height:l,...p}})});function Pr(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:o,open:a,resumeHideDuration:r}=e,s=ni();c.useEffect(()=>{if(!a)return;function g(j){j.defaultPrevented||j.key==="Escape"&&o?.(j,"escapeKeyDown")}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[a,o]);const l=tt((g,j)=>{o?.(g,j)}),p=tt(g=>{!o||g==null||s.start(g,()=>{l(null,"timeout")})});c.useEffect(()=>(a&&p(t),s.clear),[a,t,p,s]);const m=g=>{o?.(g,"clickaway")},v=s.clear,h=c.useCallback(()=>{t!=null&&p(r??t*.5)},[t,r,p]),w=g=>j=>{const x=g.onBlur;x?.(j),h()},f=g=>j=>{const x=g.onFocus;x?.(j),v()},u=g=>j=>{const x=g.onMouseEnter;x?.(j),v()},k=g=>j=>{const x=g.onMouseLeave;x?.(j),h()};return c.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",v)}},[n,a,h,v]),{getRootProps:(g={})=>{const j={..._t(e),..._t(g)};return{role:"presentation",...g,...j,onBlur:w(j),onFocus:f(j),onMouseEnter:u(j),onMouseLeave:k(j)}},onClickAway:m}}function Er(e){return be("MuiSnackbarContent",e)}he("MuiSnackbarContent",["root","message","action"]);const Fr=e=>{const{classes:t}=e;return ve({root:["root"],action:["action"],message:["message"]},Er,t)},Ir=W(mt,{name:"MuiSnackbarContent",slot:"Root"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(bn(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:bn(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Tr=W("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Dr=W("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ar=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiSnackbarContent"}),{action:a,className:r,message:s,role:l="alert",...p}=o,m=o,v=Fr(m);return i.jsxs(Ir,{role:l,elevation:6,className:de(v.root,r),ownerState:m,ref:n,...p,children:[i.jsx(Tr,{className:v.message,ownerState:m,children:s}),a?i.jsx(Dr,{className:v.action,ownerState:m,children:a}):null]})});function zr(e){return be("MuiSnackbar",e)}he("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mr=e=>{const{classes:t,anchorOrigin:n}=e,o={root:["root",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`]};return ve(o,zr,t)},Or=W("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}`]]}})(ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Lr=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiSnackbar"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:p}={vertical:"bottom",horizontal:"left"},autoHideDuration:m=null,children:v,className:h,ClickAwayListenerProps:w,ContentProps:f,disableWindowBlurListener:u=!1,message:k,onBlur:b,onClose:g,onFocus:j,onMouseEnter:x,onMouseLeave:y,open:d,resumeHideDuration:S,slots:P={},slotProps:D={},TransitionComponent:A,transitionDuration:O=r,TransitionProps:{onEnter:H,onExited:B,...q}={},...F}=o,E={...o,anchorOrigin:{vertical:l,horizontal:p},autoHideDuration:m,disableWindowBlurListener:u,TransitionComponent:A,transitionDuration:O},I=Mr(E),{getRootProps:V,onClickAway:ee}=Pr({...E}),[T,Q]=c.useState(!0),ne=K=>{Q(!0),B&&B(K)},J=(K,C)=>{Q(!1),H&&H(K,C)},G={slots:{transition:A,...P},slotProps:{content:f,clickAwayListener:w,transition:q,...D}},[X,oe]=pe("root",{ref:n,className:[I.root,h],elementType:Or,getSlotProps:V,externalForwardedProps:{...G,...F},ownerState:E}),[ce,{ownerState:ue,...Ce}]=pe("clickAwayListener",{elementType:Di,externalForwardedProps:G,getSlotProps:K=>({onClickAway:(...C)=>{const z=C[0];K.onClickAway?.(...C),!z?.defaultMuiPrevented&&ee(...C)}}),ownerState:E}),[te,$]=pe("content",{elementType:Ar,shouldForwardComponentProp:!0,externalForwardedProps:G,additionalProps:{message:k,action:s},ownerState:E}),[U,_]=pe("transition",{elementType:Co,externalForwardedProps:G,getSlotProps:K=>({onEnter:(...C)=>{K.onEnter?.(...C),J(...C)},onExited:(...C)=>{K.onExited?.(...C),ne(...C)}}),additionalProps:{appear:!0,in:d,timeout:O,direction:l==="top"?"down":"up"},ownerState:E});return!d&&T?null:i.jsx(ce,{...Ce,...P.clickAwayListener&&{ownerState:ue},children:i.jsx(X,{...oe,children:i.jsx(U,{..._,children:v||i.jsx(te,{...$})})})})});function Nr(e){return be("MuiTextField",e)}he("MuiTextField",["root"]);const $r={standard:mn,filled:un,outlined:vn},Wr=e=>{const{classes:t}=e;return ve({root:["root"]},Nr,t)},Hr=W(ja,{name:"MuiTextField",slot:"Root"})({}),Ve=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:r=!1,children:s,className:l,color:p="primary",defaultValue:m,disabled:v=!1,error:h=!1,FormHelperTextProps:w,fullWidth:f=!1,helperText:u,id:k,InputLabelProps:b,inputProps:g,InputProps:j,inputRef:x,label:y,maxRows:d,minRows:S,multiline:P=!1,name:D,onBlur:A,onChange:O,onFocus:H,placeholder:B,required:q=!1,rows:F,select:E=!1,SelectProps:I,slots:V={},slotProps:ee={},type:T,value:Q,variant:ne="outlined",...J}=o,G={...o,autoFocus:r,color:p,disabled:v,error:h,fullWidth:f,multiline:P,required:q,select:E,variant:ne},X=Wr(G),oe=sn(k),ce=u&&oe?`${oe}-helper-text`:void 0,ue=y&&oe?`${oe}-label`:void 0,Ce=$r[ne],te={slots:V,slotProps:{input:j,inputLabel:b,htmlInput:g,formHelperText:w,select:I,...ee}},$={},U=te.slotProps.inputLabel;ne==="outlined"&&(U&&typeof U.shrink<"u"&&($.notched=U.shrink),$.label=y),E&&((!I||!I.native)&&($.id=void 0),$["aria-describedby"]=void 0);const[_,K]=pe("root",{elementType:Hr,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...J},ownerState:G,className:de(X.root,l),ref:n,additionalProps:{disabled:v,error:h,fullWidth:f,required:q,color:p,variant:ne}}),[C,z]=pe("input",{elementType:Ce,externalForwardedProps:te,additionalProps:$,ownerState:G}),[Z,xe]=pe("inputLabel",{elementType:Wa,externalForwardedProps:te,ownerState:G}),[Pe,Ie]=pe("htmlInput",{elementType:"input",externalForwardedProps:te,ownerState:G}),[Re,Se]=pe("formHelperText",{elementType:Ea,externalForwardedProps:te,ownerState:G}),[De,Me]=pe("select",{elementType:zo,externalForwardedProps:te,ownerState:G}),R=i.jsx(C,{"aria-describedby":ce,autoComplete:a,autoFocus:r,defaultValue:m,fullWidth:f,multiline:P,name:D,rows:F,maxRows:d,minRows:S,type:T,value:Q,id:oe,inputRef:x,onBlur:A,onChange:O,onFocus:H,placeholder:B,inputProps:Ie,slots:{input:V.htmlInput?Pe:void 0},...z});return i.jsxs(_,{...K,children:[y!=null&&y!==""&&i.jsx(Z,{htmlFor:oe,id:ue,...xe,children:y}),E?i.jsx(De,{"aria-describedby":ce,id:oe,labelId:ue,value:Q,input:R,...Me,children:s}):R,u&&i.jsx(Re,{id:ce,...Se,children:u})]})});function Br(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function qr(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ur(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${t}[${n}]`)}}var Vn=e=>Array.isArray(e)?e:[e];function _r(e){const t=Array.isArray(e[0])?e[0]:e;return Ur(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Kr(e,t){const n=[],{length:o}=e;for(let a=0;a{n=ht(),s.resetResultsCount()},s.resultsCount=()=>r,s.resetResultsCount=()=>{r=0},s}function Yr(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...a)=>{let r=0,s=0,l,p={},m=a.pop();typeof m=="object"&&(p=m,m=a.pop()),Br(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const v={...n,...p},{memoize:h,memoizeOptions:w=[],argsMemoize:f=Mo,argsMemoizeOptions:u=[]}=v,k=Vn(w),b=Vn(u),g=_r(a),j=h(function(){return r++,m.apply(null,arguments)},...k),x=f(function(){s++;const d=Kr(g,arguments);return l=j.apply(null,d),l},...b);return Object.assign(x,{resultFunc:m,memoizedResultFunc:j,dependencies:g,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:h,argsMemoize:f})};return Object.assign(o,{withTypes:()=>o}),o}var gn=Yr(Mo),Jr=Object.assign((e,t=gn)=>{qr(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),o=n.map(r=>e[r]);return t(o,(...r)=>r.reduce((s,l,p)=>(s[n[p]]=l,s),{}))},{withTypes:()=>Jr});function Xe(e,t,n,o){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function l(v){try{m(o.next(v))}catch(h){s(h)}}function p(v){try{m(o.throw(v))}catch(h){s(h)}}function m(v){v.done?r(v.value):a(v.value).then(l,p)}m((o=o.apply(e,t||[])).next())})}const Zr=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function ot(e,t,n){const o=Qr(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof o.path!="string"&&Xn(o,"path",r),Xn(o,"relativePath",r),o}function Qr(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const o=t.split(".").pop().toLowerCase(),a=Zr.get(o);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function Xn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const es=[".DS_Store","Thumbs.db"];function ts(e){return Xe(this,void 0,void 0,function*(){return jt(e)&&ns(e.dataTransfer)?rs(e.dataTransfer,e.type):os(e)?is(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?as(e):[]})}function ns(e){return jt(e)}function os(e){return jt(e)&&jt(e.target)}function jt(e){return typeof e=="object"&&e!==null}function is(e){return tn(e.target.files).map(t=>ot(t))}function as(e){return Xe(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>ot(n))})}function rs(e,t){return Xe(this,void 0,void 0,function*(){if(e.items){const n=tn(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const o=yield Promise.all(n.map(ss));return Yn(Oo(o))}return Yn(tn(e.files).map(n=>ot(n)))})}function Yn(e){return e.filter(t=>es.indexOf(t.name)===-1)}function tn(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?Oo(n):[n]],[])}function Jn(e,t){return Xe(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const s=yield r.getFile();return s.handle=r,ot(s)}}const o=e.getAsFile();if(!o)throw new Error(`${e} is not a File`);return ot(o,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function ls(e){return Xe(this,void 0,void 0,function*(){return e.isDirectory?Lo(e):cs(e)})}function Lo(e){const t=e.createReader();return new Promise((n,o)=>{const a=[];function r(){t.readEntries(s=>Xe(this,void 0,void 0,function*(){if(s.length){const l=Promise.all(s.map(ls));a.push(l),r()}else try{const l=yield Promise.all(a);n(l)}catch(l){o(l)}}),s=>{o(s)})}r()})}function cs(e){return Xe(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(o=>{const a=ot(o,e.fullPath);t(a)},o=>{n(o)})})})}var bt={},Zn;function ps(){return Zn||(Zn=1,bt.__esModule=!0,bt.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var o=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?o.toLowerCase().endsWith(l):l.endsWith("/*")?r===l.replace(/\/.*$/,""):a===l})}return!0}),bt}var ds=ps();const Bt=xo(ds);function Qn(e){return fs(e)||ms(e)||$o(e)||us()}function us(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ms(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fs(e){if(Array.isArray(e))return nn(e)}function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function to(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),o=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:bs,message:"File type must be ".concat(o)}},no=function(t){return{code:ys,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},oo=function(t){return{code:ws,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},js={code:ks,message:"Too many files"};function Wo(e,t){var n=e.type==="application/x-moz-file"||hs(e,t);return[n,n?null:Cs(t)]}function Ho(e,t,n){if(Ge(e.size))if(Ge(t)&&Ge(n)){if(e.size>n)return[!1,no(n)];if(e.sizen)return[!1,no(n)]}return[!0,null]}function Ge(e){return e!=null}function Ss(e){var t=e.files,n=e.accept,o=e.minSize,a=e.maxSize,r=e.multiple,s=e.maxFiles,l=e.validator;return!r&&t.length>1||r&&s>=1&&t.length>s?!1:t.every(function(p){var m=Wo(p,n),v=ut(m,1),h=v[0],w=Ho(p,o,a),f=ut(w,1),u=f[0],k=l?l(p):null;return h&&u&&!k})}function St(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function yt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function io(e){e.preventDefault()}function Rs(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ps(e){return e.indexOf("Edge/")!==-1}function Es(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Rs(e)||Ps(e)}function $e(){for(var e=arguments.length,t=new Array(e),n=0;n1?a-1:0),s=1;se.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function _s(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,r;for(r=0;r=0)&&(n[a]=e[a]);return n}var hn=c.forwardRef(function(e,t){var n=e.children,o=Rt(e,zs),a=Ko(o),r=a.open,s=Rt(a,Ms);return c.useImperativeHandle(t,function(){return{open:r}},[r]),Yo.createElement(c.Fragment,null,n(ge(ge({},s),{},{open:r})))});hn.displayName="Dropzone";var _o={disabled:!1,getFilesFromEvent:ts,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};hn.defaultProps=_o;hn.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var rn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Ko(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},_o),e),n=t.accept,o=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,l=t.multiple,p=t.maxFiles,m=t.onDragEnter,v=t.onDragLeave,h=t.onDragOver,w=t.onDrop,f=t.onDropAccepted,u=t.onDropRejected,k=t.onFileDialogCancel,b=t.onFileDialogOpen,g=t.useFsAccessApi,j=t.autoFocus,x=t.preventDropOnDocument,y=t.noClick,d=t.noKeyboard,S=t.noDrag,P=t.noDragEventsBubbling,D=t.onError,A=t.validator,O=c.useMemo(function(){return Ts(n)},[n]),H=c.useMemo(function(){return Is(n)},[n]),B=c.useMemo(function(){return typeof b=="function"?b:ro},[b]),q=c.useMemo(function(){return typeof k=="function"?k:ro},[k]),F=c.useRef(null),E=c.useRef(null),I=c.useReducer(Ks,rn),V=qt(I,2),ee=V[0],T=V[1],Q=ee.isFocused,ne=ee.isFileDialogActive,J=c.useRef(typeof window<"u"&&window.isSecureContext&&g&&Fs()),G=function(){!J.current&&ne&&setTimeout(function(){if(E.current){var M=E.current.files;M.length||(T({type:"closeDialog"}),q())}},300)};c.useEffect(function(){return window.addEventListener("focus",G,!1),function(){window.removeEventListener("focus",G,!1)}},[E,ne,q,J]);var X=c.useRef([]),oe=function(M){F.current&&F.current.contains(M.target)||(M.preventDefault(),X.current=[])};c.useEffect(function(){return x&&(document.addEventListener("dragover",io,!1),document.addEventListener("drop",oe,!1)),function(){x&&(document.removeEventListener("dragover",io),document.removeEventListener("drop",oe))}},[F,x]),c.useEffect(function(){return!o&&j&&F.current&&F.current.focus(),function(){}},[F,j,o]);var ce=c.useCallback(function(R){D?D(R):console.error(R)},[D]),ue=c.useCallback(function(R){R.preventDefault(),R.persist(),Re(R),X.current=[].concat(Ns(X.current),[R.target]),yt(R)&&Promise.resolve(a(R)).then(function(M){if(!(St(R)&&!P)){var le=M.length,me=le>0&&Ss({files:M,accept:O,minSize:s,maxSize:r,multiple:l,maxFiles:p,validator:A}),je=le>0&&!me;T({isDragAccept:me,isDragReject:je,isDragActive:!0,type:"setDraggedFiles"}),m&&m(R)}}).catch(function(M){return ce(M)})},[a,m,ce,P,O,s,r,l,p,A]),Ce=c.useCallback(function(R){R.preventDefault(),R.persist(),Re(R);var M=yt(R);if(M&&R.dataTransfer)try{R.dataTransfer.dropEffect="copy"}catch{}return M&&h&&h(R),!1},[h,P]),te=c.useCallback(function(R){R.preventDefault(),R.persist(),Re(R);var M=X.current.filter(function(me){return F.current&&F.current.contains(me)}),le=M.indexOf(R.target);le!==-1&&M.splice(le,1),X.current=M,!(M.length>0)&&(T({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),yt(R)&&v&&v(R))},[F,v,P]),$=c.useCallback(function(R,M){var le=[],me=[];R.forEach(function(je){var Ae=Wo(je,O),Ee=qt(Ae,2),ae=Ee[0],Oe=Ee[1],qe=Ho(je,s,r),_e=qt(qe,2),L=_e[0],ie=_e[1],we=A?A(je):null;if(ae&&L&&!we)le.push(je);else{var Le=[Oe,ie];we&&(Le=Le.concat(we)),me.push({file:je,errors:Le.filter(function(ft){return ft})})}}),(!l&&le.length>1||l&&p>=1&&le.length>p)&&(le.forEach(function(je){me.push({file:je,errors:[js]})}),le.splice(0)),T({acceptedFiles:le,fileRejections:me,isDragReject:me.length>0,type:"setFiles"}),w&&w(le,me,M),me.length>0&&u&&u(me,M),le.length>0&&f&&f(le,M)},[T,l,O,s,r,p,w,f,u,A]),U=c.useCallback(function(R){R.preventDefault(),R.persist(),Re(R),X.current=[],yt(R)&&Promise.resolve(a(R)).then(function(M){St(R)&&!P||$(M,R)}).catch(function(M){return ce(M)}),T({type:"reset"})},[a,$,ce,P]),_=c.useCallback(function(){if(J.current){T({type:"openDialog"}),B();var R={multiple:l,types:H};window.showOpenFilePicker(R).then(function(M){return a(M)}).then(function(M){$(M,null),T({type:"closeDialog"})}).catch(function(M){Ds(M)?(q(M),T({type:"closeDialog"})):As(M)?(J.current=!1,E.current?(E.current.value=null,E.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ce(M)});return}E.current&&(T({type:"openDialog"}),B(),E.current.value=null,E.current.click())},[T,B,q,g,$,ce,H,l]),K=c.useCallback(function(R){!F.current||!F.current.isEqualNode(R.target)||(R.key===" "||R.key==="Enter"||R.keyCode===32||R.keyCode===13)&&(R.preventDefault(),_())},[F,_]),C=c.useCallback(function(){T({type:"focus"})},[]),z=c.useCallback(function(){T({type:"blur"})},[]),Z=c.useCallback(function(){y||(Es()?setTimeout(_,0):_())},[y,_]),xe=function(M){return o?null:M},Pe=function(M){return d?null:xe(M)},Ie=function(M){return S?null:xe(M)},Re=function(M){P&&M.stopPropagation()},Se=c.useMemo(function(){return function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=R.refKey,le=M===void 0?"ref":M,me=R.role,je=R.onKeyDown,Ae=R.onFocus,Ee=R.onBlur,ae=R.onClick,Oe=R.onDragEnter,qe=R.onDragOver,_e=R.onDragLeave,L=R.onDrop,ie=Rt(R,Os);return ge(ge(an({onKeyDown:Pe($e(je,K)),onFocus:Pe($e(Ae,C)),onBlur:Pe($e(Ee,z)),onClick:xe($e(ae,Z)),onDragEnter:Ie($e(Oe,ue)),onDragOver:Ie($e(qe,Ce)),onDragLeave:Ie($e(_e,te)),onDrop:Ie($e(L,U)),role:typeof me=="string"&&me!==""?me:"presentation"},le,F),!o&&!d?{tabIndex:0}:{}),ie)}},[F,K,C,z,Z,ue,Ce,te,U,d,S,o]),De=c.useCallback(function(R){R.stopPropagation()},[]),Me=c.useMemo(function(){return function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=R.refKey,le=M===void 0?"ref":M,me=R.onChange,je=R.onClick,Ae=Rt(R,Ls),Ee=an({accept:O,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:xe($e(me,U)),onClick:xe($e(je,De)),tabIndex:-1},le,E);return ge(ge({},Ee),Ae)}},[E,n,l,U,o]);return ge(ge({},ee),{},{isFocused:Q&&!o,getRootProps:Se,getInputProps:Me,rootRef:F,inputRef:E,open:xe(_)})}function Ks(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},rn),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ge(ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return ge({},rn);default:return e}}function ro(){}const so=Fe(i.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),lo=Fe(i.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Vs=Fe(i.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),Gs=Fe(i.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),co=Fe(i.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),po=Fe(i.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"})),uo=Fe(i.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),Xs=Fe(i.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),Ys=Fe(i.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Js=Fe(i.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),mo=Fe(i.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"})),Zs=Fe(i.jsx("path",{d:"m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42M7 7h7v2H7zm10 10H7v-2h10zm0-4H7v-2h10z"})),Qs=Fe(i.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),fo=Fe([i.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),i.jsx("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")]),vo=Fe(i.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"})),el=e=>e.document.documents,tl=e=>e.document.pendingFiles,nl=e=>e.document.currentFolderName,ol=e=>e.document.currentFolderHash,il=gn([el],e=>e),al=gn([nl,ol],(e,t)=>e||(t==="7d99a85daf66a0081a0e881630e6b39b"?"Dossier par défaut":"Dossier sans nom")),rl=({document:e,onClose:t})=>{const n=yo(),o=ct(d=>d.document.currentFolderHash),[a,r]=c.useState(null),[s,l]=c.useState(!0),[p,m]=c.useState(null),[v,h]=c.useState(1),[w,f]=c.useState(1),[u,k]=c.useState(0),[b,g]=c.useState(null);c.useEffect(()=>{l(!0),m(null),h(1),f(1);const d=setTimeout(()=>{k(3),l(!1)},1e3);return()=>clearTimeout(d)},[e]),c.useEffect(()=>{let d=!1;return(async()=>{try{const P=await fetch(`/api/cache/${e.id}`,{headers:{Accept:"application/json"}});if(!P.ok)return;const D=await P.json();d||r(D)}catch{}})(),()=>{d=!0}},[e]);const j=()=>{if(e.previewUrl){const d=window.document.createElement("a");d.href=e.previewUrl,d.download=e.name,d.click()}},x=e.mimeType.includes("pdf")||e.name.toLowerCase().endsWith(".pdf"),y=e.mimeType.startsWith("image/")||[".png",".jpg",".jpeg",".gif",".webp"].some(d=>e.name.toLowerCase().endsWith(d));return!x&&y?i.jsxs(Je,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[i.jsx(et,{children:i.jsxs(N,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[i.jsx(Y,{variant:"h6",children:e.name}),i.jsx(Kt,{onClick:t,title:"Fermer",children:i.jsx(lo,{})})]})}),i.jsxs(Qe,{dividers:!0,children:[i.jsxs(N,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[i.jsx(N,{}),i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(re,{variant:"outlined",size:"small",startIcon:i.jsx(vo,{}),onClick:()=>f(d=>Math.max(d-.2,.2)),children:"Zoom -"}),i.jsxs(Y,{variant:"body2",children:[Math.round(w*100),"%"]}),i.jsx(re,{variant:"outlined",size:"small",startIcon:i.jsx(fo,{}),onClick:()=>f(d=>Math.min(d+.2,4)),children:"Zoom +"})]})]}),i.jsx(N,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"auto",maxHeight:"70vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"grey.50"},children:e.previewUrl?i.jsx("img",{src:e.previewUrl,alt:e.name,style:{maxWidth:`${100*w}%`,maxHeight:`${100*w}%`,objectFit:"contain"},onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement de l'image"),l(!1)}}):i.jsxs(N,{textAlign:"center",p:4,children:[i.jsx(Y,{variant:"h6",gutterBottom:!0,children:"Aperçu image"}),i.jsx(Y,{variant:"body2",color:"text.secondary",children:"Le fichier a été uploadé avec succès."}),i.jsxs(Y,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})})]}),i.jsxs(Ze,{children:[i.jsx(re,{onClick:t,children:"Fermer"}),i.jsx(re,{variant:"contained",startIcon:i.jsx(co,{}),onClick:j,disabled:!e.previewUrl,children:"Télécharger"})]})]}):i.jsxs(Je,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[i.jsx(et,{children:i.jsxs(N,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(mo,{color:"error"}),i.jsx(Y,{variant:"h6",children:e.name})]}),i.jsx(Kt,{onClick:t,title:"Fermer",children:i.jsx(lo,{})})]})}),i.jsxs(Qe,{dividers:!0,children:[s&&i.jsxs(N,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:[i.jsx(wo,{}),i.jsx(Y,{variant:"body2",sx:{ml:2},children:"Chargement du PDF..."})]}),p&&i.jsx(Vt,{severity:"error",sx:{mb:2},children:p}),!s&&!p&&i.jsxs(N,{children:[i.jsxs(N,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(re,{variant:"outlined",size:"small",startIcon:i.jsx(Ys,{}),onClick:()=>h(d=>Math.max(d-1,1)),disabled:v<=1,children:"Précédent"}),i.jsxs(Y,{variant:"body2",children:["Page ",v," sur ",u]}),i.jsx(re,{variant:"outlined",size:"small",endIcon:i.jsx(Js,{}),onClick:()=>h(d=>Math.min(d+1,u)),disabled:v>=u,children:"Suivant"})]}),i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(re,{variant:"outlined",size:"small",startIcon:i.jsx(vo,{}),onClick:()=>f(d=>Math.max(d-.2,.5)),children:"Zoom -"}),i.jsxs(Y,{variant:"body2",children:[Math.round(w*100),"%"]}),i.jsx(re,{variant:"outlined",size:"small",startIcon:i.jsx(fo,{}),onClick:()=>f(d=>Math.min(d+.2,2)),children:"Zoom +"})]})]}),i.jsx(N,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"hidden",maxHeight:"70vh",display:"flex",justifyContent:"center",backgroundColor:"grey.50"},children:e.previewUrl?i.jsx(N,{sx:{width:"100%",height:"600px"},children:i.jsx("iframe",{src:`${e.previewUrl}#toolbar=1&navpanes=1&scrollbar=1&page=1&view=FitH`,width:"100%",height:"100%",style:{border:"none",transform:`scale(${w})`,transformOrigin:"top left",width:`${100/w}%`,height:`${600/w}px`},title:`Aperçu de ${e.name}`,onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement du PDF"),l(!1)}})}):i.jsx(N,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:i.jsxs(N,{textAlign:"center",children:[i.jsx(mo,{sx:{fontSize:64,color:"error.main",mb:2}}),i.jsx(Y,{variant:"h6",gutterBottom:!0,children:"Aperçu PDF"}),i.jsxs(Y,{variant:"body2",color:"text.secondary",children:['Le fichier PDF "',e.name,'" a été uploadé avec succès.']}),i.jsxs(Y,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})})}),i.jsxs(N,{sx:{mt:2},children:[i.jsx(Y,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),i.jsxs(N,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[i.jsxs(N,{children:[i.jsx(Y,{variant:"subtitle2",children:"Personnes"}),i.jsx(N,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((d,S)=>i.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx("input",{style:{padding:4},defaultValue:d.firstName,onChange:P=>d.firstName=P.target.value}),i.jsx("input",{style:{padding:4},defaultValue:d.lastName,onChange:P=>d.lastName=P.target.value})]}),i.jsxs(N,{display:"flex",gap:1,children:[i.jsx(re,{size:"small",variant:"outlined",disabled:!o||b===`p-${S}`,onClick:async()=>{if(o)try{g(`p-${S}`),await At(o,e.id,"person",{index:S,id:d.id,patch:{firstName:d.firstName,lastName:d.lastName}}),await n(ze(o)).unwrap()}finally{g(null)}},children:"Enregistrer"}),i.jsx(re,{size:"small",color:"error",onClick:async()=>{if(o)try{await zt(o,e.id,"person",{index:S,id:d.id}),await n(ze(o)).unwrap();const P=JSON.parse(JSON.stringify(a));P.extraction.entities.persons.splice(S,1),r(P)}catch{}},children:"Supprimer"})]})]},`p-${S}`)):i.jsx(Y,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),i.jsxs(N,{children:[i.jsx(Y,{variant:"subtitle2",children:"Adresses"}),i.jsx(N,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((d,S)=>i.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx("input",{style:{padding:4,width:220},defaultValue:d.street,onChange:P=>d.street=P.target.value}),i.jsx("input",{style:{padding:4,width:100},defaultValue:d.postalCode,onChange:P=>d.postalCode=P.target.value}),i.jsx("input",{style:{padding:4,width:160},defaultValue:d.city,onChange:P=>d.city=P.target.value}),i.jsx("input",{style:{padding:4,width:120},defaultValue:d.country||"",onChange:P=>d.country=P.target.value})]}),i.jsxs(N,{display:"flex",gap:1,children:[i.jsx(re,{size:"small",variant:"outlined",disabled:!o||b===`a-${S}`,onClick:async()=>{if(o)try{g(`a-${S}`),await At(o,e.id,"address",{index:S,id:d.id,patch:{street:d.street,city:d.city,postalCode:d.postalCode,country:d.country}}),await n(ze(o)).unwrap()}finally{g(null)}},children:"Enregistrer"}),i.jsx(re,{size:"small",color:"error",onClick:async()=>{if(o)try{await zt(o,e.id,"address",{index:S,id:d.id}),await n(ze(o)).unwrap();const P=JSON.parse(JSON.stringify(a));P.extraction.entities.addresses.splice(S,1),r(P)}catch{}},children:"Supprimer"})]})]},`a-${S}`)):i.jsx(Y,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),i.jsxs(N,{children:[i.jsx(Y,{variant:"subtitle2",children:"Entreprises"}),i.jsx(N,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((d,S)=>i.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[i.jsx(N,{display:"flex",alignItems:"center",gap:1,children:i.jsx("input",{style:{padding:4,width:260},defaultValue:d.name,onChange:P=>d.name=P.target.value})}),i.jsxs(N,{display:"flex",gap:1,children:[i.jsx(re,{size:"small",variant:"outlined",disabled:!o||b===`c-${S}`,onClick:async()=>{if(o)try{g(`c-${S}`),await At(o,e.id,"company",{index:S,id:d.id,patch:{name:d.name}}),await n(ze(o)).unwrap()}finally{g(null)}},children:"Enregistrer"}),i.jsx(re,{size:"small",color:"error",onClick:async()=>{if(o)try{await zt(o,e.id,"company",{index:S,id:d.id}),await n(ze(o)).unwrap();const P=JSON.parse(JSON.stringify(a));P.extraction.entities.companies.splice(S,1),r(P)}catch{}},children:"Supprimer"})]})]},`c-${S}`)):i.jsx(Y,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]})]}),i.jsxs(Ze,{children:[i.jsx(re,{onClick:t,children:"Fermer"}),i.jsx(re,{variant:"contained",startIcon:i.jsx(co,{}),onClick:j,disabled:!e.previewUrl,children:"Télécharger"})]})]})},sl=c.memo(({doc:e,index:t,onPreview:n,onDelete:o,onReplace:a,onConfirmAddress:r,onReview:s,onOpenCorrections:l,isReviewing:p,totalCount:m})=>{const v=f=>f.startsWith("image/")?i.jsx(Xs,{}):f==="application/pdf"?i.jsx(Sn,{}):f.startsWith("text/")?i.jsx(Zs,{}):i.jsx(Sn,{}),h=f=>{switch(f){case"completed":return i.jsx(li,{color:"success"});case"processing":return i.jsx(uo,{color:"warning"});case"error":return i.jsx(si,{color:"error"});default:return i.jsx(uo,{color:"disabled"})}},w=f=>{switch(f){case"completed":return"success";case"processing":return"warning";case"error":return"error";default:return"default"}};return i.jsxs("div",{children:[i.jsxs(Yt,{children:[i.jsx(jo,{children:v(e.mimeType)}),i.jsx(Jt,{primary:i.jsxs(N,{children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:1,mb:1,children:[h(e.status),i.jsx(Y,{variant:"subtitle1",sx:{wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",maxWidth:{xs:"200px",sm:"300px",md:"400px"}},children:(()=>{if(e.status==="processing"&&e.name===e.id){const u=["53985cbd461f137c847a13f6a4b82758e5920fb9ccc3ffea9d5d1ac99007e6ce.jpg","aceeb1161004f938d2abf1b88b216ef1ea68fad6141374a66efbdda9d796ac6e.jpg"].find(k=>k.startsWith(e.id));if(u)return u}return e.displayName||e.name})()})]}),i.jsxs(N,{display:"flex",gap:1,flexWrap:"wrap",children:[i.jsx(Ue,{label:e.status,size:"small",color:w(e.status)}),e.mimeType&&e.mimeType!=="application/octet-stream"&&i.jsx(Ue,{label:e.mimeType,size:"small",variant:"outlined"}),e.size>0&&i.jsx(Ue,{label:`${(e.size/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"}),p&&i.jsx(Ue,{color:"default",label:"Révision IA en cours…",size:"small"}),(()=>{const f=e,u=f?.metadata?.quality?.ollamaScore??f?.status?.review?.score,k=f?.status?.review?.avis,b=f?.status?.review?.durationMs;if(e.status==="completed"&&typeof u=="number"){const g=i.jsx(Ue,{color:"success",label:`IA: ${u.toFixed(2)}`,size:"small",variant:"outlined"}),j=`${k||""}${b?(k?" — ":"")+"durée: "+b+" ms":""}`;return j?i.jsx(Gt,{title:j,children:i.jsx("span",{children:g})}):g}return null})(),(()=>{const u=e?.status?.review?.corrections,k=Array.isArray(u)?u.length:0;return e.status==="completed"&&k>0?i.jsx(Ue,{color:"info",label:`Corrections: ${k}`,size:"small",variant:"outlined",onClick:()=>l(e,u)}):null})(),e.status==="completed"&&e?.suggestions?.needsReupload&&i.jsx(Ue,{color:"warning",label:"Qualité faible: remplacer",size:"small",onClick:()=>a(e)}),e.status==="completed"&&e?.suggestions?.needsAddressConfirmation&&i.jsx(Ue,{color:"info",label:"Adresse à confirmer",size:"small",onClick:()=>r(e)})]})]})}),i.jsxs(N,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[i.jsx(re,{size:"small",startIcon:i.jsx(Qs,{}),onClick:()=>n(e),disabled:e.status!=="completed",fullWidth:!0,children:"Aperçu"}),i.jsx(Gt,{title:"Analyse IA (Ollama): calcule un score de fiabilité, propose des corrections, ajoute un avis.",children:i.jsx("span",{children:i.jsx(re,{size:"small",onClick:()=>s(e),disabled:e.status!=="completed"||p,fullWidth:!0,children:p?"Révision IA…":"Révision IA"})})}),i.jsx(re,{size:"small",color:"error",onClick:()=>o(e.id),fullWidth:!0,children:"Supprimer"})]})]}),tC.document),s=ct(al),l=ct(il),p=ct(tl),m=l;console.log("🏠 [UPLOAD_VIEW] Component loaded, documents count:",m.length);const[v,h]=c.useState(null),w=c.useCallback(C=>{e(Jo(C))},[e]),[f,u]=c.useState(!1),[k,b]=c.useState(!1),[g,j]=c.useState(""),[x,y]=c.useState(""),[d,S]=c.useState(""),[P,D]=c.useState(!1),[A,O]=c.useState({street:"",city:"",postalCode:"",country:"France"}),[H,B]=c.useState(null),[q,F]=c.useState(!1),[E,I]=c.useState(null),[V,ee]=c.useState([]),[T,Q]=c.useState(null),[ne,J]=c.useState({open:!1,severity:"success",message:""}),G=c.useCallback(C=>{try{const Z=(C.suggestions||{}).detectedAddress||{street:"",city:"",postalCode:"",country:"France"};O({street:Z.street||"",city:Z.city||"",postalCode:Z.postalCode||"",country:Z.country||"France"}),B(C),D(!0)}catch(z){console.error("❌ Préparation confirmation adresse:",z)}},[]),X=c.useCallback(async()=>{if(!(!n||!H))try{await Zo(n,H.id,A),D(!1),await e(ze(n)).unwrap()}catch(C){console.error("❌ Confirmation adresse:",C)}},[n,H,A,e]),oe=c.useCallback(async C=>{if(n)try{Q(C.id),await Qo(n,C.id),await e(ze(n)).unwrap(),J({open:!0,severity:"success",message:"Révision IA terminée: score et corrections mis à jour."})}catch(z){console.error("❌ Révision IA:",z),J({open:!0,severity:"error",message:"Échec de la révision IA. Réessaie plus tard."})}finally{Q(null)}},[n,e]),ce=c.useCallback(C=>{const z=document.createElement("input");z.type="file",z.accept="image/*,application/pdf",z.onchange=async()=>{const Z=z.files&&z.files[0]||null;if(!(!Z||!n))try{await ei(n,C.id),await e(yn({file:Z,folderHash:n})).unwrap(),await e(ze(n)).unwrap()}catch(xe){console.error("❌ Remplacement de document:",xe)}},z.click()},[n,e]),ue=c.useCallback(async()=>{try{const C=await fetch("/api/folders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:g||"Nouveau dossier",description:x||""})});if(!C.ok)throw new Error(await C.text());const z=await C.json();e(wn(z.folderHash)),await e(ze(z.folderHash)).unwrap(),console.log("✅ [UPLOAD] Nouveau dossier créé:",z.folderHash),b(!1),j(""),y("")}catch(C){console.error("❌ [UPLOAD] Erreur lors de la création du dossier:",C)}},[e]),Ce=c.useCallback(async()=>{if(d.trim())try{e(wn(d.trim())),await e(ze(d.trim())).unwrap(),console.log("✅ [UPLOAD] Dossier chargé:",d.trim()),u(!1),S("")}catch(C){console.error("❌ [UPLOAD] Erreur lors du chargement du dossier:",C)}},[e,d]),te=c.useCallback(()=>{n&&(navigator.clipboard.writeText(n),console.log("📋 [UPLOAD] Hash du dossier copié:",n))},[n]),$=c.useCallback(async C=>{if(!n){console.error("❌ [UPLOAD] Aucun dossier sélectionné");return}const z=C.map(async Z=>{try{console.log(`📤 [UPLOAD] Upload de ${Z.name} dans le dossier ${n}`),await e(yn({file:Z,folderHash:n})).unwrap(),await e(ze(n)).unwrap(),console.log(`✅ [UPLOAD] ${Z.name} uploadé avec succès`)}catch(xe){console.error(`❌ [UPLOAD] Erreur lors du traitement de ${Z.name}:`,xe)}});await Promise.all(z)},[e,n]),{getRootProps:U,getInputProps:_,isDragActive:K}=Ko({onDrop:$,accept:{"application/pdf":[".pdf"],"image/*":[".png",".jpg",".jpeg",".tiff"]},multiple:!0});return c.useEffect(()=>{(async()=>{if(n&&!(s&&s.length>0))try{const z=await fetch(`/api/folders/${n}/meta`);if(z.ok){const Z=await z.json();Z?.name&&window.dispatchEvent(new CustomEvent("4nk:setFolderName",{detail:Z.name}))}}catch{}})()},[n,s]),!a||o?i.jsx(kn,{children:i.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"center",minHeight:240,children:[i.jsx(wo,{size:28,sx:{mr:2}}),i.jsx(Y,{children:"Chargement des fichiers du dossier…"})]})}):i.jsxs(kn,{children:[i.jsx(Y,{variant:"h4",gutterBottom:!0,children:"Analyse de documents IA"}),i.jsx(N,{sx:{mb:3,p:2,bgcolor:"grey.50",borderRadius:1,border:"1px solid",borderColor:"grey.200"},children:i.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:2,children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:2,children:[i.jsx(Y,{variant:"h6",color:"text.secondary",children:"Dossier actuel :"}),i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(Y,{variant:"body1",sx:{fontFamily:"monospace",bgcolor:"grey.100",px:1,py:.5,borderRadius:1,fontSize:"0.875rem"},children:s||(n?"Dossier sans nom":"Aucun dossier sélectionné")}),n&&i.jsx(Gt,{title:"Copier le hash du dossier",children:i.jsx(Kt,{size:"small",onClick:te,children:i.jsx(Gs,{fontSize:"small"})})})]})]}),i.jsxs(N,{display:"flex",gap:1,children:[i.jsx(re,{variant:"outlined",startIcon:i.jsx(so,{}),onClick:()=>b(!0),size:"small",children:"CRÉER UN DOSSIER"}),i.jsx(re,{variant:"outlined",startIcon:i.jsx(po,{}),onClick:()=>u(!0),size:"small",children:"Charger dossier"})]})]})}),i.jsxs(mt,{...U(),sx:{p:{xs:2,sm:4},textAlign:"center",cursor:"pointer",border:"2px dashed",borderColor:K?"primary.main":"grey.300",bgcolor:K?"action.hover":"background.paper","&:hover":{borderColor:"primary.main",bgcolor:"action.hover"}},children:[i.jsx("input",{..._()}),i.jsx(Vs,{sx:{fontSize:{xs:36,sm:48},color:"primary.main",mb:2}}),i.jsx(Y,{variant:"h6",gutterBottom:!0,sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"}},children:K?"Déposez les fichiers ici...":"Glissez-déposez vos documents ou cliquez pour sélectionner"}),i.jsx(Y,{variant:"body2",color:"text.secondary",sx:{fontSize:{xs:"0.75rem",sm:"0.875rem"}},children:"Formats acceptés: PDF, PNG, JPG, JPEG, TIFF"})]}),t&&i.jsx(Vt,{severity:"error",sx:{mt:2},children:t}),(m.length>0||r)&&i.jsxs(N,{sx:{mt:3},children:[i.jsxs(Y,{variant:"h6",gutterBottom:!0,children:["Documents analysés (",m.length,")"]}),i.jsx(oi,{children:i.jsxs(Xt,{children:[m.map((C,z)=>i.jsx(sl,{doc:C,index:z,onPreview:h,onDelete:w,onReplace:ce,onConfirmAddress:G,onReview:oe,onOpenCorrections:(Z,xe)=>{I(Z),ee(xe),F(!0)},isReviewing:T===C.id,totalCount:m.length},`${C.id}-${z}`)),r&&i.jsx(i.Fragment,{children:(p.length>0?p:new Array(2).fill(null)).map((C,z)=>i.jsxs("div",{children:[i.jsxs(Yt,{children:[i.jsx(jo,{children:i.jsx(Ye,{variant:"circular",width:24,height:24})}),i.jsx(Jt,{primary:i.jsxs(N,{children:[i.jsx(N,{display:"flex",alignItems:"center",gap:1,mb:1,children:i.jsx(Ye,{variant:"rounded",width:180,height:18})}),i.jsxs(N,{display:"flex",gap:1,children:[i.jsx(Ye,{variant:"rounded",width:60,height:24}),i.jsx(Ye,{variant:"rounded",width:100,height:24})]})]})}),i.jsxs(N,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[i.jsx(Ye,{variant:"rounded",width:84,height:32}),i.jsx(Ye,{variant:"rounded",width:84,height:32})]})]}),i.jsx(Ct,{})]},`sk-${z}`))})]})})]}),v&&i.jsx(rl,{document:v,onClose:()=>h(null)}),i.jsxs(Je,{open:f,onClose:()=>u(!1),maxWidth:"sm",fullWidth:!0,children:[i.jsx(et,{children:i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(po,{}),"Charger un dossier existant"]})}),i.jsxs(Qe,{children:[i.jsx(Y,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Entrez le hash du dossier que vous souhaitez charger. Le hash est un identifiant unique de 32 caractères."}),i.jsx(Ve,{autoFocus:!0,margin:"dense",label:"Hash du dossier",placeholder:"ex: 0e7ae08a4f14f3154be1bd69d5617c74",fullWidth:!0,variant:"outlined",value:d,onChange:C=>S(C.target.value),sx:{fontFamily:"monospace"},helperText:"Le hash doit contenir exactement 32 caractères hexadécimaux"})]}),i.jsxs(Ze,{children:[i.jsx(re,{onClick:()=>u(!1),children:"Annuler"}),i.jsx(re,{onClick:Ce,variant:"contained",disabled:!d.trim()||d.trim().length!==32,children:"Charger le dossier"})]})]}),i.jsxs(Je,{open:k,onClose:()=>b(!1),maxWidth:"sm",fullWidth:!0,children:[i.jsx(et,{children:i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(so,{}),"Créer un nouveau dossier"]})}),i.jsxs(Qe,{children:[i.jsx(Ve,{autoFocus:!0,margin:"dense",label:"Nom du dossier",fullWidth:!0,variant:"outlined",value:g,onChange:C=>j(C.target.value)}),i.jsx(Ve,{margin:"dense",label:"Description",fullWidth:!0,multiline:!0,minRows:2,variant:"outlined",value:x,onChange:C=>y(C.target.value)})]}),i.jsxs(Ze,{children:[i.jsx(re,{onClick:()=>b(!1),children:"Annuler"}),i.jsx(re,{onClick:ue,variant:"contained",disabled:!g.trim(),children:"Créer"})]})]}),i.jsxs(Je,{open:P,onClose:()=>D(!1),maxWidth:"sm",fullWidth:!0,children:[i.jsx(et,{children:"Confirmer l'adresse détectée"}),i.jsxs(Qe,{children:[i.jsx(Ve,{margin:"dense",label:"Rue",fullWidth:!0,variant:"outlined",value:A.street,onChange:C=>O({...A,street:C.target.value})}),i.jsx(Ve,{margin:"dense",label:"Code postal",fullWidth:!0,variant:"outlined",value:A.postalCode,onChange:C=>O({...A,postalCode:C.target.value})}),i.jsx(Ve,{margin:"dense",label:"Ville",fullWidth:!0,variant:"outlined",value:A.city,onChange:C=>O({...A,city:C.target.value})}),i.jsx(Ve,{margin:"dense",label:"Pays",fullWidth:!0,variant:"outlined",value:A.country,onChange:C=>O({...A,country:C.target.value})})]}),i.jsxs(Ze,{children:[i.jsx(re,{onClick:()=>D(!1),children:"Annuler"}),i.jsx(re,{variant:"contained",onClick:X,children:"Confirmer"})]})]}),i.jsxs(Je,{open:q,onClose:()=>F(!1),maxWidth:"sm",fullWidth:!0,children:[i.jsx(et,{children:"Corrections proposées par l'IA"}),i.jsxs(Qe,{children:[E?i.jsxs(Y,{variant:"subtitle2",sx:{mb:1},children:["Document: ",E.displayName||E.name]}):null,Array.isArray(V)&&V.length>0?i.jsx(Xt,{children:V.map((C,z)=>i.jsx(Yt,{alignItems:"flex-start",children:i.jsx(Jt,{primary:C?.path?String(C.path):`Correction ${z+1}`,secondary:i.jsxs(i.Fragment,{children:[i.jsxs(Y,{variant:"body2",color:"text.secondary",children:["Valeur: ",typeof C?.value=="object"?JSON.stringify(C.value):String(C?.value??"")]}),typeof C?.confidence=="number"&&i.jsxs(Y,{variant:"caption",color:"text.secondary",children:["Confiance: ",C.confidence.toFixed?C.confidence.toFixed(2):C.confidence]})]})})},`corr-${z}`))}):i.jsx(Y,{variant:"body2",color:"text.secondary",children:"Aucune correction disponible."})]}),i.jsx(Ze,{children:i.jsx(re,{onClick:()=>F(!1),children:"Fermer"})})]}),i.jsx(Lr,{open:ne.open,autoHideDuration:3e3,onClose:()=>J({...ne,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:i.jsx(Vt,{onClose:()=>J({...ne,open:!1}),severity:ne.severity,variant:"filled",sx:{width:"100%"},children:ne.message})})]})}export{vl as default}; diff --git a/public/assets/UploadView-BAd-aZgO.js b/public/assets/UploadView-BAd-aZgO.js new file mode 100644 index 0000000..9ea2ae5 --- /dev/null +++ b/public/assets/UploadView-BAd-aZgO.js @@ -0,0 +1,43 @@ +import{g as xi,c as de,r as c,u as jt,j as o,a as he,b as be,s as W,d as ye,e as Vi,m as ke,f as fe,h as xe,i as vi,k as sn,T as _,l as ln,n as He,o as It,p as Ki,q as Gi,t as gi,v as hi,w as bn,R as Ji,x as bi,y as dt,B as I,z as Xe,A as Re,C as Ye,D as yi,E as Xi,F as Yi,G as Zi,H as Qi,I as yn,J as wn}from"./index-wde0U4qL.js";import{u as Be,o as We,a as it,d as wi,i as Ut,c as Fe,b as cn,e as pe,f as Te,g as _t,P as xt,h as eo,j as to,I as Vt,B as X,A as Kt,L as kn,C as no,k as Ue}from"./Layout-aWSA1CnN.js";import{T as io,g as jn,r as oo,u as Cn}from"./utils-ZQUdJD-K.js";import{g as Ft,P as ao,G as ki,T as Gt,D as Sn}from"./Description-DZr4F8a_.js";import{i as Mt,L as Jt,a as Xt,b as Yt}from"./ListItemText-MHCbhB9z.js";import{L as ji}from"./ListItemIcon-CvUOm9xw.js";import{E as ro,C as so}from"./Error-DWv7Y7dl.js";var Ot={exports:{}},Lt,Rn;function lo(){if(Rn)return Lt;Rn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lt=e,Lt}var Nt,Pn;function co(){if(Pn)return Nt;Pn=1;var e=lo();function t(){}function n(){}return n.resetWarningCache=t,Nt=function(){function i(s,l,d,m,v,h){if(h!==e){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}i.isRequired=i;function a(){return i}var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},Nt}var En;function po(){return En||(En=1,Ot.exports=co()()),Ot.exports}var uo=po();const se=xi(uo);function mo(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function fo(e){return parseFloat(e)}function In(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function xo(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function vo(e,t){if(!e)return t;function n(s,l){const d={};return Object.keys(l).forEach(m=>{xo(m,l[m])&&typeof s[m]=="function"&&(d[m]=(...v)=>{s[m](...v),l[m](...v)})}),d}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,d=typeof e=="function"?e({...s,...l}):e,m=de(s?.className,l?.className,d?.className),v=n(d,l);return{...l,...d,...v,...!!m&&{className:m},...l?.style&&d?.style&&{style:{...l.style,...d.style}},...l?.sx&&d?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const i=t,a=n(e,i),r=de(i?.className,e?.className);return{...t,...e,...a,...!!r&&{className:r},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function gt(e){return parseInt(e,10)||0}const go={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ho(e){for(const t in e)return!1;return!0}function Fn(e){return ho(e)||e.outerHeightStyle===0&&!e.overflowing}const bo=c.forwardRef(function(t,n){const{onChange:i,maxRows:a,minRows:r=1,style:s,value:l,...d}=t,{current:m}=c.useRef(l!=null),v=c.useRef(null),h=Be(n,v),j=c.useRef(null),f=c.useRef(null),u=c.useCallback(()=>{const g=v.current,k=f.current;if(!g||!k)return;const y=We(g).getComputedStyle(g);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=y.width,k.value=g.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const w=y.boxSizing,D=gt(y.paddingBottom)+gt(y.paddingTop),z=gt(y.borderBottomWidth)+gt(y.borderTopWidth),L=k.scrollHeight;k.value="x";const H=k.scrollHeight;let B=L;r&&(B=Math.max(Number(r)*H,B)),a&&(B=Math.min(Number(a)*H,B)),B=Math.max(B,H);const q=B+(w==="border-box"?D+z:0),F=Math.abs(B-L)<=1;return{outerHeightStyle:q,overflowing:F}},[a,r,t.placeholder]),C=it(()=>{const g=v.current,k=u();if(!g||!k||Fn(k))return!1;const p=k.outerHeightStyle;return j.current!=null&&j.current!==p}),b=c.useCallback(()=>{const g=v.current,k=u();if(!g||!k||Fn(k))return;const p=k.outerHeightStyle;j.current!==p&&(j.current=p,g.style.height=`${p}px`),g.style.overflow=k.overflowing?"hidden":""},[u]),x=c.useRef(-1);jt(()=>{const g=wi(b),k=v?.current;if(!k)return;const p=We(k);p.addEventListener("resize",g);let y;return typeof ResizeObserver<"u"&&(y=new ResizeObserver(()=>{C()&&(y.unobserve(k),cancelAnimationFrame(x.current),b(),x.current=requestAnimationFrame(()=>{y.observe(k)}))}),y.observe(k)),()=>{g.clear(),cancelAnimationFrame(x.current),p.removeEventListener("resize",g),y&&y.disconnect()}},[u,b,C]),jt(()=>{b()});const R=g=>{m||b();const k=g.target,p=k.value.length,y=k.value.endsWith(` +`),w=k.selectionStart===p;y&&w&&k.setSelectionRange(p,p),i&&i(g)};return o.jsxs(c.Fragment,{children:[o.jsx("textarea",{value:l,onChange:R,ref:h,rows:r,style:s,...d}),o.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...go.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function rt({props:e,states:t,muiFormControl:n}){return t.reduce((i,a)=>(i[a]=e[a],n&&typeof e[a]>"u"&&(i[a]=n[a]),i),{})}const pn=c.createContext(void 0);function st(){return c.useContext(pn)}function An(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ct(e,t=!1){return e&&(An(e.value)&&e.value!==""||t&&An(e.defaultValue)&&e.defaultValue!=="")}function yo(e){return e.startAdornment}function wo(e){return be("MuiInputBase",e)}const ot=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Tn;const At=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Tt=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ko=e=>{const{classes:t,color:n,disabled:i,error:a,endAdornment:r,focused:s,formControl:l,fullWidth:d,hiddenLabel:m,multiline:v,readOnly:h,size:j,startAdornment:f,type:u}=e,C={root:["root",`color${fe(n)}`,i&&"disabled",a&&"error",d&&"fullWidth",s&&"focused",l&&"formControl",j&&j!=="medium"&&`size${fe(j)}`,v&&"multiline",f&&"adornedStart",r&&"adornedEnd",m&&"hiddenLabel",h&&"readOnly"],input:["input",i&&"disabled",u==="search"&&"inputTypeSearch",v&&"inputMultiline",j==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",f&&"inputAdornedStart",r&&"inputAdornedEnd",h&&"readOnly"]};return xe(C,wo,t)},Dt=W("div",{name:"MuiInputBase",slot:"Root",overridesResolver:At})(ke(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),zt=W("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Tt})(ke(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ot.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ot.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:r})=>!r.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:r})=>r.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Dn=Vi({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:r,autoFocus:s,className:l,color:d,components:m={},componentsProps:v={},defaultValue:h,disabled:j,disableInjectingGlobalStyles:f,endAdornment:u,error:C,fullWidth:b=!1,id:x,inputComponent:R="input",inputProps:g={},inputRef:k,margin:p,maxRows:y,minRows:w,multiline:D=!1,name:z,onBlur:L,onChange:H,onClick:B,onFocus:q,onKeyDown:F,onKeyUp:E,placeholder:A,readOnly:G,renderSuffix:te,rows:T,size:ee,slotProps:ie={},slots:Z={},startAdornment:J,type:Y="text",value:oe,...ce}=i,ue=g.value!=null?g.value:oe,{current:je}=c.useRef(ue!=null),ne=c.useRef(),$=c.useCallback(re=>{},[]),U=Be(ne,k,g.ref,$),[V,K]=c.useState(!1),S=st(),M=rt({props:i,muiFormControl:S,states:["color","disabled","error","hiddenLabel","size","required","filled"]});M.focused=S?S.focused:V,c.useEffect(()=>{!S&&j&&V&&(K(!1),L&&L())},[S,j,V,L]);const Q=S&&S.onFilled,ve=S&&S.onEmpty,Ee=c.useCallback(re=>{Ct(re)?Q&&Q():ve&&ve()},[Q,ve]);jt(()=>{je&&Ee({value:ue})},[ue,Ee,je]);const Ae=re=>{q&&q(re),g.onFocus&&g.onFocus(re),S&&S.onFocus?S.onFocus(re):K(!0)},Pe=re=>{L&&L(re),g.onBlur&&g.onBlur(re),S&&S.onBlur?S.onBlur(re):K(!1)},Se=(re,...Oe)=>{if(!je){const qe=re.target||ne.current;if(qe==null)throw new Error(vi(1));Ee({value:qe.value})}g.onChange&&g.onChange(re,...Oe),H&&H(re,...Oe)};c.useEffect(()=>{Ee(ne.current)},[]);const De=re=>{ne.current&&re.currentTarget===re.target&&ne.current.focus(),B&&B(re)};let Me=R,P=g;D&&Me==="input"&&(T?P={type:void 0,minRows:T,maxRows:T,...P}:P={type:void 0,maxRows:y,minRows:w,...P},Me=bo);const O=re=>{Ee(re.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};c.useEffect(()=>{S&&S.setAdornedStart(!!J)},[S,J]);const le={...i,color:M.color||"primary",disabled:M.disabled,endAdornment:u,error:M.error,focused:M.focused,formControl:S,fullWidth:b,hiddenLabel:M.hiddenLabel,multiline:D,size:M.size,startAdornment:J,type:Y},me=ko(le),Ce=Z.root||m.Root||Dt,ze=ie.root||v.root||{},Ie=Z.input||m.Input||zt;return P={...P,...ie.input??v.input},o.jsxs(c.Fragment,{children:[!f&&typeof Dn=="function"&&(Tn||(Tn=o.jsx(Dn,{}))),o.jsxs(Ce,{...ze,ref:n,onClick:De,...ce,...!Ut(Ce)&&{ownerState:{...le,...ze.ownerState}},className:de(me.root,ze.className,l,G&&"MuiInputBase-readOnly"),children:[J,o.jsx(pn.Provider,{value:null,children:o.jsx(Ie,{"aria-invalid":M.error,"aria-describedby":a,autoComplete:r,autoFocus:s,defaultValue:h,disabled:M.disabled,id:x,onAnimationStart:O,name:z,placeholder:A,readOnly:G,required:M.required,rows:T,value:ue,onKeyDown:F,onKeyUp:E,type:Y,...P,...!Ut(Ie)&&{as:Me,ownerState:{...le,...P.ownerState}},ref:U,className:de(me.input,P.className,G&&"MuiInputBase-readOnly"),onBlur:Pe,onChange:Se,onFocus:Ae})}),u,te?te({...M,startAdornment:J}):null]})]})});function jo(e){return be("MuiInput",e)}const lt={...ot,...he("MuiInput",["root","underline","input"])};function Co(e){return be("MuiOutlinedInput",e)}const Ne={...ot,...he("MuiOutlinedInput",["root","notchedOutline","input"])};function So(e){return be("MuiFilledInput",e)}const Ve={...ot,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Ro=Fe(o.jsx("path",{d:"M7 10l5 5 5-5z"})),Po={entering:{opacity:1},entered:{opacity:1}},Zt=c.forwardRef(function(t,n){const i=cn(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:l,easing:d,in:m,onEnter:v,onEntered:h,onEntering:j,onExit:f,onExited:u,onExiting:C,style:b,timeout:x=a,TransitionComponent:R=io,...g}=t,k=c.useRef(null),p=Be(k,Ft(l),n),y=F=>E=>{if(F){const A=k.current;E===void 0?F(A):F(A,E)}},w=y(j),D=y((F,E)=>{oo(F);const A=jn({style:b,timeout:x,easing:d},{mode:"enter"});F.style.webkitTransition=i.transitions.create("opacity",A),F.style.transition=i.transitions.create("opacity",A),v&&v(F,E)}),z=y(h),L=y(C),H=y(F=>{const E=jn({style:b,timeout:x,easing:d},{mode:"exit"});F.style.webkitTransition=i.transitions.create("opacity",E),F.style.transition=i.transitions.create("opacity",E),f&&f(F)}),B=y(u),q=F=>{r&&r(k.current,F)};return o.jsx(R,{appear:s,in:m,nodeRef:k,onEnter:D,onEntered:z,onEntering:w,onExit:H,onExited:B,onExiting:L,addEndListener:q,timeout:x,...g,children:(F,{ownerState:E,...A})=>c.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!m?"hidden":void 0,...Po[F],...b,...l.props.style},ref:p,...A})})});function Eo(e){return be("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const Io=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},Eo,t)},Fo=W("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ci=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiBackdrop"}),{children:a,className:r,component:s="div",invisible:l=!1,open:d,components:m={},componentsProps:v={},slotProps:h={},slots:j={},TransitionComponent:f,transitionDuration:u,...C}=i,b={...i,component:s,invisible:l},x=Io(b),R={transition:f,root:m.Root,...j},g={...v,...h},k={component:s,slots:R,slotProps:g},[p,y]=pe("root",{elementType:Fo,externalForwardedProps:k,className:de(x.root,r),ownerState:b}),[w,D]=pe("transition",{elementType:Zt,externalForwardedProps:k,ownerState:b});return o.jsx(w,{in:d,timeout:u,...C,...D,children:o.jsx(p,{"aria-hidden":!0,...y,classes:x,ref:n,children:a})})});function zn(e){return e.substring(2).toLowerCase()}function Ao(e,t){return t.documentElement.clientWidth(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const v=Be(Ft(t),l),h=it(u=>{const C=m.current;m.current=!1;const b=Te(l.current);if(!d.current||!l.current||"clientX"in u&&Ao(u,b))return;if(s.current){s.current=!1;return}let x;u.composedPath?x=u.composedPath().includes(l.current):x=!b.documentElement.contains(u.target)||l.current.contains(u.target),!x&&(n||!C)&&a(u)}),j=u=>C=>{m.current=!0;const b=t.props[u];b&&b(C)},f={ref:v};return r!==!1&&(f[r]=j(r)),c.useEffect(()=>{if(r!==!1){const u=zn(r),C=Te(l.current),b=()=>{s.current=!0};return C.addEventListener(u,h),C.addEventListener("touchmove",b),()=>{C.removeEventListener(u,h),C.removeEventListener("touchmove",b)}}},[h,r]),i!==!1&&(f[i]=j(i)),c.useEffect(()=>{if(i!==!1){const u=zn(i),C=Te(l.current);return C.addEventListener(u,h),()=>{C.removeEventListener(u,h)}}},[h,i]),c.cloneElement(t,f)}function Si(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Do(e){const t=Te(e);return t.body===e?We(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ut(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mn(e){return parseInt(We(e).getComputedStyle(e).paddingRight,10)||0}function zo(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function On(e,t,n,i,a){const r=[t,n,...i];[].forEach.call(e.children,s=>{const l=!r.includes(s),d=!zo(s);l&&d&&ut(s,a)})}function $t(e,t){let n=-1;return e.some((i,a)=>t(i)?(n=a,!0):!1),n}function Mo(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(Do(i)){const s=Si(We(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Mn(i)+s}px`;const l=Te(i).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Mn(d)+s}px`})}let r;if(i.parentNode instanceof DocumentFragment)r=Te(i).body;else{const s=i.parentElement,l=We(i);r=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:i}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:s,property:l})=>{r?s.style.setProperty(l,r):s.style.removeProperty(l)})}}function Oo(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Lo{constructor(){this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&ut(t.modalRef,!1);const a=Oo(n);On(n,t.mount,t.modalRef,a,!0);const r=$t(this.containers,s=>s.container===n);return r!==-1?(this.containers[r].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),i)}mount(t,n){const i=$t(this.containers,r=>r.modals.includes(t)),a=this.containers[i];a.restore||(a.restore=Mo(a,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const a=$t(this.containers,s=>s.modals.includes(t)),r=this.containers[a];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(i,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&ut(t.modalRef,n),On(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=r.modals[r.modals.length-1];s.modalRef&&ut(s.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const No=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $o(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Wo(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Ho(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Wo(e))}function Bo(e){const t=[],n=[];return Array.from(e.querySelectorAll(No)).forEach((i,a)=>{const r=$o(i);r===-1||!Ho(i)||(r===0?t.push(i):n.push({documentOrder:a,tabIndex:r,node:i}))}),n.sort((i,a)=>i.tabIndex===a.tabIndex?i.documentOrder-a.documentOrder:i.tabIndex-a.tabIndex).map(i=>i.node).concat(t)}function qo(){return!0}function Uo(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:a=!1,getTabbable:r=Bo,isEnabled:s=qo,open:l}=e,d=c.useRef(!1),m=c.useRef(null),v=c.useRef(null),h=c.useRef(null),j=c.useRef(null),f=c.useRef(!1),u=c.useRef(null),C=Be(Ft(t),u),b=c.useRef(null);c.useEffect(()=>{!l||!u.current||(f.current=!n)},[n,l]),c.useEffect(()=>{if(!l||!u.current)return;const g=Te(u.current);return u.current.contains(g.activeElement)||(u.current.hasAttribute("tabIndex")||u.current.setAttribute("tabIndex","-1"),f.current&&u.current.focus()),()=>{a||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[l]),c.useEffect(()=>{if(!l||!u.current)return;const g=Te(u.current),k=w=>{b.current=w,!(i||!s()||w.key!=="Tab")&&g.activeElement===u.current&&w.shiftKey&&(d.current=!0,v.current&&v.current.focus())},p=()=>{const w=u.current;if(w===null)return;if(!g.hasFocus()||!s()||d.current){d.current=!1;return}if(w.contains(g.activeElement)||i&&g.activeElement!==m.current&&g.activeElement!==v.current)return;if(g.activeElement!==j.current)j.current=null;else if(j.current!==null)return;if(!f.current)return;let D=[];if((g.activeElement===m.current||g.activeElement===v.current)&&(D=r(u.current)),D.length>0){const z=!!(b.current?.shiftKey&&b.current?.key==="Tab"),L=D[0],H=D[D.length-1];typeof L!="string"&&typeof H!="string"&&(z?H.focus():L.focus())}else w.focus()};g.addEventListener("focusin",p),g.addEventListener("keydown",k,!0);const y=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&p()},50);return()=>{clearInterval(y),g.removeEventListener("focusin",p),g.removeEventListener("keydown",k,!0)}},[n,i,a,s,l,r]);const x=g=>{h.current===null&&(h.current=g.relatedTarget),f.current=!0,j.current=g.target;const k=t.props.onFocus;k&&k(g)},R=g=>{h.current===null&&(h.current=g.relatedTarget),f.current=!0};return o.jsxs(c.Fragment,{children:[o.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:m,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:C,onFocus:x}),o.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:v,"data-testid":"sentinelEnd"})]})}function _o(e){return typeof e=="function"?e():e}function Vo(e){return e?e.props.hasOwnProperty("in"):!1}const Ln=()=>{},ht=new Lo;function Ko(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:a=!1,onTransitionEnter:r,onTransitionExited:s,children:l,onClose:d,open:m,rootRef:v}=e,h=c.useRef({}),j=c.useRef(null),f=c.useRef(null),u=Be(f,v),[C,b]=c.useState(!m),x=Vo(l);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const g=()=>Te(j.current),k=()=>(h.current.modalRef=f.current,h.current.mount=j.current,h.current),p=()=>{ht.mount(k(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},y=it(()=>{const E=_o(t)||g().body;ht.add(k(),E),f.current&&p()}),w=()=>ht.isTopModal(k()),D=it(E=>{j.current=E,E&&(m&&w()?p():f.current&&ut(f.current,R))}),z=c.useCallback(()=>{ht.remove(k(),R)},[R]);c.useEffect(()=>()=>{z()},[z]),c.useEffect(()=>{m?y():(!x||!a)&&z()},[m,z,x,a,y]);const L=E=>A=>{E.onKeyDown?.(A),!(A.key!=="Escape"||A.which===229||!w())&&(n||(A.stopPropagation(),d&&d(A,"escapeKeyDown")))},H=E=>A=>{E.onClick?.(A),A.target===A.currentTarget&&d&&d(A,"backdropClick")};return{getRootProps:(E={})=>{const A=_t(e);delete A.onTransitionEnter,delete A.onTransitionExited;const G={...A,...E};return{role:"presentation",...G,onKeyDown:L(G),ref:u}},getBackdropProps:(E={})=>{const A=E;return{"aria-hidden":!0,...A,onClick:H(A),open:m}},getTransitionProps:()=>{const E=()=>{b(!1),r&&r()},A=()=>{b(!0),s&&s(),a&&z()};return{onEnter:In(E,l?.props.onEnter??Ln),onExited:In(A,l?.props.onExited??Ln)}},rootRef:u,portalRef:D,isTopModal:w,exited:C,hasTransition:x}}function Go(e){return be("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const Jo=e=>{const{open:t,exited:n,classes:i}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Go,i)},Xo=W("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Yo=W(Ci,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ri=c.forwardRef(function(t,n){const i=ye({name:"MuiModal",props:t}),{BackdropComponent:a=Yo,BackdropProps:r,classes:s,className:l,closeAfterTransition:d=!1,children:m,container:v,component:h,components:j={},componentsProps:f={},disableAutoFocus:u=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:b=!1,disablePortal:x=!1,disableRestoreFocus:R=!1,disableScrollLock:g=!1,hideBackdrop:k=!1,keepMounted:p=!1,onClose:y,onTransitionEnter:w,onTransitionExited:D,open:z,slotProps:L={},slots:H={},theme:B,...q}=i,F={...i,closeAfterTransition:d,disableAutoFocus:u,disableEnforceFocus:C,disableEscapeKeyDown:b,disablePortal:x,disableRestoreFocus:R,disableScrollLock:g,hideBackdrop:k,keepMounted:p},{getRootProps:E,getBackdropProps:A,getTransitionProps:G,portalRef:te,isTopModal:T,exited:ee,hasTransition:ie}=Ko({...F,rootRef:n}),Z={...F,exited:ee},J=Jo(Z),Y={};if(m.props.tabIndex===void 0&&(Y.tabIndex="-1"),ie){const{onEnter:$,onExited:U}=G();Y.onEnter=$,Y.onExited=U}const oe={slots:{root:j.Root,backdrop:j.Backdrop,...H},slotProps:{...f,...L}},[ce,ue]=pe("root",{ref:n,elementType:Xo,externalForwardedProps:{...oe,...q,component:h},getSlotProps:E,ownerState:Z,className:de(l,J?.root,!Z.open&&Z.exited&&J?.hidden)}),[je,ne]=pe("backdrop",{ref:r?.ref,elementType:a,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:$=>A({...$,onClick:U=>{$?.onClick&&$.onClick(U)}}),className:de(r?.className,J?.backdrop),ownerState:Z});return!p&&!z&&(!ie||ee)?null:o.jsx(ao,{ref:te,container:v,disablePortal:x,children:o.jsxs(ce,{...ue,children:[!k&&a?o.jsx(je,{...ne}):null,o.jsx(Uo,{disableEnforceFocus:C,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:T,open:z,children:c.cloneElement(m,Y)})]})})});function Zo(e){return be("MuiDialog",e)}const Wt=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Pi=c.createContext({}),Qo=W(Ci,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ea=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:a,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(i))}`,a&&"paperFullWidth",r&&"paperFullScreen"]};return xe(s,Zo,t)},ta=W(Ri,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),na=W("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),ia=W(xt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ke(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wt.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Qe=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialog"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:m,BackdropProps:v,children:h,className:j,disableEscapeKeyDown:f=!1,fullScreen:u=!1,fullWidth:C=!1,maxWidth:b="sm",onClick:x,onClose:R,open:g,PaperComponent:k=xt,PaperProps:p={},scroll:y="paper",slots:w={},slotProps:D={},TransitionComponent:z=Zt,transitionDuration:L=r,TransitionProps:H,...B}=i,q={...i,disableEscapeKeyDown:f,fullScreen:u,fullWidth:C,maxWidth:b,scroll:y},F=ea(q),E=c.useRef(),A=K=>{E.current=K.target===K.currentTarget},G=K=>{x&&x(K),E.current&&(E.current=null,R&&R(K,"backdropClick"))},te=sn(l),T=c.useMemo(()=>({titleId:te}),[te]),ee={transition:z,...w},ie={transition:H,paper:p,backdrop:v,...D},Z={slots:ee,slotProps:ie},[J,Y]=pe("root",{elementType:ta,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q,className:de(F.root,j),ref:n}),[oe,ce]=pe("backdrop",{elementType:Qo,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q}),[ue,je]=pe("paper",{elementType:ia,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q,className:de(F.paper,p.className)}),[ne,$]=pe("container",{elementType:na,externalForwardedProps:Z,ownerState:q,className:F.container}),[U,V]=pe("transition",{elementType:Zt,externalForwardedProps:Z,ownerState:q,additionalProps:{appear:!0,in:g,timeout:L,role:"presentation"}});return o.jsx(J,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:L,as:m,...ce}},disableEscapeKeyDown:f,onClose:R,open:g,onClick:G,...Y,...B,children:o.jsx(U,{...V,children:o.jsx(ne,{onMouseDown:A,...$,children:o.jsx(ue,{as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":te,"aria-modal":d,...je,children:o.jsx(Pi.Provider,{value:T,children:h})})})})})});function oa(e){return be("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const aa=e=>{const{classes:t,disableSpacing:n}=e;return xe({root:["root",!n&&"spacing"]},oa,t)},ra=W("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),et=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:r=!1,...s}=i,l={...i,disableSpacing:r},d=aa(l);return o.jsx(ra,{className:de(d.root,a),ownerState:l,ref:n,...s})});function sa(e){return be("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);function la(e){return be("MuiDialogTitle",e)}const ca=he("MuiDialogTitle",["root"]),pa=e=>{const{classes:t,dividers:n}=e;return xe({root:["root",n&&"dividers"]},sa,t)},da=W("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ke(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${ca.root} + &`]:{paddingTop:0}}}]}))),tt=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogContent"}),{className:a,dividers:r=!1,...s}=i,l={...i,dividers:r},d=pa(l);return o.jsx(da,{className:de(d.root,a),ownerState:l,ref:n,...s})}),ua=e=>{const{classes:t}=e;return xe({root:["root"]},la,t)},ma=W(_,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),nt=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogTitle"}),{className:a,id:r,...s}=i,l=i,d=ua(l),{titleId:m=r}=c.useContext(Pi);return o.jsx(ma,{component:"h2",className:de(d.root,a),ownerState:l,ref:n,variant:"h6",id:r??m,...s})});function fa(e){return be("MuiDivider",e)}he("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xa=e=>{const{absolute:t,children:n,classes:i,flexItem:a,light:r,orientation:s,textAlign:l,variant:d}=e;return xe({root:["root",t&&"absolute",d,r&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},fa,i)},va=W("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ke(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),ga=W("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ke(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),St=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDivider"}),{absolute:a=!1,children:r,className:s,orientation:l="horizontal",component:d=r||l==="vertical"?"div":"hr",flexItem:m=!1,light:v=!1,role:h=d!=="hr"?"separator":void 0,textAlign:j="center",variant:f="fullWidth",...u}=i,C={...i,absolute:a,component:d,flexItem:m,light:v,orientation:l,role:h,textAlign:j,variant:f},b=xa(C);return o.jsx(va,{as:d,className:de(b.root,s),role:h,ref:n,ownerState:C,"aria-orientation":h==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...u,children:r?o.jsx(ga,{className:b.wrapper,ownerState:C,children:r}):null})});St&&(St.muiSkipListHighlight=!0);const ha=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:a,size:r,hiddenLabel:s,multiline:l}=e,d={root:["root",!n&&"underline",i&&"adornedStart",a&&"adornedEnd",r==="small"&&`size${fe(r)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},m=xe(d,So,t);return{...t,...m}},ba=W(Dt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...At(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ve.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ve.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ve.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ve.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ve.disabled}, .${Ve.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ve.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(It()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ya=W(zt,{name:"MuiFilledInput",slot:"Input",overridesResolver:Tt})(ke(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),un=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,hiddenLabel:d,inputComponent:m="input",multiline:v=!1,slotProps:h,slots:j={},type:f="text",...u}=i,C={...i,disableUnderline:a,fullWidth:l,inputComponent:m,multiline:v,type:f},b=ha(i),x={root:{ownerState:C},input:{ownerState:C}},R=h??s?ln(x,h??s):x,g=j.root??r.Root??ba,k=j.input??r.Input??ya;return o.jsx(dn,{slots:{root:g,input:k},slotProps:R,fullWidth:l,inputComponent:m,multiline:v,ref:n,type:f,...u,classes:b})});un.muiName="Input";function wa(e){return be("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ka=e=>{const{classes:t,margin:n,fullWidth:i}=e,a={root:["root",n!=="none"&&`margin${fe(n)}`,i&&"fullWidth"]};return xe(a,wa,t)},ja=W("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${fe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ca=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormControl"}),{children:a,className:r,color:s="primary",component:l="div",disabled:d=!1,error:m=!1,focused:v,fullWidth:h=!1,hiddenLabel:j=!1,margin:f="none",required:u=!1,size:C="medium",variant:b="outlined",...x}=i,R={...i,color:s,component:l,disabled:d,error:m,fullWidth:h,hiddenLabel:j,margin:f,required:u,size:C,variant:b},g=ka(R),[k,p]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,A=>{if(!Mt(A,["Input","Select"]))return;const G=Mt(A,["Select"])?A.props.input:A;G&&yo(G.props)&&(E=!0)}),E}),[y,w]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,A=>{Mt(A,["Input","Select"])&&(Ct(A.props,!0)||Ct(A.props.inputProps,!0))&&(E=!0)}),E}),[D,z]=c.useState(!1);d&&D&&z(!1);const L=v!==void 0&&!d?v:D;let H;c.useRef(!1);const B=c.useCallback(()=>{w(!0)},[]),q=c.useCallback(()=>{w(!1)},[]),F=c.useMemo(()=>({adornedStart:k,setAdornedStart:p,color:s,disabled:d,error:m,filled:y,focused:L,fullWidth:h,hiddenLabel:j,size:C,onBlur:()=>{z(!1)},onFocus:()=>{z(!0)},onEmpty:q,onFilled:B,registerEffect:H,required:u,variant:b}),[k,s,d,m,y,L,h,j,H,q,B,u,C,b]);return o.jsx(pn.Provider,{value:F,children:o.jsx(ja,{as:l,ownerState:R,className:de(g.root,r),ref:n,...x,children:a})})});function Sa(e){return be("MuiFormHelperText",e)}const Nn=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $n;const Ra=e=>{const{classes:t,contained:n,size:i,disabled:a,error:r,filled:s,focused:l,required:d}=e,m={root:["root",a&&"disabled",r&&"error",i&&`size${fe(i)}`,n&&"contained",l&&"focused",s&&"filled",d&&"required"]};return xe(m,Sa,t)},Pa=W("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nn.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Ea=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormHelperText"}),{children:a,className:r,component:s="p",disabled:l,error:d,filled:m,focused:v,margin:h,required:j,variant:f,...u}=i,C=st(),b=rt({props:i,muiFormControl:C,states:["variant","size","disabled","error","filled","focused","required"]}),x={...i,component:s,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete x.ownerState;const R=Ra(x);return o.jsx(Pa,{as:s,className:de(R.root,r),ref:n,...u,ownerState:x,children:a===" "?$n||($n=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function Ia(e){return be("MuiFormLabel",e)}const mt=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Fa=e=>{const{classes:t,color:n,focused:i,disabled:a,error:r,filled:s,required:l}=e,d={root:["root",`color${fe(n)}`,a&&"disabled",r&&"error",s&&"filled",i&&"focused",l&&"required"],asterisk:["asterisk",r&&"error"]};return xe(d,Ia,t)},Aa=W("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(It()).map(([t])=>({props:{color:t},style:{[`&.${mt.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${mt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mt.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Ta=W("span",{name:"MuiFormLabel",slot:"Asterisk"})(ke(({theme:e})=>({[`&.${mt.error}`]:{color:(e.vars||e).palette.error.main}}))),Da=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormLabel"}),{children:a,className:r,color:s,component:l="label",disabled:d,error:m,filled:v,focused:h,required:j,...f}=i,u=st(),C=rt({props:i,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),b={...i,color:C.color||"primary",component:l,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required},x=Fa(b);return o.jsxs(Aa,{as:l,ownerState:b,className:de(x.root,r),ref:n,...f,children:[a,C.required&&o.jsxs(Ta,{ownerState:b,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})}),za=e=>{const{classes:t,disableUnderline:n}=e,a=xe({root:["root",!n&&"underline"],input:["input"]},jo,t);return{...t,...a}},Ma=W(Dt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...At(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lt.disabled}, .${lt.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${lt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(It()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),Oa=W(zt,{name:"MuiInput",slot:"Input",overridesResolver:Tt})({}),mn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,inputComponent:d="input",multiline:m=!1,slotProps:v,slots:h={},type:j="text",...f}=i,u=za(i),b={root:{ownerState:{disableUnderline:a}}},x=v??s?ln(v??s,b):b,R=h.root??r.Root??Ma,g=h.input??r.Input??Oa;return o.jsx(dn,{slots:{root:R,input:g},slotProps:x,fullWidth:l,inputComponent:d,multiline:m,ref:n,type:j,...f,classes:u})});mn.muiName="Input";function La(e){return be("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Na=e=>{const{classes:t,formControl:n,size:i,shrink:a,disableAnimation:r,variant:s,required:l}=e,d={root:["root",n&&"formControl",!r&&"animated",a&&"shrink",i&&i!=="medium"&&`size${fe(i)}`,s],asterisk:[l&&"asterisk"]},m=xe(d,La,t);return{...t,...m}},$a=W(Da,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mt.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:i})=>t==="filled"&&n.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Wa=c.forwardRef(function(t,n){const i=ye({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:r,shrink:s,variant:l,className:d,...m}=i,v=st();let h=s;typeof h>"u"&&v&&(h=v.filled||v.focused||v.adornedStart);const j=rt({props:i,muiFormControl:v,states:["size","variant","required","focused"]}),f={...i,disableAnimation:a,formControl:v,shrink:h,size:j.size,variant:j.variant,required:j.required,focused:j.focused},u=Na(f);return o.jsx($a,{"data-shrink":h,ref:n,className:de(u.root,d),...m,ownerState:f,classes:u})});function Ht(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wn(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ei(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ct(e,t,n,i,a,r){let s=!1,l=a(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const d=i?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Ei(l,r)||d)l=a(e,l,n);else return l.focus(),!0}return!1}const Ha=c.forwardRef(function(t,n){const{actions:i,autoFocus:a=!1,autoFocusItem:r=!1,children:s,className:l,disabledItemsFocusable:d=!1,disableListWrap:m=!1,onKeyDown:v,variant:h="selectedMenu",...j}=t,f=c.useRef(null),u=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jt(()=>{a&&f.current.focus()},[a]),c.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(g,{direction:k})=>{const p=!f.current.style.width;if(g.clientHeight{const k=f.current,p=g.key;if(g.ctrlKey||g.metaKey||g.altKey){v&&v(g);return}const w=Te(k).activeElement;if(p==="ArrowDown")g.preventDefault(),ct(k,w,m,d,Ht);else if(p==="ArrowUp")g.preventDefault(),ct(k,w,m,d,Wn);else if(p==="Home")g.preventDefault(),ct(k,null,m,d,Ht);else if(p==="End")g.preventDefault(),ct(k,null,m,d,Wn);else if(p.length===1){const D=u.current,z=p.toLowerCase(),L=performance.now();D.keys.length>0&&(L-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&z!==D.keys[0]&&(D.repeating=!1)),D.lastTime=L,D.keys.push(z);const H=w&&!D.repeating&&Ei(w,D);D.previousKeyMatched&&(H||ct(k,w,!1,d,Ht,D))?g.preventDefault():D.previousKeyMatched=!1}v&&v(g)},b=Be(f,n);let x=-1;c.Children.forEach(s,(g,k)=>{if(!c.isValidElement(g)){x===k&&(x+=1,x>=s.length&&(x=-1));return}g.props.disabled||(h==="selectedMenu"&&g.props.selected||x===-1)&&(x=k),x===k&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(x+=1,x>=s.length&&(x=-1))});const R=c.Children.map(s,(g,k)=>{if(k===x){const p={};return r&&(p.autoFocus=!0),g.props.tabIndex===void 0&&h==="selectedMenu"&&(p.tabIndex=0),c.cloneElement(g,p)}return g});return o.jsx(Jt,{role:"menu",ref:b,className:l,onKeyDown:C,tabIndex:a?0:-1,...j,children:R})});function Ba(e){return be("MuiPopover",e)}he("MuiPopover",["root","paper"]);function Hn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Bn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function qn(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function bt(e){return typeof e=="function"?e():e}const qa=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},Ba,t)},Ua=W(Ri,{name:"MuiPopover",slot:"Root"})({}),Ii=W(xt,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),_a=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiPopover"}),{action:a,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:m,className:v,container:h,elevation:j=8,marginThreshold:f=16,open:u,PaperProps:C={},slots:b={},slotProps:x={},transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:g,transitionDuration:k="auto",TransitionProps:p={},disableScrollLock:y=!1,...w}=i,D=c.useRef(),z={...i,anchorOrigin:s,anchorReference:d,elevation:j,marginThreshold:f,transformOrigin:R,TransitionComponent:g,transitionDuration:k,TransitionProps:p},L=qa(z),H=c.useCallback(()=>{if(d==="anchorPosition")return l;const $=bt(r),V=($&&$.nodeType===1?$:Te(D.current).body).getBoundingClientRect();return{top:V.top+Hn(V,s.vertical),left:V.left+Bn(V,s.horizontal)}},[r,s.horizontal,s.vertical,l,d]),B=c.useCallback($=>({vertical:Hn($,R.vertical),horizontal:Bn($,R.horizontal)}),[R.horizontal,R.vertical]),q=c.useCallback($=>{const U={width:$.offsetWidth,height:$.offsetHeight},V=B(U);if(d==="none")return{top:null,left:null,transformOrigin:qn(V)};const K=H();let S=K.top-V.vertical,M=K.left-V.horizontal;const Q=S+U.height,ve=M+U.width,Ee=We(bt(r)),Ae=Ee.innerHeight-f,Pe=Ee.innerWidth-f;if(f!==null&&SAe){const Se=Q-Ae;S-=Se,V.vertical+=Se}if(f!==null&&MPe){const Se=ve-Pe;M-=Se,V.horizontal+=Se}return{top:`${Math.round(S)}px`,left:`${Math.round(M)}px`,transformOrigin:qn(V)}},[r,d,H,B,f]),[F,E]=c.useState(u),A=c.useCallback(()=>{const $=D.current;if(!$)return;const U=q($);U.top!==null&&$.style.setProperty("top",U.top),U.left!==null&&($.style.left=U.left),$.style.transformOrigin=U.transformOrigin,E(!0)},[q]);c.useEffect(()=>(y&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[r,y,A]);const G=()=>{A()},te=()=>{E(!1)};c.useEffect(()=>{u&&A()}),c.useImperativeHandle(a,()=>u?{updatePosition:()=>{A()}}:null,[u,A]),c.useEffect(()=>{if(!u)return;const $=wi(()=>{A()}),U=We(bt(r));return U.addEventListener("resize",$),()=>{$.clear(),U.removeEventListener("resize",$)}},[r,u,A]);let T=k;const ee={slots:{transition:g,...b},slotProps:{transition:p,paper:C,...x}},[ie,Z]=pe("transition",{elementType:ki,externalForwardedProps:ee,ownerState:z,getSlotProps:$=>({...$,onEntering:(U,V)=>{$.onEntering?.(U,V),G()},onExited:U=>{$.onExited?.(U),te()}}),additionalProps:{appear:!0,in:u}});k==="auto"&&!ie.muiSupportAuto&&(T=void 0);const J=h||(r?Te(bt(r)).body:void 0),[Y,{slots:oe,slotProps:ce,...ue}]=pe("root",{ref:n,elementType:Ua,externalForwardedProps:{...ee,...w},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:vo(typeof x.backdrop=="function"?x.backdrop(z):x.backdrop,{invisible:!0})},container:J,open:u},ownerState:z,className:de(L.root,v)}),[je,ne]=pe("paper",{ref:D,className:L.paper,elementType:Ii,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:j,style:F?void 0:{opacity:0}},ownerState:z});return o.jsx(Y,{...ue,...!Ut(Y)&&{slots:oe,slotProps:ce,disableScrollLock:y},children:o.jsx(ie,{...Z,timeout:T,children:o.jsx(je,{...ne,children:m})})})});function Va(e){return be("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Ka={vertical:"top",horizontal:"right"},Ga={vertical:"top",horizontal:"left"},Ja=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},Va,t)},Xa=W(_a,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ya=W(Ii,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Za=W(Ha,{name:"MuiMenu",slot:"List"})({outline:0}),Qa=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:r,className:s,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:m,open:v,PaperProps:h={},PopoverClasses:j,transitionDuration:f="auto",TransitionProps:{onEntering:u,...C}={},variant:b="selectedMenu",slots:x={},slotProps:R={},...g}=i,k=Ki(),p={...i,autoFocus:a,disableAutoFocusItem:l,MenuListProps:d,onEntering:u,PaperProps:h,transitionDuration:f,TransitionProps:C,variant:b},y=Ja(p),w=a&&!l&&v,D=c.useRef(null),z=(T,ee)=>{D.current&&D.current.adjustStyleForScrollbar(T,{direction:k?"rtl":"ltr"}),u&&u(T,ee)},L=T=>{T.key==="Tab"&&(T.preventDefault(),m&&m(T,"tabKeyDown"))};let H=-1;c.Children.map(r,(T,ee)=>{c.isValidElement(T)&&(T.props.disabled||(b==="selectedMenu"&&T.props.selected||H===-1)&&(H=ee))});const B={slots:x,slotProps:{list:d,transition:C,paper:h,...R}},q=eo({elementType:x.root,externalSlotProps:R.root,ownerState:p,className:[y.root,s]}),[F,E]=pe("paper",{className:y.paper,elementType:Ya,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:p}),[A,G]=pe("list",{className:de(y.list,d.className),elementType:Za,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:T=>({...T,onKeyDown:ee=>{L(ee),T.onKeyDown?.(ee)}}),ownerState:p}),te=typeof B.slotProps.transition=="function"?B.slotProps.transition(p):B.slotProps.transition;return o.jsx(Xa,{onClose:m,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Ka:Ga,slots:{root:x.root,paper:F,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:q,paper:E,backdrop:typeof R.backdrop=="function"?R.backdrop(p):R.backdrop,transition:{...te,onEntering:(...T)=>{z(...T),te?.onEntering?.(...T)}}},open:v,ref:n,transitionDuration:f,ownerState:p,...g,classes:j,children:o.jsx(A,{actions:D,autoFocus:a&&(H===-1||l),autoFocusItem:w,variant:b,...G,children:r})})});function er(e){return be("MuiNativeSelect",e)}const fn=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tr=e=>{const{classes:t,variant:n,disabled:i,multiple:a,open:r,error:s}=e,l={select:["select",n,i&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",i&&"disabled"]};return xe(l,er,t)},Fi=W("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${fn.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),nr=W(Fi,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:He,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${fn.multiple}`]:t.multiple}]}})({}),Ai=W("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${fn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ir=W(Ai,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),or=c.forwardRef(function(t,n){const{className:i,disabled:a,error:r,IconComponent:s,inputRef:l,variant:d="standard",...m}=t,v={...t,disabled:a,variant:d,error:r},h=tr(v);return o.jsxs(c.Fragment,{children:[o.jsx(nr,{ownerState:v,className:de(h.select,i),disabled:a,ref:l||n,...m}),t.multiple?null:o.jsx(ir,{as:s,ownerState:v,className:h.icon})]})});var Un;const ar=W("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:He})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rr=W("legend",{name:"MuiNotchedOutlined",shouldForwardProp:He})(ke(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function sr(e){const{children:t,classes:n,className:i,label:a,notched:r,...s}=e,l=a!=null&&a!=="",d={...e,notched:r,withLabel:l};return o.jsx(ar,{"aria-hidden":!0,className:i,ownerState:d,...s,children:o.jsx(rr,{ownerState:d,children:l?o.jsx("span",{children:a}):Un||(Un=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const lr=e=>{const{classes:t}=e,i=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Co,t);return{...t,...i}},cr=W(Dt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:At})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ne.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(It()).map(([n])=>({props:{color:n},style:{[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ne.error} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ne.disabled} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:i})=>n.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),pr=W(sr,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),dr=W(zt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Tt})(ke(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),xn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:r=!1,inputComponent:s="input",label:l,multiline:d=!1,notched:m,slots:v={},slotProps:h={},type:j="text",...f}=i,u=lr(i),C=st(),b=rt({props:i,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...i,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:C,fullWidth:r,hiddenLabel:b.hiddenLabel,multiline:d,size:b.size,type:j},R=v.root??a.Root??cr,g=v.input??a.Input??dr,[k,p]=pe("notchedOutline",{elementType:pr,className:u.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:v,slotProps:h},additionalProps:{label:l!=null&&l!==""&&b.required?o.jsxs(c.Fragment,{children:[l," ","*"]}):l}});return o.jsx(dn,{slots:{root:R,input:g},slotProps:h,renderSuffix:y=>o.jsx(k,{...p,notched:typeof m<"u"?m:!!(y.startAdornment||y.filled||y.focused)}),fullWidth:r,inputComponent:s,multiline:d,ref:n,type:j,...f,classes:{...u,notchedOutline:null}})});xn.muiName="Input";function Ti(e){return be("MuiSelect",e)}const pt=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _n;const ur=W(Fi,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${pt.select}`]:t.select},{[`&.${pt.select}`]:t[n.variant]},{[`&.${pt.error}`]:t.error},{[`&.${pt.multiple}`]:t.multiple}]}})({[`&.${pt.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mr=W(Ai,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),fr=W("input",{shouldForwardProp:e=>Gi(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vn(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xr(e){return e==null||typeof e=="string"&&!e.trim()}const vr=e=>{const{classes:t,variant:n,disabled:i,multiple:a,open:r,error:s}=e,l={select:["select",n,i&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return xe(l,Ti,t)},gr=c.forwardRef(function(t,n){const{"aria-describedby":i,"aria-label":a,autoFocus:r,autoWidth:s,children:l,className:d,defaultOpen:m,defaultValue:v,disabled:h,displayEmpty:j,error:f=!1,IconComponent:u,inputRef:C,labelId:b,MenuProps:x={},multiple:R,name:g,onBlur:k,onChange:p,onClose:y,onFocus:w,onOpen:D,open:z,readOnly:L,renderValue:H,required:B,SelectDisplayProps:q={},tabIndex:F,type:E,value:A,variant:G="standard",...te}=t,[T,ee]=Cn({controlled:A,default:v,name:"Select"}),[ie,Z]=Cn({controlled:z,default:m,name:"Select"}),J=c.useRef(null),Y=c.useRef(null),[oe,ce]=c.useState(null),{current:ue}=c.useRef(z!=null),[je,ne]=c.useState(),$=Be(n,C),U=c.useCallback(N=>{Y.current=N,N&&ce(N)},[]),V=oe?.parentNode;c.useImperativeHandle($,()=>({focus:()=>{Y.current.focus()},node:J.current,value:T}),[T]),c.useEffect(()=>{m&&ie&&oe&&!ue&&(ne(s?null:V.clientWidth),Y.current.focus())},[oe,s]),c.useEffect(()=>{r&&Y.current.focus()},[r]),c.useEffect(()=>{if(!b)return;const N=Te(Y.current).getElementById(b);if(N){const ae=()=>{getSelection().isCollapsed&&Y.current.focus()};return N.addEventListener("click",ae),()=>{N.removeEventListener("click",ae)}}},[b]);const K=(N,ae)=>{N?D&&D(ae):y&&y(ae),ue||(ne(s?null:V.clientWidth),Z(N))},S=N=>{N.button===0&&(N.preventDefault(),Y.current.focus(),K(!0,N))},M=N=>{K(!1,N)},Q=c.Children.toArray(l),ve=N=>{const ae=Q.find(we=>we.props.value===N.target.value);ae!==void 0&&(ee(ae.props.value),p&&p(N,ae))},Ee=N=>ae=>{let we;if(ae.currentTarget.hasAttribute("tabindex")){if(R){we=Array.isArray(T)?T.slice():[];const Le=T.indexOf(N.props.value);Le===-1?we.push(N.props.value):we.splice(Le,1)}else we=N.props.value;if(N.props.onClick&&N.props.onClick(ae),T!==we&&(ee(we),p)){const Le=ae.nativeEvent||ae,vt=new Le.constructor(Le.type,Le);Object.defineProperty(vt,"target",{writable:!0,value:{value:we,name:g}}),p(vt,N)}R||K(!1,ae)}},Ae=N=>{L||[" ","ArrowUp","ArrowDown","Enter"].includes(N.key)&&(N.preventDefault(),K(!0,N))},Pe=oe!==null&&ie,Se=N=>{!Pe&&k&&(Object.defineProperty(N,"target",{writable:!0,value:{value:T,name:g}}),k(N))};delete te["aria-invalid"];let De,Me;const P=[];let O=!1;(Ct({value:T})||j)&&(H?De=H(T):O=!0);const le=Q.map(N=>{if(!c.isValidElement(N))return null;let ae;if(R){if(!Array.isArray(T))throw new Error(vi(2));ae=T.some(we=>Vn(we,N.props.value)),ae&&O&&P.push(N.props.children)}else ae=Vn(T,N.props.value),ae&&O&&(Me=N.props.children);return c.cloneElement(N,{"aria-selected":ae?"true":"false",onClick:Ee(N),onKeyUp:we=>{we.key===" "&&we.preventDefault(),N.props.onKeyUp&&N.props.onKeyUp(we)},role:"option",selected:ae,value:void 0,"data-value":N.props.value})});O&&(R?P.length===0?De=null:De=P.reduce((N,ae,we)=>(N.push(ae),we{const{classes:t}=e,i=xe({root:["root"]},Ti,t);return{...t,...i}},vn={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>He(e)&&e!=="variant"},br=W(mn,vn)(""),yr=W(xn,vn)(""),wr=W(un,vn)(""),Di=c.forwardRef(function(t,n){const i=ye({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:r,classes:s={},className:l,defaultOpen:d=!1,displayEmpty:m=!1,IconComponent:v=Ro,id:h,input:j,inputProps:f,label:u,labelId:C,MenuProps:b,multiple:x=!1,native:R=!1,onClose:g,onOpen:k,open:p,renderValue:y,SelectDisplayProps:w,variant:D="outlined",...z}=i,L=R?or:gr,H=st(),B=rt({props:i,muiFormControl:H,states:["variant","error"]}),q=B.variant||D,F={...i,variant:q,classes:s},E=hr(F),{root:A,...G}=E,te=j||{standard:o.jsx(br,{ownerState:F}),outlined:o.jsx(yr,{label:u,ownerState:F}),filled:o.jsx(wr,{ownerState:F})}[q],T=Be(n,Ft(te));return o.jsx(c.Fragment,{children:c.cloneElement(te,{inputComponent:L,inputProps:{children:r,error:B.error,IconComponent:v,variant:q,type:void 0,multiple:x,...R?{id:h}:{autoWidth:a,defaultOpen:d,displayEmpty:m,labelId:C,MenuProps:b,onClose:g,onOpen:k,open:p,renderValue:y,SelectDisplayProps:{id:h,...w}},...f,classes:f?ln(G,f.classes):G,...j?j.props.inputProps:{}},...(x&&R||m)&&q==="outlined"?{notched:!0}:{},ref:T,className:de(te.props.className,l,E.root),...!j&&{variant:q},...z})})});Di.muiName="Select";function kr(e){return be("MuiSkeleton",e)}he("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const jr=e=>{const{classes:t,variant:n,animation:i,hasChildren:a,width:r,height:s}=e;return xe({root:["root",n,i,a&&"withChildren",a&&!r&&"fitContent",a&&!s&&"heightAuto"]},kr,t)},Qt=hi` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`,en=hi` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`,Cr=typeof Qt!="string"?gi` + animation: ${Qt} 2s ease-in-out 0.5s infinite; + `:null,Sr=typeof en!="string"?gi` + &::after { + animation: ${en} 2s linear 0.5s infinite; + } + `:null,Rr=W("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(ke(({theme:e})=>{const t=mo(e.shape.borderRadius)||"px",n=fo(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:i})=>i.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:i})=>i.hasChildren&&!i.width,style:{maxWidth:"fit-content"}},{props:({ownerState:i})=>i.hasChildren&&!i.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Cr||{animation:`${Qt} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + 90deg, + transparent, + ${(e.vars||e).palette.action.hover}, + transparent + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Sr||{"&::after":{animation:`${en} 2s linear 0.5s infinite`}}}]}})),Ze=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSkeleton"}),{animation:a="pulse",className:r,component:s="span",height:l,style:d,variant:m="text",width:v,...h}=i,j={...i,animation:a,component:s,variant:m,hasChildren:!!h.children},f=jr(j);return o.jsx(Rr,{as:s,ref:n,className:de(f.root,r),ownerState:j,...h,style:{width:v,height:l,...d}})});function Pr(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:i,open:a,resumeHideDuration:r}=e,s=to();c.useEffect(()=>{if(!a)return;function x(R){R.defaultPrevented||R.key==="Escape"&&i?.(R,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,i]);const l=it((x,R)=>{i?.(x,R)}),d=it(x=>{!i||x==null||s.start(x,()=>{l(null,"timeout")})});c.useEffect(()=>(a&&d(t),s.clear),[a,t,d,s]);const m=x=>{i?.(x,"clickaway")},v=s.clear,h=c.useCallback(()=>{t!=null&&d(r??t*.5)},[t,r,d]),j=x=>R=>{const g=x.onBlur;g?.(R),h()},f=x=>R=>{const g=x.onFocus;g?.(R),v()},u=x=>R=>{const g=x.onMouseEnter;g?.(R),v()},C=x=>R=>{const g=x.onMouseLeave;g?.(R),h()};return c.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",v)}},[n,a,h,v]),{getRootProps:(x={})=>{const R={..._t(e),..._t(x)};return{role:"presentation",...x,...R,onBlur:j(R),onFocus:f(R),onMouseEnter:u(R),onMouseLeave:C(R)}},onClickAway:m}}function Er(e){return be("MuiSnackbarContent",e)}he("MuiSnackbarContent",["root","message","action"]);const Ir=e=>{const{classes:t}=e;return xe({root:["root"],action:["action"],message:["message"]},Er,t)},Fr=W(xt,{name:"MuiSnackbarContent",slot:"Root"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(bn(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:bn(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Ar=W("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Tr=W("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Dr=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSnackbarContent"}),{action:a,className:r,message:s,role:l="alert",...d}=i,m=i,v=Ir(m);return o.jsxs(Fr,{role:l,elevation:6,className:de(v.root,r),ownerState:m,ref:n,...d,children:[o.jsx(Ar,{className:v.message,ownerState:m,children:s}),a?o.jsx(Tr,{className:v.action,ownerState:m,children:a}):null]})});function zr(e){return be("MuiSnackbar",e)}he("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mr=e=>{const{classes:t,anchorOrigin:n}=e,i={root:["root",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`]};return xe(i,zr,t)},Or=W("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}`]]}})(ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Lr=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSnackbar"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:m=null,children:v,className:h,ClickAwayListenerProps:j,ContentProps:f,disableWindowBlurListener:u=!1,message:C,onBlur:b,onClose:x,onFocus:R,onMouseEnter:g,onMouseLeave:k,open:p,resumeHideDuration:y,slots:w={},slotProps:D={},TransitionComponent:z,transitionDuration:L=r,TransitionProps:{onEnter:H,onExited:B,...q}={},...F}=i,E={...i,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:m,disableWindowBlurListener:u,TransitionComponent:z,transitionDuration:L},A=Mr(E),{getRootProps:G,onClickAway:te}=Pr({...E}),[T,ee]=c.useState(!0),ie=K=>{ee(!0),B&&B(K)},Z=(K,S)=>{ee(!1),H&&H(K,S)},J={slots:{transition:z,...w},slotProps:{content:f,clickAwayListener:j,transition:q,...D}},[Y,oe]=pe("root",{ref:n,className:[A.root,h],elementType:Or,getSlotProps:G,externalForwardedProps:{...J,...F},ownerState:E}),[ce,{ownerState:ue,...je}]=pe("clickAwayListener",{elementType:To,externalForwardedProps:J,getSlotProps:K=>({onClickAway:(...S)=>{const M=S[0];K.onClickAway?.(...S),!M?.defaultMuiPrevented&&te(...S)}}),ownerState:E}),[ne,$]=pe("content",{elementType:Dr,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:C,action:s},ownerState:E}),[U,V]=pe("transition",{elementType:ki,externalForwardedProps:J,getSlotProps:K=>({onEnter:(...S)=>{K.onEnter?.(...S),Z(...S)},onExited:(...S)=>{K.onExited?.(...S),ie(...S)}}),additionalProps:{appear:!0,in:p,timeout:L,direction:l==="top"?"down":"up"},ownerState:E});return!p&&T?null:o.jsx(ce,{...je,...w.clickAwayListener&&{ownerState:ue},children:o.jsx(Y,{...oe,children:o.jsx(U,{...V,children:v||o.jsx(ne,{...$})})})})});function Nr(e){return be("MuiTextField",e)}he("MuiTextField",["root"]);const $r={standard:mn,filled:un,outlined:xn},Wr=e=>{const{classes:t}=e;return xe({root:["root"]},Nr,t)},Hr=W(Ca,{name:"MuiTextField",slot:"Root"})({}),Ke=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:r=!1,children:s,className:l,color:d="primary",defaultValue:m,disabled:v=!1,error:h=!1,FormHelperTextProps:j,fullWidth:f=!1,helperText:u,id:C,InputLabelProps:b,inputProps:x,InputProps:R,inputRef:g,label:k,maxRows:p,minRows:y,multiline:w=!1,name:D,onBlur:z,onChange:L,onFocus:H,placeholder:B,required:q=!1,rows:F,select:E=!1,SelectProps:A,slots:G={},slotProps:te={},type:T,value:ee,variant:ie="outlined",...Z}=i,J={...i,autoFocus:r,color:d,disabled:v,error:h,fullWidth:f,multiline:w,required:q,select:E,variant:ie},Y=Wr(J),oe=sn(C),ce=u&&oe?`${oe}-helper-text`:void 0,ue=k&&oe?`${oe}-label`:void 0,je=$r[ie],ne={slots:G,slotProps:{input:R,inputLabel:b,htmlInput:x,formHelperText:j,select:A,...te}},$={},U=ne.slotProps.inputLabel;ie==="outlined"&&(U&&typeof U.shrink<"u"&&($.notched=U.shrink),$.label=k),E&&((!A||!A.native)&&($.id=void 0),$["aria-describedby"]=void 0);const[V,K]=pe("root",{elementType:Hr,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Z},ownerState:J,className:de(Y.root,l),ref:n,additionalProps:{disabled:v,error:h,fullWidth:f,required:q,color:d,variant:ie}}),[S,M]=pe("input",{elementType:je,externalForwardedProps:ne,additionalProps:$,ownerState:J}),[Q,ve]=pe("inputLabel",{elementType:Wa,externalForwardedProps:ne,ownerState:J}),[Ee,Ae]=pe("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:J}),[Pe,Se]=pe("formHelperText",{elementType:Ea,externalForwardedProps:ne,ownerState:J}),[De,Me]=pe("select",{elementType:Di,externalForwardedProps:ne,ownerState:J}),P=o.jsx(S,{"aria-describedby":ce,autoComplete:a,autoFocus:r,defaultValue:m,fullWidth:f,multiline:w,name:D,rows:F,maxRows:p,minRows:y,type:T,value:ee,id:oe,inputRef:g,onBlur:z,onChange:L,onFocus:H,placeholder:B,inputProps:Ae,slots:{input:G.htmlInput?Ee:void 0},...M});return o.jsxs(V,{...K,children:[k!=null&&k!==""&&o.jsx(Q,{htmlFor:oe,id:ue,...ve,children:k}),E?o.jsx(De,{"aria-describedby":ce,id:oe,labelId:ue,value:ee,input:P,...Me,children:s}):P,u&&o.jsx(Pe,{id:ce,...Se,children:u})]})});function Br(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function qr(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ur(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var Kn=e=>Array.isArray(e)?e:[e];function _r(e){const t=Array.isArray(e[0])?e[0]:e;return Ur(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Vr(e,t){const n=[],{length:i}=e;for(let a=0;a{n=yt(),s.resetResultsCount()},s.resultsCount=()=>r,s.resetResultsCount=()=>{r=0},s}function Xr(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...a)=>{let r=0,s=0,l,d={},m=a.pop();typeof m=="object"&&(d=m,m=a.pop()),Br(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const v={...n,...d},{memoize:h,memoizeOptions:j=[],argsMemoize:f=zi,argsMemoizeOptions:u=[]}=v,C=Kn(j),b=Kn(u),x=_r(a),R=h(function(){return r++,m.apply(null,arguments)},...C),g=f(function(){s++;const p=Vr(x,arguments);return l=R.apply(null,p),l},...b);return Object.assign(g,{resultFunc:m,memoizedResultFunc:R,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:h,argsMemoize:f})};return Object.assign(i,{withTypes:()=>i}),i}var gn=Xr(zi),Yr=Object.assign((e,t=gn)=>{qr(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(r=>e[r]);return t(i,(...r)=>r.reduce((s,l,d)=>(s[n[d]]=l,s),{}))},{withTypes:()=>Yr});function Je(e,t,n,i){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function l(v){try{m(i.next(v))}catch(h){s(h)}}function d(v){try{m(i.throw(v))}catch(h){s(h)}}function m(v){v.done?r(v.value):a(v.value).then(l,d)}m((i=i.apply(e,t||[])).next())})}const Zr=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function at(e,t,n){const i=Qr(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof i.path!="string"&&Jn(i,"path",r),Jn(i,"relativePath",r),i}function Qr(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),a=Zr.get(i);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function Jn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const es=[".DS_Store","Thumbs.db"];function ts(e){return Je(this,void 0,void 0,function*(){return Rt(e)&&ns(e.dataTransfer)?rs(e.dataTransfer,e.type):is(e)?os(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?as(e):[]})}function ns(e){return Rt(e)}function is(e){return Rt(e)&&Rt(e.target)}function Rt(e){return typeof e=="object"&&e!==null}function os(e){return tn(e.target.files).map(t=>at(t))}function as(e){return Je(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>at(n))})}function rs(e,t){return Je(this,void 0,void 0,function*(){if(e.items){const n=tn(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(ss));return Xn(Mi(i))}return Xn(tn(e.files).map(n=>at(n)))})}function Xn(e){return e.filter(t=>es.indexOf(t.name)===-1)}function tn(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?Mi(n):[n]],[])}function Yn(e,t){return Je(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const s=yield r.getFile();return s.handle=r,at(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return at(i,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function ls(e){return Je(this,void 0,void 0,function*(){return e.isDirectory?Oi(e):cs(e)})}function Oi(e){const t=e.createReader();return new Promise((n,i)=>{const a=[];function r(){t.readEntries(s=>Je(this,void 0,void 0,function*(){if(s.length){const l=Promise.all(s.map(ls));a.push(l),r()}else try{const l=yield Promise.all(a);n(l)}catch(l){i(l)}}),s=>{i(s)})}r()})}function cs(e){return Je(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const a=at(i,e.fullPath);t(a)},i=>{n(i)})})})}var wt={},Zn;function ps(){return Zn||(Zn=1,wt.__esModule=!0,wt.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?i.toLowerCase().endsWith(l):l.endsWith("/*")?r===l.replace(/\/.*$/,""):a===l})}return!0}),wt}var ds=ps();const Bt=xi(ds);function Qn(e){return fs(e)||ms(e)||Ni(e)||us()}function us(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ms(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fs(e){if(Array.isArray(e))return nn(e)}function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function ti(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:bs,message:"File type must be ".concat(i)}},ni=function(t){return{code:ys,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ii=function(t){return{code:ws,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Cs={code:ks,message:"Too many files"};function $i(e,t){var n=e.type==="application/x-moz-file"||hs(e,t);return[n,n?null:js(t)]}function Wi(e,t,n){if(Ge(e.size))if(Ge(t)&&Ge(n)){if(e.size>n)return[!1,ni(n)];if(e.sizen)return[!1,ni(n)]}return[!0,null]}function Ge(e){return e!=null}function Ss(e){var t=e.files,n=e.accept,i=e.minSize,a=e.maxSize,r=e.multiple,s=e.maxFiles,l=e.validator;return!r&&t.length>1||r&&s>=1&&t.length>s?!1:t.every(function(d){var m=$i(d,n),v=ft(m,1),h=v[0],j=Wi(d,i,a),f=ft(j,1),u=f[0],C=l?l(d):null;return h&&u&&!C})}function Pt(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function kt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function oi(e){e.preventDefault()}function Rs(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ps(e){return e.indexOf("Edge/")!==-1}function Es(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Rs(e)||Ps(e)}function $e(){for(var e=arguments.length,t=new Array(e),n=0;n1?a-1:0),s=1;se.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _s(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,r;for(r=0;r=0)&&(n[a]=e[a]);return n}var hn=c.forwardRef(function(e,t){var n=e.children,i=Et(e,zs),a=_i(i),r=a.open,s=Et(a,Ms);return c.useImperativeHandle(t,function(){return{open:r}},[r]),Ji.createElement(c.Fragment,null,n(ge(ge({},s),{},{open:r})))});hn.displayName="Dropzone";var Ui={disabled:!1,getFilesFromEvent:ts,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};hn.defaultProps=Ui;hn.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var rn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function _i(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},Ui),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,l=t.multiple,d=t.maxFiles,m=t.onDragEnter,v=t.onDragLeave,h=t.onDragOver,j=t.onDrop,f=t.onDropAccepted,u=t.onDropRejected,C=t.onFileDialogCancel,b=t.onFileDialogOpen,x=t.useFsAccessApi,R=t.autoFocus,g=t.preventDropOnDocument,k=t.noClick,p=t.noKeyboard,y=t.noDrag,w=t.noDragEventsBubbling,D=t.onError,z=t.validator,L=c.useMemo(function(){return As(n)},[n]),H=c.useMemo(function(){return Fs(n)},[n]),B=c.useMemo(function(){return typeof b=="function"?b:ri},[b]),q=c.useMemo(function(){return typeof C=="function"?C:ri},[C]),F=c.useRef(null),E=c.useRef(null),A=c.useReducer(Vs,rn),G=qt(A,2),te=G[0],T=G[1],ee=te.isFocused,ie=te.isFileDialogActive,Z=c.useRef(typeof window<"u"&&window.isSecureContext&&x&&Is()),J=function(){!Z.current&&ie&&setTimeout(function(){if(E.current){var O=E.current.files;O.length||(T({type:"closeDialog"}),q())}},300)};c.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[E,ie,q,Z]);var Y=c.useRef([]),oe=function(O){F.current&&F.current.contains(O.target)||(O.preventDefault(),Y.current=[])};c.useEffect(function(){return g&&(document.addEventListener("dragover",oi,!1),document.addEventListener("drop",oe,!1)),function(){g&&(document.removeEventListener("dragover",oi),document.removeEventListener("drop",oe))}},[F,g]),c.useEffect(function(){return!i&&R&&F.current&&F.current.focus(),function(){}},[F,R,i]);var ce=c.useCallback(function(P){D?D(P):console.error(P)},[D]),ue=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P),Y.current=[].concat(Ns(Y.current),[P.target]),kt(P)&&Promise.resolve(a(P)).then(function(O){if(!(Pt(P)&&!w)){var le=O.length,me=le>0&&Ss({files:O,accept:L,minSize:s,maxSize:r,multiple:l,maxFiles:d,validator:z}),Ce=le>0&&!me;T({isDragAccept:me,isDragReject:Ce,isDragActive:!0,type:"setDraggedFiles"}),m&&m(P)}}).catch(function(O){return ce(O)})},[a,m,ce,w,L,s,r,l,d,z]),je=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P);var O=kt(P);if(O&&P.dataTransfer)try{P.dataTransfer.dropEffect="copy"}catch{}return O&&h&&h(P),!1},[h,w]),ne=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P);var O=Y.current.filter(function(me){return F.current&&F.current.contains(me)}),le=O.indexOf(P.target);le!==-1&&O.splice(le,1),Y.current=O,!(O.length>0)&&(T({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kt(P)&&v&&v(P))},[F,v,w]),$=c.useCallback(function(P,O){var le=[],me=[];P.forEach(function(Ce){var ze=$i(Ce,L),Ie=qt(ze,2),re=Ie[0],Oe=Ie[1],qe=Wi(Ce,s,r),_e=qt(qe,2),N=_e[0],ae=_e[1],we=z?z(Ce):null;if(re&&N&&!we)le.push(Ce);else{var Le=[Oe,ae];we&&(Le=Le.concat(we)),me.push({file:Ce,errors:Le.filter(function(vt){return vt})})}}),(!l&&le.length>1||l&&d>=1&&le.length>d)&&(le.forEach(function(Ce){me.push({file:Ce,errors:[Cs]})}),le.splice(0)),T({acceptedFiles:le,fileRejections:me,isDragReject:me.length>0,type:"setFiles"}),j&&j(le,me,O),me.length>0&&u&&u(me,O),le.length>0&&f&&f(le,O)},[T,l,L,s,r,d,j,f,u,z]),U=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P),Y.current=[],kt(P)&&Promise.resolve(a(P)).then(function(O){Pt(P)&&!w||$(O,P)}).catch(function(O){return ce(O)}),T({type:"reset"})},[a,$,ce,w]),V=c.useCallback(function(){if(Z.current){T({type:"openDialog"}),B();var P={multiple:l,types:H};window.showOpenFilePicker(P).then(function(O){return a(O)}).then(function(O){$(O,null),T({type:"closeDialog"})}).catch(function(O){Ts(O)?(q(O),T({type:"closeDialog"})):Ds(O)?(Z.current=!1,E.current?(E.current.value=null,E.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ce(O)});return}E.current&&(T({type:"openDialog"}),B(),E.current.value=null,E.current.click())},[T,B,q,x,$,ce,H,l]),K=c.useCallback(function(P){!F.current||!F.current.isEqualNode(P.target)||(P.key===" "||P.key==="Enter"||P.keyCode===32||P.keyCode===13)&&(P.preventDefault(),V())},[F,V]),S=c.useCallback(function(){T({type:"focus"})},[]),M=c.useCallback(function(){T({type:"blur"})},[]),Q=c.useCallback(function(){k||(Es()?setTimeout(V,0):V())},[k,V]),ve=function(O){return i?null:O},Ee=function(O){return p?null:ve(O)},Ae=function(O){return y?null:ve(O)},Pe=function(O){w&&O.stopPropagation()},Se=c.useMemo(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=P.refKey,le=O===void 0?"ref":O,me=P.role,Ce=P.onKeyDown,ze=P.onFocus,Ie=P.onBlur,re=P.onClick,Oe=P.onDragEnter,qe=P.onDragOver,_e=P.onDragLeave,N=P.onDrop,ae=Et(P,Os);return ge(ge(an({onKeyDown:Ee($e(Ce,K)),onFocus:Ee($e(ze,S)),onBlur:Ee($e(Ie,M)),onClick:ve($e(re,Q)),onDragEnter:Ae($e(Oe,ue)),onDragOver:Ae($e(qe,je)),onDragLeave:Ae($e(_e,ne)),onDrop:Ae($e(N,U)),role:typeof me=="string"&&me!==""?me:"presentation"},le,F),!i&&!p?{tabIndex:0}:{}),ae)}},[F,K,S,M,Q,ue,je,ne,U,p,y,i]),De=c.useCallback(function(P){P.stopPropagation()},[]),Me=c.useMemo(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=P.refKey,le=O===void 0?"ref":O,me=P.onChange,Ce=P.onClick,ze=Et(P,Ls),Ie=an({accept:L,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ve($e(me,U)),onClick:ve($e(Ce,De)),tabIndex:-1},le,E);return ge(ge({},Ie),ze)}},[E,n,l,U,i]);return ge(ge({},te),{},{isFocused:ee&&!i,getRootProps:Se,getInputProps:Me,rootRef:F,inputRef:E,open:ve(V)})}function Vs(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},rn),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ge(ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return ge({},rn);default:return e}}function ri(){}const si=Fe(o.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),li=Fe(o.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ks=Fe(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),Gs=Fe(o.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),ci=Fe(o.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),pi=Fe(o.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"})),di=Fe(o.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),Js=Fe(o.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),Xs=Fe(o.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Ys=Fe(o.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),ui=Fe(o.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"})),Zs=Fe(o.jsx("path",{d:"m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42M7 7h7v2H7zm10 10H7v-2h10zm0-4H7v-2h10z"})),Qs=Fe(o.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),mi=Fe([o.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),o.jsx("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")]),fi=Fe(o.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"})),el=e=>e.document.documents,tl=e=>e.document.pendingFiles,nl=e=>e.document.currentFolderName,il=e=>e.document.currentFolderHash,ol=gn([el],e=>e),al=gn([nl,il],(e,t)=>e||(t==="7d99a85daf66a0081a0e881630e6b39b"?"Dossier par défaut":"Dossier sans nom")),rl=({document:e,onClose:t})=>{const n=bi(),i=dt(p=>p.document.currentFolderHash),[a,r]=c.useState(null),[s,l]=c.useState(!0),[d,m]=c.useState(null),[v,h]=c.useState(1),[j,f]=c.useState(1),[u,C]=c.useState(0),[b,x]=c.useState(null);c.useEffect(()=>{l(!0),m(null),h(1),f(1);const p=setTimeout(()=>{C(3),l(!1)},1e3);return()=>clearTimeout(p)},[e]),c.useEffect(()=>{let p=!1;return(async()=>{try{const w=await fetch(`/api/cache/${e.id}`,{headers:{Accept:"application/json"}});if(!w.ok)return;const D=await w.json();p||r(D)}catch{}})(),()=>{p=!0}},[e]);const R=()=>{if(e.previewUrl){const p=window.document.createElement("a");p.href=e.previewUrl,p.download=e.name,p.click()}},g=e.mimeType.includes("pdf")||e.name.toLowerCase().endsWith(".pdf"),k=e.mimeType.startsWith("image/")||[".png",".jpg",".jpeg",".gif",".webp"].some(p=>e.name.toLowerCase().endsWith(p));return!g&&k?o.jsxs(Qe,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsx(_,{variant:"h6",children:e.name}),o.jsx(Vt,{onClick:t,title:"Fermer",children:o.jsx(li,{})})]})}),o.jsxs(tt,{dividers:!0,children:[o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[o.jsx(I,{}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(fi,{}),onClick:()=>f(p=>Math.max(p-.2,.2)),children:"Zoom -"}),o.jsxs(_,{variant:"body2",children:[Math.round(j*100),"%"]}),o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(mi,{}),onClick:()=>f(p=>Math.min(p+.2,4)),children:"Zoom +"})]})]}),o.jsx(I,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"auto",maxHeight:"70vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"grey.50"},children:e.previewUrl?o.jsx("img",{src:e.previewUrl,alt:e.name,style:{maxWidth:`${100*j}%`,maxHeight:`${100*j}%`,objectFit:"contain"},onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement de l'image"),l(!1)}}):o.jsxs(I,{textAlign:"center",p:4,children:[o.jsx(_,{variant:"h6",gutterBottom:!0,children:"Aperçu image"}),o.jsx(_,{variant:"body2",color:"text.secondary",children:"Le fichier a été uploadé avec succès."}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})}),o.jsxs(I,{sx:{mt:2},children:[o.jsx(_,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),o.jsxs(I,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Personnes"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4},defaultValue:p.firstName,onChange:w=>p.firstName=w.target.value}),o.jsx("input",{style:{padding:4},defaultValue:p.lastName,onChange:w=>p.lastName=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`pimg-${y}`,onClick:async()=>{if(i)try{x(`pimg-${y}`),await Xe(i,e.id,"person",{index:y,id:p.id,patch:{firstName:p.firstName,lastName:p.lastName}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"person",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.persons.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`pimg-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Adresses"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:220},defaultValue:p.street,onChange:w=>p.street=w.target.value}),o.jsx("input",{style:{padding:4,width:100},defaultValue:p.postalCode,onChange:w=>p.postalCode=w.target.value}),o.jsx("input",{style:{padding:4,width:160},defaultValue:p.city,onChange:w=>p.city=w.target.value}),o.jsx("input",{style:{padding:4,width:120},defaultValue:p.country||"",onChange:w=>p.country=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`aimg-${y}`,onClick:async()=>{if(i)try{x(`aimg-${y}`),await Xe(i,e.id,"address",{index:y,id:p.id,patch:{street:p.street,city:p.city,postalCode:p.postalCode,country:p.country}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"address",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.addresses.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`aimg-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Entreprises"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,children:o.jsx("input",{style:{padding:4,width:260},defaultValue:p.name,onChange:w=>p.name=w.target.value})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`cimg-${y}`,onClick:async()=>{if(i)try{x(`cimg-${y}`),await Xe(i,e.id,"company",{index:y,id:p.id,patch:{name:p.name}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"company",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.companies.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`cimg-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:t,children:"Fermer"}),o.jsx(X,{variant:"contained",startIcon:o.jsx(ci,{}),onClick:R,disabled:!e.previewUrl,children:"Télécharger"})]})]}):o.jsxs(Qe,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(ui,{color:"error"}),o.jsx(_,{variant:"h6",children:e.name})]}),o.jsx(Vt,{onClick:t,title:"Fermer",children:o.jsx(li,{})})]})}),o.jsxs(tt,{dividers:!0,children:[s&&o.jsxs(I,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:[o.jsx(yi,{}),o.jsx(_,{variant:"body2",sx:{ml:2},children:"Chargement du PDF..."})]}),d&&o.jsx(Kt,{severity:"error",sx:{mb:2},children:d}),!s&&!d&&o.jsxs(I,{children:[o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(Xs,{}),onClick:()=>h(p=>Math.max(p-1,1)),disabled:v<=1,children:"Précédent"}),o.jsxs(_,{variant:"body2",children:["Page ",v," sur ",u]}),o.jsx(X,{variant:"outlined",size:"small",endIcon:o.jsx(Ys,{}),onClick:()=>h(p=>Math.min(p+1,u)),disabled:v>=u,children:"Suivant"})]}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(fi,{}),onClick:()=>f(p=>Math.max(p-.2,.5)),children:"Zoom -"}),o.jsxs(_,{variant:"body2",children:[Math.round(j*100),"%"]}),o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(mi,{}),onClick:()=>f(p=>Math.min(p+.2,2)),children:"Zoom +"})]})]}),o.jsx(I,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"hidden",maxHeight:"70vh",display:"flex",justifyContent:"center",backgroundColor:"grey.50"},children:e.previewUrl?o.jsx(I,{sx:{width:"100%",height:"600px"},children:o.jsx("iframe",{src:`${e.previewUrl}#toolbar=1&navpanes=1&scrollbar=1&page=1&view=FitH`,width:"100%",height:"100%",style:{border:"none",transform:`scale(${j})`,transformOrigin:"top left",width:`${100/j}%`,height:`${600/j}px`},title:`Aperçu de ${e.name}`,onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement du PDF"),l(!1)}})}):o.jsx(I,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:o.jsxs(I,{textAlign:"center",children:[o.jsx(ui,{sx:{fontSize:64,color:"error.main",mb:2}}),o.jsx(_,{variant:"h6",gutterBottom:!0,children:"Aperçu PDF"}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:['Le fichier PDF "',e.name,'" a été uploadé avec succès.']}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})})}),o.jsxs(I,{sx:{mt:2},children:[o.jsx(_,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),o.jsxs(I,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Personnes"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4},defaultValue:p.firstName,onChange:w=>p.firstName=w.target.value}),o.jsx("input",{style:{padding:4},defaultValue:p.lastName,onChange:w=>p.lastName=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`p-${y}`,onClick:async()=>{if(i)try{x(`p-${y}`),await Xe(i,e.id,"person",{index:y,id:p.id,patch:{firstName:p.firstName,lastName:p.lastName}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"person",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.persons.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`p-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Adresses"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:220},defaultValue:p.street,onChange:w=>p.street=w.target.value}),o.jsx("input",{style:{padding:4,width:100},defaultValue:p.postalCode,onChange:w=>p.postalCode=w.target.value}),o.jsx("input",{style:{padding:4,width:160},defaultValue:p.city,onChange:w=>p.city=w.target.value}),o.jsx("input",{style:{padding:4,width:120},defaultValue:p.country||"",onChange:w=>p.country=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`a-${y}`,onClick:async()=>{if(i)try{x(`a-${y}`),await Xe(i,e.id,"address",{index:y,id:p.id,patch:{street:p.street,city:p.city,postalCode:p.postalCode,country:p.country}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"address",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.addresses.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`a-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Entreprises"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,children:o.jsx("input",{style:{padding:4,width:260},defaultValue:p.name,onChange:w=>p.name=w.target.value})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`c-${y}`,onClick:async()=>{if(i)try{x(`c-${y}`),await Xe(i,e.id,"company",{index:y,id:p.id,patch:{name:p.name}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"company",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.companies.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`c-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:t,children:"Fermer"}),o.jsx(X,{variant:"contained",startIcon:o.jsx(ci,{}),onClick:R,disabled:!e.previewUrl,children:"Télécharger"})]})]})},sl=c.memo(({doc:e,index:t,onPreview:n,onDelete:i,onReplace:a,onConfirmAddress:r,onReview:s,onOpenCorrections:l,isReviewing:d,totalCount:m})=>{const v=f=>f.startsWith("image/")?o.jsx(Js,{}):f==="application/pdf"?o.jsx(Sn,{}):f.startsWith("text/")?o.jsx(Zs,{}):o.jsx(Sn,{}),h=f=>{switch(f){case"completed":return o.jsx(so,{color:"success"});case"processing":return o.jsx(di,{color:"warning"});case"error":return o.jsx(ro,{color:"error"});default:return o.jsx(di,{color:"disabled"})}},j=f=>{switch(f){case"completed":return"success";case"processing":return"warning";case"error":return"error";default:return"default"}};return o.jsxs("div",{children:[o.jsxs(Xt,{children:[o.jsx(ji,{children:v(e.mimeType)}),o.jsx(Yt,{primary:o.jsxs(I,{children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,mb:1,children:[h(e.status),o.jsx(_,{variant:"subtitle1",sx:{wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",maxWidth:{xs:"200px",sm:"300px",md:"400px"}},children:(()=>{if(e.status==="processing"&&e.name===e.id){const u=["53985cbd461f137c847a13f6a4b82758e5920fb9ccc3ffea9d5d1ac99007e6ce.jpg","aceeb1161004f938d2abf1b88b216ef1ea68fad6141374a66efbdda9d796ac6e.jpg"].find(C=>C.startsWith(e.id));if(u)return u}return e.displayName||e.name})()})]}),o.jsxs(I,{display:"flex",gap:1,flexWrap:"wrap",children:[o.jsx(Ue,{label:e.status,size:"small",color:j(e.status)}),e.mimeType&&e.mimeType!=="application/octet-stream"&&o.jsx(Ue,{label:e.mimeType,size:"small",variant:"outlined"}),e.size>0&&o.jsx(Ue,{label:`${(e.size/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"}),d&&o.jsx(Ue,{color:"default",label:"Révision IA en cours…",size:"small"}),(()=>{const f=e,u=f?.metadata?.quality?.ollamaScore??f?.status?.review?.score,C=f?.status?.review?.avis,b=f?.status?.review?.durationMs;if(e.status==="completed"&&typeof u=="number"){const x=o.jsx(Ue,{color:"success",label:`IA: ${u.toFixed(2)}`,size:"small",variant:"outlined"}),R=`${C||""}${b?(C?" — ":"")+"durée: "+b+" ms":""}`;return R?o.jsx(Gt,{title:R,children:o.jsx("span",{children:x})}):x}return null})(),(()=>{const u=e?.status?.review?.corrections,C=Array.isArray(u)?u.length:0;return e.status==="completed"&&C>0?o.jsx(Ue,{color:"info",label:`Corrections: ${C}`,size:"small",variant:"outlined",onClick:()=>l(e,u)}):null})(),e.status==="completed"&&e?.suggestions?.needsReupload&&o.jsx(Ue,{color:"warning",label:"Qualité faible: remplacer",size:"small",onClick:()=>a(e)}),e.status==="completed"&&e?.suggestions?.needsAddressConfirmation&&o.jsx(Ue,{color:"info",label:"Adresse à confirmer",size:"small",onClick:()=>r(e)})]})]})}),o.jsxs(I,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[o.jsx(X,{size:"small",startIcon:o.jsx(Qs,{}),onClick:()=>n(e),disabled:e.status!=="completed",fullWidth:!0,children:"Aperçu"}),o.jsx(Gt,{title:"Analyse IA (Ollama): calcule un score de fiabilité, propose des corrections, ajoute un avis.",children:o.jsx("span",{children:o.jsx(X,{size:"small",onClick:()=>s(e),disabled:e.status!=="completed"||d,fullWidth:!0,children:d?"Révision IA…":"Révision IA"})})}),o.jsx(X,{size:"small",color:"error",onClick:()=>i(e.id),fullWidth:!0,children:"Supprimer"})]})]}),tS.document),s=dt(al),l=dt(ol),d=dt(tl),m=l;console.log("🏠 [UPLOAD_VIEW] Component loaded, documents count:",m.length);const[v,h]=c.useState(null),j=c.useCallback(S=>{e(Xi(S))},[e]),[f,u]=c.useState(!1),[C,b]=c.useState(!1),[x,R]=c.useState(""),[g,k]=c.useState(""),[p,y]=c.useState(""),[w,D]=c.useState(!1),[z,L]=c.useState({street:"",city:"",postalCode:"",country:"France"}),[H,B]=c.useState(null),[q,F]=c.useState(!1),[E,A]=c.useState(null),[G,te]=c.useState([]),[T,ee]=c.useState(null),[ie,Z]=c.useState({open:!1,severity:"success",message:""}),J=c.useCallback(S=>{try{const Q=(S.suggestions||{}).detectedAddress||{street:"",city:"",postalCode:"",country:"France"};L({street:Q.street||"",city:Q.city||"",postalCode:Q.postalCode||"",country:Q.country||"France"}),B(S),D(!0)}catch(M){console.error("❌ Préparation confirmation adresse:",M)}},[]),Y=c.useCallback(async()=>{if(!(!n||!H))try{await Yi(n,H.id,z),D(!1),await e(Re(n)).unwrap()}catch(S){console.error("❌ Confirmation adresse:",S)}},[n,H,z,e]),oe=c.useCallback(async S=>{if(n)try{ee(S.id),await Zi(n,S.id),await e(Re(n)).unwrap(),Z({open:!0,severity:"success",message:"Révision IA terminée: score et corrections mis à jour."})}catch(M){console.error("❌ Révision IA:",M),Z({open:!0,severity:"error",message:"Échec de la révision IA. Réessaie plus tard."})}finally{ee(null)}},[n,e]),ce=c.useCallback(S=>{const M=document.createElement("input");M.type="file",M.accept="image/*,application/pdf",M.onchange=async()=>{const Q=M.files&&M.files[0]||null;if(!(!Q||!n))try{await Qi(n,S.id),await e(yn({file:Q,folderHash:n})).unwrap(),await e(Re(n)).unwrap()}catch(ve){console.error("❌ Remplacement de document:",ve)}},M.click()},[n,e]),ue=c.useCallback(async()=>{try{const S=await fetch("/api/folders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:x||"Nouveau dossier",description:g||""})});if(!S.ok)throw new Error(await S.text());const M=await S.json();e(wn(M.folderHash)),await e(Re(M.folderHash)).unwrap(),console.log("✅ [UPLOAD] Nouveau dossier créé:",M.folderHash),b(!1),R(""),k("")}catch(S){console.error("❌ [UPLOAD] Erreur lors de la création du dossier:",S)}},[e]),je=c.useCallback(async()=>{if(p.trim())try{e(wn(p.trim())),await e(Re(p.trim())).unwrap(),console.log("✅ [UPLOAD] Dossier chargé:",p.trim()),u(!1),y("")}catch(S){console.error("❌ [UPLOAD] Erreur lors du chargement du dossier:",S)}},[e,p]),ne=c.useCallback(()=>{n&&(navigator.clipboard.writeText(n),console.log("📋 [UPLOAD] Hash du dossier copié:",n))},[n]),$=c.useCallback(async S=>{if(!n){console.error("❌ [UPLOAD] Aucun dossier sélectionné");return}const M=S.map(async Q=>{try{console.log(`📤 [UPLOAD] Upload de ${Q.name} dans le dossier ${n}`),await e(yn({file:Q,folderHash:n})).unwrap(),await e(Re(n)).unwrap(),console.log(`✅ [UPLOAD] ${Q.name} uploadé avec succès`)}catch(ve){console.error(`❌ [UPLOAD] Erreur lors du traitement de ${Q.name}:`,ve)}});await Promise.all(M)},[e,n]),{getRootProps:U,getInputProps:V,isDragActive:K}=_i({onDrop:$,accept:{"application/pdf":[".pdf"],"image/*":[".png",".jpg",".jpeg",".tiff"]},multiple:!0});return c.useEffect(()=>{(async()=>{if(n&&!(s&&s.length>0))try{const M=await fetch(`/api/folders/${n}/meta`);if(M.ok){const Q=await M.json();Q?.name&&window.dispatchEvent(new CustomEvent("4nk:setFolderName",{detail:Q.name}))}}catch{}})()},[n,s]),!a||i?o.jsx(kn,{children:o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"center",minHeight:240,children:[o.jsx(yi,{size:28,sx:{mr:2}}),o.jsx(_,{children:"Chargement des fichiers du dossier…"})]})}):o.jsxs(kn,{children:[o.jsx(_,{variant:"h4",gutterBottom:!0,children:"Analyse de documents IA"}),o.jsx(I,{sx:{mb:3,p:2,bgcolor:"grey.50",borderRadius:1,border:"1px solid",borderColor:"grey.200"},children:o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:2,children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:2,children:[o.jsx(_,{variant:"h6",color:"text.secondary",children:"Dossier actuel :"}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(_,{variant:"body1",sx:{fontFamily:"monospace",bgcolor:"grey.100",px:1,py:.5,borderRadius:1,fontSize:"0.875rem"},children:s||(n?"Dossier sans nom":"Aucun dossier sélectionné")}),n&&o.jsx(Gt,{title:"Copier le hash du dossier",children:o.jsx(Vt,{size:"small",onClick:ne,children:o.jsx(Gs,{fontSize:"small"})})})]})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{variant:"outlined",startIcon:o.jsx(si,{}),onClick:()=>b(!0),size:"small",children:"CRÉER UN DOSSIER"}),o.jsx(X,{variant:"outlined",startIcon:o.jsx(pi,{}),onClick:()=>u(!0),size:"small",children:"Charger dossier"})]})]})}),o.jsxs(xt,{...U(),sx:{p:{xs:2,sm:4},textAlign:"center",cursor:"pointer",border:"2px dashed",borderColor:K?"primary.main":"grey.300",bgcolor:K?"action.hover":"background.paper","&:hover":{borderColor:"primary.main",bgcolor:"action.hover"}},children:[o.jsx("input",{...V()}),o.jsx(Ks,{sx:{fontSize:{xs:36,sm:48},color:"primary.main",mb:2}}),o.jsx(_,{variant:"h6",gutterBottom:!0,sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"}},children:K?"Déposez les fichiers ici...":"Glissez-déposez vos documents ou cliquez pour sélectionner"}),o.jsx(_,{variant:"body2",color:"text.secondary",sx:{fontSize:{xs:"0.75rem",sm:"0.875rem"}},children:"Formats acceptés: PDF, PNG, JPG, JPEG, TIFF"})]}),t&&o.jsx(Kt,{severity:"error",sx:{mt:2},children:t}),(m.length>0||r)&&o.jsxs(I,{sx:{mt:3},children:[o.jsxs(_,{variant:"h6",gutterBottom:!0,children:["Documents analysés (",m.length,")"]}),o.jsx(no,{children:o.jsxs(Jt,{children:[m.map((S,M)=>o.jsx(sl,{doc:S,index:M,onPreview:h,onDelete:j,onReplace:ce,onConfirmAddress:J,onReview:oe,onOpenCorrections:(Q,ve)=>{A(Q),te(ve),F(!0)},isReviewing:T===S.id,totalCount:m.length},`${S.id}-${M}`)),r&&o.jsx(o.Fragment,{children:(d.length>0?d:new Array(2).fill(null)).map((S,M)=>o.jsxs("div",{children:[o.jsxs(Xt,{children:[o.jsx(ji,{children:o.jsx(Ze,{variant:"circular",width:24,height:24})}),o.jsx(Yt,{primary:o.jsxs(I,{children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,mb:1,children:o.jsx(Ze,{variant:"rounded",width:180,height:18})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(Ze,{variant:"rounded",width:60,height:24}),o.jsx(Ze,{variant:"rounded",width:100,height:24})]})]})}),o.jsxs(I,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[o.jsx(Ze,{variant:"rounded",width:84,height:32}),o.jsx(Ze,{variant:"rounded",width:84,height:32})]})]}),o.jsx(St,{})]},`sk-${M}`))})]})})]}),v&&o.jsx(rl,{document:v,onClose:()=>h(null)}),o.jsxs(Qe,{open:f,onClose:()=>u(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(pi,{}),"Charger un dossier existant"]})}),o.jsxs(tt,{children:[o.jsx(_,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Entrez le hash du dossier que vous souhaitez charger. Le hash est un identifiant unique de 32 caractères."}),o.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Hash du dossier",placeholder:"ex: 0e7ae08a4f14f3154be1bd69d5617c74",fullWidth:!0,variant:"outlined",value:p,onChange:S=>y(S.target.value),sx:{fontFamily:"monospace"},helperText:"Le hash doit contenir exactement 32 caractères hexadécimaux"})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>u(!1),children:"Annuler"}),o.jsx(X,{onClick:je,variant:"contained",disabled:!p.trim()||p.trim().length!==32,children:"Charger le dossier"})]})]}),o.jsxs(Qe,{open:C,onClose:()=>b(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(si,{}),"Créer un nouveau dossier"]})}),o.jsxs(tt,{children:[o.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Nom du dossier",fullWidth:!0,variant:"outlined",value:x,onChange:S=>R(S.target.value)}),o.jsx(Ke,{margin:"dense",label:"Description",fullWidth:!0,multiline:!0,minRows:2,variant:"outlined",value:g,onChange:S=>k(S.target.value)})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>b(!1),children:"Annuler"}),o.jsx(X,{onClick:ue,variant:"contained",disabled:!x.trim(),children:"Créer"})]})]}),o.jsxs(Qe,{open:w,onClose:()=>D(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:"Confirmer l'adresse détectée"}),o.jsxs(tt,{children:[o.jsx(Ke,{margin:"dense",label:"Rue",fullWidth:!0,variant:"outlined",value:z.street,onChange:S=>L({...z,street:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Code postal",fullWidth:!0,variant:"outlined",value:z.postalCode,onChange:S=>L({...z,postalCode:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Ville",fullWidth:!0,variant:"outlined",value:z.city,onChange:S=>L({...z,city:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Pays",fullWidth:!0,variant:"outlined",value:z.country,onChange:S=>L({...z,country:S.target.value})})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>D(!1),children:"Annuler"}),o.jsx(X,{variant:"contained",onClick:Y,children:"Confirmer"})]})]}),o.jsxs(Qe,{open:q,onClose:()=>F(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:"Corrections proposées par l'IA"}),o.jsxs(tt,{children:[E?o.jsxs(_,{variant:"subtitle2",sx:{mb:1},children:["Document: ",E.displayName||E.name]}):null,Array.isArray(G)&&G.length>0?o.jsx(Jt,{children:G.map((S,M)=>o.jsx(Xt,{alignItems:"flex-start",children:o.jsx(Yt,{primary:S?.path?String(S.path):`Correction ${M+1}`,secondary:o.jsxs(o.Fragment,{children:[o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Valeur: ",typeof S?.value=="object"?JSON.stringify(S.value):String(S?.value??"")]}),typeof S?.confidence=="number"&&o.jsxs(_,{variant:"caption",color:"text.secondary",children:["Confiance: ",S.confidence.toFixed?S.confidence.toFixed(2):S.confidence]})]})})},`corr-${M}`))}):o.jsx(_,{variant:"body2",color:"text.secondary",children:"Aucune correction disponible."})]}),o.jsx(et,{children:o.jsx(X,{onClick:()=>F(!1),children:"Fermer"})})]}),o.jsx(Lr,{open:ie.open,autoHideDuration:3e3,onClose:()=>Z({...ie,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:o.jsx(Kt,{onClose:()=>Z({...ie,open:!1}),severity:ie.severity,variant:"filled",sx:{width:"100%"},children:ie.message})})]})}export{xl as default}; diff --git a/public/assets/UploadView-BDjYMv1B.js b/public/assets/UploadView-BDjYMv1B.js new file mode 100644 index 0000000..a5c16bc --- /dev/null +++ b/public/assets/UploadView-BDjYMv1B.js @@ -0,0 +1,43 @@ +import{g as xi,c as de,r as c,u as jt,j as o,a as he,b as be,s as W,d as ye,e as Vi,m as ke,f as fe,h as xe,i as vi,k as sn,T as _,l as ln,n as He,o as It,p as Ki,q as Gi,t as gi,v as hi,w as bn,R as Ji,x as bi,y as dt,B as I,z as Xe,A as Re,C as Ye,D as yi,E as Xi,F as Yi,G as Zi,H as Qi,I as yn,J as wn}from"./index-ChSrE95j.js";import{u as Be,o as We,a as it,d as wi,i as Ut,c as Fe,b as cn,e as pe,f as Te,g as _t,P as xt,h as eo,j as to,I as Vt,B as X,A as Kt,L as kn,C as no,k as Ue}from"./Layout-EP4xiiHA.js";import{T as io,g as jn,r as oo,u as Cn}from"./utils-CND5M_oZ.js";import{g as Ft,P as ao,G as ki,T as Gt,D as Sn}from"./Description-Da0xeuq8.js";import{i as Mt,L as Jt,a as Xt,b as Yt}from"./ListItemText-y3geWUGz.js";import{L as ji}from"./ListItemIcon-Cbif7BYI.js";import{E as ro,C as so}from"./Error-BbVVlYbr.js";var Ot={exports:{}},Lt,Rn;function lo(){if(Rn)return Lt;Rn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lt=e,Lt}var Nt,Pn;function co(){if(Pn)return Nt;Pn=1;var e=lo();function t(){}function n(){}return n.resetWarningCache=t,Nt=function(){function i(s,l,d,m,v,h){if(h!==e){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}i.isRequired=i;function a(){return i}var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},Nt}var En;function po(){return En||(En=1,Ot.exports=co()()),Ot.exports}var uo=po();const se=xi(uo);function mo(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function fo(e){return parseFloat(e)}function In(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function xo(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function vo(e,t){if(!e)return t;function n(s,l){const d={};return Object.keys(l).forEach(m=>{xo(m,l[m])&&typeof s[m]=="function"&&(d[m]=(...v)=>{s[m](...v),l[m](...v)})}),d}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,d=typeof e=="function"?e({...s,...l}):e,m=de(s?.className,l?.className,d?.className),v=n(d,l);return{...l,...d,...v,...!!m&&{className:m},...l?.style&&d?.style&&{style:{...l.style,...d.style}},...l?.sx&&d?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const i=t,a=n(e,i),r=de(i?.className,e?.className);return{...t,...e,...a,...!!r&&{className:r},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function gt(e){return parseInt(e,10)||0}const go={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ho(e){for(const t in e)return!1;return!0}function Fn(e){return ho(e)||e.outerHeightStyle===0&&!e.overflowing}const bo=c.forwardRef(function(t,n){const{onChange:i,maxRows:a,minRows:r=1,style:s,value:l,...d}=t,{current:m}=c.useRef(l!=null),v=c.useRef(null),h=Be(n,v),j=c.useRef(null),f=c.useRef(null),u=c.useCallback(()=>{const g=v.current,k=f.current;if(!g||!k)return;const y=We(g).getComputedStyle(g);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=y.width,k.value=g.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const w=y.boxSizing,D=gt(y.paddingBottom)+gt(y.paddingTop),z=gt(y.borderBottomWidth)+gt(y.borderTopWidth),L=k.scrollHeight;k.value="x";const H=k.scrollHeight;let B=L;r&&(B=Math.max(Number(r)*H,B)),a&&(B=Math.min(Number(a)*H,B)),B=Math.max(B,H);const q=B+(w==="border-box"?D+z:0),F=Math.abs(B-L)<=1;return{outerHeightStyle:q,overflowing:F}},[a,r,t.placeholder]),C=it(()=>{const g=v.current,k=u();if(!g||!k||Fn(k))return!1;const p=k.outerHeightStyle;return j.current!=null&&j.current!==p}),b=c.useCallback(()=>{const g=v.current,k=u();if(!g||!k||Fn(k))return;const p=k.outerHeightStyle;j.current!==p&&(j.current=p,g.style.height=`${p}px`),g.style.overflow=k.overflowing?"hidden":""},[u]),x=c.useRef(-1);jt(()=>{const g=wi(b),k=v?.current;if(!k)return;const p=We(k);p.addEventListener("resize",g);let y;return typeof ResizeObserver<"u"&&(y=new ResizeObserver(()=>{C()&&(y.unobserve(k),cancelAnimationFrame(x.current),b(),x.current=requestAnimationFrame(()=>{y.observe(k)}))}),y.observe(k)),()=>{g.clear(),cancelAnimationFrame(x.current),p.removeEventListener("resize",g),y&&y.disconnect()}},[u,b,C]),jt(()=>{b()});const R=g=>{m||b();const k=g.target,p=k.value.length,y=k.value.endsWith(` +`),w=k.selectionStart===p;y&&w&&k.setSelectionRange(p,p),i&&i(g)};return o.jsxs(c.Fragment,{children:[o.jsx("textarea",{value:l,onChange:R,ref:h,rows:r,style:s,...d}),o.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...go.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function rt({props:e,states:t,muiFormControl:n}){return t.reduce((i,a)=>(i[a]=e[a],n&&typeof e[a]>"u"&&(i[a]=n[a]),i),{})}const pn=c.createContext(void 0);function st(){return c.useContext(pn)}function An(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ct(e,t=!1){return e&&(An(e.value)&&e.value!==""||t&&An(e.defaultValue)&&e.defaultValue!=="")}function yo(e){return e.startAdornment}function wo(e){return be("MuiInputBase",e)}const ot=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Tn;const At=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Tt=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ko=e=>{const{classes:t,color:n,disabled:i,error:a,endAdornment:r,focused:s,formControl:l,fullWidth:d,hiddenLabel:m,multiline:v,readOnly:h,size:j,startAdornment:f,type:u}=e,C={root:["root",`color${fe(n)}`,i&&"disabled",a&&"error",d&&"fullWidth",s&&"focused",l&&"formControl",j&&j!=="medium"&&`size${fe(j)}`,v&&"multiline",f&&"adornedStart",r&&"adornedEnd",m&&"hiddenLabel",h&&"readOnly"],input:["input",i&&"disabled",u==="search"&&"inputTypeSearch",v&&"inputMultiline",j==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",f&&"inputAdornedStart",r&&"inputAdornedEnd",h&&"readOnly"]};return xe(C,wo,t)},Dt=W("div",{name:"MuiInputBase",slot:"Root",overridesResolver:At})(ke(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),zt=W("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Tt})(ke(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ot.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ot.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:r})=>!r.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:r})=>r.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Dn=Vi({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:r,autoFocus:s,className:l,color:d,components:m={},componentsProps:v={},defaultValue:h,disabled:j,disableInjectingGlobalStyles:f,endAdornment:u,error:C,fullWidth:b=!1,id:x,inputComponent:R="input",inputProps:g={},inputRef:k,margin:p,maxRows:y,minRows:w,multiline:D=!1,name:z,onBlur:L,onChange:H,onClick:B,onFocus:q,onKeyDown:F,onKeyUp:E,placeholder:A,readOnly:G,renderSuffix:te,rows:T,size:ee,slotProps:ie={},slots:Z={},startAdornment:J,type:Y="text",value:oe,...ce}=i,ue=g.value!=null?g.value:oe,{current:je}=c.useRef(ue!=null),ne=c.useRef(),$=c.useCallback(re=>{},[]),U=Be(ne,k,g.ref,$),[V,K]=c.useState(!1),S=st(),M=rt({props:i,muiFormControl:S,states:["color","disabled","error","hiddenLabel","size","required","filled"]});M.focused=S?S.focused:V,c.useEffect(()=>{!S&&j&&V&&(K(!1),L&&L())},[S,j,V,L]);const Q=S&&S.onFilled,ve=S&&S.onEmpty,Ee=c.useCallback(re=>{Ct(re)?Q&&Q():ve&&ve()},[Q,ve]);jt(()=>{je&&Ee({value:ue})},[ue,Ee,je]);const Ae=re=>{q&&q(re),g.onFocus&&g.onFocus(re),S&&S.onFocus?S.onFocus(re):K(!0)},Pe=re=>{L&&L(re),g.onBlur&&g.onBlur(re),S&&S.onBlur?S.onBlur(re):K(!1)},Se=(re,...Oe)=>{if(!je){const qe=re.target||ne.current;if(qe==null)throw new Error(vi(1));Ee({value:qe.value})}g.onChange&&g.onChange(re,...Oe),H&&H(re,...Oe)};c.useEffect(()=>{Ee(ne.current)},[]);const De=re=>{ne.current&&re.currentTarget===re.target&&ne.current.focus(),B&&B(re)};let Me=R,P=g;D&&Me==="input"&&(T?P={type:void 0,minRows:T,maxRows:T,...P}:P={type:void 0,maxRows:y,minRows:w,...P},Me=bo);const O=re=>{Ee(re.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};c.useEffect(()=>{S&&S.setAdornedStart(!!J)},[S,J]);const le={...i,color:M.color||"primary",disabled:M.disabled,endAdornment:u,error:M.error,focused:M.focused,formControl:S,fullWidth:b,hiddenLabel:M.hiddenLabel,multiline:D,size:M.size,startAdornment:J,type:Y},me=ko(le),Ce=Z.root||m.Root||Dt,ze=ie.root||v.root||{},Ie=Z.input||m.Input||zt;return P={...P,...ie.input??v.input},o.jsxs(c.Fragment,{children:[!f&&typeof Dn=="function"&&(Tn||(Tn=o.jsx(Dn,{}))),o.jsxs(Ce,{...ze,ref:n,onClick:De,...ce,...!Ut(Ce)&&{ownerState:{...le,...ze.ownerState}},className:de(me.root,ze.className,l,G&&"MuiInputBase-readOnly"),children:[J,o.jsx(pn.Provider,{value:null,children:o.jsx(Ie,{"aria-invalid":M.error,"aria-describedby":a,autoComplete:r,autoFocus:s,defaultValue:h,disabled:M.disabled,id:x,onAnimationStart:O,name:z,placeholder:A,readOnly:G,required:M.required,rows:T,value:ue,onKeyDown:F,onKeyUp:E,type:Y,...P,...!Ut(Ie)&&{as:Me,ownerState:{...le,...P.ownerState}},ref:U,className:de(me.input,P.className,G&&"MuiInputBase-readOnly"),onBlur:Pe,onChange:Se,onFocus:Ae})}),u,te?te({...M,startAdornment:J}):null]})]})});function jo(e){return be("MuiInput",e)}const lt={...ot,...he("MuiInput",["root","underline","input"])};function Co(e){return be("MuiOutlinedInput",e)}const Ne={...ot,...he("MuiOutlinedInput",["root","notchedOutline","input"])};function So(e){return be("MuiFilledInput",e)}const Ve={...ot,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Ro=Fe(o.jsx("path",{d:"M7 10l5 5 5-5z"})),Po={entering:{opacity:1},entered:{opacity:1}},Zt=c.forwardRef(function(t,n){const i=cn(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:l,easing:d,in:m,onEnter:v,onEntered:h,onEntering:j,onExit:f,onExited:u,onExiting:C,style:b,timeout:x=a,TransitionComponent:R=io,...g}=t,k=c.useRef(null),p=Be(k,Ft(l),n),y=F=>E=>{if(F){const A=k.current;E===void 0?F(A):F(A,E)}},w=y(j),D=y((F,E)=>{oo(F);const A=jn({style:b,timeout:x,easing:d},{mode:"enter"});F.style.webkitTransition=i.transitions.create("opacity",A),F.style.transition=i.transitions.create("opacity",A),v&&v(F,E)}),z=y(h),L=y(C),H=y(F=>{const E=jn({style:b,timeout:x,easing:d},{mode:"exit"});F.style.webkitTransition=i.transitions.create("opacity",E),F.style.transition=i.transitions.create("opacity",E),f&&f(F)}),B=y(u),q=F=>{r&&r(k.current,F)};return o.jsx(R,{appear:s,in:m,nodeRef:k,onEnter:D,onEntered:z,onEntering:w,onExit:H,onExited:B,onExiting:L,addEndListener:q,timeout:x,...g,children:(F,{ownerState:E,...A})=>c.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!m?"hidden":void 0,...Po[F],...b,...l.props.style},ref:p,...A})})});function Eo(e){return be("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const Io=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},Eo,t)},Fo=W("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ci=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiBackdrop"}),{children:a,className:r,component:s="div",invisible:l=!1,open:d,components:m={},componentsProps:v={},slotProps:h={},slots:j={},TransitionComponent:f,transitionDuration:u,...C}=i,b={...i,component:s,invisible:l},x=Io(b),R={transition:f,root:m.Root,...j},g={...v,...h},k={component:s,slots:R,slotProps:g},[p,y]=pe("root",{elementType:Fo,externalForwardedProps:k,className:de(x.root,r),ownerState:b}),[w,D]=pe("transition",{elementType:Zt,externalForwardedProps:k,ownerState:b});return o.jsx(w,{in:d,timeout:u,...C,...D,children:o.jsx(p,{"aria-hidden":!0,...y,classes:x,ref:n,children:a})})});function zn(e){return e.substring(2).toLowerCase()}function Ao(e,t){return t.documentElement.clientWidth(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const v=Be(Ft(t),l),h=it(u=>{const C=m.current;m.current=!1;const b=Te(l.current);if(!d.current||!l.current||"clientX"in u&&Ao(u,b))return;if(s.current){s.current=!1;return}let x;u.composedPath?x=u.composedPath().includes(l.current):x=!b.documentElement.contains(u.target)||l.current.contains(u.target),!x&&(n||!C)&&a(u)}),j=u=>C=>{m.current=!0;const b=t.props[u];b&&b(C)},f={ref:v};return r!==!1&&(f[r]=j(r)),c.useEffect(()=>{if(r!==!1){const u=zn(r),C=Te(l.current),b=()=>{s.current=!0};return C.addEventListener(u,h),C.addEventListener("touchmove",b),()=>{C.removeEventListener(u,h),C.removeEventListener("touchmove",b)}}},[h,r]),i!==!1&&(f[i]=j(i)),c.useEffect(()=>{if(i!==!1){const u=zn(i),C=Te(l.current);return C.addEventListener(u,h),()=>{C.removeEventListener(u,h)}}},[h,i]),c.cloneElement(t,f)}function Si(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Do(e){const t=Te(e);return t.body===e?We(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ut(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mn(e){return parseInt(We(e).getComputedStyle(e).paddingRight,10)||0}function zo(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function On(e,t,n,i,a){const r=[t,n,...i];[].forEach.call(e.children,s=>{const l=!r.includes(s),d=!zo(s);l&&d&&ut(s,a)})}function $t(e,t){let n=-1;return e.some((i,a)=>t(i)?(n=a,!0):!1),n}function Mo(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(Do(i)){const s=Si(We(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Mn(i)+s}px`;const l=Te(i).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Mn(d)+s}px`})}let r;if(i.parentNode instanceof DocumentFragment)r=Te(i).body;else{const s=i.parentElement,l=We(i);r=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:i}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:s,property:l})=>{r?s.style.setProperty(l,r):s.style.removeProperty(l)})}}function Oo(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Lo{constructor(){this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&ut(t.modalRef,!1);const a=Oo(n);On(n,t.mount,t.modalRef,a,!0);const r=$t(this.containers,s=>s.container===n);return r!==-1?(this.containers[r].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),i)}mount(t,n){const i=$t(this.containers,r=>r.modals.includes(t)),a=this.containers[i];a.restore||(a.restore=Mo(a,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const a=$t(this.containers,s=>s.modals.includes(t)),r=this.containers[a];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(i,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&ut(t.modalRef,n),On(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=r.modals[r.modals.length-1];s.modalRef&&ut(s.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const No=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $o(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Wo(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Ho(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Wo(e))}function Bo(e){const t=[],n=[];return Array.from(e.querySelectorAll(No)).forEach((i,a)=>{const r=$o(i);r===-1||!Ho(i)||(r===0?t.push(i):n.push({documentOrder:a,tabIndex:r,node:i}))}),n.sort((i,a)=>i.tabIndex===a.tabIndex?i.documentOrder-a.documentOrder:i.tabIndex-a.tabIndex).map(i=>i.node).concat(t)}function qo(){return!0}function Uo(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:a=!1,getTabbable:r=Bo,isEnabled:s=qo,open:l}=e,d=c.useRef(!1),m=c.useRef(null),v=c.useRef(null),h=c.useRef(null),j=c.useRef(null),f=c.useRef(!1),u=c.useRef(null),C=Be(Ft(t),u),b=c.useRef(null);c.useEffect(()=>{!l||!u.current||(f.current=!n)},[n,l]),c.useEffect(()=>{if(!l||!u.current)return;const g=Te(u.current);return u.current.contains(g.activeElement)||(u.current.hasAttribute("tabIndex")||u.current.setAttribute("tabIndex","-1"),f.current&&u.current.focus()),()=>{a||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[l]),c.useEffect(()=>{if(!l||!u.current)return;const g=Te(u.current),k=w=>{b.current=w,!(i||!s()||w.key!=="Tab")&&g.activeElement===u.current&&w.shiftKey&&(d.current=!0,v.current&&v.current.focus())},p=()=>{const w=u.current;if(w===null)return;if(!g.hasFocus()||!s()||d.current){d.current=!1;return}if(w.contains(g.activeElement)||i&&g.activeElement!==m.current&&g.activeElement!==v.current)return;if(g.activeElement!==j.current)j.current=null;else if(j.current!==null)return;if(!f.current)return;let D=[];if((g.activeElement===m.current||g.activeElement===v.current)&&(D=r(u.current)),D.length>0){const z=!!(b.current?.shiftKey&&b.current?.key==="Tab"),L=D[0],H=D[D.length-1];typeof L!="string"&&typeof H!="string"&&(z?H.focus():L.focus())}else w.focus()};g.addEventListener("focusin",p),g.addEventListener("keydown",k,!0);const y=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&p()},50);return()=>{clearInterval(y),g.removeEventListener("focusin",p),g.removeEventListener("keydown",k,!0)}},[n,i,a,s,l,r]);const x=g=>{h.current===null&&(h.current=g.relatedTarget),f.current=!0,j.current=g.target;const k=t.props.onFocus;k&&k(g)},R=g=>{h.current===null&&(h.current=g.relatedTarget),f.current=!0};return o.jsxs(c.Fragment,{children:[o.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:m,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:C,onFocus:x}),o.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:v,"data-testid":"sentinelEnd"})]})}function _o(e){return typeof e=="function"?e():e}function Vo(e){return e?e.props.hasOwnProperty("in"):!1}const Ln=()=>{},ht=new Lo;function Ko(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:a=!1,onTransitionEnter:r,onTransitionExited:s,children:l,onClose:d,open:m,rootRef:v}=e,h=c.useRef({}),j=c.useRef(null),f=c.useRef(null),u=Be(f,v),[C,b]=c.useState(!m),x=Vo(l);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const g=()=>Te(j.current),k=()=>(h.current.modalRef=f.current,h.current.mount=j.current,h.current),p=()=>{ht.mount(k(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},y=it(()=>{const E=_o(t)||g().body;ht.add(k(),E),f.current&&p()}),w=()=>ht.isTopModal(k()),D=it(E=>{j.current=E,E&&(m&&w()?p():f.current&&ut(f.current,R))}),z=c.useCallback(()=>{ht.remove(k(),R)},[R]);c.useEffect(()=>()=>{z()},[z]),c.useEffect(()=>{m?y():(!x||!a)&&z()},[m,z,x,a,y]);const L=E=>A=>{E.onKeyDown?.(A),!(A.key!=="Escape"||A.which===229||!w())&&(n||(A.stopPropagation(),d&&d(A,"escapeKeyDown")))},H=E=>A=>{E.onClick?.(A),A.target===A.currentTarget&&d&&d(A,"backdropClick")};return{getRootProps:(E={})=>{const A=_t(e);delete A.onTransitionEnter,delete A.onTransitionExited;const G={...A,...E};return{role:"presentation",...G,onKeyDown:L(G),ref:u}},getBackdropProps:(E={})=>{const A=E;return{"aria-hidden":!0,...A,onClick:H(A),open:m}},getTransitionProps:()=>{const E=()=>{b(!1),r&&r()},A=()=>{b(!0),s&&s(),a&&z()};return{onEnter:In(E,l?.props.onEnter??Ln),onExited:In(A,l?.props.onExited??Ln)}},rootRef:u,portalRef:D,isTopModal:w,exited:C,hasTransition:x}}function Go(e){return be("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const Jo=e=>{const{open:t,exited:n,classes:i}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Go,i)},Xo=W("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Yo=W(Ci,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ri=c.forwardRef(function(t,n){const i=ye({name:"MuiModal",props:t}),{BackdropComponent:a=Yo,BackdropProps:r,classes:s,className:l,closeAfterTransition:d=!1,children:m,container:v,component:h,components:j={},componentsProps:f={},disableAutoFocus:u=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:b=!1,disablePortal:x=!1,disableRestoreFocus:R=!1,disableScrollLock:g=!1,hideBackdrop:k=!1,keepMounted:p=!1,onClose:y,onTransitionEnter:w,onTransitionExited:D,open:z,slotProps:L={},slots:H={},theme:B,...q}=i,F={...i,closeAfterTransition:d,disableAutoFocus:u,disableEnforceFocus:C,disableEscapeKeyDown:b,disablePortal:x,disableRestoreFocus:R,disableScrollLock:g,hideBackdrop:k,keepMounted:p},{getRootProps:E,getBackdropProps:A,getTransitionProps:G,portalRef:te,isTopModal:T,exited:ee,hasTransition:ie}=Ko({...F,rootRef:n}),Z={...F,exited:ee},J=Jo(Z),Y={};if(m.props.tabIndex===void 0&&(Y.tabIndex="-1"),ie){const{onEnter:$,onExited:U}=G();Y.onEnter=$,Y.onExited=U}const oe={slots:{root:j.Root,backdrop:j.Backdrop,...H},slotProps:{...f,...L}},[ce,ue]=pe("root",{ref:n,elementType:Xo,externalForwardedProps:{...oe,...q,component:h},getSlotProps:E,ownerState:Z,className:de(l,J?.root,!Z.open&&Z.exited&&J?.hidden)}),[je,ne]=pe("backdrop",{ref:r?.ref,elementType:a,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:$=>A({...$,onClick:U=>{$?.onClick&&$.onClick(U)}}),className:de(r?.className,J?.backdrop),ownerState:Z});return!p&&!z&&(!ie||ee)?null:o.jsx(ao,{ref:te,container:v,disablePortal:x,children:o.jsxs(ce,{...ue,children:[!k&&a?o.jsx(je,{...ne}):null,o.jsx(Uo,{disableEnforceFocus:C,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:T,open:z,children:c.cloneElement(m,Y)})]})})});function Zo(e){return be("MuiDialog",e)}const Wt=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Pi=c.createContext({}),Qo=W(Ci,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ea=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:a,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(i))}`,a&&"paperFullWidth",r&&"paperFullScreen"]};return xe(s,Zo,t)},ta=W(Ri,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),na=W("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),ia=W(xt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ke(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wt.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Qe=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialog"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:m,BackdropProps:v,children:h,className:j,disableEscapeKeyDown:f=!1,fullScreen:u=!1,fullWidth:C=!1,maxWidth:b="sm",onClick:x,onClose:R,open:g,PaperComponent:k=xt,PaperProps:p={},scroll:y="paper",slots:w={},slotProps:D={},TransitionComponent:z=Zt,transitionDuration:L=r,TransitionProps:H,...B}=i,q={...i,disableEscapeKeyDown:f,fullScreen:u,fullWidth:C,maxWidth:b,scroll:y},F=ea(q),E=c.useRef(),A=K=>{E.current=K.target===K.currentTarget},G=K=>{x&&x(K),E.current&&(E.current=null,R&&R(K,"backdropClick"))},te=sn(l),T=c.useMemo(()=>({titleId:te}),[te]),ee={transition:z,...w},ie={transition:H,paper:p,backdrop:v,...D},Z={slots:ee,slotProps:ie},[J,Y]=pe("root",{elementType:ta,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q,className:de(F.root,j),ref:n}),[oe,ce]=pe("backdrop",{elementType:Qo,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q}),[ue,je]=pe("paper",{elementType:ia,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q,className:de(F.paper,p.className)}),[ne,$]=pe("container",{elementType:na,externalForwardedProps:Z,ownerState:q,className:F.container}),[U,V]=pe("transition",{elementType:Zt,externalForwardedProps:Z,ownerState:q,additionalProps:{appear:!0,in:g,timeout:L,role:"presentation"}});return o.jsx(J,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:L,as:m,...ce}},disableEscapeKeyDown:f,onClose:R,open:g,onClick:G,...Y,...B,children:o.jsx(U,{...V,children:o.jsx(ne,{onMouseDown:A,...$,children:o.jsx(ue,{as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":te,"aria-modal":d,...je,children:o.jsx(Pi.Provider,{value:T,children:h})})})})})});function oa(e){return be("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const aa=e=>{const{classes:t,disableSpacing:n}=e;return xe({root:["root",!n&&"spacing"]},oa,t)},ra=W("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),et=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:r=!1,...s}=i,l={...i,disableSpacing:r},d=aa(l);return o.jsx(ra,{className:de(d.root,a),ownerState:l,ref:n,...s})});function sa(e){return be("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);function la(e){return be("MuiDialogTitle",e)}const ca=he("MuiDialogTitle",["root"]),pa=e=>{const{classes:t,dividers:n}=e;return xe({root:["root",n&&"dividers"]},sa,t)},da=W("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ke(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${ca.root} + &`]:{paddingTop:0}}}]}))),tt=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogContent"}),{className:a,dividers:r=!1,...s}=i,l={...i,dividers:r},d=pa(l);return o.jsx(da,{className:de(d.root,a),ownerState:l,ref:n,...s})}),ua=e=>{const{classes:t}=e;return xe({root:["root"]},la,t)},ma=W(_,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),nt=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogTitle"}),{className:a,id:r,...s}=i,l=i,d=ua(l),{titleId:m=r}=c.useContext(Pi);return o.jsx(ma,{component:"h2",className:de(d.root,a),ownerState:l,ref:n,variant:"h6",id:r??m,...s})});function fa(e){return be("MuiDivider",e)}he("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xa=e=>{const{absolute:t,children:n,classes:i,flexItem:a,light:r,orientation:s,textAlign:l,variant:d}=e;return xe({root:["root",t&&"absolute",d,r&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},fa,i)},va=W("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ke(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),ga=W("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ke(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),St=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDivider"}),{absolute:a=!1,children:r,className:s,orientation:l="horizontal",component:d=r||l==="vertical"?"div":"hr",flexItem:m=!1,light:v=!1,role:h=d!=="hr"?"separator":void 0,textAlign:j="center",variant:f="fullWidth",...u}=i,C={...i,absolute:a,component:d,flexItem:m,light:v,orientation:l,role:h,textAlign:j,variant:f},b=xa(C);return o.jsx(va,{as:d,className:de(b.root,s),role:h,ref:n,ownerState:C,"aria-orientation":h==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...u,children:r?o.jsx(ga,{className:b.wrapper,ownerState:C,children:r}):null})});St&&(St.muiSkipListHighlight=!0);const ha=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:a,size:r,hiddenLabel:s,multiline:l}=e,d={root:["root",!n&&"underline",i&&"adornedStart",a&&"adornedEnd",r==="small"&&`size${fe(r)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},m=xe(d,So,t);return{...t,...m}},ba=W(Dt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...At(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ve.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ve.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ve.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ve.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ve.disabled}, .${Ve.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ve.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(It()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ya=W(zt,{name:"MuiFilledInput",slot:"Input",overridesResolver:Tt})(ke(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),un=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,hiddenLabel:d,inputComponent:m="input",multiline:v=!1,slotProps:h,slots:j={},type:f="text",...u}=i,C={...i,disableUnderline:a,fullWidth:l,inputComponent:m,multiline:v,type:f},b=ha(i),x={root:{ownerState:C},input:{ownerState:C}},R=h??s?ln(x,h??s):x,g=j.root??r.Root??ba,k=j.input??r.Input??ya;return o.jsx(dn,{slots:{root:g,input:k},slotProps:R,fullWidth:l,inputComponent:m,multiline:v,ref:n,type:f,...u,classes:b})});un.muiName="Input";function wa(e){return be("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ka=e=>{const{classes:t,margin:n,fullWidth:i}=e,a={root:["root",n!=="none"&&`margin${fe(n)}`,i&&"fullWidth"]};return xe(a,wa,t)},ja=W("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${fe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ca=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormControl"}),{children:a,className:r,color:s="primary",component:l="div",disabled:d=!1,error:m=!1,focused:v,fullWidth:h=!1,hiddenLabel:j=!1,margin:f="none",required:u=!1,size:C="medium",variant:b="outlined",...x}=i,R={...i,color:s,component:l,disabled:d,error:m,fullWidth:h,hiddenLabel:j,margin:f,required:u,size:C,variant:b},g=ka(R),[k,p]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,A=>{if(!Mt(A,["Input","Select"]))return;const G=Mt(A,["Select"])?A.props.input:A;G&&yo(G.props)&&(E=!0)}),E}),[y,w]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,A=>{Mt(A,["Input","Select"])&&(Ct(A.props,!0)||Ct(A.props.inputProps,!0))&&(E=!0)}),E}),[D,z]=c.useState(!1);d&&D&&z(!1);const L=v!==void 0&&!d?v:D;let H;c.useRef(!1);const B=c.useCallback(()=>{w(!0)},[]),q=c.useCallback(()=>{w(!1)},[]),F=c.useMemo(()=>({adornedStart:k,setAdornedStart:p,color:s,disabled:d,error:m,filled:y,focused:L,fullWidth:h,hiddenLabel:j,size:C,onBlur:()=>{z(!1)},onFocus:()=>{z(!0)},onEmpty:q,onFilled:B,registerEffect:H,required:u,variant:b}),[k,s,d,m,y,L,h,j,H,q,B,u,C,b]);return o.jsx(pn.Provider,{value:F,children:o.jsx(ja,{as:l,ownerState:R,className:de(g.root,r),ref:n,...x,children:a})})});function Sa(e){return be("MuiFormHelperText",e)}const Nn=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $n;const Ra=e=>{const{classes:t,contained:n,size:i,disabled:a,error:r,filled:s,focused:l,required:d}=e,m={root:["root",a&&"disabled",r&&"error",i&&`size${fe(i)}`,n&&"contained",l&&"focused",s&&"filled",d&&"required"]};return xe(m,Sa,t)},Pa=W("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nn.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Ea=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormHelperText"}),{children:a,className:r,component:s="p",disabled:l,error:d,filled:m,focused:v,margin:h,required:j,variant:f,...u}=i,C=st(),b=rt({props:i,muiFormControl:C,states:["variant","size","disabled","error","filled","focused","required"]}),x={...i,component:s,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete x.ownerState;const R=Ra(x);return o.jsx(Pa,{as:s,className:de(R.root,r),ref:n,...u,ownerState:x,children:a===" "?$n||($n=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function Ia(e){return be("MuiFormLabel",e)}const mt=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Fa=e=>{const{classes:t,color:n,focused:i,disabled:a,error:r,filled:s,required:l}=e,d={root:["root",`color${fe(n)}`,a&&"disabled",r&&"error",s&&"filled",i&&"focused",l&&"required"],asterisk:["asterisk",r&&"error"]};return xe(d,Ia,t)},Aa=W("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(It()).map(([t])=>({props:{color:t},style:{[`&.${mt.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${mt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mt.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Ta=W("span",{name:"MuiFormLabel",slot:"Asterisk"})(ke(({theme:e})=>({[`&.${mt.error}`]:{color:(e.vars||e).palette.error.main}}))),Da=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormLabel"}),{children:a,className:r,color:s,component:l="label",disabled:d,error:m,filled:v,focused:h,required:j,...f}=i,u=st(),C=rt({props:i,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),b={...i,color:C.color||"primary",component:l,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required},x=Fa(b);return o.jsxs(Aa,{as:l,ownerState:b,className:de(x.root,r),ref:n,...f,children:[a,C.required&&o.jsxs(Ta,{ownerState:b,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})}),za=e=>{const{classes:t,disableUnderline:n}=e,a=xe({root:["root",!n&&"underline"],input:["input"]},jo,t);return{...t,...a}},Ma=W(Dt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...At(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lt.disabled}, .${lt.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${lt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(It()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),Oa=W(zt,{name:"MuiInput",slot:"Input",overridesResolver:Tt})({}),mn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,inputComponent:d="input",multiline:m=!1,slotProps:v,slots:h={},type:j="text",...f}=i,u=za(i),b={root:{ownerState:{disableUnderline:a}}},x=v??s?ln(v??s,b):b,R=h.root??r.Root??Ma,g=h.input??r.Input??Oa;return o.jsx(dn,{slots:{root:R,input:g},slotProps:x,fullWidth:l,inputComponent:d,multiline:m,ref:n,type:j,...f,classes:u})});mn.muiName="Input";function La(e){return be("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Na=e=>{const{classes:t,formControl:n,size:i,shrink:a,disableAnimation:r,variant:s,required:l}=e,d={root:["root",n&&"formControl",!r&&"animated",a&&"shrink",i&&i!=="medium"&&`size${fe(i)}`,s],asterisk:[l&&"asterisk"]},m=xe(d,La,t);return{...t,...m}},$a=W(Da,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mt.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:i})=>t==="filled"&&n.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Wa=c.forwardRef(function(t,n){const i=ye({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:r,shrink:s,variant:l,className:d,...m}=i,v=st();let h=s;typeof h>"u"&&v&&(h=v.filled||v.focused||v.adornedStart);const j=rt({props:i,muiFormControl:v,states:["size","variant","required","focused"]}),f={...i,disableAnimation:a,formControl:v,shrink:h,size:j.size,variant:j.variant,required:j.required,focused:j.focused},u=Na(f);return o.jsx($a,{"data-shrink":h,ref:n,className:de(u.root,d),...m,ownerState:f,classes:u})});function Ht(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wn(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ei(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ct(e,t,n,i,a,r){let s=!1,l=a(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const d=i?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Ei(l,r)||d)l=a(e,l,n);else return l.focus(),!0}return!1}const Ha=c.forwardRef(function(t,n){const{actions:i,autoFocus:a=!1,autoFocusItem:r=!1,children:s,className:l,disabledItemsFocusable:d=!1,disableListWrap:m=!1,onKeyDown:v,variant:h="selectedMenu",...j}=t,f=c.useRef(null),u=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jt(()=>{a&&f.current.focus()},[a]),c.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(g,{direction:k})=>{const p=!f.current.style.width;if(g.clientHeight{const k=f.current,p=g.key;if(g.ctrlKey||g.metaKey||g.altKey){v&&v(g);return}const w=Te(k).activeElement;if(p==="ArrowDown")g.preventDefault(),ct(k,w,m,d,Ht);else if(p==="ArrowUp")g.preventDefault(),ct(k,w,m,d,Wn);else if(p==="Home")g.preventDefault(),ct(k,null,m,d,Ht);else if(p==="End")g.preventDefault(),ct(k,null,m,d,Wn);else if(p.length===1){const D=u.current,z=p.toLowerCase(),L=performance.now();D.keys.length>0&&(L-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&z!==D.keys[0]&&(D.repeating=!1)),D.lastTime=L,D.keys.push(z);const H=w&&!D.repeating&&Ei(w,D);D.previousKeyMatched&&(H||ct(k,w,!1,d,Ht,D))?g.preventDefault():D.previousKeyMatched=!1}v&&v(g)},b=Be(f,n);let x=-1;c.Children.forEach(s,(g,k)=>{if(!c.isValidElement(g)){x===k&&(x+=1,x>=s.length&&(x=-1));return}g.props.disabled||(h==="selectedMenu"&&g.props.selected||x===-1)&&(x=k),x===k&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(x+=1,x>=s.length&&(x=-1))});const R=c.Children.map(s,(g,k)=>{if(k===x){const p={};return r&&(p.autoFocus=!0),g.props.tabIndex===void 0&&h==="selectedMenu"&&(p.tabIndex=0),c.cloneElement(g,p)}return g});return o.jsx(Jt,{role:"menu",ref:b,className:l,onKeyDown:C,tabIndex:a?0:-1,...j,children:R})});function Ba(e){return be("MuiPopover",e)}he("MuiPopover",["root","paper"]);function Hn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Bn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function qn(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function bt(e){return typeof e=="function"?e():e}const qa=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},Ba,t)},Ua=W(Ri,{name:"MuiPopover",slot:"Root"})({}),Ii=W(xt,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),_a=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiPopover"}),{action:a,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:m,className:v,container:h,elevation:j=8,marginThreshold:f=16,open:u,PaperProps:C={},slots:b={},slotProps:x={},transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:g,transitionDuration:k="auto",TransitionProps:p={},disableScrollLock:y=!1,...w}=i,D=c.useRef(),z={...i,anchorOrigin:s,anchorReference:d,elevation:j,marginThreshold:f,transformOrigin:R,TransitionComponent:g,transitionDuration:k,TransitionProps:p},L=qa(z),H=c.useCallback(()=>{if(d==="anchorPosition")return l;const $=bt(r),V=($&&$.nodeType===1?$:Te(D.current).body).getBoundingClientRect();return{top:V.top+Hn(V,s.vertical),left:V.left+Bn(V,s.horizontal)}},[r,s.horizontal,s.vertical,l,d]),B=c.useCallback($=>({vertical:Hn($,R.vertical),horizontal:Bn($,R.horizontal)}),[R.horizontal,R.vertical]),q=c.useCallback($=>{const U={width:$.offsetWidth,height:$.offsetHeight},V=B(U);if(d==="none")return{top:null,left:null,transformOrigin:qn(V)};const K=H();let S=K.top-V.vertical,M=K.left-V.horizontal;const Q=S+U.height,ve=M+U.width,Ee=We(bt(r)),Ae=Ee.innerHeight-f,Pe=Ee.innerWidth-f;if(f!==null&&SAe){const Se=Q-Ae;S-=Se,V.vertical+=Se}if(f!==null&&MPe){const Se=ve-Pe;M-=Se,V.horizontal+=Se}return{top:`${Math.round(S)}px`,left:`${Math.round(M)}px`,transformOrigin:qn(V)}},[r,d,H,B,f]),[F,E]=c.useState(u),A=c.useCallback(()=>{const $=D.current;if(!$)return;const U=q($);U.top!==null&&$.style.setProperty("top",U.top),U.left!==null&&($.style.left=U.left),$.style.transformOrigin=U.transformOrigin,E(!0)},[q]);c.useEffect(()=>(y&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[r,y,A]);const G=()=>{A()},te=()=>{E(!1)};c.useEffect(()=>{u&&A()}),c.useImperativeHandle(a,()=>u?{updatePosition:()=>{A()}}:null,[u,A]),c.useEffect(()=>{if(!u)return;const $=wi(()=>{A()}),U=We(bt(r));return U.addEventListener("resize",$),()=>{$.clear(),U.removeEventListener("resize",$)}},[r,u,A]);let T=k;const ee={slots:{transition:g,...b},slotProps:{transition:p,paper:C,...x}},[ie,Z]=pe("transition",{elementType:ki,externalForwardedProps:ee,ownerState:z,getSlotProps:$=>({...$,onEntering:(U,V)=>{$.onEntering?.(U,V),G()},onExited:U=>{$.onExited?.(U),te()}}),additionalProps:{appear:!0,in:u}});k==="auto"&&!ie.muiSupportAuto&&(T=void 0);const J=h||(r?Te(bt(r)).body:void 0),[Y,{slots:oe,slotProps:ce,...ue}]=pe("root",{ref:n,elementType:Ua,externalForwardedProps:{...ee,...w},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:vo(typeof x.backdrop=="function"?x.backdrop(z):x.backdrop,{invisible:!0})},container:J,open:u},ownerState:z,className:de(L.root,v)}),[je,ne]=pe("paper",{ref:D,className:L.paper,elementType:Ii,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:j,style:F?void 0:{opacity:0}},ownerState:z});return o.jsx(Y,{...ue,...!Ut(Y)&&{slots:oe,slotProps:ce,disableScrollLock:y},children:o.jsx(ie,{...Z,timeout:T,children:o.jsx(je,{...ne,children:m})})})});function Va(e){return be("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Ka={vertical:"top",horizontal:"right"},Ga={vertical:"top",horizontal:"left"},Ja=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},Va,t)},Xa=W(_a,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ya=W(Ii,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Za=W(Ha,{name:"MuiMenu",slot:"List"})({outline:0}),Qa=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:r,className:s,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:m,open:v,PaperProps:h={},PopoverClasses:j,transitionDuration:f="auto",TransitionProps:{onEntering:u,...C}={},variant:b="selectedMenu",slots:x={},slotProps:R={},...g}=i,k=Ki(),p={...i,autoFocus:a,disableAutoFocusItem:l,MenuListProps:d,onEntering:u,PaperProps:h,transitionDuration:f,TransitionProps:C,variant:b},y=Ja(p),w=a&&!l&&v,D=c.useRef(null),z=(T,ee)=>{D.current&&D.current.adjustStyleForScrollbar(T,{direction:k?"rtl":"ltr"}),u&&u(T,ee)},L=T=>{T.key==="Tab"&&(T.preventDefault(),m&&m(T,"tabKeyDown"))};let H=-1;c.Children.map(r,(T,ee)=>{c.isValidElement(T)&&(T.props.disabled||(b==="selectedMenu"&&T.props.selected||H===-1)&&(H=ee))});const B={slots:x,slotProps:{list:d,transition:C,paper:h,...R}},q=eo({elementType:x.root,externalSlotProps:R.root,ownerState:p,className:[y.root,s]}),[F,E]=pe("paper",{className:y.paper,elementType:Ya,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:p}),[A,G]=pe("list",{className:de(y.list,d.className),elementType:Za,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:T=>({...T,onKeyDown:ee=>{L(ee),T.onKeyDown?.(ee)}}),ownerState:p}),te=typeof B.slotProps.transition=="function"?B.slotProps.transition(p):B.slotProps.transition;return o.jsx(Xa,{onClose:m,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Ka:Ga,slots:{root:x.root,paper:F,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:q,paper:E,backdrop:typeof R.backdrop=="function"?R.backdrop(p):R.backdrop,transition:{...te,onEntering:(...T)=>{z(...T),te?.onEntering?.(...T)}}},open:v,ref:n,transitionDuration:f,ownerState:p,...g,classes:j,children:o.jsx(A,{actions:D,autoFocus:a&&(H===-1||l),autoFocusItem:w,variant:b,...G,children:r})})});function er(e){return be("MuiNativeSelect",e)}const fn=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tr=e=>{const{classes:t,variant:n,disabled:i,multiple:a,open:r,error:s}=e,l={select:["select",n,i&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",i&&"disabled"]};return xe(l,er,t)},Fi=W("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${fn.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),nr=W(Fi,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:He,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${fn.multiple}`]:t.multiple}]}})({}),Ai=W("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${fn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ir=W(Ai,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),or=c.forwardRef(function(t,n){const{className:i,disabled:a,error:r,IconComponent:s,inputRef:l,variant:d="standard",...m}=t,v={...t,disabled:a,variant:d,error:r},h=tr(v);return o.jsxs(c.Fragment,{children:[o.jsx(nr,{ownerState:v,className:de(h.select,i),disabled:a,ref:l||n,...m}),t.multiple?null:o.jsx(ir,{as:s,ownerState:v,className:h.icon})]})});var Un;const ar=W("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:He})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rr=W("legend",{name:"MuiNotchedOutlined",shouldForwardProp:He})(ke(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function sr(e){const{children:t,classes:n,className:i,label:a,notched:r,...s}=e,l=a!=null&&a!=="",d={...e,notched:r,withLabel:l};return o.jsx(ar,{"aria-hidden":!0,className:i,ownerState:d,...s,children:o.jsx(rr,{ownerState:d,children:l?o.jsx("span",{children:a}):Un||(Un=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const lr=e=>{const{classes:t}=e,i=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Co,t);return{...t,...i}},cr=W(Dt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:At})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ne.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(It()).map(([n])=>({props:{color:n},style:{[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ne.error} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ne.disabled} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:i})=>n.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),pr=W(sr,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),dr=W(zt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Tt})(ke(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),xn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:r=!1,inputComponent:s="input",label:l,multiline:d=!1,notched:m,slots:v={},slotProps:h={},type:j="text",...f}=i,u=lr(i),C=st(),b=rt({props:i,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...i,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:C,fullWidth:r,hiddenLabel:b.hiddenLabel,multiline:d,size:b.size,type:j},R=v.root??a.Root??cr,g=v.input??a.Input??dr,[k,p]=pe("notchedOutline",{elementType:pr,className:u.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:v,slotProps:h},additionalProps:{label:l!=null&&l!==""&&b.required?o.jsxs(c.Fragment,{children:[l," ","*"]}):l}});return o.jsx(dn,{slots:{root:R,input:g},slotProps:h,renderSuffix:y=>o.jsx(k,{...p,notched:typeof m<"u"?m:!!(y.startAdornment||y.filled||y.focused)}),fullWidth:r,inputComponent:s,multiline:d,ref:n,type:j,...f,classes:{...u,notchedOutline:null}})});xn.muiName="Input";function Ti(e){return be("MuiSelect",e)}const pt=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _n;const ur=W(Fi,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${pt.select}`]:t.select},{[`&.${pt.select}`]:t[n.variant]},{[`&.${pt.error}`]:t.error},{[`&.${pt.multiple}`]:t.multiple}]}})({[`&.${pt.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mr=W(Ai,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),fr=W("input",{shouldForwardProp:e=>Gi(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vn(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xr(e){return e==null||typeof e=="string"&&!e.trim()}const vr=e=>{const{classes:t,variant:n,disabled:i,multiple:a,open:r,error:s}=e,l={select:["select",n,i&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return xe(l,Ti,t)},gr=c.forwardRef(function(t,n){const{"aria-describedby":i,"aria-label":a,autoFocus:r,autoWidth:s,children:l,className:d,defaultOpen:m,defaultValue:v,disabled:h,displayEmpty:j,error:f=!1,IconComponent:u,inputRef:C,labelId:b,MenuProps:x={},multiple:R,name:g,onBlur:k,onChange:p,onClose:y,onFocus:w,onOpen:D,open:z,readOnly:L,renderValue:H,required:B,SelectDisplayProps:q={},tabIndex:F,type:E,value:A,variant:G="standard",...te}=t,[T,ee]=Cn({controlled:A,default:v,name:"Select"}),[ie,Z]=Cn({controlled:z,default:m,name:"Select"}),J=c.useRef(null),Y=c.useRef(null),[oe,ce]=c.useState(null),{current:ue}=c.useRef(z!=null),[je,ne]=c.useState(),$=Be(n,C),U=c.useCallback(N=>{Y.current=N,N&&ce(N)},[]),V=oe?.parentNode;c.useImperativeHandle($,()=>({focus:()=>{Y.current.focus()},node:J.current,value:T}),[T]),c.useEffect(()=>{m&&ie&&oe&&!ue&&(ne(s?null:V.clientWidth),Y.current.focus())},[oe,s]),c.useEffect(()=>{r&&Y.current.focus()},[r]),c.useEffect(()=>{if(!b)return;const N=Te(Y.current).getElementById(b);if(N){const ae=()=>{getSelection().isCollapsed&&Y.current.focus()};return N.addEventListener("click",ae),()=>{N.removeEventListener("click",ae)}}},[b]);const K=(N,ae)=>{N?D&&D(ae):y&&y(ae),ue||(ne(s?null:V.clientWidth),Z(N))},S=N=>{N.button===0&&(N.preventDefault(),Y.current.focus(),K(!0,N))},M=N=>{K(!1,N)},Q=c.Children.toArray(l),ve=N=>{const ae=Q.find(we=>we.props.value===N.target.value);ae!==void 0&&(ee(ae.props.value),p&&p(N,ae))},Ee=N=>ae=>{let we;if(ae.currentTarget.hasAttribute("tabindex")){if(R){we=Array.isArray(T)?T.slice():[];const Le=T.indexOf(N.props.value);Le===-1?we.push(N.props.value):we.splice(Le,1)}else we=N.props.value;if(N.props.onClick&&N.props.onClick(ae),T!==we&&(ee(we),p)){const Le=ae.nativeEvent||ae,vt=new Le.constructor(Le.type,Le);Object.defineProperty(vt,"target",{writable:!0,value:{value:we,name:g}}),p(vt,N)}R||K(!1,ae)}},Ae=N=>{L||[" ","ArrowUp","ArrowDown","Enter"].includes(N.key)&&(N.preventDefault(),K(!0,N))},Pe=oe!==null&&ie,Se=N=>{!Pe&&k&&(Object.defineProperty(N,"target",{writable:!0,value:{value:T,name:g}}),k(N))};delete te["aria-invalid"];let De,Me;const P=[];let O=!1;(Ct({value:T})||j)&&(H?De=H(T):O=!0);const le=Q.map(N=>{if(!c.isValidElement(N))return null;let ae;if(R){if(!Array.isArray(T))throw new Error(vi(2));ae=T.some(we=>Vn(we,N.props.value)),ae&&O&&P.push(N.props.children)}else ae=Vn(T,N.props.value),ae&&O&&(Me=N.props.children);return c.cloneElement(N,{"aria-selected":ae?"true":"false",onClick:Ee(N),onKeyUp:we=>{we.key===" "&&we.preventDefault(),N.props.onKeyUp&&N.props.onKeyUp(we)},role:"option",selected:ae,value:void 0,"data-value":N.props.value})});O&&(R?P.length===0?De=null:De=P.reduce((N,ae,we)=>(N.push(ae),we{const{classes:t}=e,i=xe({root:["root"]},Ti,t);return{...t,...i}},vn={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>He(e)&&e!=="variant"},br=W(mn,vn)(""),yr=W(xn,vn)(""),wr=W(un,vn)(""),Di=c.forwardRef(function(t,n){const i=ye({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:r,classes:s={},className:l,defaultOpen:d=!1,displayEmpty:m=!1,IconComponent:v=Ro,id:h,input:j,inputProps:f,label:u,labelId:C,MenuProps:b,multiple:x=!1,native:R=!1,onClose:g,onOpen:k,open:p,renderValue:y,SelectDisplayProps:w,variant:D="outlined",...z}=i,L=R?or:gr,H=st(),B=rt({props:i,muiFormControl:H,states:["variant","error"]}),q=B.variant||D,F={...i,variant:q,classes:s},E=hr(F),{root:A,...G}=E,te=j||{standard:o.jsx(br,{ownerState:F}),outlined:o.jsx(yr,{label:u,ownerState:F}),filled:o.jsx(wr,{ownerState:F})}[q],T=Be(n,Ft(te));return o.jsx(c.Fragment,{children:c.cloneElement(te,{inputComponent:L,inputProps:{children:r,error:B.error,IconComponent:v,variant:q,type:void 0,multiple:x,...R?{id:h}:{autoWidth:a,defaultOpen:d,displayEmpty:m,labelId:C,MenuProps:b,onClose:g,onOpen:k,open:p,renderValue:y,SelectDisplayProps:{id:h,...w}},...f,classes:f?ln(G,f.classes):G,...j?j.props.inputProps:{}},...(x&&R||m)&&q==="outlined"?{notched:!0}:{},ref:T,className:de(te.props.className,l,E.root),...!j&&{variant:q},...z})})});Di.muiName="Select";function kr(e){return be("MuiSkeleton",e)}he("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const jr=e=>{const{classes:t,variant:n,animation:i,hasChildren:a,width:r,height:s}=e;return xe({root:["root",n,i,a&&"withChildren",a&&!r&&"fitContent",a&&!s&&"heightAuto"]},kr,t)},Qt=hi` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`,en=hi` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`,Cr=typeof Qt!="string"?gi` + animation: ${Qt} 2s ease-in-out 0.5s infinite; + `:null,Sr=typeof en!="string"?gi` + &::after { + animation: ${en} 2s linear 0.5s infinite; + } + `:null,Rr=W("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(ke(({theme:e})=>{const t=mo(e.shape.borderRadius)||"px",n=fo(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:i})=>i.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:i})=>i.hasChildren&&!i.width,style:{maxWidth:"fit-content"}},{props:({ownerState:i})=>i.hasChildren&&!i.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Cr||{animation:`${Qt} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + 90deg, + transparent, + ${(e.vars||e).palette.action.hover}, + transparent + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Sr||{"&::after":{animation:`${en} 2s linear 0.5s infinite`}}}]}})),Ze=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSkeleton"}),{animation:a="pulse",className:r,component:s="span",height:l,style:d,variant:m="text",width:v,...h}=i,j={...i,animation:a,component:s,variant:m,hasChildren:!!h.children},f=jr(j);return o.jsx(Rr,{as:s,ref:n,className:de(f.root,r),ownerState:j,...h,style:{width:v,height:l,...d}})});function Pr(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:i,open:a,resumeHideDuration:r}=e,s=to();c.useEffect(()=>{if(!a)return;function x(R){R.defaultPrevented||R.key==="Escape"&&i?.(R,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,i]);const l=it((x,R)=>{i?.(x,R)}),d=it(x=>{!i||x==null||s.start(x,()=>{l(null,"timeout")})});c.useEffect(()=>(a&&d(t),s.clear),[a,t,d,s]);const m=x=>{i?.(x,"clickaway")},v=s.clear,h=c.useCallback(()=>{t!=null&&d(r??t*.5)},[t,r,d]),j=x=>R=>{const g=x.onBlur;g?.(R),h()},f=x=>R=>{const g=x.onFocus;g?.(R),v()},u=x=>R=>{const g=x.onMouseEnter;g?.(R),v()},C=x=>R=>{const g=x.onMouseLeave;g?.(R),h()};return c.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",v)}},[n,a,h,v]),{getRootProps:(x={})=>{const R={..._t(e),..._t(x)};return{role:"presentation",...x,...R,onBlur:j(R),onFocus:f(R),onMouseEnter:u(R),onMouseLeave:C(R)}},onClickAway:m}}function Er(e){return be("MuiSnackbarContent",e)}he("MuiSnackbarContent",["root","message","action"]);const Ir=e=>{const{classes:t}=e;return xe({root:["root"],action:["action"],message:["message"]},Er,t)},Fr=W(xt,{name:"MuiSnackbarContent",slot:"Root"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(bn(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:bn(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Ar=W("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Tr=W("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Dr=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSnackbarContent"}),{action:a,className:r,message:s,role:l="alert",...d}=i,m=i,v=Ir(m);return o.jsxs(Fr,{role:l,elevation:6,className:de(v.root,r),ownerState:m,ref:n,...d,children:[o.jsx(Ar,{className:v.message,ownerState:m,children:s}),a?o.jsx(Tr,{className:v.action,ownerState:m,children:a}):null]})});function zr(e){return be("MuiSnackbar",e)}he("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mr=e=>{const{classes:t,anchorOrigin:n}=e,i={root:["root",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`]};return xe(i,zr,t)},Or=W("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}`]]}})(ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Lr=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSnackbar"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:m=null,children:v,className:h,ClickAwayListenerProps:j,ContentProps:f,disableWindowBlurListener:u=!1,message:C,onBlur:b,onClose:x,onFocus:R,onMouseEnter:g,onMouseLeave:k,open:p,resumeHideDuration:y,slots:w={},slotProps:D={},TransitionComponent:z,transitionDuration:L=r,TransitionProps:{onEnter:H,onExited:B,...q}={},...F}=i,E={...i,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:m,disableWindowBlurListener:u,TransitionComponent:z,transitionDuration:L},A=Mr(E),{getRootProps:G,onClickAway:te}=Pr({...E}),[T,ee]=c.useState(!0),ie=K=>{ee(!0),B&&B(K)},Z=(K,S)=>{ee(!1),H&&H(K,S)},J={slots:{transition:z,...w},slotProps:{content:f,clickAwayListener:j,transition:q,...D}},[Y,oe]=pe("root",{ref:n,className:[A.root,h],elementType:Or,getSlotProps:G,externalForwardedProps:{...J,...F},ownerState:E}),[ce,{ownerState:ue,...je}]=pe("clickAwayListener",{elementType:To,externalForwardedProps:J,getSlotProps:K=>({onClickAway:(...S)=>{const M=S[0];K.onClickAway?.(...S),!M?.defaultMuiPrevented&&te(...S)}}),ownerState:E}),[ne,$]=pe("content",{elementType:Dr,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:C,action:s},ownerState:E}),[U,V]=pe("transition",{elementType:ki,externalForwardedProps:J,getSlotProps:K=>({onEnter:(...S)=>{K.onEnter?.(...S),Z(...S)},onExited:(...S)=>{K.onExited?.(...S),ie(...S)}}),additionalProps:{appear:!0,in:p,timeout:L,direction:l==="top"?"down":"up"},ownerState:E});return!p&&T?null:o.jsx(ce,{...je,...w.clickAwayListener&&{ownerState:ue},children:o.jsx(Y,{...oe,children:o.jsx(U,{...V,children:v||o.jsx(ne,{...$})})})})});function Nr(e){return be("MuiTextField",e)}he("MuiTextField",["root"]);const $r={standard:mn,filled:un,outlined:xn},Wr=e=>{const{classes:t}=e;return xe({root:["root"]},Nr,t)},Hr=W(Ca,{name:"MuiTextField",slot:"Root"})({}),Ke=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:r=!1,children:s,className:l,color:d="primary",defaultValue:m,disabled:v=!1,error:h=!1,FormHelperTextProps:j,fullWidth:f=!1,helperText:u,id:C,InputLabelProps:b,inputProps:x,InputProps:R,inputRef:g,label:k,maxRows:p,minRows:y,multiline:w=!1,name:D,onBlur:z,onChange:L,onFocus:H,placeholder:B,required:q=!1,rows:F,select:E=!1,SelectProps:A,slots:G={},slotProps:te={},type:T,value:ee,variant:ie="outlined",...Z}=i,J={...i,autoFocus:r,color:d,disabled:v,error:h,fullWidth:f,multiline:w,required:q,select:E,variant:ie},Y=Wr(J),oe=sn(C),ce=u&&oe?`${oe}-helper-text`:void 0,ue=k&&oe?`${oe}-label`:void 0,je=$r[ie],ne={slots:G,slotProps:{input:R,inputLabel:b,htmlInput:x,formHelperText:j,select:A,...te}},$={},U=ne.slotProps.inputLabel;ie==="outlined"&&(U&&typeof U.shrink<"u"&&($.notched=U.shrink),$.label=k),E&&((!A||!A.native)&&($.id=void 0),$["aria-describedby"]=void 0);const[V,K]=pe("root",{elementType:Hr,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Z},ownerState:J,className:de(Y.root,l),ref:n,additionalProps:{disabled:v,error:h,fullWidth:f,required:q,color:d,variant:ie}}),[S,M]=pe("input",{elementType:je,externalForwardedProps:ne,additionalProps:$,ownerState:J}),[Q,ve]=pe("inputLabel",{elementType:Wa,externalForwardedProps:ne,ownerState:J}),[Ee,Ae]=pe("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:J}),[Pe,Se]=pe("formHelperText",{elementType:Ea,externalForwardedProps:ne,ownerState:J}),[De,Me]=pe("select",{elementType:Di,externalForwardedProps:ne,ownerState:J}),P=o.jsx(S,{"aria-describedby":ce,autoComplete:a,autoFocus:r,defaultValue:m,fullWidth:f,multiline:w,name:D,rows:F,maxRows:p,minRows:y,type:T,value:ee,id:oe,inputRef:g,onBlur:z,onChange:L,onFocus:H,placeholder:B,inputProps:Ae,slots:{input:G.htmlInput?Ee:void 0},...M});return o.jsxs(V,{...K,children:[k!=null&&k!==""&&o.jsx(Q,{htmlFor:oe,id:ue,...ve,children:k}),E?o.jsx(De,{"aria-describedby":ce,id:oe,labelId:ue,value:ee,input:P,...Me,children:s}):P,u&&o.jsx(Pe,{id:ce,...Se,children:u})]})});function Br(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function qr(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ur(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var Kn=e=>Array.isArray(e)?e:[e];function _r(e){const t=Array.isArray(e[0])?e[0]:e;return Ur(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Vr(e,t){const n=[],{length:i}=e;for(let a=0;a{n=yt(),s.resetResultsCount()},s.resultsCount=()=>r,s.resetResultsCount=()=>{r=0},s}function Xr(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...a)=>{let r=0,s=0,l,d={},m=a.pop();typeof m=="object"&&(d=m,m=a.pop()),Br(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const v={...n,...d},{memoize:h,memoizeOptions:j=[],argsMemoize:f=zi,argsMemoizeOptions:u=[]}=v,C=Kn(j),b=Kn(u),x=_r(a),R=h(function(){return r++,m.apply(null,arguments)},...C),g=f(function(){s++;const p=Vr(x,arguments);return l=R.apply(null,p),l},...b);return Object.assign(g,{resultFunc:m,memoizedResultFunc:R,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:h,argsMemoize:f})};return Object.assign(i,{withTypes:()=>i}),i}var gn=Xr(zi),Yr=Object.assign((e,t=gn)=>{qr(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(r=>e[r]);return t(i,(...r)=>r.reduce((s,l,d)=>(s[n[d]]=l,s),{}))},{withTypes:()=>Yr});function Je(e,t,n,i){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function l(v){try{m(i.next(v))}catch(h){s(h)}}function d(v){try{m(i.throw(v))}catch(h){s(h)}}function m(v){v.done?r(v.value):a(v.value).then(l,d)}m((i=i.apply(e,t||[])).next())})}const Zr=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function at(e,t,n){const i=Qr(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof i.path!="string"&&Jn(i,"path",r),Jn(i,"relativePath",r),i}function Qr(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),a=Zr.get(i);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function Jn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const es=[".DS_Store","Thumbs.db"];function ts(e){return Je(this,void 0,void 0,function*(){return Rt(e)&&ns(e.dataTransfer)?rs(e.dataTransfer,e.type):is(e)?os(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?as(e):[]})}function ns(e){return Rt(e)}function is(e){return Rt(e)&&Rt(e.target)}function Rt(e){return typeof e=="object"&&e!==null}function os(e){return tn(e.target.files).map(t=>at(t))}function as(e){return Je(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>at(n))})}function rs(e,t){return Je(this,void 0,void 0,function*(){if(e.items){const n=tn(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(ss));return Xn(Mi(i))}return Xn(tn(e.files).map(n=>at(n)))})}function Xn(e){return e.filter(t=>es.indexOf(t.name)===-1)}function tn(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?Mi(n):[n]],[])}function Yn(e,t){return Je(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const s=yield r.getFile();return s.handle=r,at(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return at(i,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function ls(e){return Je(this,void 0,void 0,function*(){return e.isDirectory?Oi(e):cs(e)})}function Oi(e){const t=e.createReader();return new Promise((n,i)=>{const a=[];function r(){t.readEntries(s=>Je(this,void 0,void 0,function*(){if(s.length){const l=Promise.all(s.map(ls));a.push(l),r()}else try{const l=yield Promise.all(a);n(l)}catch(l){i(l)}}),s=>{i(s)})}r()})}function cs(e){return Je(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const a=at(i,e.fullPath);t(a)},i=>{n(i)})})})}var wt={},Zn;function ps(){return Zn||(Zn=1,wt.__esModule=!0,wt.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?i.toLowerCase().endsWith(l):l.endsWith("/*")?r===l.replace(/\/.*$/,""):a===l})}return!0}),wt}var ds=ps();const Bt=xi(ds);function Qn(e){return fs(e)||ms(e)||Ni(e)||us()}function us(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ms(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fs(e){if(Array.isArray(e))return nn(e)}function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function ti(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:bs,message:"File type must be ".concat(i)}},ni=function(t){return{code:ys,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ii=function(t){return{code:ws,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Cs={code:ks,message:"Too many files"};function $i(e,t){var n=e.type==="application/x-moz-file"||hs(e,t);return[n,n?null:js(t)]}function Wi(e,t,n){if(Ge(e.size))if(Ge(t)&&Ge(n)){if(e.size>n)return[!1,ni(n)];if(e.sizen)return[!1,ni(n)]}return[!0,null]}function Ge(e){return e!=null}function Ss(e){var t=e.files,n=e.accept,i=e.minSize,a=e.maxSize,r=e.multiple,s=e.maxFiles,l=e.validator;return!r&&t.length>1||r&&s>=1&&t.length>s?!1:t.every(function(d){var m=$i(d,n),v=ft(m,1),h=v[0],j=Wi(d,i,a),f=ft(j,1),u=f[0],C=l?l(d):null;return h&&u&&!C})}function Pt(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function kt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function oi(e){e.preventDefault()}function Rs(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ps(e){return e.indexOf("Edge/")!==-1}function Es(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Rs(e)||Ps(e)}function $e(){for(var e=arguments.length,t=new Array(e),n=0;n1?a-1:0),s=1;se.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _s(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,r;for(r=0;r=0)&&(n[a]=e[a]);return n}var hn=c.forwardRef(function(e,t){var n=e.children,i=Et(e,zs),a=_i(i),r=a.open,s=Et(a,Ms);return c.useImperativeHandle(t,function(){return{open:r}},[r]),Ji.createElement(c.Fragment,null,n(ge(ge({},s),{},{open:r})))});hn.displayName="Dropzone";var Ui={disabled:!1,getFilesFromEvent:ts,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};hn.defaultProps=Ui;hn.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var rn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function _i(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},Ui),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,l=t.multiple,d=t.maxFiles,m=t.onDragEnter,v=t.onDragLeave,h=t.onDragOver,j=t.onDrop,f=t.onDropAccepted,u=t.onDropRejected,C=t.onFileDialogCancel,b=t.onFileDialogOpen,x=t.useFsAccessApi,R=t.autoFocus,g=t.preventDropOnDocument,k=t.noClick,p=t.noKeyboard,y=t.noDrag,w=t.noDragEventsBubbling,D=t.onError,z=t.validator,L=c.useMemo(function(){return As(n)},[n]),H=c.useMemo(function(){return Fs(n)},[n]),B=c.useMemo(function(){return typeof b=="function"?b:ri},[b]),q=c.useMemo(function(){return typeof C=="function"?C:ri},[C]),F=c.useRef(null),E=c.useRef(null),A=c.useReducer(Vs,rn),G=qt(A,2),te=G[0],T=G[1],ee=te.isFocused,ie=te.isFileDialogActive,Z=c.useRef(typeof window<"u"&&window.isSecureContext&&x&&Is()),J=function(){!Z.current&&ie&&setTimeout(function(){if(E.current){var O=E.current.files;O.length||(T({type:"closeDialog"}),q())}},300)};c.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[E,ie,q,Z]);var Y=c.useRef([]),oe=function(O){F.current&&F.current.contains(O.target)||(O.preventDefault(),Y.current=[])};c.useEffect(function(){return g&&(document.addEventListener("dragover",oi,!1),document.addEventListener("drop",oe,!1)),function(){g&&(document.removeEventListener("dragover",oi),document.removeEventListener("drop",oe))}},[F,g]),c.useEffect(function(){return!i&&R&&F.current&&F.current.focus(),function(){}},[F,R,i]);var ce=c.useCallback(function(P){D?D(P):console.error(P)},[D]),ue=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P),Y.current=[].concat(Ns(Y.current),[P.target]),kt(P)&&Promise.resolve(a(P)).then(function(O){if(!(Pt(P)&&!w)){var le=O.length,me=le>0&&Ss({files:O,accept:L,minSize:s,maxSize:r,multiple:l,maxFiles:d,validator:z}),Ce=le>0&&!me;T({isDragAccept:me,isDragReject:Ce,isDragActive:!0,type:"setDraggedFiles"}),m&&m(P)}}).catch(function(O){return ce(O)})},[a,m,ce,w,L,s,r,l,d,z]),je=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P);var O=kt(P);if(O&&P.dataTransfer)try{P.dataTransfer.dropEffect="copy"}catch{}return O&&h&&h(P),!1},[h,w]),ne=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P);var O=Y.current.filter(function(me){return F.current&&F.current.contains(me)}),le=O.indexOf(P.target);le!==-1&&O.splice(le,1),Y.current=O,!(O.length>0)&&(T({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kt(P)&&v&&v(P))},[F,v,w]),$=c.useCallback(function(P,O){var le=[],me=[];P.forEach(function(Ce){var ze=$i(Ce,L),Ie=qt(ze,2),re=Ie[0],Oe=Ie[1],qe=Wi(Ce,s,r),_e=qt(qe,2),N=_e[0],ae=_e[1],we=z?z(Ce):null;if(re&&N&&!we)le.push(Ce);else{var Le=[Oe,ae];we&&(Le=Le.concat(we)),me.push({file:Ce,errors:Le.filter(function(vt){return vt})})}}),(!l&&le.length>1||l&&d>=1&&le.length>d)&&(le.forEach(function(Ce){me.push({file:Ce,errors:[Cs]})}),le.splice(0)),T({acceptedFiles:le,fileRejections:me,isDragReject:me.length>0,type:"setFiles"}),j&&j(le,me,O),me.length>0&&u&&u(me,O),le.length>0&&f&&f(le,O)},[T,l,L,s,r,d,j,f,u,z]),U=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P),Y.current=[],kt(P)&&Promise.resolve(a(P)).then(function(O){Pt(P)&&!w||$(O,P)}).catch(function(O){return ce(O)}),T({type:"reset"})},[a,$,ce,w]),V=c.useCallback(function(){if(Z.current){T({type:"openDialog"}),B();var P={multiple:l,types:H};window.showOpenFilePicker(P).then(function(O){return a(O)}).then(function(O){$(O,null),T({type:"closeDialog"})}).catch(function(O){Ts(O)?(q(O),T({type:"closeDialog"})):Ds(O)?(Z.current=!1,E.current?(E.current.value=null,E.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ce(O)});return}E.current&&(T({type:"openDialog"}),B(),E.current.value=null,E.current.click())},[T,B,q,x,$,ce,H,l]),K=c.useCallback(function(P){!F.current||!F.current.isEqualNode(P.target)||(P.key===" "||P.key==="Enter"||P.keyCode===32||P.keyCode===13)&&(P.preventDefault(),V())},[F,V]),S=c.useCallback(function(){T({type:"focus"})},[]),M=c.useCallback(function(){T({type:"blur"})},[]),Q=c.useCallback(function(){k||(Es()?setTimeout(V,0):V())},[k,V]),ve=function(O){return i?null:O},Ee=function(O){return p?null:ve(O)},Ae=function(O){return y?null:ve(O)},Pe=function(O){w&&O.stopPropagation()},Se=c.useMemo(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=P.refKey,le=O===void 0?"ref":O,me=P.role,Ce=P.onKeyDown,ze=P.onFocus,Ie=P.onBlur,re=P.onClick,Oe=P.onDragEnter,qe=P.onDragOver,_e=P.onDragLeave,N=P.onDrop,ae=Et(P,Os);return ge(ge(an({onKeyDown:Ee($e(Ce,K)),onFocus:Ee($e(ze,S)),onBlur:Ee($e(Ie,M)),onClick:ve($e(re,Q)),onDragEnter:Ae($e(Oe,ue)),onDragOver:Ae($e(qe,je)),onDragLeave:Ae($e(_e,ne)),onDrop:Ae($e(N,U)),role:typeof me=="string"&&me!==""?me:"presentation"},le,F),!i&&!p?{tabIndex:0}:{}),ae)}},[F,K,S,M,Q,ue,je,ne,U,p,y,i]),De=c.useCallback(function(P){P.stopPropagation()},[]),Me=c.useMemo(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=P.refKey,le=O===void 0?"ref":O,me=P.onChange,Ce=P.onClick,ze=Et(P,Ls),Ie=an({accept:L,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ve($e(me,U)),onClick:ve($e(Ce,De)),tabIndex:-1},le,E);return ge(ge({},Ie),ze)}},[E,n,l,U,i]);return ge(ge({},te),{},{isFocused:ee&&!i,getRootProps:Se,getInputProps:Me,rootRef:F,inputRef:E,open:ve(V)})}function Vs(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},rn),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ge(ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return ge({},rn);default:return e}}function ri(){}const si=Fe(o.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),li=Fe(o.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ks=Fe(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),Gs=Fe(o.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),ci=Fe(o.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),pi=Fe(o.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"})),di=Fe(o.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),Js=Fe(o.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),Xs=Fe(o.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Ys=Fe(o.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),ui=Fe(o.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"})),Zs=Fe(o.jsx("path",{d:"m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42M7 7h7v2H7zm10 10H7v-2h10zm0-4H7v-2h10z"})),Qs=Fe(o.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),mi=Fe([o.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),o.jsx("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")]),fi=Fe(o.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"})),el=e=>e.document.documents,tl=e=>e.document.pendingFiles,nl=e=>e.document.currentFolderName,il=e=>e.document.currentFolderHash,ol=gn([el],e=>e),al=gn([nl,il],(e,t)=>e||(t==="7d99a85daf66a0081a0e881630e6b39b"?"Dossier par défaut":"Dossier sans nom")),rl=({document:e,onClose:t})=>{const n=bi(),i=dt(p=>p.document.currentFolderHash),[a,r]=c.useState(null),[s,l]=c.useState(!0),[d,m]=c.useState(null),[v,h]=c.useState(1),[j,f]=c.useState(1),[u,C]=c.useState(0),[b,x]=c.useState(null);c.useEffect(()=>{l(!0),m(null),h(1),f(1);const p=setTimeout(()=>{C(3),l(!1)},1e3);return()=>clearTimeout(p)},[e]),c.useEffect(()=>{let p=!1;return(async()=>{try{const w=await fetch(`/api/cache/${e.id}`,{headers:{Accept:"application/json"}});if(!w.ok)return;const D=await w.json();p||r(D)}catch{}})(),()=>{p=!0}},[e]);const R=()=>{if(e.previewUrl){const p=window.document.createElement("a");p.href=e.previewUrl,p.download=e.name,p.click()}},g=e.mimeType.includes("pdf")||e.name.toLowerCase().endsWith(".pdf"),k=e.mimeType.startsWith("image/")||[".png",".jpg",".jpeg",".gif",".webp"].some(p=>e.name.toLowerCase().endsWith(p));return!g&&k?o.jsxs(Qe,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsx(_,{variant:"h6",children:e.name}),o.jsx(Vt,{onClick:t,title:"Fermer",children:o.jsx(li,{})})]})}),o.jsxs(tt,{dividers:!0,children:[o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[o.jsx(I,{}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(fi,{}),onClick:()=>f(p=>Math.max(p-.2,.2)),children:"Zoom -"}),o.jsxs(_,{variant:"body2",children:[Math.round(j*100),"%"]}),o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(mi,{}),onClick:()=>f(p=>Math.min(p+.2,4)),children:"Zoom +"})]})]}),o.jsx(I,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"auto",maxHeight:"70vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"grey.50"},children:e.previewUrl?o.jsx("img",{src:e.previewUrl,alt:e.name,style:{maxWidth:`${100*j}%`,maxHeight:`${100*j}%`,objectFit:"contain"},onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement de l'image"),l(!1)}}):o.jsxs(I,{textAlign:"center",p:4,children:[o.jsx(_,{variant:"h6",gutterBottom:!0,children:"Aperçu image"}),o.jsx(_,{variant:"body2",color:"text.secondary",children:"Le fichier a été uploadé avec succès."}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})}),o.jsxs(I,{sx:{mt:2},children:[o.jsx(_,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),o.jsxs(I,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Personnes"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4},defaultValue:p.firstName,onChange:w=>p.firstName=w.target.value}),o.jsx("input",{style:{padding:4},defaultValue:p.lastName,onChange:w=>p.lastName=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`pimg-${y}`,onClick:async()=>{if(i)try{x(`pimg-${y}`),await Xe(i,e.id,"person",{index:y,id:p.id,patch:{firstName:p.firstName,lastName:p.lastName}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"person",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.persons.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`pimg-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Adresses"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:220},defaultValue:p.street,onChange:w=>p.street=w.target.value}),o.jsx("input",{style:{padding:4,width:100},defaultValue:p.postalCode,onChange:w=>p.postalCode=w.target.value}),o.jsx("input",{style:{padding:4,width:160},defaultValue:p.city,onChange:w=>p.city=w.target.value}),o.jsx("input",{style:{padding:4,width:120},defaultValue:p.country||"",onChange:w=>p.country=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`aimg-${y}`,onClick:async()=>{if(i)try{x(`aimg-${y}`),await Xe(i,e.id,"address",{index:y,id:p.id,patch:{street:p.street,city:p.city,postalCode:p.postalCode,country:p.country}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"address",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.addresses.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`aimg-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Entreprises"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,children:o.jsx("input",{style:{padding:4,width:260},defaultValue:p.name,onChange:w=>p.name=w.target.value})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`cimg-${y}`,onClick:async()=>{if(i)try{x(`cimg-${y}`),await Xe(i,e.id,"company",{index:y,id:p.id,patch:{name:p.name}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"company",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.companies.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`cimg-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:t,children:"Fermer"}),o.jsx(X,{variant:"contained",startIcon:o.jsx(ci,{}),onClick:R,disabled:!e.previewUrl,children:"Télécharger"})]})]}):o.jsxs(Qe,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(ui,{color:"error"}),o.jsx(_,{variant:"h6",children:e.name})]}),o.jsx(Vt,{onClick:t,title:"Fermer",children:o.jsx(li,{})})]})}),o.jsxs(tt,{dividers:!0,children:[s&&o.jsxs(I,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:[o.jsx(yi,{}),o.jsx(_,{variant:"body2",sx:{ml:2},children:"Chargement du PDF..."})]}),d&&o.jsx(Kt,{severity:"error",sx:{mb:2},children:d}),!s&&!d&&o.jsxs(I,{children:[o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(Xs,{}),onClick:()=>h(p=>Math.max(p-1,1)),disabled:v<=1,children:"Précédent"}),o.jsxs(_,{variant:"body2",children:["Page ",v," sur ",u]}),o.jsx(X,{variant:"outlined",size:"small",endIcon:o.jsx(Ys,{}),onClick:()=>h(p=>Math.min(p+1,u)),disabled:v>=u,children:"Suivant"})]}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(fi,{}),onClick:()=>f(p=>Math.max(p-.2,.5)),children:"Zoom -"}),o.jsxs(_,{variant:"body2",children:[Math.round(j*100),"%"]}),o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(mi,{}),onClick:()=>f(p=>Math.min(p+.2,2)),children:"Zoom +"})]})]}),o.jsx(I,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"hidden",maxHeight:"70vh",display:"flex",justifyContent:"center",backgroundColor:"grey.50"},children:e.previewUrl?o.jsx(I,{sx:{width:"100%",height:"600px"},children:o.jsx("iframe",{src:`${e.previewUrl}#toolbar=1&navpanes=1&scrollbar=1&page=1&view=FitH`,width:"100%",height:"100%",style:{border:"none",transform:`scale(${j})`,transformOrigin:"top left",width:`${100/j}%`,height:`${600/j}px`},title:`Aperçu de ${e.name}`,onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement du PDF"),l(!1)}})}):o.jsx(I,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:o.jsxs(I,{textAlign:"center",children:[o.jsx(ui,{sx:{fontSize:64,color:"error.main",mb:2}}),o.jsx(_,{variant:"h6",gutterBottom:!0,children:"Aperçu PDF"}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:['Le fichier PDF "',e.name,'" a été uploadé avec succès.']}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})})}),o.jsxs(I,{sx:{mt:2},children:[o.jsx(_,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),o.jsxs(I,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Personnes"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4},defaultValue:p.firstName,onChange:w=>p.firstName=w.target.value}),o.jsx("input",{style:{padding:4},defaultValue:p.lastName,onChange:w=>p.lastName=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`p-${y}`,onClick:async()=>{if(i)try{x(`p-${y}`),await Xe(i,e.id,"person",{index:y,id:p.id,patch:{firstName:p.firstName,lastName:p.lastName}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"person",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.persons.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`p-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Adresses"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:220},defaultValue:p.street,onChange:w=>p.street=w.target.value}),o.jsx("input",{style:{padding:4,width:100},defaultValue:p.postalCode,onChange:w=>p.postalCode=w.target.value}),o.jsx("input",{style:{padding:4,width:160},defaultValue:p.city,onChange:w=>p.city=w.target.value}),o.jsx("input",{style:{padding:4,width:120},defaultValue:p.country||"",onChange:w=>p.country=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`a-${y}`,onClick:async()=>{if(i)try{x(`a-${y}`),await Xe(i,e.id,"address",{index:y,id:p.id,patch:{street:p.street,city:p.city,postalCode:p.postalCode,country:p.country}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"address",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.addresses.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`a-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Entreprises"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,children:o.jsx("input",{style:{padding:4,width:260},defaultValue:p.name,onChange:w=>p.name=w.target.value})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`c-${y}`,onClick:async()=>{if(i)try{x(`c-${y}`),await Xe(i,e.id,"company",{index:y,id:p.id,patch:{name:p.name}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"company",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.companies.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`c-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:t,children:"Fermer"}),o.jsx(X,{variant:"contained",startIcon:o.jsx(ci,{}),onClick:R,disabled:!e.previewUrl,children:"Télécharger"})]})]})},sl=c.memo(({doc:e,index:t,onPreview:n,onDelete:i,onReplace:a,onConfirmAddress:r,onReview:s,onOpenCorrections:l,isReviewing:d,totalCount:m})=>{const v=f=>f.startsWith("image/")?o.jsx(Js,{}):f==="application/pdf"?o.jsx(Sn,{}):f.startsWith("text/")?o.jsx(Zs,{}):o.jsx(Sn,{}),h=f=>{switch(f){case"completed":return o.jsx(so,{color:"success"});case"processing":return o.jsx(di,{color:"warning"});case"error":return o.jsx(ro,{color:"error"});default:return o.jsx(di,{color:"disabled"})}},j=f=>{switch(f){case"completed":return"success";case"processing":return"warning";case"error":return"error";default:return"default"}};return o.jsxs("div",{children:[o.jsxs(Xt,{children:[o.jsx(ji,{children:v(e.mimeType)}),o.jsx(Yt,{primary:o.jsxs(I,{children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,mb:1,children:[h(e.status),o.jsx(_,{variant:"subtitle1",sx:{wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",maxWidth:{xs:"200px",sm:"300px",md:"400px"}},children:(()=>{if(e.status==="processing"&&e.name===e.id){const u=["53985cbd461f137c847a13f6a4b82758e5920fb9ccc3ffea9d5d1ac99007e6ce.jpg","aceeb1161004f938d2abf1b88b216ef1ea68fad6141374a66efbdda9d796ac6e.jpg"].find(C=>C.startsWith(e.id));if(u)return u}return e.displayName||e.name})()})]}),o.jsxs(I,{display:"flex",gap:1,flexWrap:"wrap",children:[o.jsx(Ue,{label:e.status,size:"small",color:j(e.status)}),e.mimeType&&e.mimeType!=="application/octet-stream"&&o.jsx(Ue,{label:e.mimeType,size:"small",variant:"outlined"}),e.size>0&&o.jsx(Ue,{label:`${(e.size/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"}),d&&o.jsx(Ue,{color:"default",label:"Révision IA en cours…",size:"small"}),(()=>{const f=e,u=f?.metadata?.quality?.ollamaScore??f?.status?.review?.score,C=f?.status?.review?.avis,b=f?.status?.review?.durationMs;if(e.status==="completed"&&typeof u=="number"){const x=o.jsx(Ue,{color:"success",label:`IA: ${u.toFixed(2)}`,size:"small",variant:"outlined"}),R=`${C||""}${b?(C?" — ":"")+"durée: "+b+" ms":""}`;return R?o.jsx(Gt,{title:R,children:o.jsx("span",{children:x})}):x}return null})(),(()=>{const u=e?.status?.review?.corrections,C=Array.isArray(u)?u.length:0;return e.status==="completed"&&C>0?o.jsx(Ue,{color:"info",label:`Corrections: ${C}`,size:"small",variant:"outlined",onClick:()=>l(e,u)}):null})(),e.status==="completed"&&e?.suggestions?.needsReupload&&o.jsx(Ue,{color:"warning",label:"Qualité faible: remplacer",size:"small",onClick:()=>a(e)}),e.status==="completed"&&e?.suggestions?.needsAddressConfirmation&&o.jsx(Ue,{color:"info",label:"Adresse à confirmer",size:"small",onClick:()=>r(e)})]})]})}),o.jsxs(I,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[o.jsx(X,{size:"small",startIcon:o.jsx(Qs,{}),onClick:()=>n(e),disabled:e.status!=="completed",fullWidth:!0,children:"Aperçu"}),o.jsx(Gt,{title:"Analyse IA (Ollama): calcule un score de fiabilité, propose des corrections, ajoute un avis.",children:o.jsx("span",{children:o.jsx(X,{size:"small",onClick:()=>s(e),disabled:e.status!=="completed"||d,fullWidth:!0,children:d?"Révision IA…":"Révision IA"})})}),o.jsx(X,{size:"small",color:"error",onClick:()=>i(e.id),fullWidth:!0,children:"Supprimer"})]})]}),tS.document),s=dt(al),l=dt(ol),d=dt(tl),m=l;console.log("🏠 [UPLOAD_VIEW] Component loaded, documents count:",m.length);const[v,h]=c.useState(null),j=c.useCallback(S=>{e(Xi(S))},[e]),[f,u]=c.useState(!1),[C,b]=c.useState(!1),[x,R]=c.useState(""),[g,k]=c.useState(""),[p,y]=c.useState(""),[w,D]=c.useState(!1),[z,L]=c.useState({street:"",city:"",postalCode:"",country:"France"}),[H,B]=c.useState(null),[q,F]=c.useState(!1),[E,A]=c.useState(null),[G,te]=c.useState([]),[T,ee]=c.useState(null),[ie,Z]=c.useState({open:!1,severity:"success",message:""}),J=c.useCallback(S=>{try{const Q=(S.suggestions||{}).detectedAddress||{street:"",city:"",postalCode:"",country:"France"};L({street:Q.street||"",city:Q.city||"",postalCode:Q.postalCode||"",country:Q.country||"France"}),B(S),D(!0)}catch(M){console.error("❌ Préparation confirmation adresse:",M)}},[]),Y=c.useCallback(async()=>{if(!(!n||!H))try{await Yi(n,H.id,z),D(!1),await e(Re(n)).unwrap()}catch(S){console.error("❌ Confirmation adresse:",S)}},[n,H,z,e]),oe=c.useCallback(async S=>{if(n)try{ee(S.id),await Zi(n,S.id),await e(Re(n)).unwrap(),Z({open:!0,severity:"success",message:"Révision IA terminée: score et corrections mis à jour."})}catch(M){console.error("❌ Révision IA:",M),Z({open:!0,severity:"error",message:"Échec de la révision IA. Réessaie plus tard."})}finally{ee(null)}},[n,e]),ce=c.useCallback(S=>{const M=document.createElement("input");M.type="file",M.accept="image/*,application/pdf",M.onchange=async()=>{const Q=M.files&&M.files[0]||null;if(!(!Q||!n))try{await Qi(n,S.id),await e(yn({file:Q,folderHash:n})).unwrap(),await e(Re(n)).unwrap()}catch(ve){console.error("❌ Remplacement de document:",ve)}},M.click()},[n,e]),ue=c.useCallback(async()=>{try{const S=await fetch("/api/folders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:x||"Nouveau dossier",description:g||""})});if(!S.ok)throw new Error(await S.text());const M=await S.json();e(wn(M.folderHash)),await e(Re(M.folderHash)).unwrap(),console.log("✅ [UPLOAD] Nouveau dossier créé:",M.folderHash),b(!1),R(""),k("")}catch(S){console.error("❌ [UPLOAD] Erreur lors de la création du dossier:",S)}},[e]),je=c.useCallback(async()=>{if(p.trim())try{e(wn(p.trim())),await e(Re(p.trim())).unwrap(),console.log("✅ [UPLOAD] Dossier chargé:",p.trim()),u(!1),y("")}catch(S){console.error("❌ [UPLOAD] Erreur lors du chargement du dossier:",S)}},[e,p]),ne=c.useCallback(()=>{n&&(navigator.clipboard.writeText(n),console.log("📋 [UPLOAD] Hash du dossier copié:",n))},[n]),$=c.useCallback(async S=>{if(!n){console.error("❌ [UPLOAD] Aucun dossier sélectionné");return}const M=S.map(async Q=>{try{console.log(`📤 [UPLOAD] Upload de ${Q.name} dans le dossier ${n}`),await e(yn({file:Q,folderHash:n})).unwrap(),await e(Re(n)).unwrap(),console.log(`✅ [UPLOAD] ${Q.name} uploadé avec succès`)}catch(ve){console.error(`❌ [UPLOAD] Erreur lors du traitement de ${Q.name}:`,ve)}});await Promise.all(M)},[e,n]),{getRootProps:U,getInputProps:V,isDragActive:K}=_i({onDrop:$,accept:{"application/pdf":[".pdf"],"image/*":[".png",".jpg",".jpeg",".tiff"]},multiple:!0});return c.useEffect(()=>{(async()=>{if(n&&!(s&&s.length>0))try{const M=await fetch(`/api/folders/${n}/meta`);if(M.ok){const Q=await M.json();Q?.name&&window.dispatchEvent(new CustomEvent("4nk:setFolderName",{detail:Q.name}))}}catch{}})()},[n,s]),!a||i?o.jsx(kn,{children:o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"center",minHeight:240,children:[o.jsx(yi,{size:28,sx:{mr:2}}),o.jsx(_,{children:"Chargement des fichiers du dossier…"})]})}):o.jsxs(kn,{children:[o.jsx(_,{variant:"h4",gutterBottom:!0,children:"Analyse de documents IA"}),o.jsx(I,{sx:{mb:3,p:2,bgcolor:"grey.50",borderRadius:1,border:"1px solid",borderColor:"grey.200"},children:o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:2,children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:2,children:[o.jsx(_,{variant:"h6",color:"text.secondary",children:"Dossier actuel :"}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(_,{variant:"body1",sx:{fontFamily:"monospace",bgcolor:"grey.100",px:1,py:.5,borderRadius:1,fontSize:"0.875rem"},children:s||(n?"Dossier sans nom":"Aucun dossier sélectionné")}),n&&o.jsx(Gt,{title:"Copier le hash du dossier",children:o.jsx(Vt,{size:"small",onClick:ne,children:o.jsx(Gs,{fontSize:"small"})})})]})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{variant:"outlined",startIcon:o.jsx(si,{}),onClick:()=>b(!0),size:"small",children:"CRÉER UN DOSSIER"}),o.jsx(X,{variant:"outlined",startIcon:o.jsx(pi,{}),onClick:()=>u(!0),size:"small",children:"Charger dossier"})]})]})}),o.jsxs(xt,{...U(),sx:{p:{xs:2,sm:4},textAlign:"center",cursor:"pointer",border:"2px dashed",borderColor:K?"primary.main":"grey.300",bgcolor:K?"action.hover":"background.paper","&:hover":{borderColor:"primary.main",bgcolor:"action.hover"}},children:[o.jsx("input",{...V()}),o.jsx(Ks,{sx:{fontSize:{xs:36,sm:48},color:"primary.main",mb:2}}),o.jsx(_,{variant:"h6",gutterBottom:!0,sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"}},children:K?"Déposez les fichiers ici...":"Glissez-déposez vos documents ou cliquez pour sélectionner"}),o.jsx(_,{variant:"body2",color:"text.secondary",sx:{fontSize:{xs:"0.75rem",sm:"0.875rem"}},children:"Formats acceptés: PDF, PNG, JPG, JPEG, TIFF"})]}),t&&o.jsx(Kt,{severity:"error",sx:{mt:2},children:t}),(m.length>0||r)&&o.jsxs(I,{sx:{mt:3},children:[o.jsxs(_,{variant:"h6",gutterBottom:!0,children:["Documents analysés (",m.length,")"]}),o.jsx(no,{children:o.jsxs(Jt,{children:[m.map((S,M)=>o.jsx(sl,{doc:S,index:M,onPreview:h,onDelete:j,onReplace:ce,onConfirmAddress:J,onReview:oe,onOpenCorrections:(Q,ve)=>{A(Q),te(ve),F(!0)},isReviewing:T===S.id,totalCount:m.length},`${S.id}-${M}`)),r&&o.jsx(o.Fragment,{children:(d.length>0?d:new Array(2).fill(null)).map((S,M)=>o.jsxs("div",{children:[o.jsxs(Xt,{children:[o.jsx(ji,{children:o.jsx(Ze,{variant:"circular",width:24,height:24})}),o.jsx(Yt,{primary:o.jsxs(I,{children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,mb:1,children:o.jsx(Ze,{variant:"rounded",width:180,height:18})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(Ze,{variant:"rounded",width:60,height:24}),o.jsx(Ze,{variant:"rounded",width:100,height:24})]})]})}),o.jsxs(I,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[o.jsx(Ze,{variant:"rounded",width:84,height:32}),o.jsx(Ze,{variant:"rounded",width:84,height:32})]})]}),o.jsx(St,{})]},`sk-${M}`))})]})})]}),v&&o.jsx(rl,{document:v,onClose:()=>h(null)}),o.jsxs(Qe,{open:f,onClose:()=>u(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(pi,{}),"Charger un dossier existant"]})}),o.jsxs(tt,{children:[o.jsx(_,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Entrez le hash du dossier que vous souhaitez charger. Le hash est un identifiant unique de 32 caractères."}),o.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Hash du dossier",placeholder:"ex: 0e7ae08a4f14f3154be1bd69d5617c74",fullWidth:!0,variant:"outlined",value:p,onChange:S=>y(S.target.value),sx:{fontFamily:"monospace"},helperText:"Le hash doit contenir exactement 32 caractères hexadécimaux"})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>u(!1),children:"Annuler"}),o.jsx(X,{onClick:je,variant:"contained",disabled:!p.trim()||p.trim().length!==32,children:"Charger le dossier"})]})]}),o.jsxs(Qe,{open:C,onClose:()=>b(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(si,{}),"Créer un nouveau dossier"]})}),o.jsxs(tt,{children:[o.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Nom du dossier",fullWidth:!0,variant:"outlined",value:x,onChange:S=>R(S.target.value)}),o.jsx(Ke,{margin:"dense",label:"Description",fullWidth:!0,multiline:!0,minRows:2,variant:"outlined",value:g,onChange:S=>k(S.target.value)})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>b(!1),children:"Annuler"}),o.jsx(X,{onClick:ue,variant:"contained",disabled:!x.trim(),children:"Créer"})]})]}),o.jsxs(Qe,{open:w,onClose:()=>D(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:"Confirmer l'adresse détectée"}),o.jsxs(tt,{children:[o.jsx(Ke,{margin:"dense",label:"Rue",fullWidth:!0,variant:"outlined",value:z.street,onChange:S=>L({...z,street:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Code postal",fullWidth:!0,variant:"outlined",value:z.postalCode,onChange:S=>L({...z,postalCode:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Ville",fullWidth:!0,variant:"outlined",value:z.city,onChange:S=>L({...z,city:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Pays",fullWidth:!0,variant:"outlined",value:z.country,onChange:S=>L({...z,country:S.target.value})})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>D(!1),children:"Annuler"}),o.jsx(X,{variant:"contained",onClick:Y,children:"Confirmer"})]})]}),o.jsxs(Qe,{open:q,onClose:()=>F(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:"Corrections proposées par l'IA"}),o.jsxs(tt,{children:[E?o.jsxs(_,{variant:"subtitle2",sx:{mb:1},children:["Document: ",E.displayName||E.name]}):null,Array.isArray(G)&&G.length>0?o.jsx(Jt,{children:G.map((S,M)=>o.jsx(Xt,{alignItems:"flex-start",children:o.jsx(Yt,{primary:S?.path?String(S.path):`Correction ${M+1}`,secondary:o.jsxs(o.Fragment,{children:[o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Valeur: ",typeof S?.value=="object"?JSON.stringify(S.value):String(S?.value??"")]}),typeof S?.confidence=="number"&&o.jsxs(_,{variant:"caption",color:"text.secondary",children:["Confiance: ",S.confidence.toFixed?S.confidence.toFixed(2):S.confidence]})]})})},`corr-${M}`))}):o.jsx(_,{variant:"body2",color:"text.secondary",children:"Aucune correction disponible."})]}),o.jsx(et,{children:o.jsx(X,{onClick:()=>F(!1),children:"Fermer"})})]}),o.jsx(Lr,{open:ie.open,autoHideDuration:3e3,onClose:()=>Z({...ie,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:o.jsx(Kt,{onClose:()=>Z({...ie,open:!1}),severity:ie.severity,variant:"filled",sx:{width:"100%"},children:ie.message})})]})}export{xl as default}; diff --git a/public/assets/UploadView-C4xKGLhJ.js b/public/assets/UploadView-C4xKGLhJ.js new file mode 100644 index 0000000..bf03e85 --- /dev/null +++ b/public/assets/UploadView-C4xKGLhJ.js @@ -0,0 +1,43 @@ +import{g as xi,c as de,r as c,u as jt,j as o,a as he,b as be,s as W,d as ye,e as Vi,m as ke,f as fe,h as xe,i as vi,k as sn,T as _,l as ln,n as He,o as It,p as Ki,q as Gi,t as gi,v as hi,w as bn,R as Ji,x as bi,y as dt,B as I,z as Xe,A as Re,C as Ye,D as yi,E as Xi,F as Yi,G as Zi,H as Qi,I as yn,J as wn}from"./index-CedKFzDs.js";import{u as Be,o as We,a as it,d as wi,i as Ut,c as Fe,b as cn,e as pe,f as De,g as _t,P as xt,h as eo,j as to,I as Vt,B as X,A as Kt,L as kn,C as no,k as Ue}from"./Layout-D-i60CyA.js";import{T as io,g as jn,r as oo,u as Cn}from"./utils-DK0LiU04.js";import{g as Ft,P as ao,G as ki,T as Gt,D as Sn}from"./Description-B6Ym94QH.js";import{i as Mt,L as Jt,a as Xt,b as Yt}from"./ListItemText-BuuBgG3W.js";import{L as ji}from"./ListItemIcon-xnvZhg7A.js";import{E as ro,C as so}from"./Error-CPa74s6I.js";var Ot={exports:{}},Lt,Rn;function lo(){if(Rn)return Lt;Rn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lt=e,Lt}var Nt,Pn;function co(){if(Pn)return Nt;Pn=1;var e=lo();function t(){}function n(){}return n.resetWarningCache=t,Nt=function(){function i(s,l,d,m,v,h){if(h!==e){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}i.isRequired=i;function a(){return i}var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},Nt}var En;function po(){return En||(En=1,Ot.exports=co()()),Ot.exports}var uo=po();const se=xi(uo);function mo(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function fo(e){return parseFloat(e)}function In(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function xo(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function vo(e,t){if(!e)return t;function n(s,l){const d={};return Object.keys(l).forEach(m=>{xo(m,l[m])&&typeof s[m]=="function"&&(d[m]=(...v)=>{s[m](...v),l[m](...v)})}),d}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,d=typeof e=="function"?e({...s,...l}):e,m=de(s?.className,l?.className,d?.className),v=n(d,l);return{...l,...d,...v,...!!m&&{className:m},...l?.style&&d?.style&&{style:{...l.style,...d.style}},...l?.sx&&d?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const i=t,a=n(e,i),r=de(i?.className,e?.className);return{...t,...e,...a,...!!r&&{className:r},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function gt(e){return parseInt(e,10)||0}const go={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ho(e){for(const t in e)return!1;return!0}function Fn(e){return ho(e)||e.outerHeightStyle===0&&!e.overflowing}const bo=c.forwardRef(function(t,n){const{onChange:i,maxRows:a,minRows:r=1,style:s,value:l,...d}=t,{current:m}=c.useRef(l!=null),v=c.useRef(null),h=Be(n,v),j=c.useRef(null),f=c.useRef(null),u=c.useCallback(()=>{const g=v.current,k=f.current;if(!g||!k)return;const w=We(g).getComputedStyle(g);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=w.width,k.value=g.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const b=w.boxSizing,T=gt(w.paddingBottom)+gt(w.paddingTop),z=gt(w.borderBottomWidth)+gt(w.borderTopWidth),L=k.scrollHeight;k.value="x";const H=k.scrollHeight;let B=L;r&&(B=Math.max(Number(r)*H,B)),a&&(B=Math.min(Number(a)*H,B)),B=Math.max(B,H);const q=B+(b==="border-box"?T+z:0),F=Math.abs(B-L)<=1;return{outerHeightStyle:q,overflowing:F}},[a,r,t.placeholder]),C=it(()=>{const g=v.current,k=u();if(!g||!k||Fn(k))return!1;const p=k.outerHeightStyle;return j.current!=null&&j.current!==p}),y=c.useCallback(()=>{const g=v.current,k=u();if(!g||!k||Fn(k))return;const p=k.outerHeightStyle;j.current!==p&&(j.current=p,g.style.height=`${p}px`),g.style.overflow=k.overflowing?"hidden":""},[u]),x=c.useRef(-1);jt(()=>{const g=wi(y),k=v?.current;if(!k)return;const p=We(k);p.addEventListener("resize",g);let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(()=>{C()&&(w.unobserve(k),cancelAnimationFrame(x.current),y(),x.current=requestAnimationFrame(()=>{w.observe(k)}))}),w.observe(k)),()=>{g.clear(),cancelAnimationFrame(x.current),p.removeEventListener("resize",g),w&&w.disconnect()}},[u,y,C]),jt(()=>{y()});const R=g=>{m||y();const k=g.target,p=k.value.length,w=k.value.endsWith(` +`),b=k.selectionStart===p;w&&b&&k.setSelectionRange(p,p),i&&i(g)};return o.jsxs(c.Fragment,{children:[o.jsx("textarea",{value:l,onChange:R,ref:h,rows:r,style:s,...d}),o.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...go.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function rt({props:e,states:t,muiFormControl:n}){return t.reduce((i,a)=>(i[a]=e[a],n&&typeof e[a]>"u"&&(i[a]=n[a]),i),{})}const pn=c.createContext(void 0);function st(){return c.useContext(pn)}function An(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ct(e,t=!1){return e&&(An(e.value)&&e.value!==""||t&&An(e.defaultValue)&&e.defaultValue!=="")}function yo(e){return e.startAdornment}function wo(e){return be("MuiInputBase",e)}const ot=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Dn;const At=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Dt=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ko=e=>{const{classes:t,color:n,disabled:i,error:a,endAdornment:r,focused:s,formControl:l,fullWidth:d,hiddenLabel:m,multiline:v,readOnly:h,size:j,startAdornment:f,type:u}=e,C={root:["root",`color${fe(n)}`,i&&"disabled",a&&"error",d&&"fullWidth",s&&"focused",l&&"formControl",j&&j!=="medium"&&`size${fe(j)}`,v&&"multiline",f&&"adornedStart",r&&"adornedEnd",m&&"hiddenLabel",h&&"readOnly"],input:["input",i&&"disabled",u==="search"&&"inputTypeSearch",v&&"inputMultiline",j==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",f&&"inputAdornedStart",r&&"inputAdornedEnd",h&&"readOnly"]};return xe(C,wo,t)},Tt=W("div",{name:"MuiInputBase",slot:"Root",overridesResolver:At})(ke(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),zt=W("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dt})(ke(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ot.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ot.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:r})=>!r.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:r})=>r.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Tn=Vi({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:r,autoFocus:s,className:l,color:d,components:m={},componentsProps:v={},defaultValue:h,disabled:j,disableInjectingGlobalStyles:f,endAdornment:u,error:C,fullWidth:y=!1,id:x,inputComponent:R="input",inputProps:g={},inputRef:k,margin:p,maxRows:w,minRows:b,multiline:T=!1,name:z,onBlur:L,onChange:H,onClick:B,onFocus:q,onKeyDown:F,onKeyUp:E,placeholder:A,readOnly:G,renderSuffix:te,rows:D,size:ee,slotProps:ie={},slots:Z={},startAdornment:J,type:Y="text",value:oe,...ce}=i,ue=g.value!=null?g.value:oe,{current:je}=c.useRef(ue!=null),ne=c.useRef(),$=c.useCallback(re=>{},[]),U=Be(ne,k,g.ref,$),[V,K]=c.useState(!1),S=st(),M=rt({props:i,muiFormControl:S,states:["color","disabled","error","hiddenLabel","size","required","filled"]});M.focused=S?S.focused:V,c.useEffect(()=>{!S&&j&&V&&(K(!1),L&&L())},[S,j,V,L]);const Q=S&&S.onFilled,ve=S&&S.onEmpty,Ee=c.useCallback(re=>{Ct(re)?Q&&Q():ve&&ve()},[Q,ve]);jt(()=>{je&&Ee({value:ue})},[ue,Ee,je]);const Ae=re=>{q&&q(re),g.onFocus&&g.onFocus(re),S&&S.onFocus?S.onFocus(re):K(!0)},Pe=re=>{L&&L(re),g.onBlur&&g.onBlur(re),S&&S.onBlur?S.onBlur(re):K(!1)},Se=(re,...Oe)=>{if(!je){const qe=re.target||ne.current;if(qe==null)throw new Error(vi(1));Ee({value:qe.value})}g.onChange&&g.onChange(re,...Oe),H&&H(re,...Oe)};c.useEffect(()=>{Ee(ne.current)},[]);const Te=re=>{ne.current&&re.currentTarget===re.target&&ne.current.focus(),B&&B(re)};let Me=R,P=g;T&&Me==="input"&&(D?P={type:void 0,minRows:D,maxRows:D,...P}:P={type:void 0,maxRows:w,minRows:b,...P},Me=bo);const O=re=>{Ee(re.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};c.useEffect(()=>{S&&S.setAdornedStart(!!J)},[S,J]);const le={...i,color:M.color||"primary",disabled:M.disabled,endAdornment:u,error:M.error,focused:M.focused,formControl:S,fullWidth:y,hiddenLabel:M.hiddenLabel,multiline:T,size:M.size,startAdornment:J,type:Y},me=ko(le),Ce=Z.root||m.Root||Tt,ze=ie.root||v.root||{},Ie=Z.input||m.Input||zt;return P={...P,...ie.input??v.input},o.jsxs(c.Fragment,{children:[!f&&typeof Tn=="function"&&(Dn||(Dn=o.jsx(Tn,{}))),o.jsxs(Ce,{...ze,ref:n,onClick:Te,...ce,...!Ut(Ce)&&{ownerState:{...le,...ze.ownerState}},className:de(me.root,ze.className,l,G&&"MuiInputBase-readOnly"),children:[J,o.jsx(pn.Provider,{value:null,children:o.jsx(Ie,{"aria-invalid":M.error,"aria-describedby":a,autoComplete:r,autoFocus:s,defaultValue:h,disabled:M.disabled,id:x,onAnimationStart:O,name:z,placeholder:A,readOnly:G,required:M.required,rows:D,value:ue,onKeyDown:F,onKeyUp:E,type:Y,...P,...!Ut(Ie)&&{as:Me,ownerState:{...le,...P.ownerState}},ref:U,className:de(me.input,P.className,G&&"MuiInputBase-readOnly"),onBlur:Pe,onChange:Se,onFocus:Ae})}),u,te?te({...M,startAdornment:J}):null]})]})});function jo(e){return be("MuiInput",e)}const lt={...ot,...he("MuiInput",["root","underline","input"])};function Co(e){return be("MuiOutlinedInput",e)}const Ne={...ot,...he("MuiOutlinedInput",["root","notchedOutline","input"])};function So(e){return be("MuiFilledInput",e)}const Ve={...ot,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Ro=Fe(o.jsx("path",{d:"M7 10l5 5 5-5z"})),Po={entering:{opacity:1},entered:{opacity:1}},Zt=c.forwardRef(function(t,n){const i=cn(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:l,easing:d,in:m,onEnter:v,onEntered:h,onEntering:j,onExit:f,onExited:u,onExiting:C,style:y,timeout:x=a,TransitionComponent:R=io,...g}=t,k=c.useRef(null),p=Be(k,Ft(l),n),w=F=>E=>{if(F){const A=k.current;E===void 0?F(A):F(A,E)}},b=w(j),T=w((F,E)=>{oo(F);const A=jn({style:y,timeout:x,easing:d},{mode:"enter"});F.style.webkitTransition=i.transitions.create("opacity",A),F.style.transition=i.transitions.create("opacity",A),v&&v(F,E)}),z=w(h),L=w(C),H=w(F=>{const E=jn({style:y,timeout:x,easing:d},{mode:"exit"});F.style.webkitTransition=i.transitions.create("opacity",E),F.style.transition=i.transitions.create("opacity",E),f&&f(F)}),B=w(u),q=F=>{r&&r(k.current,F)};return o.jsx(R,{appear:s,in:m,nodeRef:k,onEnter:T,onEntered:z,onEntering:b,onExit:H,onExited:B,onExiting:L,addEndListener:q,timeout:x,...g,children:(F,{ownerState:E,...A})=>c.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!m?"hidden":void 0,...Po[F],...y,...l.props.style},ref:p,...A})})});function Eo(e){return be("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const Io=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},Eo,t)},Fo=W("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ci=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiBackdrop"}),{children:a,className:r,component:s="div",invisible:l=!1,open:d,components:m={},componentsProps:v={},slotProps:h={},slots:j={},TransitionComponent:f,transitionDuration:u,...C}=i,y={...i,component:s,invisible:l},x=Io(y),R={transition:f,root:m.Root,...j},g={...v,...h},k={component:s,slots:R,slotProps:g},[p,w]=pe("root",{elementType:Fo,externalForwardedProps:k,className:de(x.root,r),ownerState:y}),[b,T]=pe("transition",{elementType:Zt,externalForwardedProps:k,ownerState:y});return o.jsx(b,{in:d,timeout:u,...C,...T,children:o.jsx(p,{"aria-hidden":!0,...w,classes:x,ref:n,children:a})})});function zn(e){return e.substring(2).toLowerCase()}function Ao(e,t){return t.documentElement.clientWidth(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const v=Be(Ft(t),l),h=it(u=>{const C=m.current;m.current=!1;const y=De(l.current);if(!d.current||!l.current||"clientX"in u&&Ao(u,y))return;if(s.current){s.current=!1;return}let x;u.composedPath?x=u.composedPath().includes(l.current):x=!y.documentElement.contains(u.target)||l.current.contains(u.target),!x&&(n||!C)&&a(u)}),j=u=>C=>{m.current=!0;const y=t.props[u];y&&y(C)},f={ref:v};return r!==!1&&(f[r]=j(r)),c.useEffect(()=>{if(r!==!1){const u=zn(r),C=De(l.current),y=()=>{s.current=!0};return C.addEventListener(u,h),C.addEventListener("touchmove",y),()=>{C.removeEventListener(u,h),C.removeEventListener("touchmove",y)}}},[h,r]),i!==!1&&(f[i]=j(i)),c.useEffect(()=>{if(i!==!1){const u=zn(i),C=De(l.current);return C.addEventListener(u,h),()=>{C.removeEventListener(u,h)}}},[h,i]),c.cloneElement(t,f)}function Si(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function To(e){const t=De(e);return t.body===e?We(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ut(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mn(e){return parseInt(We(e).getComputedStyle(e).paddingRight,10)||0}function zo(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function On(e,t,n,i,a){const r=[t,n,...i];[].forEach.call(e.children,s=>{const l=!r.includes(s),d=!zo(s);l&&d&&ut(s,a)})}function $t(e,t){let n=-1;return e.some((i,a)=>t(i)?(n=a,!0):!1),n}function Mo(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(To(i)){const s=Si(We(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Mn(i)+s}px`;const l=De(i).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Mn(d)+s}px`})}let r;if(i.parentNode instanceof DocumentFragment)r=De(i).body;else{const s=i.parentElement,l=We(i);r=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:i}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:s,property:l})=>{r?s.style.setProperty(l,r):s.style.removeProperty(l)})}}function Oo(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Lo{constructor(){this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&ut(t.modalRef,!1);const a=Oo(n);On(n,t.mount,t.modalRef,a,!0);const r=$t(this.containers,s=>s.container===n);return r!==-1?(this.containers[r].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),i)}mount(t,n){const i=$t(this.containers,r=>r.modals.includes(t)),a=this.containers[i];a.restore||(a.restore=Mo(a,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const a=$t(this.containers,s=>s.modals.includes(t)),r=this.containers[a];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(i,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&ut(t.modalRef,n),On(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=r.modals[r.modals.length-1];s.modalRef&&ut(s.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const No=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $o(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Wo(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Ho(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Wo(e))}function Bo(e){const t=[],n=[];return Array.from(e.querySelectorAll(No)).forEach((i,a)=>{const r=$o(i);r===-1||!Ho(i)||(r===0?t.push(i):n.push({documentOrder:a,tabIndex:r,node:i}))}),n.sort((i,a)=>i.tabIndex===a.tabIndex?i.documentOrder-a.documentOrder:i.tabIndex-a.tabIndex).map(i=>i.node).concat(t)}function qo(){return!0}function Uo(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:a=!1,getTabbable:r=Bo,isEnabled:s=qo,open:l}=e,d=c.useRef(!1),m=c.useRef(null),v=c.useRef(null),h=c.useRef(null),j=c.useRef(null),f=c.useRef(!1),u=c.useRef(null),C=Be(Ft(t),u),y=c.useRef(null);c.useEffect(()=>{!l||!u.current||(f.current=!n)},[n,l]),c.useEffect(()=>{if(!l||!u.current)return;const g=De(u.current);return u.current.contains(g.activeElement)||(u.current.hasAttribute("tabIndex")||u.current.setAttribute("tabIndex","-1"),f.current&&u.current.focus()),()=>{a||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[l]),c.useEffect(()=>{if(!l||!u.current)return;const g=De(u.current),k=b=>{y.current=b,!(i||!s()||b.key!=="Tab")&&g.activeElement===u.current&&b.shiftKey&&(d.current=!0,v.current&&v.current.focus())},p=()=>{const b=u.current;if(b===null)return;if(!g.hasFocus()||!s()||d.current){d.current=!1;return}if(b.contains(g.activeElement)||i&&g.activeElement!==m.current&&g.activeElement!==v.current)return;if(g.activeElement!==j.current)j.current=null;else if(j.current!==null)return;if(!f.current)return;let T=[];if((g.activeElement===m.current||g.activeElement===v.current)&&(T=r(u.current)),T.length>0){const z=!!(y.current?.shiftKey&&y.current?.key==="Tab"),L=T[0],H=T[T.length-1];typeof L!="string"&&typeof H!="string"&&(z?H.focus():L.focus())}else b.focus()};g.addEventListener("focusin",p),g.addEventListener("keydown",k,!0);const w=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&p()},50);return()=>{clearInterval(w),g.removeEventListener("focusin",p),g.removeEventListener("keydown",k,!0)}},[n,i,a,s,l,r]);const x=g=>{h.current===null&&(h.current=g.relatedTarget),f.current=!0,j.current=g.target;const k=t.props.onFocus;k&&k(g)},R=g=>{h.current===null&&(h.current=g.relatedTarget),f.current=!0};return o.jsxs(c.Fragment,{children:[o.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:m,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:C,onFocus:x}),o.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:v,"data-testid":"sentinelEnd"})]})}function _o(e){return typeof e=="function"?e():e}function Vo(e){return e?e.props.hasOwnProperty("in"):!1}const Ln=()=>{},ht=new Lo;function Ko(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:a=!1,onTransitionEnter:r,onTransitionExited:s,children:l,onClose:d,open:m,rootRef:v}=e,h=c.useRef({}),j=c.useRef(null),f=c.useRef(null),u=Be(f,v),[C,y]=c.useState(!m),x=Vo(l);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const g=()=>De(j.current),k=()=>(h.current.modalRef=f.current,h.current.mount=j.current,h.current),p=()=>{ht.mount(k(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},w=it(()=>{const E=_o(t)||g().body;ht.add(k(),E),f.current&&p()}),b=()=>ht.isTopModal(k()),T=it(E=>{j.current=E,E&&(m&&b()?p():f.current&&ut(f.current,R))}),z=c.useCallback(()=>{ht.remove(k(),R)},[R]);c.useEffect(()=>()=>{z()},[z]),c.useEffect(()=>{m?w():(!x||!a)&&z()},[m,z,x,a,w]);const L=E=>A=>{E.onKeyDown?.(A),!(A.key!=="Escape"||A.which===229||!b())&&(n||(A.stopPropagation(),d&&d(A,"escapeKeyDown")))},H=E=>A=>{E.onClick?.(A),A.target===A.currentTarget&&d&&d(A,"backdropClick")};return{getRootProps:(E={})=>{const A=_t(e);delete A.onTransitionEnter,delete A.onTransitionExited;const G={...A,...E};return{role:"presentation",...G,onKeyDown:L(G),ref:u}},getBackdropProps:(E={})=>{const A=E;return{"aria-hidden":!0,...A,onClick:H(A),open:m}},getTransitionProps:()=>{const E=()=>{y(!1),r&&r()},A=()=>{y(!0),s&&s(),a&&z()};return{onEnter:In(E,l?.props.onEnter??Ln),onExited:In(A,l?.props.onExited??Ln)}},rootRef:u,portalRef:T,isTopModal:b,exited:C,hasTransition:x}}function Go(e){return be("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const Jo=e=>{const{open:t,exited:n,classes:i}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Go,i)},Xo=W("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Yo=W(Ci,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ri=c.forwardRef(function(t,n){const i=ye({name:"MuiModal",props:t}),{BackdropComponent:a=Yo,BackdropProps:r,classes:s,className:l,closeAfterTransition:d=!1,children:m,container:v,component:h,components:j={},componentsProps:f={},disableAutoFocus:u=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:R=!1,disableScrollLock:g=!1,hideBackdrop:k=!1,keepMounted:p=!1,onClose:w,onTransitionEnter:b,onTransitionExited:T,open:z,slotProps:L={},slots:H={},theme:B,...q}=i,F={...i,closeAfterTransition:d,disableAutoFocus:u,disableEnforceFocus:C,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:R,disableScrollLock:g,hideBackdrop:k,keepMounted:p},{getRootProps:E,getBackdropProps:A,getTransitionProps:G,portalRef:te,isTopModal:D,exited:ee,hasTransition:ie}=Ko({...F,rootRef:n}),Z={...F,exited:ee},J=Jo(Z),Y={};if(m.props.tabIndex===void 0&&(Y.tabIndex="-1"),ie){const{onEnter:$,onExited:U}=G();Y.onEnter=$,Y.onExited=U}const oe={slots:{root:j.Root,backdrop:j.Backdrop,...H},slotProps:{...f,...L}},[ce,ue]=pe("root",{ref:n,elementType:Xo,externalForwardedProps:{...oe,...q,component:h},getSlotProps:E,ownerState:Z,className:de(l,J?.root,!Z.open&&Z.exited&&J?.hidden)}),[je,ne]=pe("backdrop",{ref:r?.ref,elementType:a,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:$=>A({...$,onClick:U=>{$?.onClick&&$.onClick(U)}}),className:de(r?.className,J?.backdrop),ownerState:Z});return!p&&!z&&(!ie||ee)?null:o.jsx(ao,{ref:te,container:v,disablePortal:x,children:o.jsxs(ce,{...ue,children:[!k&&a?o.jsx(je,{...ne}):null,o.jsx(Uo,{disableEnforceFocus:C,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:D,open:z,children:c.cloneElement(m,Y)})]})})});function Zo(e){return be("MuiDialog",e)}const Wt=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Pi=c.createContext({}),Qo=W(Ci,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ea=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:a,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(i))}`,a&&"paperFullWidth",r&&"paperFullScreen"]};return xe(s,Zo,t)},ta=W(Ri,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),na=W("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),ia=W(xt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ke(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wt.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Qe=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialog"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:m,BackdropProps:v,children:h,className:j,disableEscapeKeyDown:f=!1,fullScreen:u=!1,fullWidth:C=!1,maxWidth:y="sm",onClick:x,onClose:R,open:g,PaperComponent:k=xt,PaperProps:p={},scroll:w="paper",slots:b={},slotProps:T={},TransitionComponent:z=Zt,transitionDuration:L=r,TransitionProps:H,...B}=i,q={...i,disableEscapeKeyDown:f,fullScreen:u,fullWidth:C,maxWidth:y,scroll:w},F=ea(q),E=c.useRef(),A=K=>{E.current=K.target===K.currentTarget},G=K=>{x&&x(K),E.current&&(E.current=null,R&&R(K,"backdropClick"))},te=sn(l),D=c.useMemo(()=>({titleId:te}),[te]),ee={transition:z,...b},ie={transition:H,paper:p,backdrop:v,...T},Z={slots:ee,slotProps:ie},[J,Y]=pe("root",{elementType:ta,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q,className:de(F.root,j),ref:n}),[oe,ce]=pe("backdrop",{elementType:Qo,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q}),[ue,je]=pe("paper",{elementType:ia,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q,className:de(F.paper,p.className)}),[ne,$]=pe("container",{elementType:na,externalForwardedProps:Z,ownerState:q,className:F.container}),[U,V]=pe("transition",{elementType:Zt,externalForwardedProps:Z,ownerState:q,additionalProps:{appear:!0,in:g,timeout:L,role:"presentation"}});return o.jsx(J,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:L,as:m,...ce}},disableEscapeKeyDown:f,onClose:R,open:g,onClick:G,...Y,...B,children:o.jsx(U,{...V,children:o.jsx(ne,{onMouseDown:A,...$,children:o.jsx(ue,{as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":te,"aria-modal":d,...je,children:o.jsx(Pi.Provider,{value:D,children:h})})})})})});function oa(e){return be("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const aa=e=>{const{classes:t,disableSpacing:n}=e;return xe({root:["root",!n&&"spacing"]},oa,t)},ra=W("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),et=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:r=!1,...s}=i,l={...i,disableSpacing:r},d=aa(l);return o.jsx(ra,{className:de(d.root,a),ownerState:l,ref:n,...s})});function sa(e){return be("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);function la(e){return be("MuiDialogTitle",e)}const ca=he("MuiDialogTitle",["root"]),pa=e=>{const{classes:t,dividers:n}=e;return xe({root:["root",n&&"dividers"]},sa,t)},da=W("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ke(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${ca.root} + &`]:{paddingTop:0}}}]}))),tt=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogContent"}),{className:a,dividers:r=!1,...s}=i,l={...i,dividers:r},d=pa(l);return o.jsx(da,{className:de(d.root,a),ownerState:l,ref:n,...s})}),ua=e=>{const{classes:t}=e;return xe({root:["root"]},la,t)},ma=W(_,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),nt=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogTitle"}),{className:a,id:r,...s}=i,l=i,d=ua(l),{titleId:m=r}=c.useContext(Pi);return o.jsx(ma,{component:"h2",className:de(d.root,a),ownerState:l,ref:n,variant:"h6",id:r??m,...s})});function fa(e){return be("MuiDivider",e)}he("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xa=e=>{const{absolute:t,children:n,classes:i,flexItem:a,light:r,orientation:s,textAlign:l,variant:d}=e;return xe({root:["root",t&&"absolute",d,r&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},fa,i)},va=W("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ke(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),ga=W("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ke(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),St=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDivider"}),{absolute:a=!1,children:r,className:s,orientation:l="horizontal",component:d=r||l==="vertical"?"div":"hr",flexItem:m=!1,light:v=!1,role:h=d!=="hr"?"separator":void 0,textAlign:j="center",variant:f="fullWidth",...u}=i,C={...i,absolute:a,component:d,flexItem:m,light:v,orientation:l,role:h,textAlign:j,variant:f},y=xa(C);return o.jsx(va,{as:d,className:de(y.root,s),role:h,ref:n,ownerState:C,"aria-orientation":h==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...u,children:r?o.jsx(ga,{className:y.wrapper,ownerState:C,children:r}):null})});St&&(St.muiSkipListHighlight=!0);const ha=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:a,size:r,hiddenLabel:s,multiline:l}=e,d={root:["root",!n&&"underline",i&&"adornedStart",a&&"adornedEnd",r==="small"&&`size${fe(r)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},m=xe(d,So,t);return{...t,...m}},ba=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...At(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ve.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ve.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ve.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ve.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ve.disabled}, .${Ve.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ve.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(It()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ya=W(zt,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dt})(ke(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),un=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,hiddenLabel:d,inputComponent:m="input",multiline:v=!1,slotProps:h,slots:j={},type:f="text",...u}=i,C={...i,disableUnderline:a,fullWidth:l,inputComponent:m,multiline:v,type:f},y=ha(i),x={root:{ownerState:C},input:{ownerState:C}},R=h??s?ln(x,h??s):x,g=j.root??r.Root??ba,k=j.input??r.Input??ya;return o.jsx(dn,{slots:{root:g,input:k},slotProps:R,fullWidth:l,inputComponent:m,multiline:v,ref:n,type:f,...u,classes:y})});un.muiName="Input";function wa(e){return be("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ka=e=>{const{classes:t,margin:n,fullWidth:i}=e,a={root:["root",n!=="none"&&`margin${fe(n)}`,i&&"fullWidth"]};return xe(a,wa,t)},ja=W("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${fe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ca=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormControl"}),{children:a,className:r,color:s="primary",component:l="div",disabled:d=!1,error:m=!1,focused:v,fullWidth:h=!1,hiddenLabel:j=!1,margin:f="none",required:u=!1,size:C="medium",variant:y="outlined",...x}=i,R={...i,color:s,component:l,disabled:d,error:m,fullWidth:h,hiddenLabel:j,margin:f,required:u,size:C,variant:y},g=ka(R),[k,p]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,A=>{if(!Mt(A,["Input","Select"]))return;const G=Mt(A,["Select"])?A.props.input:A;G&&yo(G.props)&&(E=!0)}),E}),[w,b]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,A=>{Mt(A,["Input","Select"])&&(Ct(A.props,!0)||Ct(A.props.inputProps,!0))&&(E=!0)}),E}),[T,z]=c.useState(!1);d&&T&&z(!1);const L=v!==void 0&&!d?v:T;let H;c.useRef(!1);const B=c.useCallback(()=>{b(!0)},[]),q=c.useCallback(()=>{b(!1)},[]),F=c.useMemo(()=>({adornedStart:k,setAdornedStart:p,color:s,disabled:d,error:m,filled:w,focused:L,fullWidth:h,hiddenLabel:j,size:C,onBlur:()=>{z(!1)},onFocus:()=>{z(!0)},onEmpty:q,onFilled:B,registerEffect:H,required:u,variant:y}),[k,s,d,m,w,L,h,j,H,q,B,u,C,y]);return o.jsx(pn.Provider,{value:F,children:o.jsx(ja,{as:l,ownerState:R,className:de(g.root,r),ref:n,...x,children:a})})});function Sa(e){return be("MuiFormHelperText",e)}const Nn=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $n;const Ra=e=>{const{classes:t,contained:n,size:i,disabled:a,error:r,filled:s,focused:l,required:d}=e,m={root:["root",a&&"disabled",r&&"error",i&&`size${fe(i)}`,n&&"contained",l&&"focused",s&&"filled",d&&"required"]};return xe(m,Sa,t)},Pa=W("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nn.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Ea=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormHelperText"}),{children:a,className:r,component:s="p",disabled:l,error:d,filled:m,focused:v,margin:h,required:j,variant:f,...u}=i,C=st(),y=rt({props:i,muiFormControl:C,states:["variant","size","disabled","error","filled","focused","required"]}),x={...i,component:s,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete x.ownerState;const R=Ra(x);return o.jsx(Pa,{as:s,className:de(R.root,r),ref:n,...u,ownerState:x,children:a===" "?$n||($n=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function Ia(e){return be("MuiFormLabel",e)}const mt=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Fa=e=>{const{classes:t,color:n,focused:i,disabled:a,error:r,filled:s,required:l}=e,d={root:["root",`color${fe(n)}`,a&&"disabled",r&&"error",s&&"filled",i&&"focused",l&&"required"],asterisk:["asterisk",r&&"error"]};return xe(d,Ia,t)},Aa=W("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(It()).map(([t])=>({props:{color:t},style:{[`&.${mt.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${mt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mt.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Da=W("span",{name:"MuiFormLabel",slot:"Asterisk"})(ke(({theme:e})=>({[`&.${mt.error}`]:{color:(e.vars||e).palette.error.main}}))),Ta=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormLabel"}),{children:a,className:r,color:s,component:l="label",disabled:d,error:m,filled:v,focused:h,required:j,...f}=i,u=st(),C=rt({props:i,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),y={...i,color:C.color||"primary",component:l,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required},x=Fa(y);return o.jsxs(Aa,{as:l,ownerState:y,className:de(x.root,r),ref:n,...f,children:[a,C.required&&o.jsxs(Da,{ownerState:y,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})}),za=e=>{const{classes:t,disableUnderline:n}=e,a=xe({root:["root",!n&&"underline"],input:["input"]},jo,t);return{...t,...a}},Ma=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...At(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lt.disabled}, .${lt.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${lt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(It()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),Oa=W(zt,{name:"MuiInput",slot:"Input",overridesResolver:Dt})({}),mn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,inputComponent:d="input",multiline:m=!1,slotProps:v,slots:h={},type:j="text",...f}=i,u=za(i),y={root:{ownerState:{disableUnderline:a}}},x=v??s?ln(v??s,y):y,R=h.root??r.Root??Ma,g=h.input??r.Input??Oa;return o.jsx(dn,{slots:{root:R,input:g},slotProps:x,fullWidth:l,inputComponent:d,multiline:m,ref:n,type:j,...f,classes:u})});mn.muiName="Input";function La(e){return be("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Na=e=>{const{classes:t,formControl:n,size:i,shrink:a,disableAnimation:r,variant:s,required:l}=e,d={root:["root",n&&"formControl",!r&&"animated",a&&"shrink",i&&i!=="medium"&&`size${fe(i)}`,s],asterisk:[l&&"asterisk"]},m=xe(d,La,t);return{...t,...m}},$a=W(Ta,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mt.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:i})=>t==="filled"&&n.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Wa=c.forwardRef(function(t,n){const i=ye({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:r,shrink:s,variant:l,className:d,...m}=i,v=st();let h=s;typeof h>"u"&&v&&(h=v.filled||v.focused||v.adornedStart);const j=rt({props:i,muiFormControl:v,states:["size","variant","required","focused"]}),f={...i,disableAnimation:a,formControl:v,shrink:h,size:j.size,variant:j.variant,required:j.required,focused:j.focused},u=Na(f);return o.jsx($a,{"data-shrink":h,ref:n,className:de(u.root,d),...m,ownerState:f,classes:u})});function Ht(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wn(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ei(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ct(e,t,n,i,a,r){let s=!1,l=a(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const d=i?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Ei(l,r)||d)l=a(e,l,n);else return l.focus(),!0}return!1}const Ha=c.forwardRef(function(t,n){const{actions:i,autoFocus:a=!1,autoFocusItem:r=!1,children:s,className:l,disabledItemsFocusable:d=!1,disableListWrap:m=!1,onKeyDown:v,variant:h="selectedMenu",...j}=t,f=c.useRef(null),u=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jt(()=>{a&&f.current.focus()},[a]),c.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(g,{direction:k})=>{const p=!f.current.style.width;if(g.clientHeight{const k=f.current,p=g.key;if(g.ctrlKey||g.metaKey||g.altKey){v&&v(g);return}const b=De(k).activeElement;if(p==="ArrowDown")g.preventDefault(),ct(k,b,m,d,Ht);else if(p==="ArrowUp")g.preventDefault(),ct(k,b,m,d,Wn);else if(p==="Home")g.preventDefault(),ct(k,null,m,d,Ht);else if(p==="End")g.preventDefault(),ct(k,null,m,d,Wn);else if(p.length===1){const T=u.current,z=p.toLowerCase(),L=performance.now();T.keys.length>0&&(L-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&z!==T.keys[0]&&(T.repeating=!1)),T.lastTime=L,T.keys.push(z);const H=b&&!T.repeating&&Ei(b,T);T.previousKeyMatched&&(H||ct(k,b,!1,d,Ht,T))?g.preventDefault():T.previousKeyMatched=!1}v&&v(g)},y=Be(f,n);let x=-1;c.Children.forEach(s,(g,k)=>{if(!c.isValidElement(g)){x===k&&(x+=1,x>=s.length&&(x=-1));return}g.props.disabled||(h==="selectedMenu"&&g.props.selected||x===-1)&&(x=k),x===k&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(x+=1,x>=s.length&&(x=-1))});const R=c.Children.map(s,(g,k)=>{if(k===x){const p={};return r&&(p.autoFocus=!0),g.props.tabIndex===void 0&&h==="selectedMenu"&&(p.tabIndex=0),c.cloneElement(g,p)}return g});return o.jsx(Jt,{role:"menu",ref:y,className:l,onKeyDown:C,tabIndex:a?0:-1,...j,children:R})});function Ba(e){return be("MuiPopover",e)}he("MuiPopover",["root","paper"]);function Hn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Bn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function qn(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function bt(e){return typeof e=="function"?e():e}const qa=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},Ba,t)},Ua=W(Ri,{name:"MuiPopover",slot:"Root"})({}),Ii=W(xt,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),_a=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiPopover"}),{action:a,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:m,className:v,container:h,elevation:j=8,marginThreshold:f=16,open:u,PaperProps:C={},slots:y={},slotProps:x={},transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:g,transitionDuration:k="auto",TransitionProps:p={},disableScrollLock:w=!1,...b}=i,T=c.useRef(),z={...i,anchorOrigin:s,anchorReference:d,elevation:j,marginThreshold:f,transformOrigin:R,TransitionComponent:g,transitionDuration:k,TransitionProps:p},L=qa(z),H=c.useCallback(()=>{if(d==="anchorPosition")return l;const $=bt(r),V=($&&$.nodeType===1?$:De(T.current).body).getBoundingClientRect();return{top:V.top+Hn(V,s.vertical),left:V.left+Bn(V,s.horizontal)}},[r,s.horizontal,s.vertical,l,d]),B=c.useCallback($=>({vertical:Hn($,R.vertical),horizontal:Bn($,R.horizontal)}),[R.horizontal,R.vertical]),q=c.useCallback($=>{const U={width:$.offsetWidth,height:$.offsetHeight},V=B(U);if(d==="none")return{top:null,left:null,transformOrigin:qn(V)};const K=H();let S=K.top-V.vertical,M=K.left-V.horizontal;const Q=S+U.height,ve=M+U.width,Ee=We(bt(r)),Ae=Ee.innerHeight-f,Pe=Ee.innerWidth-f;if(f!==null&&SAe){const Se=Q-Ae;S-=Se,V.vertical+=Se}if(f!==null&&MPe){const Se=ve-Pe;M-=Se,V.horizontal+=Se}return{top:`${Math.round(S)}px`,left:`${Math.round(M)}px`,transformOrigin:qn(V)}},[r,d,H,B,f]),[F,E]=c.useState(u),A=c.useCallback(()=>{const $=T.current;if(!$)return;const U=q($);U.top!==null&&$.style.setProperty("top",U.top),U.left!==null&&($.style.left=U.left),$.style.transformOrigin=U.transformOrigin,E(!0)},[q]);c.useEffect(()=>(w&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[r,w,A]);const G=()=>{A()},te=()=>{E(!1)};c.useEffect(()=>{u&&A()}),c.useImperativeHandle(a,()=>u?{updatePosition:()=>{A()}}:null,[u,A]),c.useEffect(()=>{if(!u)return;const $=wi(()=>{A()}),U=We(bt(r));return U.addEventListener("resize",$),()=>{$.clear(),U.removeEventListener("resize",$)}},[r,u,A]);let D=k;const ee={slots:{transition:g,...y},slotProps:{transition:p,paper:C,...x}},[ie,Z]=pe("transition",{elementType:ki,externalForwardedProps:ee,ownerState:z,getSlotProps:$=>({...$,onEntering:(U,V)=>{$.onEntering?.(U,V),G()},onExited:U=>{$.onExited?.(U),te()}}),additionalProps:{appear:!0,in:u}});k==="auto"&&!ie.muiSupportAuto&&(D=void 0);const J=h||(r?De(bt(r)).body:void 0),[Y,{slots:oe,slotProps:ce,...ue}]=pe("root",{ref:n,elementType:Ua,externalForwardedProps:{...ee,...b},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:vo(typeof x.backdrop=="function"?x.backdrop(z):x.backdrop,{invisible:!0})},container:J,open:u},ownerState:z,className:de(L.root,v)}),[je,ne]=pe("paper",{ref:T,className:L.paper,elementType:Ii,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:j,style:F?void 0:{opacity:0}},ownerState:z});return o.jsx(Y,{...ue,...!Ut(Y)&&{slots:oe,slotProps:ce,disableScrollLock:w},children:o.jsx(ie,{...Z,timeout:D,children:o.jsx(je,{...ne,children:m})})})});function Va(e){return be("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Ka={vertical:"top",horizontal:"right"},Ga={vertical:"top",horizontal:"left"},Ja=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},Va,t)},Xa=W(_a,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ya=W(Ii,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Za=W(Ha,{name:"MuiMenu",slot:"List"})({outline:0}),Qa=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:r,className:s,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:m,open:v,PaperProps:h={},PopoverClasses:j,transitionDuration:f="auto",TransitionProps:{onEntering:u,...C}={},variant:y="selectedMenu",slots:x={},slotProps:R={},...g}=i,k=Ki(),p={...i,autoFocus:a,disableAutoFocusItem:l,MenuListProps:d,onEntering:u,PaperProps:h,transitionDuration:f,TransitionProps:C,variant:y},w=Ja(p),b=a&&!l&&v,T=c.useRef(null),z=(D,ee)=>{T.current&&T.current.adjustStyleForScrollbar(D,{direction:k?"rtl":"ltr"}),u&&u(D,ee)},L=D=>{D.key==="Tab"&&(D.preventDefault(),m&&m(D,"tabKeyDown"))};let H=-1;c.Children.map(r,(D,ee)=>{c.isValidElement(D)&&(D.props.disabled||(y==="selectedMenu"&&D.props.selected||H===-1)&&(H=ee))});const B={slots:x,slotProps:{list:d,transition:C,paper:h,...R}},q=eo({elementType:x.root,externalSlotProps:R.root,ownerState:p,className:[w.root,s]}),[F,E]=pe("paper",{className:w.paper,elementType:Ya,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:p}),[A,G]=pe("list",{className:de(w.list,d.className),elementType:Za,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:D=>({...D,onKeyDown:ee=>{L(ee),D.onKeyDown?.(ee)}}),ownerState:p}),te=typeof B.slotProps.transition=="function"?B.slotProps.transition(p):B.slotProps.transition;return o.jsx(Xa,{onClose:m,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Ka:Ga,slots:{root:x.root,paper:F,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:q,paper:E,backdrop:typeof R.backdrop=="function"?R.backdrop(p):R.backdrop,transition:{...te,onEntering:(...D)=>{z(...D),te?.onEntering?.(...D)}}},open:v,ref:n,transitionDuration:f,ownerState:p,...g,classes:j,children:o.jsx(A,{actions:T,autoFocus:a&&(H===-1||l),autoFocusItem:b,variant:y,...G,children:r})})});function er(e){return be("MuiNativeSelect",e)}const fn=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tr=e=>{const{classes:t,variant:n,disabled:i,multiple:a,open:r,error:s}=e,l={select:["select",n,i&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",i&&"disabled"]};return xe(l,er,t)},Fi=W("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${fn.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),nr=W(Fi,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:He,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${fn.multiple}`]:t.multiple}]}})({}),Ai=W("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${fn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ir=W(Ai,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),or=c.forwardRef(function(t,n){const{className:i,disabled:a,error:r,IconComponent:s,inputRef:l,variant:d="standard",...m}=t,v={...t,disabled:a,variant:d,error:r},h=tr(v);return o.jsxs(c.Fragment,{children:[o.jsx(nr,{ownerState:v,className:de(h.select,i),disabled:a,ref:l||n,...m}),t.multiple?null:o.jsx(ir,{as:s,ownerState:v,className:h.icon})]})});var Un;const ar=W("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:He})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rr=W("legend",{name:"MuiNotchedOutlined",shouldForwardProp:He})(ke(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function sr(e){const{children:t,classes:n,className:i,label:a,notched:r,...s}=e,l=a!=null&&a!=="",d={...e,notched:r,withLabel:l};return o.jsx(ar,{"aria-hidden":!0,className:i,ownerState:d,...s,children:o.jsx(rr,{ownerState:d,children:l?o.jsx("span",{children:a}):Un||(Un=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const lr=e=>{const{classes:t}=e,i=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Co,t);return{...t,...i}},cr=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:At})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ne.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(It()).map(([n])=>({props:{color:n},style:{[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ne.error} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ne.disabled} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:i})=>n.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),pr=W(sr,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),dr=W(zt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dt})(ke(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),xn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:r=!1,inputComponent:s="input",label:l,multiline:d=!1,notched:m,slots:v={},slotProps:h={},type:j="text",...f}=i,u=lr(i),C=st(),y=rt({props:i,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...i,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:C,fullWidth:r,hiddenLabel:y.hiddenLabel,multiline:d,size:y.size,type:j},R=v.root??a.Root??cr,g=v.input??a.Input??dr,[k,p]=pe("notchedOutline",{elementType:pr,className:u.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:v,slotProps:h},additionalProps:{label:l!=null&&l!==""&&y.required?o.jsxs(c.Fragment,{children:[l," ","*"]}):l}});return o.jsx(dn,{slots:{root:R,input:g},slotProps:h,renderSuffix:w=>o.jsx(k,{...p,notched:typeof m<"u"?m:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:r,inputComponent:s,multiline:d,ref:n,type:j,...f,classes:{...u,notchedOutline:null}})});xn.muiName="Input";function Di(e){return be("MuiSelect",e)}const pt=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _n;const ur=W(Fi,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${pt.select}`]:t.select},{[`&.${pt.select}`]:t[n.variant]},{[`&.${pt.error}`]:t.error},{[`&.${pt.multiple}`]:t.multiple}]}})({[`&.${pt.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mr=W(Ai,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),fr=W("input",{shouldForwardProp:e=>Gi(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vn(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xr(e){return e==null||typeof e=="string"&&!e.trim()}const vr=e=>{const{classes:t,variant:n,disabled:i,multiple:a,open:r,error:s}=e,l={select:["select",n,i&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return xe(l,Di,t)},gr=c.forwardRef(function(t,n){const{"aria-describedby":i,"aria-label":a,autoFocus:r,autoWidth:s,children:l,className:d,defaultOpen:m,defaultValue:v,disabled:h,displayEmpty:j,error:f=!1,IconComponent:u,inputRef:C,labelId:y,MenuProps:x={},multiple:R,name:g,onBlur:k,onChange:p,onClose:w,onFocus:b,onOpen:T,open:z,readOnly:L,renderValue:H,required:B,SelectDisplayProps:q={},tabIndex:F,type:E,value:A,variant:G="standard",...te}=t,[D,ee]=Cn({controlled:A,default:v,name:"Select"}),[ie,Z]=Cn({controlled:z,default:m,name:"Select"}),J=c.useRef(null),Y=c.useRef(null),[oe,ce]=c.useState(null),{current:ue}=c.useRef(z!=null),[je,ne]=c.useState(),$=Be(n,C),U=c.useCallback(N=>{Y.current=N,N&&ce(N)},[]),V=oe?.parentNode;c.useImperativeHandle($,()=>({focus:()=>{Y.current.focus()},node:J.current,value:D}),[D]),c.useEffect(()=>{m&&ie&&oe&&!ue&&(ne(s?null:V.clientWidth),Y.current.focus())},[oe,s]),c.useEffect(()=>{r&&Y.current.focus()},[r]),c.useEffect(()=>{if(!y)return;const N=De(Y.current).getElementById(y);if(N){const ae=()=>{getSelection().isCollapsed&&Y.current.focus()};return N.addEventListener("click",ae),()=>{N.removeEventListener("click",ae)}}},[y]);const K=(N,ae)=>{N?T&&T(ae):w&&w(ae),ue||(ne(s?null:V.clientWidth),Z(N))},S=N=>{N.button===0&&(N.preventDefault(),Y.current.focus(),K(!0,N))},M=N=>{K(!1,N)},Q=c.Children.toArray(l),ve=N=>{const ae=Q.find(we=>we.props.value===N.target.value);ae!==void 0&&(ee(ae.props.value),p&&p(N,ae))},Ee=N=>ae=>{let we;if(ae.currentTarget.hasAttribute("tabindex")){if(R){we=Array.isArray(D)?D.slice():[];const Le=D.indexOf(N.props.value);Le===-1?we.push(N.props.value):we.splice(Le,1)}else we=N.props.value;if(N.props.onClick&&N.props.onClick(ae),D!==we&&(ee(we),p)){const Le=ae.nativeEvent||ae,vt=new Le.constructor(Le.type,Le);Object.defineProperty(vt,"target",{writable:!0,value:{value:we,name:g}}),p(vt,N)}R||K(!1,ae)}},Ae=N=>{L||[" ","ArrowUp","ArrowDown","Enter"].includes(N.key)&&(N.preventDefault(),K(!0,N))},Pe=oe!==null&&ie,Se=N=>{!Pe&&k&&(Object.defineProperty(N,"target",{writable:!0,value:{value:D,name:g}}),k(N))};delete te["aria-invalid"];let Te,Me;const P=[];let O=!1;(Ct({value:D})||j)&&(H?Te=H(D):O=!0);const le=Q.map(N=>{if(!c.isValidElement(N))return null;let ae;if(R){if(!Array.isArray(D))throw new Error(vi(2));ae=D.some(we=>Vn(we,N.props.value)),ae&&O&&P.push(N.props.children)}else ae=Vn(D,N.props.value),ae&&O&&(Me=N.props.children);return c.cloneElement(N,{"aria-selected":ae?"true":"false",onClick:Ee(N),onKeyUp:we=>{we.key===" "&&we.preventDefault(),N.props.onKeyUp&&N.props.onKeyUp(we)},role:"option",selected:ae,value:void 0,"data-value":N.props.value})});O&&(R?P.length===0?Te=null:Te=P.reduce((N,ae,we)=>(N.push(ae),we{const{classes:t}=e,i=xe({root:["root"]},Di,t);return{...t,...i}},vn={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>He(e)&&e!=="variant"},br=W(mn,vn)(""),yr=W(xn,vn)(""),wr=W(un,vn)(""),Ti=c.forwardRef(function(t,n){const i=ye({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:r,classes:s={},className:l,defaultOpen:d=!1,displayEmpty:m=!1,IconComponent:v=Ro,id:h,input:j,inputProps:f,label:u,labelId:C,MenuProps:y,multiple:x=!1,native:R=!1,onClose:g,onOpen:k,open:p,renderValue:w,SelectDisplayProps:b,variant:T="outlined",...z}=i,L=R?or:gr,H=st(),B=rt({props:i,muiFormControl:H,states:["variant","error"]}),q=B.variant||T,F={...i,variant:q,classes:s},E=hr(F),{root:A,...G}=E,te=j||{standard:o.jsx(br,{ownerState:F}),outlined:o.jsx(yr,{label:u,ownerState:F}),filled:o.jsx(wr,{ownerState:F})}[q],D=Be(n,Ft(te));return o.jsx(c.Fragment,{children:c.cloneElement(te,{inputComponent:L,inputProps:{children:r,error:B.error,IconComponent:v,variant:q,type:void 0,multiple:x,...R?{id:h}:{autoWidth:a,defaultOpen:d,displayEmpty:m,labelId:C,MenuProps:y,onClose:g,onOpen:k,open:p,renderValue:w,SelectDisplayProps:{id:h,...b}},...f,classes:f?ln(G,f.classes):G,...j?j.props.inputProps:{}},...(x&&R||m)&&q==="outlined"?{notched:!0}:{},ref:D,className:de(te.props.className,l,E.root),...!j&&{variant:q},...z})})});Ti.muiName="Select";function kr(e){return be("MuiSkeleton",e)}he("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const jr=e=>{const{classes:t,variant:n,animation:i,hasChildren:a,width:r,height:s}=e;return xe({root:["root",n,i,a&&"withChildren",a&&!r&&"fitContent",a&&!s&&"heightAuto"]},kr,t)},Qt=hi` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`,en=hi` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`,Cr=typeof Qt!="string"?gi` + animation: ${Qt} 2s ease-in-out 0.5s infinite; + `:null,Sr=typeof en!="string"?gi` + &::after { + animation: ${en} 2s linear 0.5s infinite; + } + `:null,Rr=W("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(ke(({theme:e})=>{const t=mo(e.shape.borderRadius)||"px",n=fo(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:i})=>i.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:i})=>i.hasChildren&&!i.width,style:{maxWidth:"fit-content"}},{props:({ownerState:i})=>i.hasChildren&&!i.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Cr||{animation:`${Qt} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + 90deg, + transparent, + ${(e.vars||e).palette.action.hover}, + transparent + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Sr||{"&::after":{animation:`${en} 2s linear 0.5s infinite`}}}]}})),Ze=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSkeleton"}),{animation:a="pulse",className:r,component:s="span",height:l,style:d,variant:m="text",width:v,...h}=i,j={...i,animation:a,component:s,variant:m,hasChildren:!!h.children},f=jr(j);return o.jsx(Rr,{as:s,ref:n,className:de(f.root,r),ownerState:j,...h,style:{width:v,height:l,...d}})});function Pr(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:i,open:a,resumeHideDuration:r}=e,s=to();c.useEffect(()=>{if(!a)return;function x(R){R.defaultPrevented||R.key==="Escape"&&i?.(R,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,i]);const l=it((x,R)=>{i?.(x,R)}),d=it(x=>{!i||x==null||s.start(x,()=>{l(null,"timeout")})});c.useEffect(()=>(a&&d(t),s.clear),[a,t,d,s]);const m=x=>{i?.(x,"clickaway")},v=s.clear,h=c.useCallback(()=>{t!=null&&d(r??t*.5)},[t,r,d]),j=x=>R=>{const g=x.onBlur;g?.(R),h()},f=x=>R=>{const g=x.onFocus;g?.(R),v()},u=x=>R=>{const g=x.onMouseEnter;g?.(R),v()},C=x=>R=>{const g=x.onMouseLeave;g?.(R),h()};return c.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",v)}},[n,a,h,v]),{getRootProps:(x={})=>{const R={..._t(e),..._t(x)};return{role:"presentation",...x,...R,onBlur:j(R),onFocus:f(R),onMouseEnter:u(R),onMouseLeave:C(R)}},onClickAway:m}}function Er(e){return be("MuiSnackbarContent",e)}he("MuiSnackbarContent",["root","message","action"]);const Ir=e=>{const{classes:t}=e;return xe({root:["root"],action:["action"],message:["message"]},Er,t)},Fr=W(xt,{name:"MuiSnackbarContent",slot:"Root"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(bn(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:bn(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Ar=W("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Dr=W("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Tr=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSnackbarContent"}),{action:a,className:r,message:s,role:l="alert",...d}=i,m=i,v=Ir(m);return o.jsxs(Fr,{role:l,elevation:6,className:de(v.root,r),ownerState:m,ref:n,...d,children:[o.jsx(Ar,{className:v.message,ownerState:m,children:s}),a?o.jsx(Dr,{className:v.action,ownerState:m,children:a}):null]})});function zr(e){return be("MuiSnackbar",e)}he("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mr=e=>{const{classes:t,anchorOrigin:n}=e,i={root:["root",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`]};return xe(i,zr,t)},Or=W("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}`]]}})(ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Lr=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSnackbar"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:m=null,children:v,className:h,ClickAwayListenerProps:j,ContentProps:f,disableWindowBlurListener:u=!1,message:C,onBlur:y,onClose:x,onFocus:R,onMouseEnter:g,onMouseLeave:k,open:p,resumeHideDuration:w,slots:b={},slotProps:T={},TransitionComponent:z,transitionDuration:L=r,TransitionProps:{onEnter:H,onExited:B,...q}={},...F}=i,E={...i,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:m,disableWindowBlurListener:u,TransitionComponent:z,transitionDuration:L},A=Mr(E),{getRootProps:G,onClickAway:te}=Pr({...E}),[D,ee]=c.useState(!0),ie=K=>{ee(!0),B&&B(K)},Z=(K,S)=>{ee(!1),H&&H(K,S)},J={slots:{transition:z,...b},slotProps:{content:f,clickAwayListener:j,transition:q,...T}},[Y,oe]=pe("root",{ref:n,className:[A.root,h],elementType:Or,getSlotProps:G,externalForwardedProps:{...J,...F},ownerState:E}),[ce,{ownerState:ue,...je}]=pe("clickAwayListener",{elementType:Do,externalForwardedProps:J,getSlotProps:K=>({onClickAway:(...S)=>{const M=S[0];K.onClickAway?.(...S),!M?.defaultMuiPrevented&&te(...S)}}),ownerState:E}),[ne,$]=pe("content",{elementType:Tr,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:C,action:s},ownerState:E}),[U,V]=pe("transition",{elementType:ki,externalForwardedProps:J,getSlotProps:K=>({onEnter:(...S)=>{K.onEnter?.(...S),Z(...S)},onExited:(...S)=>{K.onExited?.(...S),ie(...S)}}),additionalProps:{appear:!0,in:p,timeout:L,direction:l==="top"?"down":"up"},ownerState:E});return!p&&D?null:o.jsx(ce,{...je,...b.clickAwayListener&&{ownerState:ue},children:o.jsx(Y,{...oe,children:o.jsx(U,{...V,children:v||o.jsx(ne,{...$})})})})});function Nr(e){return be("MuiTextField",e)}he("MuiTextField",["root"]);const $r={standard:mn,filled:un,outlined:xn},Wr=e=>{const{classes:t}=e;return xe({root:["root"]},Nr,t)},Hr=W(Ca,{name:"MuiTextField",slot:"Root"})({}),Ke=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:r=!1,children:s,className:l,color:d="primary",defaultValue:m,disabled:v=!1,error:h=!1,FormHelperTextProps:j,fullWidth:f=!1,helperText:u,id:C,InputLabelProps:y,inputProps:x,InputProps:R,inputRef:g,label:k,maxRows:p,minRows:w,multiline:b=!1,name:T,onBlur:z,onChange:L,onFocus:H,placeholder:B,required:q=!1,rows:F,select:E=!1,SelectProps:A,slots:G={},slotProps:te={},type:D,value:ee,variant:ie="outlined",...Z}=i,J={...i,autoFocus:r,color:d,disabled:v,error:h,fullWidth:f,multiline:b,required:q,select:E,variant:ie},Y=Wr(J),oe=sn(C),ce=u&&oe?`${oe}-helper-text`:void 0,ue=k&&oe?`${oe}-label`:void 0,je=$r[ie],ne={slots:G,slotProps:{input:R,inputLabel:y,htmlInput:x,formHelperText:j,select:A,...te}},$={},U=ne.slotProps.inputLabel;ie==="outlined"&&(U&&typeof U.shrink<"u"&&($.notched=U.shrink),$.label=k),E&&((!A||!A.native)&&($.id=void 0),$["aria-describedby"]=void 0);const[V,K]=pe("root",{elementType:Hr,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Z},ownerState:J,className:de(Y.root,l),ref:n,additionalProps:{disabled:v,error:h,fullWidth:f,required:q,color:d,variant:ie}}),[S,M]=pe("input",{elementType:je,externalForwardedProps:ne,additionalProps:$,ownerState:J}),[Q,ve]=pe("inputLabel",{elementType:Wa,externalForwardedProps:ne,ownerState:J}),[Ee,Ae]=pe("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:J}),[Pe,Se]=pe("formHelperText",{elementType:Ea,externalForwardedProps:ne,ownerState:J}),[Te,Me]=pe("select",{elementType:Ti,externalForwardedProps:ne,ownerState:J}),P=o.jsx(S,{"aria-describedby":ce,autoComplete:a,autoFocus:r,defaultValue:m,fullWidth:f,multiline:b,name:T,rows:F,maxRows:p,minRows:w,type:D,value:ee,id:oe,inputRef:g,onBlur:z,onChange:L,onFocus:H,placeholder:B,inputProps:Ae,slots:{input:G.htmlInput?Ee:void 0},...M});return o.jsxs(V,{...K,children:[k!=null&&k!==""&&o.jsx(Q,{htmlFor:oe,id:ue,...ve,children:k}),E?o.jsx(Te,{"aria-describedby":ce,id:oe,labelId:ue,value:ee,input:P,...Me,children:s}):P,u&&o.jsx(Pe,{id:ce,...Se,children:u})]})});function Br(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function qr(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ur(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var Kn=e=>Array.isArray(e)?e:[e];function _r(e){const t=Array.isArray(e[0])?e[0]:e;return Ur(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Vr(e,t){const n=[],{length:i}=e;for(let a=0;a{n=yt(),s.resetResultsCount()},s.resultsCount=()=>r,s.resetResultsCount=()=>{r=0},s}function Xr(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...a)=>{let r=0,s=0,l,d={},m=a.pop();typeof m=="object"&&(d=m,m=a.pop()),Br(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const v={...n,...d},{memoize:h,memoizeOptions:j=[],argsMemoize:f=zi,argsMemoizeOptions:u=[]}=v,C=Kn(j),y=Kn(u),x=_r(a),R=h(function(){return r++,m.apply(null,arguments)},...C),g=f(function(){s++;const p=Vr(x,arguments);return l=R.apply(null,p),l},...y);return Object.assign(g,{resultFunc:m,memoizedResultFunc:R,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:h,argsMemoize:f})};return Object.assign(i,{withTypes:()=>i}),i}var gn=Xr(zi),Yr=Object.assign((e,t=gn)=>{qr(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(r=>e[r]);return t(i,(...r)=>r.reduce((s,l,d)=>(s[n[d]]=l,s),{}))},{withTypes:()=>Yr});function Je(e,t,n,i){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function l(v){try{m(i.next(v))}catch(h){s(h)}}function d(v){try{m(i.throw(v))}catch(h){s(h)}}function m(v){v.done?r(v.value):a(v.value).then(l,d)}m((i=i.apply(e,t||[])).next())})}const Zr=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function at(e,t,n){const i=Qr(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof i.path!="string"&&Jn(i,"path",r),Jn(i,"relativePath",r),i}function Qr(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),a=Zr.get(i);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function Jn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const es=[".DS_Store","Thumbs.db"];function ts(e){return Je(this,void 0,void 0,function*(){return Rt(e)&&ns(e.dataTransfer)?rs(e.dataTransfer,e.type):is(e)?os(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?as(e):[]})}function ns(e){return Rt(e)}function is(e){return Rt(e)&&Rt(e.target)}function Rt(e){return typeof e=="object"&&e!==null}function os(e){return tn(e.target.files).map(t=>at(t))}function as(e){return Je(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>at(n))})}function rs(e,t){return Je(this,void 0,void 0,function*(){if(e.items){const n=tn(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(ss));return Xn(Mi(i))}return Xn(tn(e.files).map(n=>at(n)))})}function Xn(e){return e.filter(t=>es.indexOf(t.name)===-1)}function tn(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?Mi(n):[n]],[])}function Yn(e,t){return Je(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const s=yield r.getFile();return s.handle=r,at(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return at(i,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function ls(e){return Je(this,void 0,void 0,function*(){return e.isDirectory?Oi(e):cs(e)})}function Oi(e){const t=e.createReader();return new Promise((n,i)=>{const a=[];function r(){t.readEntries(s=>Je(this,void 0,void 0,function*(){if(s.length){const l=Promise.all(s.map(ls));a.push(l),r()}else try{const l=yield Promise.all(a);n(l)}catch(l){i(l)}}),s=>{i(s)})}r()})}function cs(e){return Je(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const a=at(i,e.fullPath);t(a)},i=>{n(i)})})})}var wt={},Zn;function ps(){return Zn||(Zn=1,wt.__esModule=!0,wt.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?i.toLowerCase().endsWith(l):l.endsWith("/*")?r===l.replace(/\/.*$/,""):a===l})}return!0}),wt}var ds=ps();const Bt=xi(ds);function Qn(e){return fs(e)||ms(e)||Ni(e)||us()}function us(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ms(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fs(e){if(Array.isArray(e))return nn(e)}function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function ti(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:bs,message:"File type must be ".concat(i)}},ni=function(t){return{code:ys,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ii=function(t){return{code:ws,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Cs={code:ks,message:"Too many files"};function $i(e,t){var n=e.type==="application/x-moz-file"||hs(e,t);return[n,n?null:js(t)]}function Wi(e,t,n){if(Ge(e.size))if(Ge(t)&&Ge(n)){if(e.size>n)return[!1,ni(n)];if(e.sizen)return[!1,ni(n)]}return[!0,null]}function Ge(e){return e!=null}function Ss(e){var t=e.files,n=e.accept,i=e.minSize,a=e.maxSize,r=e.multiple,s=e.maxFiles,l=e.validator;return!r&&t.length>1||r&&s>=1&&t.length>s?!1:t.every(function(d){var m=$i(d,n),v=ft(m,1),h=v[0],j=Wi(d,i,a),f=ft(j,1),u=f[0],C=l?l(d):null;return h&&u&&!C})}function Pt(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function kt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function oi(e){e.preventDefault()}function Rs(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ps(e){return e.indexOf("Edge/")!==-1}function Es(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Rs(e)||Ps(e)}function $e(){for(var e=arguments.length,t=new Array(e),n=0;n1?a-1:0),s=1;se.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _s(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,r;for(r=0;r=0)&&(n[a]=e[a]);return n}var hn=c.forwardRef(function(e,t){var n=e.children,i=Et(e,zs),a=_i(i),r=a.open,s=Et(a,Ms);return c.useImperativeHandle(t,function(){return{open:r}},[r]),Ji.createElement(c.Fragment,null,n(ge(ge({},s),{},{open:r})))});hn.displayName="Dropzone";var Ui={disabled:!1,getFilesFromEvent:ts,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};hn.defaultProps=Ui;hn.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var rn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function _i(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},Ui),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,l=t.multiple,d=t.maxFiles,m=t.onDragEnter,v=t.onDragLeave,h=t.onDragOver,j=t.onDrop,f=t.onDropAccepted,u=t.onDropRejected,C=t.onFileDialogCancel,y=t.onFileDialogOpen,x=t.useFsAccessApi,R=t.autoFocus,g=t.preventDropOnDocument,k=t.noClick,p=t.noKeyboard,w=t.noDrag,b=t.noDragEventsBubbling,T=t.onError,z=t.validator,L=c.useMemo(function(){return As(n)},[n]),H=c.useMemo(function(){return Fs(n)},[n]),B=c.useMemo(function(){return typeof y=="function"?y:ri},[y]),q=c.useMemo(function(){return typeof C=="function"?C:ri},[C]),F=c.useRef(null),E=c.useRef(null),A=c.useReducer(Vs,rn),G=qt(A,2),te=G[0],D=G[1],ee=te.isFocused,ie=te.isFileDialogActive,Z=c.useRef(typeof window<"u"&&window.isSecureContext&&x&&Is()),J=function(){!Z.current&&ie&&setTimeout(function(){if(E.current){var O=E.current.files;O.length||(D({type:"closeDialog"}),q())}},300)};c.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[E,ie,q,Z]);var Y=c.useRef([]),oe=function(O){F.current&&F.current.contains(O.target)||(O.preventDefault(),Y.current=[])};c.useEffect(function(){return g&&(document.addEventListener("dragover",oi,!1),document.addEventListener("drop",oe,!1)),function(){g&&(document.removeEventListener("dragover",oi),document.removeEventListener("drop",oe))}},[F,g]),c.useEffect(function(){return!i&&R&&F.current&&F.current.focus(),function(){}},[F,R,i]);var ce=c.useCallback(function(P){T?T(P):console.error(P)},[T]),ue=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P),Y.current=[].concat(Ns(Y.current),[P.target]),kt(P)&&Promise.resolve(a(P)).then(function(O){if(!(Pt(P)&&!b)){var le=O.length,me=le>0&&Ss({files:O,accept:L,minSize:s,maxSize:r,multiple:l,maxFiles:d,validator:z}),Ce=le>0&&!me;D({isDragAccept:me,isDragReject:Ce,isDragActive:!0,type:"setDraggedFiles"}),m&&m(P)}}).catch(function(O){return ce(O)})},[a,m,ce,b,L,s,r,l,d,z]),je=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P);var O=kt(P);if(O&&P.dataTransfer)try{P.dataTransfer.dropEffect="copy"}catch{}return O&&h&&h(P),!1},[h,b]),ne=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P);var O=Y.current.filter(function(me){return F.current&&F.current.contains(me)}),le=O.indexOf(P.target);le!==-1&&O.splice(le,1),Y.current=O,!(O.length>0)&&(D({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kt(P)&&v&&v(P))},[F,v,b]),$=c.useCallback(function(P,O){var le=[],me=[];P.forEach(function(Ce){var ze=$i(Ce,L),Ie=qt(ze,2),re=Ie[0],Oe=Ie[1],qe=Wi(Ce,s,r),_e=qt(qe,2),N=_e[0],ae=_e[1],we=z?z(Ce):null;if(re&&N&&!we)le.push(Ce);else{var Le=[Oe,ae];we&&(Le=Le.concat(we)),me.push({file:Ce,errors:Le.filter(function(vt){return vt})})}}),(!l&&le.length>1||l&&d>=1&&le.length>d)&&(le.forEach(function(Ce){me.push({file:Ce,errors:[Cs]})}),le.splice(0)),D({acceptedFiles:le,fileRejections:me,isDragReject:me.length>0,type:"setFiles"}),j&&j(le,me,O),me.length>0&&u&&u(me,O),le.length>0&&f&&f(le,O)},[D,l,L,s,r,d,j,f,u,z]),U=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P),Y.current=[],kt(P)&&Promise.resolve(a(P)).then(function(O){Pt(P)&&!b||$(O,P)}).catch(function(O){return ce(O)}),D({type:"reset"})},[a,$,ce,b]),V=c.useCallback(function(){if(Z.current){D({type:"openDialog"}),B();var P={multiple:l,types:H};window.showOpenFilePicker(P).then(function(O){return a(O)}).then(function(O){$(O,null),D({type:"closeDialog"})}).catch(function(O){Ds(O)?(q(O),D({type:"closeDialog"})):Ts(O)?(Z.current=!1,E.current?(E.current.value=null,E.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ce(O)});return}E.current&&(D({type:"openDialog"}),B(),E.current.value=null,E.current.click())},[D,B,q,x,$,ce,H,l]),K=c.useCallback(function(P){!F.current||!F.current.isEqualNode(P.target)||(P.key===" "||P.key==="Enter"||P.keyCode===32||P.keyCode===13)&&(P.preventDefault(),V())},[F,V]),S=c.useCallback(function(){D({type:"focus"})},[]),M=c.useCallback(function(){D({type:"blur"})},[]),Q=c.useCallback(function(){k||(Es()?setTimeout(V,0):V())},[k,V]),ve=function(O){return i?null:O},Ee=function(O){return p?null:ve(O)},Ae=function(O){return w?null:ve(O)},Pe=function(O){b&&O.stopPropagation()},Se=c.useMemo(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=P.refKey,le=O===void 0?"ref":O,me=P.role,Ce=P.onKeyDown,ze=P.onFocus,Ie=P.onBlur,re=P.onClick,Oe=P.onDragEnter,qe=P.onDragOver,_e=P.onDragLeave,N=P.onDrop,ae=Et(P,Os);return ge(ge(an({onKeyDown:Ee($e(Ce,K)),onFocus:Ee($e(ze,S)),onBlur:Ee($e(Ie,M)),onClick:ve($e(re,Q)),onDragEnter:Ae($e(Oe,ue)),onDragOver:Ae($e(qe,je)),onDragLeave:Ae($e(_e,ne)),onDrop:Ae($e(N,U)),role:typeof me=="string"&&me!==""?me:"presentation"},le,F),!i&&!p?{tabIndex:0}:{}),ae)}},[F,K,S,M,Q,ue,je,ne,U,p,w,i]),Te=c.useCallback(function(P){P.stopPropagation()},[]),Me=c.useMemo(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=P.refKey,le=O===void 0?"ref":O,me=P.onChange,Ce=P.onClick,ze=Et(P,Ls),Ie=an({accept:L,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ve($e(me,U)),onClick:ve($e(Ce,Te)),tabIndex:-1},le,E);return ge(ge({},Ie),ze)}},[E,n,l,U,i]);return ge(ge({},te),{},{isFocused:ee&&!i,getRootProps:Se,getInputProps:Me,rootRef:F,inputRef:E,open:ve(V)})}function Vs(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},rn),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ge(ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return ge({},rn);default:return e}}function ri(){}const si=Fe(o.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),li=Fe(o.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ks=Fe(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),Gs=Fe(o.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),ci=Fe(o.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),pi=Fe(o.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"})),di=Fe(o.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),Js=Fe(o.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),Xs=Fe(o.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Ys=Fe(o.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),ui=Fe(o.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"})),Zs=Fe(o.jsx("path",{d:"m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42M7 7h7v2H7zm10 10H7v-2h10zm0-4H7v-2h10z"})),Qs=Fe(o.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),mi=Fe([o.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),o.jsx("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")]),fi=Fe(o.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"})),el=e=>e.document.documents,tl=e=>e.document.pendingFiles,nl=e=>e.document.currentFolderName,il=e=>e.document.currentFolderHash,ol=gn([el],e=>e),al=gn([nl,il],(e,t)=>e||(t==="7d99a85daf66a0081a0e881630e6b39b"?"Dossier par défaut":"Dossier sans nom")),rl=({document:e,onClose:t})=>{const n=bi(),i=dt(p=>p.document.currentFolderHash),[a,r]=c.useState(null),[s,l]=c.useState(!0),[d,m]=c.useState(null),[v,h]=c.useState(1),[j,f]=c.useState(1),[u,C]=c.useState(0),[y,x]=c.useState(null);c.useEffect(()=>{l(!0),m(null),h(1),f(1);const p=setTimeout(()=>{C(3),l(!1)},1e3);return()=>clearTimeout(p)},[e]),c.useEffect(()=>{let p=!1;return(async()=>{try{const b=await fetch(`/api/cache/${e.id}`,{headers:{Accept:"application/json"}});if(!b.ok)return;const T=await b.json();p||r(T)}catch{}})(),()=>{p=!0}},[e]);const R=()=>{if(e.previewUrl){const p=window.document.createElement("a");p.href=e.previewUrl,p.download=e.name,p.click()}},g=e.mimeType.includes("pdf")||e.name.toLowerCase().endsWith(".pdf"),k=e.mimeType.startsWith("image/")||[".png",".jpg",".jpeg",".gif",".webp"].some(p=>e.name.toLowerCase().endsWith(p));return!g&&k?o.jsxs(Qe,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsx(_,{variant:"h6",children:e.name}),o.jsx(Vt,{onClick:t,title:"Fermer",children:o.jsx(li,{})})]})}),o.jsxs(tt,{dividers:!0,children:[o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[o.jsx(I,{}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(fi,{}),onClick:()=>f(p=>Math.max(p-.2,.2)),children:"Zoom -"}),o.jsxs(_,{variant:"body2",children:[Math.round(j*100),"%"]}),o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(mi,{}),onClick:()=>f(p=>Math.min(p+.2,4)),children:"Zoom +"})]})]}),o.jsx(I,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"auto",maxHeight:"70vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"grey.50"},children:e.previewUrl?o.jsx("img",{src:e.previewUrl,alt:e.name,style:{maxWidth:`${100*j}%`,maxHeight:`${100*j}%`,objectFit:"contain"},onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement de l'image"),l(!1)}}):o.jsxs(I,{textAlign:"center",p:4,children:[o.jsx(_,{variant:"h6",gutterBottom:!0,children:"Aperçu image"}),o.jsx(_,{variant:"body2",color:"text.secondary",children:"Le fichier a été uploadé avec succès."}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})}),o.jsxs(I,{sx:{mt:2},children:[o.jsx(_,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),o.jsxs(I,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Personnes"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4},defaultValue:p.firstName,onChange:b=>p.firstName=b.target.value}),o.jsx("input",{style:{padding:4},defaultValue:p.lastName,onChange:b=>p.lastName=b.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`pimg-${w}`,onClick:async()=>{if(i)try{x(`pimg-${w}`),await Xe(i,e.id,"person",{index:w,id:p.id,patch:{firstName:p.firstName,lastName:p.lastName}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"person",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.persons.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`pimg-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Adresses"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:220},defaultValue:p.street,onChange:b=>p.street=b.target.value}),o.jsx("input",{style:{padding:4,width:100},defaultValue:p.postalCode,onChange:b=>p.postalCode=b.target.value}),o.jsx("input",{style:{padding:4,width:160},defaultValue:p.city,onChange:b=>p.city=b.target.value}),o.jsx("input",{style:{padding:4,width:120},defaultValue:p.country||"",onChange:b=>p.country=b.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`aimg-${w}`,onClick:async()=>{if(i)try{x(`aimg-${w}`),await Xe(i,e.id,"address",{index:w,id:p.id,patch:{street:p.street,city:p.city,postalCode:p.postalCode,country:p.country}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"address",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.addresses.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`aimg-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Entreprises"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,children:o.jsx("input",{style:{padding:4,width:260},defaultValue:p.name,onChange:b=>p.name=b.target.value})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`cimg-${w}`,onClick:async()=>{if(i)try{x(`cimg-${w}`),await Xe(i,e.id,"company",{index:w,id:p.id,patch:{name:p.name}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"company",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.companies.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`cimg-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:t,children:"Fermer"}),o.jsx(X,{variant:"contained",startIcon:o.jsx(ci,{}),onClick:R,disabled:!e.previewUrl,children:"Télécharger"})]})]}):o.jsxs(Qe,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(ui,{color:"error"}),o.jsx(_,{variant:"h6",children:e.name})]}),o.jsx(Vt,{onClick:t,title:"Fermer",children:o.jsx(li,{})})]})}),o.jsxs(tt,{dividers:!0,children:[s&&o.jsxs(I,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:[o.jsx(yi,{}),o.jsx(_,{variant:"body2",sx:{ml:2},children:"Chargement du PDF..."})]}),d&&o.jsx(Kt,{severity:"error",sx:{mb:2},children:d}),!s&&!d&&o.jsxs(I,{children:[o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(Xs,{}),onClick:()=>h(p=>Math.max(p-1,1)),disabled:v<=1,children:"Précédent"}),o.jsxs(_,{variant:"body2",children:["Page ",v," sur ",u]}),o.jsx(X,{variant:"outlined",size:"small",endIcon:o.jsx(Ys,{}),onClick:()=>h(p=>Math.min(p+1,u)),disabled:v>=u,children:"Suivant"})]}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(fi,{}),onClick:()=>f(p=>Math.max(p-.2,.5)),children:"Zoom -"}),o.jsxs(_,{variant:"body2",children:[Math.round(j*100),"%"]}),o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(mi,{}),onClick:()=>f(p=>Math.min(p+.2,2)),children:"Zoom +"})]})]}),o.jsx(I,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"hidden",maxHeight:"70vh",display:"flex",justifyContent:"center",backgroundColor:"grey.50"},children:e.previewUrl?o.jsx(I,{sx:{width:"100%",height:"600px"},children:o.jsx("iframe",{src:`${e.previewUrl}#toolbar=1&navpanes=1&scrollbar=1&page=1&view=FitH`,width:"100%",height:"100%",style:{border:"none",transform:`scale(${j})`,transformOrigin:"top left",width:`${100/j}%`,height:`${600/j}px`},title:`Aperçu de ${e.name}`,onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement du PDF"),l(!1)}})}):o.jsx(I,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:o.jsxs(I,{textAlign:"center",children:[o.jsx(ui,{sx:{fontSize:64,color:"error.main",mb:2}}),o.jsx(_,{variant:"h6",gutterBottom:!0,children:"Aperçu PDF"}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:['Le fichier PDF "',e.name,'" a été uploadé avec succès.']}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})})}),o.jsxs(I,{sx:{mt:2},children:[o.jsx(_,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),o.jsxs(I,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Personnes"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4},placeholder:"Prénom",defaultValue:p.firstName,onChange:b=>p.firstName=b.target.value}),o.jsx("input",{style:{padding:4},placeholder:"Nom",defaultValue:p.lastName,onChange:b=>p.lastName=b.target.value}),o.jsx("input",{style:{padding:4,width:220},placeholder:"Description",defaultValue:p.description||"",onChange:b=>p.description=b.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`p-${w}`,onClick:async()=>{if(i)try{x(`p-${w}`),await Xe(i,e.id,"person",{index:w,id:p.id,patch:{firstName:p.firstName,lastName:p.lastName,description:p.description||""}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"person",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.persons.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`p-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Adresses"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:220},placeholder:"Rue",defaultValue:p.street,onChange:b=>p.street=b.target.value}),o.jsx("input",{style:{padding:4,width:100},placeholder:"CP",defaultValue:p.postalCode,onChange:b=>p.postalCode=b.target.value}),o.jsx("input",{style:{padding:4,width:160},placeholder:"Ville",defaultValue:p.city,onChange:b=>p.city=b.target.value}),o.jsx("input",{style:{padding:4,width:120},placeholder:"Pays",defaultValue:p.country||"",onChange:b=>p.country=b.target.value}),o.jsx("input",{style:{padding:4,width:220},placeholder:"Description",defaultValue:p.description||"",onChange:b=>p.description=b.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`a-${w}`,onClick:async()=>{if(i)try{x(`a-${w}`),await Xe(i,e.id,"address",{index:w,id:p.id,patch:{street:p.street,city:p.city,postalCode:p.postalCode,country:p.country,description:p.description||""}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"address",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.addresses.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`a-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Entreprises"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:260},placeholder:"Raison sociale",defaultValue:p.name,onChange:b=>p.name=b.target.value}),o.jsx("input",{style:{padding:4,width:240},placeholder:"Description",defaultValue:p.description||"",onChange:b=>p.description=b.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`c-${w}`,onClick:async()=>{if(i)try{x(`c-${w}`),await Xe(i,e.id,"company",{index:w,id:p.id,patch:{name:p.name,description:p.description||""}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"company",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.companies.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`c-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:t,children:"Fermer"}),o.jsx(X,{variant:"contained",startIcon:o.jsx(ci,{}),onClick:R,disabled:!e.previewUrl,children:"Télécharger"})]})]})},sl=c.memo(({doc:e,index:t,onPreview:n,onDelete:i,onReplace:a,onConfirmAddress:r,onReview:s,onOpenCorrections:l,isReviewing:d,totalCount:m})=>{const v=f=>f.startsWith("image/")?o.jsx(Js,{}):f==="application/pdf"?o.jsx(Sn,{}):f.startsWith("text/")?o.jsx(Zs,{}):o.jsx(Sn,{}),h=f=>{switch(f){case"completed":return o.jsx(so,{color:"success"});case"processing":return o.jsx(di,{color:"warning"});case"error":return o.jsx(ro,{color:"error"});default:return o.jsx(di,{color:"disabled"})}},j=f=>{switch(f){case"completed":return"success";case"processing":return"warning";case"error":return"error";default:return"default"}};return o.jsxs("div",{children:[o.jsxs(Xt,{children:[o.jsx(ji,{children:v(e.mimeType)}),o.jsx(Yt,{primary:o.jsxs(I,{children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,mb:1,children:[h(e.status),o.jsx(_,{variant:"subtitle1",sx:{wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",maxWidth:{xs:"200px",sm:"300px",md:"400px"}},children:(()=>{if(e.status==="processing"&&e.name===e.id){const u=["53985cbd461f137c847a13f6a4b82758e5920fb9ccc3ffea9d5d1ac99007e6ce.jpg","aceeb1161004f938d2abf1b88b216ef1ea68fad6141374a66efbdda9d796ac6e.jpg"].find(C=>C.startsWith(e.id));if(u)return u}return e.displayName||e.name})()})]}),o.jsxs(I,{display:"flex",gap:1,flexWrap:"wrap",children:[o.jsx(Ue,{label:e.status,size:"small",color:j(e.status)}),e.mimeType&&e.mimeType!=="application/octet-stream"&&o.jsx(Ue,{label:e.mimeType,size:"small",variant:"outlined"}),e.size>0&&o.jsx(Ue,{label:`${(e.size/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"}),d&&o.jsx(Ue,{color:"default",label:"Révision IA en cours…",size:"small"}),(()=>{const f=e,u=f?.metadata?.quality?.ollamaScore??f?.status?.review?.score,C=f?.status?.review?.avis,y=f?.status?.review?.durationMs;if(e.status==="completed"&&typeof u=="number"){const x=o.jsx(Ue,{color:"success",label:`IA: ${u.toFixed(2)}`,size:"small",variant:"outlined"}),R=`${C||""}${y?(C?" — ":"")+"durée: "+y+" ms":""}`;return R?o.jsx(Gt,{title:R,children:o.jsx("span",{children:x})}):x}return null})(),(()=>{const u=e?.status?.review?.corrections,C=Array.isArray(u)?u.length:0;return e.status==="completed"&&C>0?o.jsx(Ue,{color:"info",label:`Corrections: ${C}`,size:"small",variant:"outlined",onClick:()=>l(e,u)}):null})(),e.status==="completed"&&e?.suggestions?.needsReupload&&o.jsx(Ue,{color:"warning",label:"Qualité faible: remplacer",size:"small",onClick:()=>a(e)}),e.status==="completed"&&e?.suggestions?.needsAddressConfirmation&&o.jsx(Ue,{color:"info",label:"Adresse à confirmer",size:"small",onClick:()=>r(e)})]})]})}),o.jsxs(I,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[o.jsx(X,{size:"small",startIcon:o.jsx(Qs,{}),onClick:()=>n(e),disabled:e.status!=="completed",fullWidth:!0,children:"Aperçu"}),o.jsx(Gt,{title:"Analyse IA (Ollama): calcule un score de fiabilité, propose des corrections, ajoute un avis.",children:o.jsx("span",{children:o.jsx(X,{size:"small",onClick:()=>s(e),disabled:e.status!=="completed"||d,fullWidth:!0,children:d?"Révision IA…":"Révision IA"})})}),o.jsx(X,{size:"small",color:"error",onClick:()=>i(e.id),fullWidth:!0,children:"Supprimer"})]})]}),tS.document),s=dt(al),l=dt(ol),d=dt(tl),m=l;console.log("🏠 [UPLOAD_VIEW] Component loaded, documents count:",m.length);const[v,h]=c.useState(null),j=c.useCallback(S=>{e(Xi(S))},[e]),[f,u]=c.useState(!1),[C,y]=c.useState(!1),[x,R]=c.useState(""),[g,k]=c.useState(""),[p,w]=c.useState(""),[b,T]=c.useState(!1),[z,L]=c.useState({street:"",city:"",postalCode:"",country:"France"}),[H,B]=c.useState(null),[q,F]=c.useState(!1),[E,A]=c.useState(null),[G,te]=c.useState([]),[D,ee]=c.useState(null),[ie,Z]=c.useState({open:!1,severity:"success",message:""}),J=c.useCallback(S=>{try{const Q=(S.suggestions||{}).detectedAddress||{street:"",city:"",postalCode:"",country:"France"};L({street:Q.street||"",city:Q.city||"",postalCode:Q.postalCode||"",country:Q.country||"France"}),B(S),T(!0)}catch(M){console.error("❌ Préparation confirmation adresse:",M)}},[]),Y=c.useCallback(async()=>{if(!(!n||!H))try{await Yi(n,H.id,z),T(!1),await e(Re(n)).unwrap()}catch(S){console.error("❌ Confirmation adresse:",S)}},[n,H,z,e]),oe=c.useCallback(async S=>{if(n)try{ee(S.id),await Zi(n,S.id),await e(Re(n)).unwrap(),Z({open:!0,severity:"success",message:"Révision IA terminée: score et corrections mis à jour."})}catch(M){console.error("❌ Révision IA:",M),Z({open:!0,severity:"error",message:"Échec de la révision IA. Réessaie plus tard."})}finally{ee(null)}},[n,e]),ce=c.useCallback(S=>{const M=document.createElement("input");M.type="file",M.accept="image/*,application/pdf",M.onchange=async()=>{const Q=M.files&&M.files[0]||null;if(!(!Q||!n))try{await Qi(n,S.id),await e(yn({file:Q,folderHash:n})).unwrap(),await e(Re(n)).unwrap()}catch(ve){console.error("❌ Remplacement de document:",ve)}},M.click()},[n,e]),ue=c.useCallback(async()=>{try{const S=await fetch("/api/folders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:x||"Nouveau dossier",description:g||""})});if(!S.ok)throw new Error(await S.text());const M=await S.json();e(wn(M.folderHash)),await e(Re(M.folderHash)).unwrap(),console.log("✅ [UPLOAD] Nouveau dossier créé:",M.folderHash),y(!1),R(""),k("")}catch(S){console.error("❌ [UPLOAD] Erreur lors de la création du dossier:",S)}},[e]),je=c.useCallback(async()=>{if(p.trim())try{e(wn(p.trim())),await e(Re(p.trim())).unwrap(),console.log("✅ [UPLOAD] Dossier chargé:",p.trim()),u(!1),w("")}catch(S){console.error("❌ [UPLOAD] Erreur lors du chargement du dossier:",S)}},[e,p]),ne=c.useCallback(()=>{n&&(navigator.clipboard.writeText(n),console.log("📋 [UPLOAD] Hash du dossier copié:",n))},[n]),$=c.useCallback(async S=>{if(!n){console.error("❌ [UPLOAD] Aucun dossier sélectionné");return}const M=S.map(async Q=>{try{console.log(`📤 [UPLOAD] Upload de ${Q.name} dans le dossier ${n}`),await e(yn({file:Q,folderHash:n})).unwrap(),await e(Re(n)).unwrap(),console.log(`✅ [UPLOAD] ${Q.name} uploadé avec succès`)}catch(ve){console.error(`❌ [UPLOAD] Erreur lors du traitement de ${Q.name}:`,ve)}});await Promise.all(M)},[e,n]),{getRootProps:U,getInputProps:V,isDragActive:K}=_i({onDrop:$,accept:{"application/pdf":[".pdf"],"image/*":[".png",".jpg",".jpeg",".tiff"]},multiple:!0});return c.useEffect(()=>{(async()=>{if(n&&!(s&&s.length>0))try{const M=await fetch(`/api/folders/${n}/meta`);if(M.ok){const Q=await M.json();Q?.name&&window.dispatchEvent(new CustomEvent("4nk:setFolderName",{detail:Q.name}))}}catch{}})()},[n,s]),!a||i?o.jsx(kn,{children:o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"center",minHeight:240,children:[o.jsx(yi,{size:28,sx:{mr:2}}),o.jsx(_,{children:"Chargement des fichiers du dossier…"})]})}):o.jsxs(kn,{children:[o.jsx(_,{variant:"h4",gutterBottom:!0,children:"Analyse de documents IA"}),o.jsx(I,{sx:{mb:3,p:2,bgcolor:"grey.50",borderRadius:1,border:"1px solid",borderColor:"grey.200"},children:o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:2,children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:2,children:[o.jsx(_,{variant:"h6",color:"text.secondary",children:"Dossier actuel :"}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(_,{variant:"body1",sx:{fontFamily:"monospace",bgcolor:"grey.100",px:1,py:.5,borderRadius:1,fontSize:"0.875rem"},children:s||(n?"Dossier sans nom":"Aucun dossier sélectionné")}),n&&o.jsx(Gt,{title:"Copier le hash du dossier",children:o.jsx(Vt,{size:"small",onClick:ne,children:o.jsx(Gs,{fontSize:"small"})})})]})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{variant:"outlined",startIcon:o.jsx(si,{}),onClick:()=>y(!0),size:"small",children:"CRÉER UN DOSSIER"}),o.jsx(X,{variant:"outlined",startIcon:o.jsx(pi,{}),onClick:()=>u(!0),size:"small",children:"Charger dossier"})]})]})}),o.jsxs(xt,{...U(),sx:{p:{xs:2,sm:4},textAlign:"center",cursor:"pointer",border:"2px dashed",borderColor:K?"primary.main":"grey.300",bgcolor:K?"action.hover":"background.paper","&:hover":{borderColor:"primary.main",bgcolor:"action.hover"}},children:[o.jsx("input",{...V()}),o.jsx(Ks,{sx:{fontSize:{xs:36,sm:48},color:"primary.main",mb:2}}),o.jsx(_,{variant:"h6",gutterBottom:!0,sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"}},children:K?"Déposez les fichiers ici...":"Glissez-déposez vos documents ou cliquez pour sélectionner"}),o.jsx(_,{variant:"body2",color:"text.secondary",sx:{fontSize:{xs:"0.75rem",sm:"0.875rem"}},children:"Formats acceptés: PDF, PNG, JPG, JPEG, TIFF"})]}),t&&o.jsx(Kt,{severity:"error",sx:{mt:2},children:t}),(m.length>0||r)&&o.jsxs(I,{sx:{mt:3},children:[o.jsxs(_,{variant:"h6",gutterBottom:!0,children:["Documents analysés (",m.length,")"]}),o.jsx(no,{children:o.jsxs(Jt,{children:[m.map((S,M)=>o.jsx(sl,{doc:S,index:M,onPreview:h,onDelete:j,onReplace:ce,onConfirmAddress:J,onReview:oe,onOpenCorrections:(Q,ve)=>{A(Q),te(ve),F(!0)},isReviewing:D===S.id,totalCount:m.length},`${S.id}-${M}`)),r&&o.jsx(o.Fragment,{children:(d.length>0?d:new Array(2).fill(null)).map((S,M)=>o.jsxs("div",{children:[o.jsxs(Xt,{children:[o.jsx(ji,{children:o.jsx(Ze,{variant:"circular",width:24,height:24})}),o.jsx(Yt,{primary:o.jsxs(I,{children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,mb:1,children:o.jsx(Ze,{variant:"rounded",width:180,height:18})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(Ze,{variant:"rounded",width:60,height:24}),o.jsx(Ze,{variant:"rounded",width:100,height:24})]})]})}),o.jsxs(I,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[o.jsx(Ze,{variant:"rounded",width:84,height:32}),o.jsx(Ze,{variant:"rounded",width:84,height:32})]})]}),o.jsx(St,{})]},`sk-${M}`))})]})})]}),v&&o.jsx(rl,{document:v,onClose:()=>h(null)}),o.jsxs(Qe,{open:f,onClose:()=>u(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(pi,{}),"Charger un dossier existant"]})}),o.jsxs(tt,{children:[o.jsx(_,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Entrez le hash du dossier que vous souhaitez charger. Le hash est un identifiant unique de 32 caractères."}),o.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Hash du dossier",placeholder:"ex: 0e7ae08a4f14f3154be1bd69d5617c74",fullWidth:!0,variant:"outlined",value:p,onChange:S=>w(S.target.value),sx:{fontFamily:"monospace"},helperText:"Le hash doit contenir exactement 32 caractères hexadécimaux"})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>u(!1),children:"Annuler"}),o.jsx(X,{onClick:je,variant:"contained",disabled:!p.trim()||p.trim().length!==32,children:"Charger le dossier"})]})]}),o.jsxs(Qe,{open:C,onClose:()=>y(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(si,{}),"Créer un nouveau dossier"]})}),o.jsxs(tt,{children:[o.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Nom du dossier",fullWidth:!0,variant:"outlined",value:x,onChange:S=>R(S.target.value)}),o.jsx(Ke,{margin:"dense",label:"Description",fullWidth:!0,multiline:!0,minRows:2,variant:"outlined",value:g,onChange:S=>k(S.target.value)})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>y(!1),children:"Annuler"}),o.jsx(X,{onClick:ue,variant:"contained",disabled:!x.trim(),children:"Créer"})]})]}),o.jsxs(Qe,{open:b,onClose:()=>T(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:"Confirmer l'adresse détectée"}),o.jsxs(tt,{children:[o.jsx(Ke,{margin:"dense",label:"Rue",fullWidth:!0,variant:"outlined",value:z.street,onChange:S=>L({...z,street:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Code postal",fullWidth:!0,variant:"outlined",value:z.postalCode,onChange:S=>L({...z,postalCode:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Ville",fullWidth:!0,variant:"outlined",value:z.city,onChange:S=>L({...z,city:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Pays",fullWidth:!0,variant:"outlined",value:z.country,onChange:S=>L({...z,country:S.target.value})})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>T(!1),children:"Annuler"}),o.jsx(X,{variant:"contained",onClick:Y,children:"Confirmer"})]})]}),o.jsxs(Qe,{open:q,onClose:()=>F(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:"Corrections proposées par l'IA"}),o.jsxs(tt,{children:[E?o.jsxs(_,{variant:"subtitle2",sx:{mb:1},children:["Document: ",E.displayName||E.name]}):null,Array.isArray(G)&&G.length>0?o.jsx(Jt,{children:G.map((S,M)=>o.jsx(Xt,{alignItems:"flex-start",children:o.jsx(Yt,{primary:S?.path?String(S.path):`Correction ${M+1}`,secondary:o.jsxs(o.Fragment,{children:[o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Valeur: ",typeof S?.value=="object"?JSON.stringify(S.value):String(S?.value??"")]}),typeof S?.confidence=="number"&&o.jsxs(_,{variant:"caption",color:"text.secondary",children:["Confiance: ",S.confidence.toFixed?S.confidence.toFixed(2):S.confidence]})]})})},`corr-${M}`))}):o.jsx(_,{variant:"body2",color:"text.secondary",children:"Aucune correction disponible."})]}),o.jsx(et,{children:o.jsx(X,{onClick:()=>F(!1),children:"Fermer"})})]}),o.jsx(Lr,{open:ie.open,autoHideDuration:3e3,onClose:()=>Z({...ie,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:o.jsx(Kt,{onClose:()=>Z({...ie,open:!1}),severity:ie.severity,variant:"filled",sx:{width:"100%"},children:ie.message})})]})}export{xl as default}; diff --git a/public/assets/UploadView-C9SKEcCT.js b/public/assets/UploadView-C9SKEcCT.js new file mode 100644 index 0000000..9e642aa --- /dev/null +++ b/public/assets/UploadView-C9SKEcCT.js @@ -0,0 +1,43 @@ +import{g as xi,c as de,r as c,u as jt,j as o,a as he,b as be,s as W,d as ye,e as Vi,m as ke,f as fe,h as xe,i as vi,k as sn,T as _,l as ln,n as He,o as It,p as Ki,q as Gi,t as gi,v as hi,w as bn,R as Ji,x as bi,y as dt,B as I,z as Xe,A as Re,C as Ye,D as yi,E as Xi,F as Yi,G as Zi,H as Qi,I as yn,J as wn}from"./index-BkuOAsyQ.js";import{u as Be,o as We,a as it,d as wi,i as Ut,c as Fe,b as cn,e as pe,f as De,g as _t,P as xt,h as eo,j as to,I as Vt,B as X,A as Kt,L as kn,C as no,k as Ue}from"./Layout-HUfQIbZm.js";import{T as io,g as jn,r as oo,u as Cn}from"./utils-DOxjq0mC.js";import{g as Ft,P as ao,G as ki,T as Gt,D as Sn}from"./Description-rLhKmJBh.js";import{i as Mt,L as Jt,a as Xt,b as Yt}from"./ListItemText-siZDedtT.js";import{L as ji}from"./ListItemIcon-BghqebyC.js";import{E as ro,C as so}from"./Error-BFlYSo8E.js";var Ot={exports:{}},Lt,Rn;function lo(){if(Rn)return Lt;Rn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lt=e,Lt}var Nt,Pn;function co(){if(Pn)return Nt;Pn=1;var e=lo();function t(){}function n(){}return n.resetWarningCache=t,Nt=function(){function i(s,l,d,m,v,h){if(h!==e){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}i.isRequired=i;function a(){return i}var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},Nt}var En;function po(){return En||(En=1,Ot.exports=co()()),Ot.exports}var uo=po();const se=xi(uo);function mo(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function fo(e){return parseFloat(e)}function In(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function xo(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function vo(e,t){if(!e)return t;function n(s,l){const d={};return Object.keys(l).forEach(m=>{xo(m,l[m])&&typeof s[m]=="function"&&(d[m]=(...v)=>{s[m](...v),l[m](...v)})}),d}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,d=typeof e=="function"?e({...s,...l}):e,m=de(s?.className,l?.className,d?.className),v=n(d,l);return{...l,...d,...v,...!!m&&{className:m},...l?.style&&d?.style&&{style:{...l.style,...d.style}},...l?.sx&&d?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const i=t,a=n(e,i),r=de(i?.className,e?.className);return{...t,...e,...a,...!!r&&{className:r},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function gt(e){return parseInt(e,10)||0}const go={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ho(e){for(const t in e)return!1;return!0}function Fn(e){return ho(e)||e.outerHeightStyle===0&&!e.overflowing}const bo=c.forwardRef(function(t,n){const{onChange:i,maxRows:a,minRows:r=1,style:s,value:l,...d}=t,{current:m}=c.useRef(l!=null),v=c.useRef(null),h=Be(n,v),j=c.useRef(null),f=c.useRef(null),u=c.useCallback(()=>{const g=v.current,k=f.current;if(!g||!k)return;const w=We(g).getComputedStyle(g);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=w.width,k.value=g.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const b=w.boxSizing,T=gt(w.paddingBottom)+gt(w.paddingTop),z=gt(w.borderBottomWidth)+gt(w.borderTopWidth),L=k.scrollHeight;k.value="x";const H=k.scrollHeight;let B=L;r&&(B=Math.max(Number(r)*H,B)),a&&(B=Math.min(Number(a)*H,B)),B=Math.max(B,H);const q=B+(b==="border-box"?T+z:0),F=Math.abs(B-L)<=1;return{outerHeightStyle:q,overflowing:F}},[a,r,t.placeholder]),C=it(()=>{const g=v.current,k=u();if(!g||!k||Fn(k))return!1;const p=k.outerHeightStyle;return j.current!=null&&j.current!==p}),y=c.useCallback(()=>{const g=v.current,k=u();if(!g||!k||Fn(k))return;const p=k.outerHeightStyle;j.current!==p&&(j.current=p,g.style.height=`${p}px`),g.style.overflow=k.overflowing?"hidden":""},[u]),x=c.useRef(-1);jt(()=>{const g=wi(y),k=v?.current;if(!k)return;const p=We(k);p.addEventListener("resize",g);let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(()=>{C()&&(w.unobserve(k),cancelAnimationFrame(x.current),y(),x.current=requestAnimationFrame(()=>{w.observe(k)}))}),w.observe(k)),()=>{g.clear(),cancelAnimationFrame(x.current),p.removeEventListener("resize",g),w&&w.disconnect()}},[u,y,C]),jt(()=>{y()});const R=g=>{m||y();const k=g.target,p=k.value.length,w=k.value.endsWith(` +`),b=k.selectionStart===p;w&&b&&k.setSelectionRange(p,p),i&&i(g)};return o.jsxs(c.Fragment,{children:[o.jsx("textarea",{value:l,onChange:R,ref:h,rows:r,style:s,...d}),o.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...go.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function rt({props:e,states:t,muiFormControl:n}){return t.reduce((i,a)=>(i[a]=e[a],n&&typeof e[a]>"u"&&(i[a]=n[a]),i),{})}const pn=c.createContext(void 0);function st(){return c.useContext(pn)}function An(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ct(e,t=!1){return e&&(An(e.value)&&e.value!==""||t&&An(e.defaultValue)&&e.defaultValue!=="")}function yo(e){return e.startAdornment}function wo(e){return be("MuiInputBase",e)}const ot=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Dn;const At=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Dt=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ko=e=>{const{classes:t,color:n,disabled:i,error:a,endAdornment:r,focused:s,formControl:l,fullWidth:d,hiddenLabel:m,multiline:v,readOnly:h,size:j,startAdornment:f,type:u}=e,C={root:["root",`color${fe(n)}`,i&&"disabled",a&&"error",d&&"fullWidth",s&&"focused",l&&"formControl",j&&j!=="medium"&&`size${fe(j)}`,v&&"multiline",f&&"adornedStart",r&&"adornedEnd",m&&"hiddenLabel",h&&"readOnly"],input:["input",i&&"disabled",u==="search"&&"inputTypeSearch",v&&"inputMultiline",j==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",f&&"inputAdornedStart",r&&"inputAdornedEnd",h&&"readOnly"]};return xe(C,wo,t)},Tt=W("div",{name:"MuiInputBase",slot:"Root",overridesResolver:At})(ke(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),zt=W("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dt})(ke(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ot.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ot.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:r})=>!r.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:r})=>r.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Tn=Vi({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:r,autoFocus:s,className:l,color:d,components:m={},componentsProps:v={},defaultValue:h,disabled:j,disableInjectingGlobalStyles:f,endAdornment:u,error:C,fullWidth:y=!1,id:x,inputComponent:R="input",inputProps:g={},inputRef:k,margin:p,maxRows:w,minRows:b,multiline:T=!1,name:z,onBlur:L,onChange:H,onClick:B,onFocus:q,onKeyDown:F,onKeyUp:E,placeholder:A,readOnly:G,renderSuffix:te,rows:D,size:ee,slotProps:ie={},slots:Z={},startAdornment:J,type:Y="text",value:oe,...ce}=i,ue=g.value!=null?g.value:oe,{current:je}=c.useRef(ue!=null),ne=c.useRef(),$=c.useCallback(re=>{},[]),U=Be(ne,k,g.ref,$),[V,K]=c.useState(!1),S=st(),M=rt({props:i,muiFormControl:S,states:["color","disabled","error","hiddenLabel","size","required","filled"]});M.focused=S?S.focused:V,c.useEffect(()=>{!S&&j&&V&&(K(!1),L&&L())},[S,j,V,L]);const Q=S&&S.onFilled,ve=S&&S.onEmpty,Ee=c.useCallback(re=>{Ct(re)?Q&&Q():ve&&ve()},[Q,ve]);jt(()=>{je&&Ee({value:ue})},[ue,Ee,je]);const Ae=re=>{q&&q(re),g.onFocus&&g.onFocus(re),S&&S.onFocus?S.onFocus(re):K(!0)},Pe=re=>{L&&L(re),g.onBlur&&g.onBlur(re),S&&S.onBlur?S.onBlur(re):K(!1)},Se=(re,...Oe)=>{if(!je){const qe=re.target||ne.current;if(qe==null)throw new Error(vi(1));Ee({value:qe.value})}g.onChange&&g.onChange(re,...Oe),H&&H(re,...Oe)};c.useEffect(()=>{Ee(ne.current)},[]);const Te=re=>{ne.current&&re.currentTarget===re.target&&ne.current.focus(),B&&B(re)};let Me=R,P=g;T&&Me==="input"&&(D?P={type:void 0,minRows:D,maxRows:D,...P}:P={type:void 0,maxRows:w,minRows:b,...P},Me=bo);const O=re=>{Ee(re.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};c.useEffect(()=>{S&&S.setAdornedStart(!!J)},[S,J]);const le={...i,color:M.color||"primary",disabled:M.disabled,endAdornment:u,error:M.error,focused:M.focused,formControl:S,fullWidth:y,hiddenLabel:M.hiddenLabel,multiline:T,size:M.size,startAdornment:J,type:Y},me=ko(le),Ce=Z.root||m.Root||Tt,ze=ie.root||v.root||{},Ie=Z.input||m.Input||zt;return P={...P,...ie.input??v.input},o.jsxs(c.Fragment,{children:[!f&&typeof Tn=="function"&&(Dn||(Dn=o.jsx(Tn,{}))),o.jsxs(Ce,{...ze,ref:n,onClick:Te,...ce,...!Ut(Ce)&&{ownerState:{...le,...ze.ownerState}},className:de(me.root,ze.className,l,G&&"MuiInputBase-readOnly"),children:[J,o.jsx(pn.Provider,{value:null,children:o.jsx(Ie,{"aria-invalid":M.error,"aria-describedby":a,autoComplete:r,autoFocus:s,defaultValue:h,disabled:M.disabled,id:x,onAnimationStart:O,name:z,placeholder:A,readOnly:G,required:M.required,rows:D,value:ue,onKeyDown:F,onKeyUp:E,type:Y,...P,...!Ut(Ie)&&{as:Me,ownerState:{...le,...P.ownerState}},ref:U,className:de(me.input,P.className,G&&"MuiInputBase-readOnly"),onBlur:Pe,onChange:Se,onFocus:Ae})}),u,te?te({...M,startAdornment:J}):null]})]})});function jo(e){return be("MuiInput",e)}const lt={...ot,...he("MuiInput",["root","underline","input"])};function Co(e){return be("MuiOutlinedInput",e)}const Ne={...ot,...he("MuiOutlinedInput",["root","notchedOutline","input"])};function So(e){return be("MuiFilledInput",e)}const Ve={...ot,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Ro=Fe(o.jsx("path",{d:"M7 10l5 5 5-5z"})),Po={entering:{opacity:1},entered:{opacity:1}},Zt=c.forwardRef(function(t,n){const i=cn(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:l,easing:d,in:m,onEnter:v,onEntered:h,onEntering:j,onExit:f,onExited:u,onExiting:C,style:y,timeout:x=a,TransitionComponent:R=io,...g}=t,k=c.useRef(null),p=Be(k,Ft(l),n),w=F=>E=>{if(F){const A=k.current;E===void 0?F(A):F(A,E)}},b=w(j),T=w((F,E)=>{oo(F);const A=jn({style:y,timeout:x,easing:d},{mode:"enter"});F.style.webkitTransition=i.transitions.create("opacity",A),F.style.transition=i.transitions.create("opacity",A),v&&v(F,E)}),z=w(h),L=w(C),H=w(F=>{const E=jn({style:y,timeout:x,easing:d},{mode:"exit"});F.style.webkitTransition=i.transitions.create("opacity",E),F.style.transition=i.transitions.create("opacity",E),f&&f(F)}),B=w(u),q=F=>{r&&r(k.current,F)};return o.jsx(R,{appear:s,in:m,nodeRef:k,onEnter:T,onEntered:z,onEntering:b,onExit:H,onExited:B,onExiting:L,addEndListener:q,timeout:x,...g,children:(F,{ownerState:E,...A})=>c.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!m?"hidden":void 0,...Po[F],...y,...l.props.style},ref:p,...A})})});function Eo(e){return be("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const Io=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},Eo,t)},Fo=W("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ci=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiBackdrop"}),{children:a,className:r,component:s="div",invisible:l=!1,open:d,components:m={},componentsProps:v={},slotProps:h={},slots:j={},TransitionComponent:f,transitionDuration:u,...C}=i,y={...i,component:s,invisible:l},x=Io(y),R={transition:f,root:m.Root,...j},g={...v,...h},k={component:s,slots:R,slotProps:g},[p,w]=pe("root",{elementType:Fo,externalForwardedProps:k,className:de(x.root,r),ownerState:y}),[b,T]=pe("transition",{elementType:Zt,externalForwardedProps:k,ownerState:y});return o.jsx(b,{in:d,timeout:u,...C,...T,children:o.jsx(p,{"aria-hidden":!0,...w,classes:x,ref:n,children:a})})});function zn(e){return e.substring(2).toLowerCase()}function Ao(e,t){return t.documentElement.clientWidth(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const v=Be(Ft(t),l),h=it(u=>{const C=m.current;m.current=!1;const y=De(l.current);if(!d.current||!l.current||"clientX"in u&&Ao(u,y))return;if(s.current){s.current=!1;return}let x;u.composedPath?x=u.composedPath().includes(l.current):x=!y.documentElement.contains(u.target)||l.current.contains(u.target),!x&&(n||!C)&&a(u)}),j=u=>C=>{m.current=!0;const y=t.props[u];y&&y(C)},f={ref:v};return r!==!1&&(f[r]=j(r)),c.useEffect(()=>{if(r!==!1){const u=zn(r),C=De(l.current),y=()=>{s.current=!0};return C.addEventListener(u,h),C.addEventListener("touchmove",y),()=>{C.removeEventListener(u,h),C.removeEventListener("touchmove",y)}}},[h,r]),i!==!1&&(f[i]=j(i)),c.useEffect(()=>{if(i!==!1){const u=zn(i),C=De(l.current);return C.addEventListener(u,h),()=>{C.removeEventListener(u,h)}}},[h,i]),c.cloneElement(t,f)}function Si(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function To(e){const t=De(e);return t.body===e?We(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ut(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mn(e){return parseInt(We(e).getComputedStyle(e).paddingRight,10)||0}function zo(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function On(e,t,n,i,a){const r=[t,n,...i];[].forEach.call(e.children,s=>{const l=!r.includes(s),d=!zo(s);l&&d&&ut(s,a)})}function $t(e,t){let n=-1;return e.some((i,a)=>t(i)?(n=a,!0):!1),n}function Mo(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(To(i)){const s=Si(We(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Mn(i)+s}px`;const l=De(i).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Mn(d)+s}px`})}let r;if(i.parentNode instanceof DocumentFragment)r=De(i).body;else{const s=i.parentElement,l=We(i);r=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:i}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:s,property:l})=>{r?s.style.setProperty(l,r):s.style.removeProperty(l)})}}function Oo(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Lo{constructor(){this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&ut(t.modalRef,!1);const a=Oo(n);On(n,t.mount,t.modalRef,a,!0);const r=$t(this.containers,s=>s.container===n);return r!==-1?(this.containers[r].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),i)}mount(t,n){const i=$t(this.containers,r=>r.modals.includes(t)),a=this.containers[i];a.restore||(a.restore=Mo(a,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const a=$t(this.containers,s=>s.modals.includes(t)),r=this.containers[a];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(i,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&ut(t.modalRef,n),On(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=r.modals[r.modals.length-1];s.modalRef&&ut(s.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const No=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $o(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Wo(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Ho(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Wo(e))}function Bo(e){const t=[],n=[];return Array.from(e.querySelectorAll(No)).forEach((i,a)=>{const r=$o(i);r===-1||!Ho(i)||(r===0?t.push(i):n.push({documentOrder:a,tabIndex:r,node:i}))}),n.sort((i,a)=>i.tabIndex===a.tabIndex?i.documentOrder-a.documentOrder:i.tabIndex-a.tabIndex).map(i=>i.node).concat(t)}function qo(){return!0}function Uo(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:a=!1,getTabbable:r=Bo,isEnabled:s=qo,open:l}=e,d=c.useRef(!1),m=c.useRef(null),v=c.useRef(null),h=c.useRef(null),j=c.useRef(null),f=c.useRef(!1),u=c.useRef(null),C=Be(Ft(t),u),y=c.useRef(null);c.useEffect(()=>{!l||!u.current||(f.current=!n)},[n,l]),c.useEffect(()=>{if(!l||!u.current)return;const g=De(u.current);return u.current.contains(g.activeElement)||(u.current.hasAttribute("tabIndex")||u.current.setAttribute("tabIndex","-1"),f.current&&u.current.focus()),()=>{a||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[l]),c.useEffect(()=>{if(!l||!u.current)return;const g=De(u.current),k=b=>{y.current=b,!(i||!s()||b.key!=="Tab")&&g.activeElement===u.current&&b.shiftKey&&(d.current=!0,v.current&&v.current.focus())},p=()=>{const b=u.current;if(b===null)return;if(!g.hasFocus()||!s()||d.current){d.current=!1;return}if(b.contains(g.activeElement)||i&&g.activeElement!==m.current&&g.activeElement!==v.current)return;if(g.activeElement!==j.current)j.current=null;else if(j.current!==null)return;if(!f.current)return;let T=[];if((g.activeElement===m.current||g.activeElement===v.current)&&(T=r(u.current)),T.length>0){const z=!!(y.current?.shiftKey&&y.current?.key==="Tab"),L=T[0],H=T[T.length-1];typeof L!="string"&&typeof H!="string"&&(z?H.focus():L.focus())}else b.focus()};g.addEventListener("focusin",p),g.addEventListener("keydown",k,!0);const w=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&p()},50);return()=>{clearInterval(w),g.removeEventListener("focusin",p),g.removeEventListener("keydown",k,!0)}},[n,i,a,s,l,r]);const x=g=>{h.current===null&&(h.current=g.relatedTarget),f.current=!0,j.current=g.target;const k=t.props.onFocus;k&&k(g)},R=g=>{h.current===null&&(h.current=g.relatedTarget),f.current=!0};return o.jsxs(c.Fragment,{children:[o.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:m,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:C,onFocus:x}),o.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:v,"data-testid":"sentinelEnd"})]})}function _o(e){return typeof e=="function"?e():e}function Vo(e){return e?e.props.hasOwnProperty("in"):!1}const Ln=()=>{},ht=new Lo;function Ko(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:a=!1,onTransitionEnter:r,onTransitionExited:s,children:l,onClose:d,open:m,rootRef:v}=e,h=c.useRef({}),j=c.useRef(null),f=c.useRef(null),u=Be(f,v),[C,y]=c.useState(!m),x=Vo(l);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const g=()=>De(j.current),k=()=>(h.current.modalRef=f.current,h.current.mount=j.current,h.current),p=()=>{ht.mount(k(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},w=it(()=>{const E=_o(t)||g().body;ht.add(k(),E),f.current&&p()}),b=()=>ht.isTopModal(k()),T=it(E=>{j.current=E,E&&(m&&b()?p():f.current&&ut(f.current,R))}),z=c.useCallback(()=>{ht.remove(k(),R)},[R]);c.useEffect(()=>()=>{z()},[z]),c.useEffect(()=>{m?w():(!x||!a)&&z()},[m,z,x,a,w]);const L=E=>A=>{E.onKeyDown?.(A),!(A.key!=="Escape"||A.which===229||!b())&&(n||(A.stopPropagation(),d&&d(A,"escapeKeyDown")))},H=E=>A=>{E.onClick?.(A),A.target===A.currentTarget&&d&&d(A,"backdropClick")};return{getRootProps:(E={})=>{const A=_t(e);delete A.onTransitionEnter,delete A.onTransitionExited;const G={...A,...E};return{role:"presentation",...G,onKeyDown:L(G),ref:u}},getBackdropProps:(E={})=>{const A=E;return{"aria-hidden":!0,...A,onClick:H(A),open:m}},getTransitionProps:()=>{const E=()=>{y(!1),r&&r()},A=()=>{y(!0),s&&s(),a&&z()};return{onEnter:In(E,l?.props.onEnter??Ln),onExited:In(A,l?.props.onExited??Ln)}},rootRef:u,portalRef:T,isTopModal:b,exited:C,hasTransition:x}}function Go(e){return be("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const Jo=e=>{const{open:t,exited:n,classes:i}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Go,i)},Xo=W("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Yo=W(Ci,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ri=c.forwardRef(function(t,n){const i=ye({name:"MuiModal",props:t}),{BackdropComponent:a=Yo,BackdropProps:r,classes:s,className:l,closeAfterTransition:d=!1,children:m,container:v,component:h,components:j={},componentsProps:f={},disableAutoFocus:u=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:R=!1,disableScrollLock:g=!1,hideBackdrop:k=!1,keepMounted:p=!1,onClose:w,onTransitionEnter:b,onTransitionExited:T,open:z,slotProps:L={},slots:H={},theme:B,...q}=i,F={...i,closeAfterTransition:d,disableAutoFocus:u,disableEnforceFocus:C,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:R,disableScrollLock:g,hideBackdrop:k,keepMounted:p},{getRootProps:E,getBackdropProps:A,getTransitionProps:G,portalRef:te,isTopModal:D,exited:ee,hasTransition:ie}=Ko({...F,rootRef:n}),Z={...F,exited:ee},J=Jo(Z),Y={};if(m.props.tabIndex===void 0&&(Y.tabIndex="-1"),ie){const{onEnter:$,onExited:U}=G();Y.onEnter=$,Y.onExited=U}const oe={slots:{root:j.Root,backdrop:j.Backdrop,...H},slotProps:{...f,...L}},[ce,ue]=pe("root",{ref:n,elementType:Xo,externalForwardedProps:{...oe,...q,component:h},getSlotProps:E,ownerState:Z,className:de(l,J?.root,!Z.open&&Z.exited&&J?.hidden)}),[je,ne]=pe("backdrop",{ref:r?.ref,elementType:a,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:$=>A({...$,onClick:U=>{$?.onClick&&$.onClick(U)}}),className:de(r?.className,J?.backdrop),ownerState:Z});return!p&&!z&&(!ie||ee)?null:o.jsx(ao,{ref:te,container:v,disablePortal:x,children:o.jsxs(ce,{...ue,children:[!k&&a?o.jsx(je,{...ne}):null,o.jsx(Uo,{disableEnforceFocus:C,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:D,open:z,children:c.cloneElement(m,Y)})]})})});function Zo(e){return be("MuiDialog",e)}const Wt=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Pi=c.createContext({}),Qo=W(Ci,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ea=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:a,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(i))}`,a&&"paperFullWidth",r&&"paperFullScreen"]};return xe(s,Zo,t)},ta=W(Ri,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),na=W("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),ia=W(xt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ke(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wt.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Qe=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialog"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:m,BackdropProps:v,children:h,className:j,disableEscapeKeyDown:f=!1,fullScreen:u=!1,fullWidth:C=!1,maxWidth:y="sm",onClick:x,onClose:R,open:g,PaperComponent:k=xt,PaperProps:p={},scroll:w="paper",slots:b={},slotProps:T={},TransitionComponent:z=Zt,transitionDuration:L=r,TransitionProps:H,...B}=i,q={...i,disableEscapeKeyDown:f,fullScreen:u,fullWidth:C,maxWidth:y,scroll:w},F=ea(q),E=c.useRef(),A=K=>{E.current=K.target===K.currentTarget},G=K=>{x&&x(K),E.current&&(E.current=null,R&&R(K,"backdropClick"))},te=sn(l),D=c.useMemo(()=>({titleId:te}),[te]),ee={transition:z,...b},ie={transition:H,paper:p,backdrop:v,...T},Z={slots:ee,slotProps:ie},[J,Y]=pe("root",{elementType:ta,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q,className:de(F.root,j),ref:n}),[oe,ce]=pe("backdrop",{elementType:Qo,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q}),[ue,je]=pe("paper",{elementType:ia,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q,className:de(F.paper,p.className)}),[ne,$]=pe("container",{elementType:na,externalForwardedProps:Z,ownerState:q,className:F.container}),[U,V]=pe("transition",{elementType:Zt,externalForwardedProps:Z,ownerState:q,additionalProps:{appear:!0,in:g,timeout:L,role:"presentation"}});return o.jsx(J,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:L,as:m,...ce}},disableEscapeKeyDown:f,onClose:R,open:g,onClick:G,...Y,...B,children:o.jsx(U,{...V,children:o.jsx(ne,{onMouseDown:A,...$,children:o.jsx(ue,{as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":te,"aria-modal":d,...je,children:o.jsx(Pi.Provider,{value:D,children:h})})})})})});function oa(e){return be("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const aa=e=>{const{classes:t,disableSpacing:n}=e;return xe({root:["root",!n&&"spacing"]},oa,t)},ra=W("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),et=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:r=!1,...s}=i,l={...i,disableSpacing:r},d=aa(l);return o.jsx(ra,{className:de(d.root,a),ownerState:l,ref:n,...s})});function sa(e){return be("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);function la(e){return be("MuiDialogTitle",e)}const ca=he("MuiDialogTitle",["root"]),pa=e=>{const{classes:t,dividers:n}=e;return xe({root:["root",n&&"dividers"]},sa,t)},da=W("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ke(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${ca.root} + &`]:{paddingTop:0}}}]}))),tt=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogContent"}),{className:a,dividers:r=!1,...s}=i,l={...i,dividers:r},d=pa(l);return o.jsx(da,{className:de(d.root,a),ownerState:l,ref:n,...s})}),ua=e=>{const{classes:t}=e;return xe({root:["root"]},la,t)},ma=W(_,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),nt=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogTitle"}),{className:a,id:r,...s}=i,l=i,d=ua(l),{titleId:m=r}=c.useContext(Pi);return o.jsx(ma,{component:"h2",className:de(d.root,a),ownerState:l,ref:n,variant:"h6",id:r??m,...s})});function fa(e){return be("MuiDivider",e)}he("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xa=e=>{const{absolute:t,children:n,classes:i,flexItem:a,light:r,orientation:s,textAlign:l,variant:d}=e;return xe({root:["root",t&&"absolute",d,r&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},fa,i)},va=W("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ke(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),ga=W("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ke(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),St=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDivider"}),{absolute:a=!1,children:r,className:s,orientation:l="horizontal",component:d=r||l==="vertical"?"div":"hr",flexItem:m=!1,light:v=!1,role:h=d!=="hr"?"separator":void 0,textAlign:j="center",variant:f="fullWidth",...u}=i,C={...i,absolute:a,component:d,flexItem:m,light:v,orientation:l,role:h,textAlign:j,variant:f},y=xa(C);return o.jsx(va,{as:d,className:de(y.root,s),role:h,ref:n,ownerState:C,"aria-orientation":h==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...u,children:r?o.jsx(ga,{className:y.wrapper,ownerState:C,children:r}):null})});St&&(St.muiSkipListHighlight=!0);const ha=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:a,size:r,hiddenLabel:s,multiline:l}=e,d={root:["root",!n&&"underline",i&&"adornedStart",a&&"adornedEnd",r==="small"&&`size${fe(r)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},m=xe(d,So,t);return{...t,...m}},ba=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...At(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ve.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ve.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ve.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ve.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ve.disabled}, .${Ve.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ve.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(It()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ya=W(zt,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dt})(ke(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),un=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,hiddenLabel:d,inputComponent:m="input",multiline:v=!1,slotProps:h,slots:j={},type:f="text",...u}=i,C={...i,disableUnderline:a,fullWidth:l,inputComponent:m,multiline:v,type:f},y=ha(i),x={root:{ownerState:C},input:{ownerState:C}},R=h??s?ln(x,h??s):x,g=j.root??r.Root??ba,k=j.input??r.Input??ya;return o.jsx(dn,{slots:{root:g,input:k},slotProps:R,fullWidth:l,inputComponent:m,multiline:v,ref:n,type:f,...u,classes:y})});un.muiName="Input";function wa(e){return be("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ka=e=>{const{classes:t,margin:n,fullWidth:i}=e,a={root:["root",n!=="none"&&`margin${fe(n)}`,i&&"fullWidth"]};return xe(a,wa,t)},ja=W("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${fe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ca=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormControl"}),{children:a,className:r,color:s="primary",component:l="div",disabled:d=!1,error:m=!1,focused:v,fullWidth:h=!1,hiddenLabel:j=!1,margin:f="none",required:u=!1,size:C="medium",variant:y="outlined",...x}=i,R={...i,color:s,component:l,disabled:d,error:m,fullWidth:h,hiddenLabel:j,margin:f,required:u,size:C,variant:y},g=ka(R),[k,p]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,A=>{if(!Mt(A,["Input","Select"]))return;const G=Mt(A,["Select"])?A.props.input:A;G&&yo(G.props)&&(E=!0)}),E}),[w,b]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,A=>{Mt(A,["Input","Select"])&&(Ct(A.props,!0)||Ct(A.props.inputProps,!0))&&(E=!0)}),E}),[T,z]=c.useState(!1);d&&T&&z(!1);const L=v!==void 0&&!d?v:T;let H;c.useRef(!1);const B=c.useCallback(()=>{b(!0)},[]),q=c.useCallback(()=>{b(!1)},[]),F=c.useMemo(()=>({adornedStart:k,setAdornedStart:p,color:s,disabled:d,error:m,filled:w,focused:L,fullWidth:h,hiddenLabel:j,size:C,onBlur:()=>{z(!1)},onFocus:()=>{z(!0)},onEmpty:q,onFilled:B,registerEffect:H,required:u,variant:y}),[k,s,d,m,w,L,h,j,H,q,B,u,C,y]);return o.jsx(pn.Provider,{value:F,children:o.jsx(ja,{as:l,ownerState:R,className:de(g.root,r),ref:n,...x,children:a})})});function Sa(e){return be("MuiFormHelperText",e)}const Nn=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $n;const Ra=e=>{const{classes:t,contained:n,size:i,disabled:a,error:r,filled:s,focused:l,required:d}=e,m={root:["root",a&&"disabled",r&&"error",i&&`size${fe(i)}`,n&&"contained",l&&"focused",s&&"filled",d&&"required"]};return xe(m,Sa,t)},Pa=W("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nn.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Ea=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormHelperText"}),{children:a,className:r,component:s="p",disabled:l,error:d,filled:m,focused:v,margin:h,required:j,variant:f,...u}=i,C=st(),y=rt({props:i,muiFormControl:C,states:["variant","size","disabled","error","filled","focused","required"]}),x={...i,component:s,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete x.ownerState;const R=Ra(x);return o.jsx(Pa,{as:s,className:de(R.root,r),ref:n,...u,ownerState:x,children:a===" "?$n||($n=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function Ia(e){return be("MuiFormLabel",e)}const mt=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Fa=e=>{const{classes:t,color:n,focused:i,disabled:a,error:r,filled:s,required:l}=e,d={root:["root",`color${fe(n)}`,a&&"disabled",r&&"error",s&&"filled",i&&"focused",l&&"required"],asterisk:["asterisk",r&&"error"]};return xe(d,Ia,t)},Aa=W("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(It()).map(([t])=>({props:{color:t},style:{[`&.${mt.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${mt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mt.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Da=W("span",{name:"MuiFormLabel",slot:"Asterisk"})(ke(({theme:e})=>({[`&.${mt.error}`]:{color:(e.vars||e).palette.error.main}}))),Ta=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormLabel"}),{children:a,className:r,color:s,component:l="label",disabled:d,error:m,filled:v,focused:h,required:j,...f}=i,u=st(),C=rt({props:i,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),y={...i,color:C.color||"primary",component:l,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required},x=Fa(y);return o.jsxs(Aa,{as:l,ownerState:y,className:de(x.root,r),ref:n,...f,children:[a,C.required&&o.jsxs(Da,{ownerState:y,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})}),za=e=>{const{classes:t,disableUnderline:n}=e,a=xe({root:["root",!n&&"underline"],input:["input"]},jo,t);return{...t,...a}},Ma=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...At(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lt.disabled}, .${lt.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${lt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(It()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),Oa=W(zt,{name:"MuiInput",slot:"Input",overridesResolver:Dt})({}),mn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,inputComponent:d="input",multiline:m=!1,slotProps:v,slots:h={},type:j="text",...f}=i,u=za(i),y={root:{ownerState:{disableUnderline:a}}},x=v??s?ln(v??s,y):y,R=h.root??r.Root??Ma,g=h.input??r.Input??Oa;return o.jsx(dn,{slots:{root:R,input:g},slotProps:x,fullWidth:l,inputComponent:d,multiline:m,ref:n,type:j,...f,classes:u})});mn.muiName="Input";function La(e){return be("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Na=e=>{const{classes:t,formControl:n,size:i,shrink:a,disableAnimation:r,variant:s,required:l}=e,d={root:["root",n&&"formControl",!r&&"animated",a&&"shrink",i&&i!=="medium"&&`size${fe(i)}`,s],asterisk:[l&&"asterisk"]},m=xe(d,La,t);return{...t,...m}},$a=W(Ta,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mt.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:i})=>t==="filled"&&n.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Wa=c.forwardRef(function(t,n){const i=ye({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:r,shrink:s,variant:l,className:d,...m}=i,v=st();let h=s;typeof h>"u"&&v&&(h=v.filled||v.focused||v.adornedStart);const j=rt({props:i,muiFormControl:v,states:["size","variant","required","focused"]}),f={...i,disableAnimation:a,formControl:v,shrink:h,size:j.size,variant:j.variant,required:j.required,focused:j.focused},u=Na(f);return o.jsx($a,{"data-shrink":h,ref:n,className:de(u.root,d),...m,ownerState:f,classes:u})});function Ht(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wn(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ei(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ct(e,t,n,i,a,r){let s=!1,l=a(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const d=i?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Ei(l,r)||d)l=a(e,l,n);else return l.focus(),!0}return!1}const Ha=c.forwardRef(function(t,n){const{actions:i,autoFocus:a=!1,autoFocusItem:r=!1,children:s,className:l,disabledItemsFocusable:d=!1,disableListWrap:m=!1,onKeyDown:v,variant:h="selectedMenu",...j}=t,f=c.useRef(null),u=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jt(()=>{a&&f.current.focus()},[a]),c.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(g,{direction:k})=>{const p=!f.current.style.width;if(g.clientHeight{const k=f.current,p=g.key;if(g.ctrlKey||g.metaKey||g.altKey){v&&v(g);return}const b=De(k).activeElement;if(p==="ArrowDown")g.preventDefault(),ct(k,b,m,d,Ht);else if(p==="ArrowUp")g.preventDefault(),ct(k,b,m,d,Wn);else if(p==="Home")g.preventDefault(),ct(k,null,m,d,Ht);else if(p==="End")g.preventDefault(),ct(k,null,m,d,Wn);else if(p.length===1){const T=u.current,z=p.toLowerCase(),L=performance.now();T.keys.length>0&&(L-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&z!==T.keys[0]&&(T.repeating=!1)),T.lastTime=L,T.keys.push(z);const H=b&&!T.repeating&&Ei(b,T);T.previousKeyMatched&&(H||ct(k,b,!1,d,Ht,T))?g.preventDefault():T.previousKeyMatched=!1}v&&v(g)},y=Be(f,n);let x=-1;c.Children.forEach(s,(g,k)=>{if(!c.isValidElement(g)){x===k&&(x+=1,x>=s.length&&(x=-1));return}g.props.disabled||(h==="selectedMenu"&&g.props.selected||x===-1)&&(x=k),x===k&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(x+=1,x>=s.length&&(x=-1))});const R=c.Children.map(s,(g,k)=>{if(k===x){const p={};return r&&(p.autoFocus=!0),g.props.tabIndex===void 0&&h==="selectedMenu"&&(p.tabIndex=0),c.cloneElement(g,p)}return g});return o.jsx(Jt,{role:"menu",ref:y,className:l,onKeyDown:C,tabIndex:a?0:-1,...j,children:R})});function Ba(e){return be("MuiPopover",e)}he("MuiPopover",["root","paper"]);function Hn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Bn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function qn(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function bt(e){return typeof e=="function"?e():e}const qa=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},Ba,t)},Ua=W(Ri,{name:"MuiPopover",slot:"Root"})({}),Ii=W(xt,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),_a=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiPopover"}),{action:a,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:m,className:v,container:h,elevation:j=8,marginThreshold:f=16,open:u,PaperProps:C={},slots:y={},slotProps:x={},transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:g,transitionDuration:k="auto",TransitionProps:p={},disableScrollLock:w=!1,...b}=i,T=c.useRef(),z={...i,anchorOrigin:s,anchorReference:d,elevation:j,marginThreshold:f,transformOrigin:R,TransitionComponent:g,transitionDuration:k,TransitionProps:p},L=qa(z),H=c.useCallback(()=>{if(d==="anchorPosition")return l;const $=bt(r),V=($&&$.nodeType===1?$:De(T.current).body).getBoundingClientRect();return{top:V.top+Hn(V,s.vertical),left:V.left+Bn(V,s.horizontal)}},[r,s.horizontal,s.vertical,l,d]),B=c.useCallback($=>({vertical:Hn($,R.vertical),horizontal:Bn($,R.horizontal)}),[R.horizontal,R.vertical]),q=c.useCallback($=>{const U={width:$.offsetWidth,height:$.offsetHeight},V=B(U);if(d==="none")return{top:null,left:null,transformOrigin:qn(V)};const K=H();let S=K.top-V.vertical,M=K.left-V.horizontal;const Q=S+U.height,ve=M+U.width,Ee=We(bt(r)),Ae=Ee.innerHeight-f,Pe=Ee.innerWidth-f;if(f!==null&&SAe){const Se=Q-Ae;S-=Se,V.vertical+=Se}if(f!==null&&MPe){const Se=ve-Pe;M-=Se,V.horizontal+=Se}return{top:`${Math.round(S)}px`,left:`${Math.round(M)}px`,transformOrigin:qn(V)}},[r,d,H,B,f]),[F,E]=c.useState(u),A=c.useCallback(()=>{const $=T.current;if(!$)return;const U=q($);U.top!==null&&$.style.setProperty("top",U.top),U.left!==null&&($.style.left=U.left),$.style.transformOrigin=U.transformOrigin,E(!0)},[q]);c.useEffect(()=>(w&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[r,w,A]);const G=()=>{A()},te=()=>{E(!1)};c.useEffect(()=>{u&&A()}),c.useImperativeHandle(a,()=>u?{updatePosition:()=>{A()}}:null,[u,A]),c.useEffect(()=>{if(!u)return;const $=wi(()=>{A()}),U=We(bt(r));return U.addEventListener("resize",$),()=>{$.clear(),U.removeEventListener("resize",$)}},[r,u,A]);let D=k;const ee={slots:{transition:g,...y},slotProps:{transition:p,paper:C,...x}},[ie,Z]=pe("transition",{elementType:ki,externalForwardedProps:ee,ownerState:z,getSlotProps:$=>({...$,onEntering:(U,V)=>{$.onEntering?.(U,V),G()},onExited:U=>{$.onExited?.(U),te()}}),additionalProps:{appear:!0,in:u}});k==="auto"&&!ie.muiSupportAuto&&(D=void 0);const J=h||(r?De(bt(r)).body:void 0),[Y,{slots:oe,slotProps:ce,...ue}]=pe("root",{ref:n,elementType:Ua,externalForwardedProps:{...ee,...b},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:vo(typeof x.backdrop=="function"?x.backdrop(z):x.backdrop,{invisible:!0})},container:J,open:u},ownerState:z,className:de(L.root,v)}),[je,ne]=pe("paper",{ref:T,className:L.paper,elementType:Ii,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:j,style:F?void 0:{opacity:0}},ownerState:z});return o.jsx(Y,{...ue,...!Ut(Y)&&{slots:oe,slotProps:ce,disableScrollLock:w},children:o.jsx(ie,{...Z,timeout:D,children:o.jsx(je,{...ne,children:m})})})});function Va(e){return be("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Ka={vertical:"top",horizontal:"right"},Ga={vertical:"top",horizontal:"left"},Ja=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},Va,t)},Xa=W(_a,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ya=W(Ii,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Za=W(Ha,{name:"MuiMenu",slot:"List"})({outline:0}),Qa=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:r,className:s,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:m,open:v,PaperProps:h={},PopoverClasses:j,transitionDuration:f="auto",TransitionProps:{onEntering:u,...C}={},variant:y="selectedMenu",slots:x={},slotProps:R={},...g}=i,k=Ki(),p={...i,autoFocus:a,disableAutoFocusItem:l,MenuListProps:d,onEntering:u,PaperProps:h,transitionDuration:f,TransitionProps:C,variant:y},w=Ja(p),b=a&&!l&&v,T=c.useRef(null),z=(D,ee)=>{T.current&&T.current.adjustStyleForScrollbar(D,{direction:k?"rtl":"ltr"}),u&&u(D,ee)},L=D=>{D.key==="Tab"&&(D.preventDefault(),m&&m(D,"tabKeyDown"))};let H=-1;c.Children.map(r,(D,ee)=>{c.isValidElement(D)&&(D.props.disabled||(y==="selectedMenu"&&D.props.selected||H===-1)&&(H=ee))});const B={slots:x,slotProps:{list:d,transition:C,paper:h,...R}},q=eo({elementType:x.root,externalSlotProps:R.root,ownerState:p,className:[w.root,s]}),[F,E]=pe("paper",{className:w.paper,elementType:Ya,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:p}),[A,G]=pe("list",{className:de(w.list,d.className),elementType:Za,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:D=>({...D,onKeyDown:ee=>{L(ee),D.onKeyDown?.(ee)}}),ownerState:p}),te=typeof B.slotProps.transition=="function"?B.slotProps.transition(p):B.slotProps.transition;return o.jsx(Xa,{onClose:m,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Ka:Ga,slots:{root:x.root,paper:F,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:q,paper:E,backdrop:typeof R.backdrop=="function"?R.backdrop(p):R.backdrop,transition:{...te,onEntering:(...D)=>{z(...D),te?.onEntering?.(...D)}}},open:v,ref:n,transitionDuration:f,ownerState:p,...g,classes:j,children:o.jsx(A,{actions:T,autoFocus:a&&(H===-1||l),autoFocusItem:b,variant:y,...G,children:r})})});function er(e){return be("MuiNativeSelect",e)}const fn=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tr=e=>{const{classes:t,variant:n,disabled:i,multiple:a,open:r,error:s}=e,l={select:["select",n,i&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",i&&"disabled"]};return xe(l,er,t)},Fi=W("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${fn.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),nr=W(Fi,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:He,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${fn.multiple}`]:t.multiple}]}})({}),Ai=W("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${fn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ir=W(Ai,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),or=c.forwardRef(function(t,n){const{className:i,disabled:a,error:r,IconComponent:s,inputRef:l,variant:d="standard",...m}=t,v={...t,disabled:a,variant:d,error:r},h=tr(v);return o.jsxs(c.Fragment,{children:[o.jsx(nr,{ownerState:v,className:de(h.select,i),disabled:a,ref:l||n,...m}),t.multiple?null:o.jsx(ir,{as:s,ownerState:v,className:h.icon})]})});var Un;const ar=W("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:He})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rr=W("legend",{name:"MuiNotchedOutlined",shouldForwardProp:He})(ke(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function sr(e){const{children:t,classes:n,className:i,label:a,notched:r,...s}=e,l=a!=null&&a!=="",d={...e,notched:r,withLabel:l};return o.jsx(ar,{"aria-hidden":!0,className:i,ownerState:d,...s,children:o.jsx(rr,{ownerState:d,children:l?o.jsx("span",{children:a}):Un||(Un=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const lr=e=>{const{classes:t}=e,i=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Co,t);return{...t,...i}},cr=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:At})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ne.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(It()).map(([n])=>({props:{color:n},style:{[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ne.error} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ne.disabled} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:i})=>n.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),pr=W(sr,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),dr=W(zt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dt})(ke(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),xn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:r=!1,inputComponent:s="input",label:l,multiline:d=!1,notched:m,slots:v={},slotProps:h={},type:j="text",...f}=i,u=lr(i),C=st(),y=rt({props:i,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...i,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:C,fullWidth:r,hiddenLabel:y.hiddenLabel,multiline:d,size:y.size,type:j},R=v.root??a.Root??cr,g=v.input??a.Input??dr,[k,p]=pe("notchedOutline",{elementType:pr,className:u.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:v,slotProps:h},additionalProps:{label:l!=null&&l!==""&&y.required?o.jsxs(c.Fragment,{children:[l," ","*"]}):l}});return o.jsx(dn,{slots:{root:R,input:g},slotProps:h,renderSuffix:w=>o.jsx(k,{...p,notched:typeof m<"u"?m:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:r,inputComponent:s,multiline:d,ref:n,type:j,...f,classes:{...u,notchedOutline:null}})});xn.muiName="Input";function Di(e){return be("MuiSelect",e)}const pt=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _n;const ur=W(Fi,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${pt.select}`]:t.select},{[`&.${pt.select}`]:t[n.variant]},{[`&.${pt.error}`]:t.error},{[`&.${pt.multiple}`]:t.multiple}]}})({[`&.${pt.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mr=W(Ai,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),fr=W("input",{shouldForwardProp:e=>Gi(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vn(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xr(e){return e==null||typeof e=="string"&&!e.trim()}const vr=e=>{const{classes:t,variant:n,disabled:i,multiple:a,open:r,error:s}=e,l={select:["select",n,i&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return xe(l,Di,t)},gr=c.forwardRef(function(t,n){const{"aria-describedby":i,"aria-label":a,autoFocus:r,autoWidth:s,children:l,className:d,defaultOpen:m,defaultValue:v,disabled:h,displayEmpty:j,error:f=!1,IconComponent:u,inputRef:C,labelId:y,MenuProps:x={},multiple:R,name:g,onBlur:k,onChange:p,onClose:w,onFocus:b,onOpen:T,open:z,readOnly:L,renderValue:H,required:B,SelectDisplayProps:q={},tabIndex:F,type:E,value:A,variant:G="standard",...te}=t,[D,ee]=Cn({controlled:A,default:v,name:"Select"}),[ie,Z]=Cn({controlled:z,default:m,name:"Select"}),J=c.useRef(null),Y=c.useRef(null),[oe,ce]=c.useState(null),{current:ue}=c.useRef(z!=null),[je,ne]=c.useState(),$=Be(n,C),U=c.useCallback(N=>{Y.current=N,N&&ce(N)},[]),V=oe?.parentNode;c.useImperativeHandle($,()=>({focus:()=>{Y.current.focus()},node:J.current,value:D}),[D]),c.useEffect(()=>{m&&ie&&oe&&!ue&&(ne(s?null:V.clientWidth),Y.current.focus())},[oe,s]),c.useEffect(()=>{r&&Y.current.focus()},[r]),c.useEffect(()=>{if(!y)return;const N=De(Y.current).getElementById(y);if(N){const ae=()=>{getSelection().isCollapsed&&Y.current.focus()};return N.addEventListener("click",ae),()=>{N.removeEventListener("click",ae)}}},[y]);const K=(N,ae)=>{N?T&&T(ae):w&&w(ae),ue||(ne(s?null:V.clientWidth),Z(N))},S=N=>{N.button===0&&(N.preventDefault(),Y.current.focus(),K(!0,N))},M=N=>{K(!1,N)},Q=c.Children.toArray(l),ve=N=>{const ae=Q.find(we=>we.props.value===N.target.value);ae!==void 0&&(ee(ae.props.value),p&&p(N,ae))},Ee=N=>ae=>{let we;if(ae.currentTarget.hasAttribute("tabindex")){if(R){we=Array.isArray(D)?D.slice():[];const Le=D.indexOf(N.props.value);Le===-1?we.push(N.props.value):we.splice(Le,1)}else we=N.props.value;if(N.props.onClick&&N.props.onClick(ae),D!==we&&(ee(we),p)){const Le=ae.nativeEvent||ae,vt=new Le.constructor(Le.type,Le);Object.defineProperty(vt,"target",{writable:!0,value:{value:we,name:g}}),p(vt,N)}R||K(!1,ae)}},Ae=N=>{L||[" ","ArrowUp","ArrowDown","Enter"].includes(N.key)&&(N.preventDefault(),K(!0,N))},Pe=oe!==null&&ie,Se=N=>{!Pe&&k&&(Object.defineProperty(N,"target",{writable:!0,value:{value:D,name:g}}),k(N))};delete te["aria-invalid"];let Te,Me;const P=[];let O=!1;(Ct({value:D})||j)&&(H?Te=H(D):O=!0);const le=Q.map(N=>{if(!c.isValidElement(N))return null;let ae;if(R){if(!Array.isArray(D))throw new Error(vi(2));ae=D.some(we=>Vn(we,N.props.value)),ae&&O&&P.push(N.props.children)}else ae=Vn(D,N.props.value),ae&&O&&(Me=N.props.children);return c.cloneElement(N,{"aria-selected":ae?"true":"false",onClick:Ee(N),onKeyUp:we=>{we.key===" "&&we.preventDefault(),N.props.onKeyUp&&N.props.onKeyUp(we)},role:"option",selected:ae,value:void 0,"data-value":N.props.value})});O&&(R?P.length===0?Te=null:Te=P.reduce((N,ae,we)=>(N.push(ae),we{const{classes:t}=e,i=xe({root:["root"]},Di,t);return{...t,...i}},vn={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>He(e)&&e!=="variant"},br=W(mn,vn)(""),yr=W(xn,vn)(""),wr=W(un,vn)(""),Ti=c.forwardRef(function(t,n){const i=ye({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:r,classes:s={},className:l,defaultOpen:d=!1,displayEmpty:m=!1,IconComponent:v=Ro,id:h,input:j,inputProps:f,label:u,labelId:C,MenuProps:y,multiple:x=!1,native:R=!1,onClose:g,onOpen:k,open:p,renderValue:w,SelectDisplayProps:b,variant:T="outlined",...z}=i,L=R?or:gr,H=st(),B=rt({props:i,muiFormControl:H,states:["variant","error"]}),q=B.variant||T,F={...i,variant:q,classes:s},E=hr(F),{root:A,...G}=E,te=j||{standard:o.jsx(br,{ownerState:F}),outlined:o.jsx(yr,{label:u,ownerState:F}),filled:o.jsx(wr,{ownerState:F})}[q],D=Be(n,Ft(te));return o.jsx(c.Fragment,{children:c.cloneElement(te,{inputComponent:L,inputProps:{children:r,error:B.error,IconComponent:v,variant:q,type:void 0,multiple:x,...R?{id:h}:{autoWidth:a,defaultOpen:d,displayEmpty:m,labelId:C,MenuProps:y,onClose:g,onOpen:k,open:p,renderValue:w,SelectDisplayProps:{id:h,...b}},...f,classes:f?ln(G,f.classes):G,...j?j.props.inputProps:{}},...(x&&R||m)&&q==="outlined"?{notched:!0}:{},ref:D,className:de(te.props.className,l,E.root),...!j&&{variant:q},...z})})});Ti.muiName="Select";function kr(e){return be("MuiSkeleton",e)}he("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const jr=e=>{const{classes:t,variant:n,animation:i,hasChildren:a,width:r,height:s}=e;return xe({root:["root",n,i,a&&"withChildren",a&&!r&&"fitContent",a&&!s&&"heightAuto"]},kr,t)},Qt=hi` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`,en=hi` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`,Cr=typeof Qt!="string"?gi` + animation: ${Qt} 2s ease-in-out 0.5s infinite; + `:null,Sr=typeof en!="string"?gi` + &::after { + animation: ${en} 2s linear 0.5s infinite; + } + `:null,Rr=W("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(ke(({theme:e})=>{const t=mo(e.shape.borderRadius)||"px",n=fo(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:i})=>i.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:i})=>i.hasChildren&&!i.width,style:{maxWidth:"fit-content"}},{props:({ownerState:i})=>i.hasChildren&&!i.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Cr||{animation:`${Qt} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + 90deg, + transparent, + ${(e.vars||e).palette.action.hover}, + transparent + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Sr||{"&::after":{animation:`${en} 2s linear 0.5s infinite`}}}]}})),Ze=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSkeleton"}),{animation:a="pulse",className:r,component:s="span",height:l,style:d,variant:m="text",width:v,...h}=i,j={...i,animation:a,component:s,variant:m,hasChildren:!!h.children},f=jr(j);return o.jsx(Rr,{as:s,ref:n,className:de(f.root,r),ownerState:j,...h,style:{width:v,height:l,...d}})});function Pr(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:i,open:a,resumeHideDuration:r}=e,s=to();c.useEffect(()=>{if(!a)return;function x(R){R.defaultPrevented||R.key==="Escape"&&i?.(R,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,i]);const l=it((x,R)=>{i?.(x,R)}),d=it(x=>{!i||x==null||s.start(x,()=>{l(null,"timeout")})});c.useEffect(()=>(a&&d(t),s.clear),[a,t,d,s]);const m=x=>{i?.(x,"clickaway")},v=s.clear,h=c.useCallback(()=>{t!=null&&d(r??t*.5)},[t,r,d]),j=x=>R=>{const g=x.onBlur;g?.(R),h()},f=x=>R=>{const g=x.onFocus;g?.(R),v()},u=x=>R=>{const g=x.onMouseEnter;g?.(R),v()},C=x=>R=>{const g=x.onMouseLeave;g?.(R),h()};return c.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",v)}},[n,a,h,v]),{getRootProps:(x={})=>{const R={..._t(e),..._t(x)};return{role:"presentation",...x,...R,onBlur:j(R),onFocus:f(R),onMouseEnter:u(R),onMouseLeave:C(R)}},onClickAway:m}}function Er(e){return be("MuiSnackbarContent",e)}he("MuiSnackbarContent",["root","message","action"]);const Ir=e=>{const{classes:t}=e;return xe({root:["root"],action:["action"],message:["message"]},Er,t)},Fr=W(xt,{name:"MuiSnackbarContent",slot:"Root"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(bn(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:bn(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Ar=W("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Dr=W("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Tr=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSnackbarContent"}),{action:a,className:r,message:s,role:l="alert",...d}=i,m=i,v=Ir(m);return o.jsxs(Fr,{role:l,elevation:6,className:de(v.root,r),ownerState:m,ref:n,...d,children:[o.jsx(Ar,{className:v.message,ownerState:m,children:s}),a?o.jsx(Dr,{className:v.action,ownerState:m,children:a}):null]})});function zr(e){return be("MuiSnackbar",e)}he("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mr=e=>{const{classes:t,anchorOrigin:n}=e,i={root:["root",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`]};return xe(i,zr,t)},Or=W("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}`]]}})(ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Lr=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSnackbar"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:m=null,children:v,className:h,ClickAwayListenerProps:j,ContentProps:f,disableWindowBlurListener:u=!1,message:C,onBlur:y,onClose:x,onFocus:R,onMouseEnter:g,onMouseLeave:k,open:p,resumeHideDuration:w,slots:b={},slotProps:T={},TransitionComponent:z,transitionDuration:L=r,TransitionProps:{onEnter:H,onExited:B,...q}={},...F}=i,E={...i,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:m,disableWindowBlurListener:u,TransitionComponent:z,transitionDuration:L},A=Mr(E),{getRootProps:G,onClickAway:te}=Pr({...E}),[D,ee]=c.useState(!0),ie=K=>{ee(!0),B&&B(K)},Z=(K,S)=>{ee(!1),H&&H(K,S)},J={slots:{transition:z,...b},slotProps:{content:f,clickAwayListener:j,transition:q,...T}},[Y,oe]=pe("root",{ref:n,className:[A.root,h],elementType:Or,getSlotProps:G,externalForwardedProps:{...J,...F},ownerState:E}),[ce,{ownerState:ue,...je}]=pe("clickAwayListener",{elementType:Do,externalForwardedProps:J,getSlotProps:K=>({onClickAway:(...S)=>{const M=S[0];K.onClickAway?.(...S),!M?.defaultMuiPrevented&&te(...S)}}),ownerState:E}),[ne,$]=pe("content",{elementType:Tr,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:C,action:s},ownerState:E}),[U,V]=pe("transition",{elementType:ki,externalForwardedProps:J,getSlotProps:K=>({onEnter:(...S)=>{K.onEnter?.(...S),Z(...S)},onExited:(...S)=>{K.onExited?.(...S),ie(...S)}}),additionalProps:{appear:!0,in:p,timeout:L,direction:l==="top"?"down":"up"},ownerState:E});return!p&&D?null:o.jsx(ce,{...je,...b.clickAwayListener&&{ownerState:ue},children:o.jsx(Y,{...oe,children:o.jsx(U,{...V,children:v||o.jsx(ne,{...$})})})})});function Nr(e){return be("MuiTextField",e)}he("MuiTextField",["root"]);const $r={standard:mn,filled:un,outlined:xn},Wr=e=>{const{classes:t}=e;return xe({root:["root"]},Nr,t)},Hr=W(Ca,{name:"MuiTextField",slot:"Root"})({}),Ke=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:r=!1,children:s,className:l,color:d="primary",defaultValue:m,disabled:v=!1,error:h=!1,FormHelperTextProps:j,fullWidth:f=!1,helperText:u,id:C,InputLabelProps:y,inputProps:x,InputProps:R,inputRef:g,label:k,maxRows:p,minRows:w,multiline:b=!1,name:T,onBlur:z,onChange:L,onFocus:H,placeholder:B,required:q=!1,rows:F,select:E=!1,SelectProps:A,slots:G={},slotProps:te={},type:D,value:ee,variant:ie="outlined",...Z}=i,J={...i,autoFocus:r,color:d,disabled:v,error:h,fullWidth:f,multiline:b,required:q,select:E,variant:ie},Y=Wr(J),oe=sn(C),ce=u&&oe?`${oe}-helper-text`:void 0,ue=k&&oe?`${oe}-label`:void 0,je=$r[ie],ne={slots:G,slotProps:{input:R,inputLabel:y,htmlInput:x,formHelperText:j,select:A,...te}},$={},U=ne.slotProps.inputLabel;ie==="outlined"&&(U&&typeof U.shrink<"u"&&($.notched=U.shrink),$.label=k),E&&((!A||!A.native)&&($.id=void 0),$["aria-describedby"]=void 0);const[V,K]=pe("root",{elementType:Hr,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Z},ownerState:J,className:de(Y.root,l),ref:n,additionalProps:{disabled:v,error:h,fullWidth:f,required:q,color:d,variant:ie}}),[S,M]=pe("input",{elementType:je,externalForwardedProps:ne,additionalProps:$,ownerState:J}),[Q,ve]=pe("inputLabel",{elementType:Wa,externalForwardedProps:ne,ownerState:J}),[Ee,Ae]=pe("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:J}),[Pe,Se]=pe("formHelperText",{elementType:Ea,externalForwardedProps:ne,ownerState:J}),[Te,Me]=pe("select",{elementType:Ti,externalForwardedProps:ne,ownerState:J}),P=o.jsx(S,{"aria-describedby":ce,autoComplete:a,autoFocus:r,defaultValue:m,fullWidth:f,multiline:b,name:T,rows:F,maxRows:p,minRows:w,type:D,value:ee,id:oe,inputRef:g,onBlur:z,onChange:L,onFocus:H,placeholder:B,inputProps:Ae,slots:{input:G.htmlInput?Ee:void 0},...M});return o.jsxs(V,{...K,children:[k!=null&&k!==""&&o.jsx(Q,{htmlFor:oe,id:ue,...ve,children:k}),E?o.jsx(Te,{"aria-describedby":ce,id:oe,labelId:ue,value:ee,input:P,...Me,children:s}):P,u&&o.jsx(Pe,{id:ce,...Se,children:u})]})});function Br(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function qr(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ur(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var Kn=e=>Array.isArray(e)?e:[e];function _r(e){const t=Array.isArray(e[0])?e[0]:e;return Ur(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Vr(e,t){const n=[],{length:i}=e;for(let a=0;a{n=yt(),s.resetResultsCount()},s.resultsCount=()=>r,s.resetResultsCount=()=>{r=0},s}function Xr(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...a)=>{let r=0,s=0,l,d={},m=a.pop();typeof m=="object"&&(d=m,m=a.pop()),Br(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const v={...n,...d},{memoize:h,memoizeOptions:j=[],argsMemoize:f=zi,argsMemoizeOptions:u=[]}=v,C=Kn(j),y=Kn(u),x=_r(a),R=h(function(){return r++,m.apply(null,arguments)},...C),g=f(function(){s++;const p=Vr(x,arguments);return l=R.apply(null,p),l},...y);return Object.assign(g,{resultFunc:m,memoizedResultFunc:R,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:h,argsMemoize:f})};return Object.assign(i,{withTypes:()=>i}),i}var gn=Xr(zi),Yr=Object.assign((e,t=gn)=>{qr(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(r=>e[r]);return t(i,(...r)=>r.reduce((s,l,d)=>(s[n[d]]=l,s),{}))},{withTypes:()=>Yr});function Je(e,t,n,i){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function l(v){try{m(i.next(v))}catch(h){s(h)}}function d(v){try{m(i.throw(v))}catch(h){s(h)}}function m(v){v.done?r(v.value):a(v.value).then(l,d)}m((i=i.apply(e,t||[])).next())})}const Zr=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function at(e,t,n){const i=Qr(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof i.path!="string"&&Jn(i,"path",r),Jn(i,"relativePath",r),i}function Qr(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),a=Zr.get(i);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function Jn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const es=[".DS_Store","Thumbs.db"];function ts(e){return Je(this,void 0,void 0,function*(){return Rt(e)&&ns(e.dataTransfer)?rs(e.dataTransfer,e.type):is(e)?os(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?as(e):[]})}function ns(e){return Rt(e)}function is(e){return Rt(e)&&Rt(e.target)}function Rt(e){return typeof e=="object"&&e!==null}function os(e){return tn(e.target.files).map(t=>at(t))}function as(e){return Je(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>at(n))})}function rs(e,t){return Je(this,void 0,void 0,function*(){if(e.items){const n=tn(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(ss));return Xn(Mi(i))}return Xn(tn(e.files).map(n=>at(n)))})}function Xn(e){return e.filter(t=>es.indexOf(t.name)===-1)}function tn(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?Mi(n):[n]],[])}function Yn(e,t){return Je(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const s=yield r.getFile();return s.handle=r,at(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return at(i,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function ls(e){return Je(this,void 0,void 0,function*(){return e.isDirectory?Oi(e):cs(e)})}function Oi(e){const t=e.createReader();return new Promise((n,i)=>{const a=[];function r(){t.readEntries(s=>Je(this,void 0,void 0,function*(){if(s.length){const l=Promise.all(s.map(ls));a.push(l),r()}else try{const l=yield Promise.all(a);n(l)}catch(l){i(l)}}),s=>{i(s)})}r()})}function cs(e){return Je(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const a=at(i,e.fullPath);t(a)},i=>{n(i)})})})}var wt={},Zn;function ps(){return Zn||(Zn=1,wt.__esModule=!0,wt.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?i.toLowerCase().endsWith(l):l.endsWith("/*")?r===l.replace(/\/.*$/,""):a===l})}return!0}),wt}var ds=ps();const Bt=xi(ds);function Qn(e){return fs(e)||ms(e)||Ni(e)||us()}function us(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ms(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fs(e){if(Array.isArray(e))return nn(e)}function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function ti(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:bs,message:"File type must be ".concat(i)}},ni=function(t){return{code:ys,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ii=function(t){return{code:ws,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Cs={code:ks,message:"Too many files"};function $i(e,t){var n=e.type==="application/x-moz-file"||hs(e,t);return[n,n?null:js(t)]}function Wi(e,t,n){if(Ge(e.size))if(Ge(t)&&Ge(n)){if(e.size>n)return[!1,ni(n)];if(e.sizen)return[!1,ni(n)]}return[!0,null]}function Ge(e){return e!=null}function Ss(e){var t=e.files,n=e.accept,i=e.minSize,a=e.maxSize,r=e.multiple,s=e.maxFiles,l=e.validator;return!r&&t.length>1||r&&s>=1&&t.length>s?!1:t.every(function(d){var m=$i(d,n),v=ft(m,1),h=v[0],j=Wi(d,i,a),f=ft(j,1),u=f[0],C=l?l(d):null;return h&&u&&!C})}function Pt(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function kt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function oi(e){e.preventDefault()}function Rs(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ps(e){return e.indexOf("Edge/")!==-1}function Es(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Rs(e)||Ps(e)}function $e(){for(var e=arguments.length,t=new Array(e),n=0;n1?a-1:0),s=1;se.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _s(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,r;for(r=0;r=0)&&(n[a]=e[a]);return n}var hn=c.forwardRef(function(e,t){var n=e.children,i=Et(e,zs),a=_i(i),r=a.open,s=Et(a,Ms);return c.useImperativeHandle(t,function(){return{open:r}},[r]),Ji.createElement(c.Fragment,null,n(ge(ge({},s),{},{open:r})))});hn.displayName="Dropzone";var Ui={disabled:!1,getFilesFromEvent:ts,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};hn.defaultProps=Ui;hn.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var rn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function _i(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},Ui),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,l=t.multiple,d=t.maxFiles,m=t.onDragEnter,v=t.onDragLeave,h=t.onDragOver,j=t.onDrop,f=t.onDropAccepted,u=t.onDropRejected,C=t.onFileDialogCancel,y=t.onFileDialogOpen,x=t.useFsAccessApi,R=t.autoFocus,g=t.preventDropOnDocument,k=t.noClick,p=t.noKeyboard,w=t.noDrag,b=t.noDragEventsBubbling,T=t.onError,z=t.validator,L=c.useMemo(function(){return As(n)},[n]),H=c.useMemo(function(){return Fs(n)},[n]),B=c.useMemo(function(){return typeof y=="function"?y:ri},[y]),q=c.useMemo(function(){return typeof C=="function"?C:ri},[C]),F=c.useRef(null),E=c.useRef(null),A=c.useReducer(Vs,rn),G=qt(A,2),te=G[0],D=G[1],ee=te.isFocused,ie=te.isFileDialogActive,Z=c.useRef(typeof window<"u"&&window.isSecureContext&&x&&Is()),J=function(){!Z.current&&ie&&setTimeout(function(){if(E.current){var O=E.current.files;O.length||(D({type:"closeDialog"}),q())}},300)};c.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[E,ie,q,Z]);var Y=c.useRef([]),oe=function(O){F.current&&F.current.contains(O.target)||(O.preventDefault(),Y.current=[])};c.useEffect(function(){return g&&(document.addEventListener("dragover",oi,!1),document.addEventListener("drop",oe,!1)),function(){g&&(document.removeEventListener("dragover",oi),document.removeEventListener("drop",oe))}},[F,g]),c.useEffect(function(){return!i&&R&&F.current&&F.current.focus(),function(){}},[F,R,i]);var ce=c.useCallback(function(P){T?T(P):console.error(P)},[T]),ue=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P),Y.current=[].concat(Ns(Y.current),[P.target]),kt(P)&&Promise.resolve(a(P)).then(function(O){if(!(Pt(P)&&!b)){var le=O.length,me=le>0&&Ss({files:O,accept:L,minSize:s,maxSize:r,multiple:l,maxFiles:d,validator:z}),Ce=le>0&&!me;D({isDragAccept:me,isDragReject:Ce,isDragActive:!0,type:"setDraggedFiles"}),m&&m(P)}}).catch(function(O){return ce(O)})},[a,m,ce,b,L,s,r,l,d,z]),je=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P);var O=kt(P);if(O&&P.dataTransfer)try{P.dataTransfer.dropEffect="copy"}catch{}return O&&h&&h(P),!1},[h,b]),ne=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P);var O=Y.current.filter(function(me){return F.current&&F.current.contains(me)}),le=O.indexOf(P.target);le!==-1&&O.splice(le,1),Y.current=O,!(O.length>0)&&(D({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kt(P)&&v&&v(P))},[F,v,b]),$=c.useCallback(function(P,O){var le=[],me=[];P.forEach(function(Ce){var ze=$i(Ce,L),Ie=qt(ze,2),re=Ie[0],Oe=Ie[1],qe=Wi(Ce,s,r),_e=qt(qe,2),N=_e[0],ae=_e[1],we=z?z(Ce):null;if(re&&N&&!we)le.push(Ce);else{var Le=[Oe,ae];we&&(Le=Le.concat(we)),me.push({file:Ce,errors:Le.filter(function(vt){return vt})})}}),(!l&&le.length>1||l&&d>=1&&le.length>d)&&(le.forEach(function(Ce){me.push({file:Ce,errors:[Cs]})}),le.splice(0)),D({acceptedFiles:le,fileRejections:me,isDragReject:me.length>0,type:"setFiles"}),j&&j(le,me,O),me.length>0&&u&&u(me,O),le.length>0&&f&&f(le,O)},[D,l,L,s,r,d,j,f,u,z]),U=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P),Y.current=[],kt(P)&&Promise.resolve(a(P)).then(function(O){Pt(P)&&!b||$(O,P)}).catch(function(O){return ce(O)}),D({type:"reset"})},[a,$,ce,b]),V=c.useCallback(function(){if(Z.current){D({type:"openDialog"}),B();var P={multiple:l,types:H};window.showOpenFilePicker(P).then(function(O){return a(O)}).then(function(O){$(O,null),D({type:"closeDialog"})}).catch(function(O){Ds(O)?(q(O),D({type:"closeDialog"})):Ts(O)?(Z.current=!1,E.current?(E.current.value=null,E.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ce(O)});return}E.current&&(D({type:"openDialog"}),B(),E.current.value=null,E.current.click())},[D,B,q,x,$,ce,H,l]),K=c.useCallback(function(P){!F.current||!F.current.isEqualNode(P.target)||(P.key===" "||P.key==="Enter"||P.keyCode===32||P.keyCode===13)&&(P.preventDefault(),V())},[F,V]),S=c.useCallback(function(){D({type:"focus"})},[]),M=c.useCallback(function(){D({type:"blur"})},[]),Q=c.useCallback(function(){k||(Es()?setTimeout(V,0):V())},[k,V]),ve=function(O){return i?null:O},Ee=function(O){return p?null:ve(O)},Ae=function(O){return w?null:ve(O)},Pe=function(O){b&&O.stopPropagation()},Se=c.useMemo(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=P.refKey,le=O===void 0?"ref":O,me=P.role,Ce=P.onKeyDown,ze=P.onFocus,Ie=P.onBlur,re=P.onClick,Oe=P.onDragEnter,qe=P.onDragOver,_e=P.onDragLeave,N=P.onDrop,ae=Et(P,Os);return ge(ge(an({onKeyDown:Ee($e(Ce,K)),onFocus:Ee($e(ze,S)),onBlur:Ee($e(Ie,M)),onClick:ve($e(re,Q)),onDragEnter:Ae($e(Oe,ue)),onDragOver:Ae($e(qe,je)),onDragLeave:Ae($e(_e,ne)),onDrop:Ae($e(N,U)),role:typeof me=="string"&&me!==""?me:"presentation"},le,F),!i&&!p?{tabIndex:0}:{}),ae)}},[F,K,S,M,Q,ue,je,ne,U,p,w,i]),Te=c.useCallback(function(P){P.stopPropagation()},[]),Me=c.useMemo(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=P.refKey,le=O===void 0?"ref":O,me=P.onChange,Ce=P.onClick,ze=Et(P,Ls),Ie=an({accept:L,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ve($e(me,U)),onClick:ve($e(Ce,Te)),tabIndex:-1},le,E);return ge(ge({},Ie),ze)}},[E,n,l,U,i]);return ge(ge({},te),{},{isFocused:ee&&!i,getRootProps:Se,getInputProps:Me,rootRef:F,inputRef:E,open:ve(V)})}function Vs(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},rn),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ge(ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return ge({},rn);default:return e}}function ri(){}const si=Fe(o.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),li=Fe(o.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ks=Fe(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),Gs=Fe(o.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),ci=Fe(o.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),pi=Fe(o.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"})),di=Fe(o.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),Js=Fe(o.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),Xs=Fe(o.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Ys=Fe(o.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),ui=Fe(o.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"})),Zs=Fe(o.jsx("path",{d:"m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42M7 7h7v2H7zm10 10H7v-2h10zm0-4H7v-2h10z"})),Qs=Fe(o.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),mi=Fe([o.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),o.jsx("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")]),fi=Fe(o.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"})),el=e=>e.document.documents,tl=e=>e.document.pendingFiles,nl=e=>e.document.currentFolderName,il=e=>e.document.currentFolderHash,ol=gn([el],e=>e),al=gn([nl,il],(e,t)=>e||(t==="7d99a85daf66a0081a0e881630e6b39b"?"Dossier par défaut":"Dossier sans nom")),rl=({document:e,onClose:t})=>{const n=bi(),i=dt(p=>p.document.currentFolderHash),[a,r]=c.useState(null),[s,l]=c.useState(!0),[d,m]=c.useState(null),[v,h]=c.useState(1),[j,f]=c.useState(1),[u,C]=c.useState(0),[y,x]=c.useState(null);c.useEffect(()=>{l(!0),m(null),h(1),f(1);const p=setTimeout(()=>{C(3),l(!1)},1e3);return()=>clearTimeout(p)},[e]),c.useEffect(()=>{let p=!1;return(async()=>{try{const b=await fetch(`/api/cache/${e.id}`,{headers:{Accept:"application/json"}});if(!b.ok)return;const T=await b.json();p||r(T)}catch{}})(),()=>{p=!0}},[e]);const R=()=>{if(e.previewUrl){const p=window.document.createElement("a");p.href=e.previewUrl,p.download=e.name,p.click()}},g=e.mimeType.includes("pdf")||e.name.toLowerCase().endsWith(".pdf"),k=e.mimeType.startsWith("image/")||[".png",".jpg",".jpeg",".gif",".webp"].some(p=>e.name.toLowerCase().endsWith(p));return!g&&k?o.jsxs(Qe,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsx(_,{variant:"h6",children:e.name}),o.jsx(Vt,{onClick:t,title:"Fermer",children:o.jsx(li,{})})]})}),o.jsxs(tt,{dividers:!0,children:[o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[o.jsx(I,{}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(fi,{}),onClick:()=>f(p=>Math.max(p-.2,.2)),children:"Zoom -"}),o.jsxs(_,{variant:"body2",children:[Math.round(j*100),"%"]}),o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(mi,{}),onClick:()=>f(p=>Math.min(p+.2,4)),children:"Zoom +"})]})]}),o.jsx(I,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"auto",maxHeight:"70vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"grey.50"},children:e.previewUrl?o.jsx("img",{src:e.previewUrl,alt:e.name,style:{maxWidth:`${100*j}%`,maxHeight:`${100*j}%`,objectFit:"contain"},onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement de l'image"),l(!1)}}):o.jsxs(I,{textAlign:"center",p:4,children:[o.jsx(_,{variant:"h6",gutterBottom:!0,children:"Aperçu image"}),o.jsx(_,{variant:"body2",color:"text.secondary",children:"Le fichier a été uploadé avec succès."}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})}),o.jsxs(I,{sx:{mt:2},children:[o.jsx(_,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),o.jsxs(I,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Personnes"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4},defaultValue:p.firstName,onChange:b=>p.firstName=b.target.value}),o.jsx("input",{style:{padding:4},defaultValue:p.lastName,onChange:b=>p.lastName=b.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`pimg-${w}`,onClick:async()=>{if(i)try{x(`pimg-${w}`),await Xe(i,e.id,"person",{index:w,id:p.id,patch:{firstName:p.firstName,lastName:p.lastName}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"person",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.persons.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`pimg-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Adresses"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:220},defaultValue:p.street,onChange:b=>p.street=b.target.value}),o.jsx("input",{style:{padding:4,width:100},defaultValue:p.postalCode,onChange:b=>p.postalCode=b.target.value}),o.jsx("input",{style:{padding:4,width:160},defaultValue:p.city,onChange:b=>p.city=b.target.value}),o.jsx("input",{style:{padding:4,width:120},defaultValue:p.country||"",onChange:b=>p.country=b.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`aimg-${w}`,onClick:async()=>{if(i)try{x(`aimg-${w}`),await Xe(i,e.id,"address",{index:w,id:p.id,patch:{street:p.street,city:p.city,postalCode:p.postalCode,country:p.country}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"address",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.addresses.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`aimg-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Entreprises"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,children:o.jsx("input",{style:{padding:4,width:260},defaultValue:p.name,onChange:b=>p.name=b.target.value})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`cimg-${w}`,onClick:async()=>{if(i)try{x(`cimg-${w}`),await Xe(i,e.id,"company",{index:w,id:p.id,patch:{name:p.name}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"company",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.companies.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`cimg-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:t,children:"Fermer"}),o.jsx(X,{variant:"contained",startIcon:o.jsx(ci,{}),onClick:R,disabled:!e.previewUrl,children:"Télécharger"})]})]}):o.jsxs(Qe,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(ui,{color:"error"}),o.jsx(_,{variant:"h6",children:e.name})]}),o.jsx(Vt,{onClick:t,title:"Fermer",children:o.jsx(li,{})})]})}),o.jsxs(tt,{dividers:!0,children:[s&&o.jsxs(I,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:[o.jsx(yi,{}),o.jsx(_,{variant:"body2",sx:{ml:2},children:"Chargement du PDF..."})]}),d&&o.jsx(Kt,{severity:"error",sx:{mb:2},children:d}),!s&&!d&&o.jsxs(I,{children:[o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(Xs,{}),onClick:()=>h(p=>Math.max(p-1,1)),disabled:v<=1,children:"Précédent"}),o.jsxs(_,{variant:"body2",children:["Page ",v," sur ",u]}),o.jsx(X,{variant:"outlined",size:"small",endIcon:o.jsx(Ys,{}),onClick:()=>h(p=>Math.min(p+1,u)),disabled:v>=u,children:"Suivant"})]}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(fi,{}),onClick:()=>f(p=>Math.max(p-.2,.5)),children:"Zoom -"}),o.jsxs(_,{variant:"body2",children:[Math.round(j*100),"%"]}),o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(mi,{}),onClick:()=>f(p=>Math.min(p+.2,2)),children:"Zoom +"})]})]}),o.jsx(I,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"hidden",maxHeight:"70vh",display:"flex",justifyContent:"center",backgroundColor:"grey.50"},children:e.previewUrl?o.jsx(I,{sx:{width:"100%",height:"600px"},children:o.jsx("iframe",{src:`${e.previewUrl}#toolbar=1&navpanes=1&scrollbar=1&page=1&view=FitH`,width:"100%",height:"100%",style:{border:"none",transform:`scale(${j})`,transformOrigin:"top left",width:`${100/j}%`,height:`${600/j}px`},title:`Aperçu de ${e.name}`,onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement du PDF"),l(!1)}})}):o.jsx(I,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:o.jsxs(I,{textAlign:"center",children:[o.jsx(ui,{sx:{fontSize:64,color:"error.main",mb:2}}),o.jsx(_,{variant:"h6",gutterBottom:!0,children:"Aperçu PDF"}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:['Le fichier PDF "',e.name,'" a été uploadé avec succès.']}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})})}),o.jsxs(I,{sx:{mt:2},children:[o.jsx(_,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),o.jsxs(I,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Personnes"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4},placeholder:"Prénom",defaultValue:p.firstName,onChange:b=>p.firstName=b.target.value}),o.jsx("input",{style:{padding:4},placeholder:"Nom",defaultValue:p.lastName,onChange:b=>p.lastName=b.target.value}),o.jsx("input",{style:{padding:4,width:220},placeholder:"Description",defaultValue:p.description||"",onChange:b=>p.description=b.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`p-${w}`,onClick:async()=>{if(i)try{x(`p-${w}`),await Xe(i,e.id,"person",{index:w,id:p.id,patch:{firstName:p.firstName,lastName:p.lastName,description:p.description||""}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"person",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.persons.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`p-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Adresses"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:220},placeholder:"Rue",defaultValue:p.street,onChange:b=>p.street=b.target.value}),o.jsx("input",{style:{padding:4,width:100},placeholder:"CP",defaultValue:p.postalCode,onChange:b=>p.postalCode=b.target.value}),o.jsx("input",{style:{padding:4,width:160},placeholder:"Ville",defaultValue:p.city,onChange:b=>p.city=b.target.value}),o.jsx("input",{style:{padding:4,width:120},placeholder:"Pays",defaultValue:p.country||"",onChange:b=>p.country=b.target.value}),o.jsx("input",{style:{padding:4,width:220},placeholder:"Description",defaultValue:p.description||"",onChange:b=>p.description=b.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`a-${w}`,onClick:async()=>{if(i)try{x(`a-${w}`),await Xe(i,e.id,"address",{index:w,id:p.id,patch:{street:p.street,city:p.city,postalCode:p.postalCode,country:p.country,description:p.description||""}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"address",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.addresses.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`a-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Entreprises"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((p,w)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:260},placeholder:"Raison sociale",defaultValue:p.name,onChange:b=>p.name=b.target.value}),o.jsx("input",{style:{padding:4,width:240},placeholder:"Description",defaultValue:p.description||"",onChange:b=>p.description=b.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||y===`c-${w}`,onClick:async()=>{if(i)try{x(`c-${w}`),await Xe(i,e.id,"company",{index:w,id:p.id,patch:{name:p.name,description:p.description||""}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"company",{index:w,id:p.id}),await n(Re(i)).unwrap();const b=JSON.parse(JSON.stringify(a));b.extraction.entities.companies.splice(w,1),r(b)}catch{}},children:"Supprimer"})]})]},`c-${w}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:t,children:"Fermer"}),o.jsx(X,{variant:"contained",startIcon:o.jsx(ci,{}),onClick:R,disabled:!e.previewUrl,children:"Télécharger"})]})]})},sl=c.memo(({doc:e,index:t,onPreview:n,onDelete:i,onReplace:a,onConfirmAddress:r,onReview:s,onOpenCorrections:l,isReviewing:d,totalCount:m})=>{const v=f=>f.startsWith("image/")?o.jsx(Js,{}):f==="application/pdf"?o.jsx(Sn,{}):f.startsWith("text/")?o.jsx(Zs,{}):o.jsx(Sn,{}),h=f=>{switch(f){case"completed":return o.jsx(so,{color:"success"});case"processing":return o.jsx(di,{color:"warning"});case"error":return o.jsx(ro,{color:"error"});default:return o.jsx(di,{color:"disabled"})}},j=f=>{switch(f){case"completed":return"success";case"processing":return"warning";case"error":return"error";default:return"default"}};return o.jsxs("div",{children:[o.jsxs(Xt,{children:[o.jsx(ji,{children:v(e.mimeType)}),o.jsx(Yt,{primary:o.jsxs(I,{children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,mb:1,children:[h(e.status),o.jsx(_,{variant:"subtitle1",sx:{wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",maxWidth:{xs:"200px",sm:"300px",md:"400px"}},children:(()=>{if(e.status==="processing"&&e.name===e.id){const u=["53985cbd461f137c847a13f6a4b82758e5920fb9ccc3ffea9d5d1ac99007e6ce.jpg","aceeb1161004f938d2abf1b88b216ef1ea68fad6141374a66efbdda9d796ac6e.jpg"].find(C=>C.startsWith(e.id));if(u)return u}return e.displayName||e.name})()})]}),o.jsxs(I,{display:"flex",gap:1,flexWrap:"wrap",children:[o.jsx(Ue,{label:e.status,size:"small",color:j(e.status)}),e.mimeType&&e.mimeType!=="application/octet-stream"&&o.jsx(Ue,{label:e.mimeType,size:"small",variant:"outlined"}),e.size>0&&o.jsx(Ue,{label:`${(e.size/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"}),d&&o.jsx(Ue,{color:"default",label:"Révision IA en cours…",size:"small"}),(()=>{const f=e,u=f?.metadata?.quality?.ollamaScore??f?.status?.review?.score,C=f?.status?.review?.avis,y=f?.status?.review?.durationMs;if(e.status==="completed"&&typeof u=="number"){const x=o.jsx(Ue,{color:"success",label:`IA: ${u.toFixed(2)}`,size:"small",variant:"outlined"}),R=`${C||""}${y?(C?" — ":"")+"durée: "+y+" ms":""}`;return R?o.jsx(Gt,{title:R,children:o.jsx("span",{children:x})}):x}return null})(),(()=>{const u=e?.status?.review?.corrections,C=Array.isArray(u)?u.length:0;return e.status==="completed"&&C>0?o.jsx(Ue,{color:"info",label:`Corrections: ${C}`,size:"small",variant:"outlined",onClick:()=>l(e,u)}):null})(),e.status==="completed"&&e?.suggestions?.needsReupload&&o.jsx(Ue,{color:"warning",label:"Qualité faible: remplacer",size:"small",onClick:()=>a(e)}),e.status==="completed"&&e?.suggestions?.needsAddressConfirmation&&o.jsx(Ue,{color:"info",label:"Adresse à confirmer",size:"small",onClick:()=>r(e)})]})]})}),o.jsxs(I,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[o.jsx(X,{size:"small",startIcon:o.jsx(Qs,{}),onClick:()=>n(e),disabled:e.status!=="completed",fullWidth:!0,children:"Aperçu"}),o.jsx(Gt,{title:"Analyse IA (Ollama): calcule un score de fiabilité, propose des corrections, ajoute un avis.",children:o.jsx("span",{children:o.jsx(X,{size:"small",onClick:()=>s(e),disabled:e.status!=="completed"||d,fullWidth:!0,children:d?"Révision IA…":"Révision IA"})})}),o.jsx(X,{size:"small",color:"error",onClick:()=>i(e.id),fullWidth:!0,children:"Supprimer"})]})]}),tS.document),s=dt(al),l=dt(ol),d=dt(tl),m=l;console.log("🏠 [UPLOAD_VIEW] Component loaded, documents count:",m.length);const[v,h]=c.useState(null),j=c.useCallback(S=>{e(Xi(S))},[e]),[f,u]=c.useState(!1),[C,y]=c.useState(!1),[x,R]=c.useState(""),[g,k]=c.useState(""),[p,w]=c.useState(""),[b,T]=c.useState(!1),[z,L]=c.useState({street:"",city:"",postalCode:"",country:"France"}),[H,B]=c.useState(null),[q,F]=c.useState(!1),[E,A]=c.useState(null),[G,te]=c.useState([]),[D,ee]=c.useState(null),[ie,Z]=c.useState({open:!1,severity:"success",message:""}),J=c.useCallback(S=>{try{const Q=(S.suggestions||{}).detectedAddress||{street:"",city:"",postalCode:"",country:"France"};L({street:Q.street||"",city:Q.city||"",postalCode:Q.postalCode||"",country:Q.country||"France"}),B(S),T(!0)}catch(M){console.error("❌ Préparation confirmation adresse:",M)}},[]),Y=c.useCallback(async()=>{if(!(!n||!H))try{await Yi(n,H.id,z),T(!1),await e(Re(n)).unwrap()}catch(S){console.error("❌ Confirmation adresse:",S)}},[n,H,z,e]),oe=c.useCallback(async S=>{if(n)try{ee(S.id),await Zi(n,S.id),await e(Re(n)).unwrap(),Z({open:!0,severity:"success",message:"Révision IA terminée: score et corrections mis à jour."})}catch(M){console.error("❌ Révision IA:",M),Z({open:!0,severity:"error",message:"Échec de la révision IA. Réessaie plus tard."})}finally{ee(null)}},[n,e]),ce=c.useCallback(S=>{const M=document.createElement("input");M.type="file",M.accept="image/*,application/pdf",M.onchange=async()=>{const Q=M.files&&M.files[0]||null;if(!(!Q||!n))try{await Qi(n,S.id),await e(yn({file:Q,folderHash:n})).unwrap(),await e(Re(n)).unwrap()}catch(ve){console.error("❌ Remplacement de document:",ve)}},M.click()},[n,e]),ue=c.useCallback(async()=>{try{const S=await fetch("/api/folders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:x||"Nouveau dossier",description:g||""})});if(!S.ok)throw new Error(await S.text());const M=await S.json();e(wn(M.folderHash)),await e(Re(M.folderHash)).unwrap(),console.log("✅ [UPLOAD] Nouveau dossier créé:",M.folderHash),y(!1),R(""),k("")}catch(S){console.error("❌ [UPLOAD] Erreur lors de la création du dossier:",S)}},[e]),je=c.useCallback(async()=>{if(p.trim())try{e(wn(p.trim())),await e(Re(p.trim())).unwrap(),console.log("✅ [UPLOAD] Dossier chargé:",p.trim()),u(!1),w("")}catch(S){console.error("❌ [UPLOAD] Erreur lors du chargement du dossier:",S)}},[e,p]),ne=c.useCallback(()=>{n&&(navigator.clipboard.writeText(n),console.log("📋 [UPLOAD] Hash du dossier copié:",n))},[n]),$=c.useCallback(async S=>{if(!n){console.error("❌ [UPLOAD] Aucun dossier sélectionné");return}const M=S.map(async Q=>{try{console.log(`📤 [UPLOAD] Upload de ${Q.name} dans le dossier ${n}`),await e(yn({file:Q,folderHash:n})).unwrap(),await e(Re(n)).unwrap(),console.log(`✅ [UPLOAD] ${Q.name} uploadé avec succès`)}catch(ve){console.error(`❌ [UPLOAD] Erreur lors du traitement de ${Q.name}:`,ve)}});await Promise.all(M)},[e,n]),{getRootProps:U,getInputProps:V,isDragActive:K}=_i({onDrop:$,accept:{"application/pdf":[".pdf"],"image/*":[".png",".jpg",".jpeg",".tiff"]},multiple:!0});return c.useEffect(()=>{(async()=>{if(n&&!(s&&s.length>0))try{const M=await fetch(`/api/folders/${n}/meta`);if(M.ok){const Q=await M.json();Q?.name&&window.dispatchEvent(new CustomEvent("4nk:setFolderName",{detail:Q.name}))}}catch{}})()},[n,s]),!a||i?o.jsx(kn,{children:o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"center",minHeight:240,children:[o.jsx(yi,{size:28,sx:{mr:2}}),o.jsx(_,{children:"Chargement des fichiers du dossier…"})]})}):o.jsxs(kn,{children:[o.jsx(_,{variant:"h4",gutterBottom:!0,children:"Analyse de documents IA"}),o.jsx(I,{sx:{mb:3,p:2,bgcolor:"grey.50",borderRadius:1,border:"1px solid",borderColor:"grey.200"},children:o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:2,children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:2,children:[o.jsx(_,{variant:"h6",color:"text.secondary",children:"Dossier actuel :"}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(_,{variant:"body1",sx:{fontFamily:"monospace",bgcolor:"grey.100",px:1,py:.5,borderRadius:1,fontSize:"0.875rem"},children:s||(n?"Dossier sans nom":"Aucun dossier sélectionné")}),n&&o.jsx(Gt,{title:"Copier le hash du dossier",children:o.jsx(Vt,{size:"small",onClick:ne,children:o.jsx(Gs,{fontSize:"small"})})})]})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{variant:"outlined",startIcon:o.jsx(si,{}),onClick:()=>y(!0),size:"small",children:"CRÉER UN DOSSIER"}),o.jsx(X,{variant:"outlined",startIcon:o.jsx(pi,{}),onClick:()=>u(!0),size:"small",children:"Charger dossier"})]})]})}),o.jsxs(xt,{...U(),sx:{p:{xs:2,sm:4},textAlign:"center",cursor:"pointer",border:"2px dashed",borderColor:K?"primary.main":"grey.300",bgcolor:K?"action.hover":"background.paper","&:hover":{borderColor:"primary.main",bgcolor:"action.hover"}},children:[o.jsx("input",{...V()}),o.jsx(Ks,{sx:{fontSize:{xs:36,sm:48},color:"primary.main",mb:2}}),o.jsx(_,{variant:"h6",gutterBottom:!0,sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"}},children:K?"Déposez les fichiers ici...":"Glissez-déposez vos documents ou cliquez pour sélectionner"}),o.jsx(_,{variant:"body2",color:"text.secondary",sx:{fontSize:{xs:"0.75rem",sm:"0.875rem"}},children:"Formats acceptés: PDF, PNG, JPG, JPEG, TIFF"})]}),t&&o.jsx(Kt,{severity:"error",sx:{mt:2},children:t}),(m.length>0||r)&&o.jsxs(I,{sx:{mt:3},children:[o.jsxs(_,{variant:"h6",gutterBottom:!0,children:["Documents analysés (",m.length,")"]}),o.jsx(no,{children:o.jsxs(Jt,{children:[m.map((S,M)=>o.jsx(sl,{doc:S,index:M,onPreview:h,onDelete:j,onReplace:ce,onConfirmAddress:J,onReview:oe,onOpenCorrections:(Q,ve)=>{A(Q),te(ve),F(!0)},isReviewing:D===S.id,totalCount:m.length},`${S.id}-${M}`)),r&&o.jsx(o.Fragment,{children:(d.length>0?d:new Array(2).fill(null)).map((S,M)=>o.jsxs("div",{children:[o.jsxs(Xt,{children:[o.jsx(ji,{children:o.jsx(Ze,{variant:"circular",width:24,height:24})}),o.jsx(Yt,{primary:o.jsxs(I,{children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,mb:1,children:o.jsx(Ze,{variant:"rounded",width:180,height:18})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(Ze,{variant:"rounded",width:60,height:24}),o.jsx(Ze,{variant:"rounded",width:100,height:24})]})]})}),o.jsxs(I,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[o.jsx(Ze,{variant:"rounded",width:84,height:32}),o.jsx(Ze,{variant:"rounded",width:84,height:32})]})]}),o.jsx(St,{})]},`sk-${M}`))})]})})]}),v&&o.jsx(rl,{document:v,onClose:()=>h(null)}),o.jsxs(Qe,{open:f,onClose:()=>u(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(pi,{}),"Charger un dossier existant"]})}),o.jsxs(tt,{children:[o.jsx(_,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Entrez le hash du dossier que vous souhaitez charger. Le hash est un identifiant unique de 32 caractères."}),o.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Hash du dossier",placeholder:"ex: 0e7ae08a4f14f3154be1bd69d5617c74",fullWidth:!0,variant:"outlined",value:p,onChange:S=>w(S.target.value),sx:{fontFamily:"monospace"},helperText:"Le hash doit contenir exactement 32 caractères hexadécimaux"})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>u(!1),children:"Annuler"}),o.jsx(X,{onClick:je,variant:"contained",disabled:!p.trim()||p.trim().length!==32,children:"Charger le dossier"})]})]}),o.jsxs(Qe,{open:C,onClose:()=>y(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(si,{}),"Créer un nouveau dossier"]})}),o.jsxs(tt,{children:[o.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Nom du dossier",fullWidth:!0,variant:"outlined",value:x,onChange:S=>R(S.target.value)}),o.jsx(Ke,{margin:"dense",label:"Description",fullWidth:!0,multiline:!0,minRows:2,variant:"outlined",value:g,onChange:S=>k(S.target.value)})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>y(!1),children:"Annuler"}),o.jsx(X,{onClick:ue,variant:"contained",disabled:!x.trim(),children:"Créer"})]})]}),o.jsxs(Qe,{open:b,onClose:()=>T(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:"Confirmer l'adresse détectée"}),o.jsxs(tt,{children:[o.jsx(Ke,{margin:"dense",label:"Rue",fullWidth:!0,variant:"outlined",value:z.street,onChange:S=>L({...z,street:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Code postal",fullWidth:!0,variant:"outlined",value:z.postalCode,onChange:S=>L({...z,postalCode:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Ville",fullWidth:!0,variant:"outlined",value:z.city,onChange:S=>L({...z,city:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Pays",fullWidth:!0,variant:"outlined",value:z.country,onChange:S=>L({...z,country:S.target.value})})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>T(!1),children:"Annuler"}),o.jsx(X,{variant:"contained",onClick:Y,children:"Confirmer"})]})]}),o.jsxs(Qe,{open:q,onClose:()=>F(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:"Corrections proposées par l'IA"}),o.jsxs(tt,{children:[E?o.jsxs(_,{variant:"subtitle2",sx:{mb:1},children:["Document: ",E.displayName||E.name]}):null,Array.isArray(G)&&G.length>0?o.jsx(Jt,{children:G.map((S,M)=>o.jsx(Xt,{alignItems:"flex-start",children:o.jsx(Yt,{primary:S?.path?String(S.path):`Correction ${M+1}`,secondary:o.jsxs(o.Fragment,{children:[o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Valeur: ",typeof S?.value=="object"?JSON.stringify(S.value):String(S?.value??"")]}),typeof S?.confidence=="number"&&o.jsxs(_,{variant:"caption",color:"text.secondary",children:["Confiance: ",S.confidence.toFixed?S.confidence.toFixed(2):S.confidence]})]})})},`corr-${M}`))}):o.jsx(_,{variant:"body2",color:"text.secondary",children:"Aucune correction disponible."})]}),o.jsx(et,{children:o.jsx(X,{onClick:()=>F(!1),children:"Fermer"})})]}),o.jsx(Lr,{open:ie.open,autoHideDuration:3e3,onClose:()=>Z({...ie,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:o.jsx(Kt,{onClose:()=>Z({...ie,open:!1}),severity:ie.severity,variant:"filled",sx:{width:"100%"},children:ie.message})})]})}export{xl as default}; diff --git a/public/assets/UploadView-DnzLUTnw.js b/public/assets/UploadView-DnzLUTnw.js new file mode 100644 index 0000000..e3b119a --- /dev/null +++ b/public/assets/UploadView-DnzLUTnw.js @@ -0,0 +1,43 @@ +import{g as xi,c as de,r as c,u as jt,j as o,a as he,b as be,s as W,d as ye,e as Vi,m as ke,f as fe,h as xe,i as vi,k as sn,T as _,l as ln,n as He,o as It,p as Ki,q as Gi,t as gi,v as hi,w as bn,R as Ji,x as bi,y as dt,B as I,z as Xe,A as Re,C as Ye,D as yi,E as Xi,F as Yi,G as Zi,H as Qi,I as yn,J as wn}from"./index-CuLfHvEh.js";import{u as Be,o as We,a as it,d as wi,i as Ut,c as Fe,b as cn,e as pe,f as Te,g as _t,P as xt,h as eo,j as to,I as Vt,B as X,A as Kt,L as kn,C as no,k as Ue}from"./Layout-BwmFxbkK.js";import{T as io,g as jn,r as oo,u as Cn}from"./utils-D0Kc04Qe.js";import{g as Ft,P as ao,G as ki,T as Gt,D as Sn}from"./Description-yqIIsJEy.js";import{i as Mt,L as Jt,a as Xt,b as Yt}from"./ListItemText-CTwsrdAB.js";import{L as ji}from"./ListItemIcon-CEKqafqQ.js";import{E as ro,C as so}from"./Error-CwTwgto-.js";var Ot={exports:{}},Lt,Rn;function lo(){if(Rn)return Lt;Rn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lt=e,Lt}var Nt,Pn;function co(){if(Pn)return Nt;Pn=1;var e=lo();function t(){}function n(){}return n.resetWarningCache=t,Nt=function(){function i(s,l,d,m,v,h){if(h!==e){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}i.isRequired=i;function a(){return i}var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},Nt}var En;function po(){return En||(En=1,Ot.exports=co()()),Ot.exports}var uo=po();const se=xi(uo);function mo(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function fo(e){return parseFloat(e)}function In(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function xo(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function vo(e,t){if(!e)return t;function n(s,l){const d={};return Object.keys(l).forEach(m=>{xo(m,l[m])&&typeof s[m]=="function"&&(d[m]=(...v)=>{s[m](...v),l[m](...v)})}),d}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,d=typeof e=="function"?e({...s,...l}):e,m=de(s?.className,l?.className,d?.className),v=n(d,l);return{...l,...d,...v,...!!m&&{className:m},...l?.style&&d?.style&&{style:{...l.style,...d.style}},...l?.sx&&d?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const i=t,a=n(e,i),r=de(i?.className,e?.className);return{...t,...e,...a,...!!r&&{className:r},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function gt(e){return parseInt(e,10)||0}const go={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ho(e){for(const t in e)return!1;return!0}function Fn(e){return ho(e)||e.outerHeightStyle===0&&!e.overflowing}const bo=c.forwardRef(function(t,n){const{onChange:i,maxRows:a,minRows:r=1,style:s,value:l,...d}=t,{current:m}=c.useRef(l!=null),v=c.useRef(null),h=Be(n,v),j=c.useRef(null),f=c.useRef(null),u=c.useCallback(()=>{const g=v.current,k=f.current;if(!g||!k)return;const y=We(g).getComputedStyle(g);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=y.width,k.value=g.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const w=y.boxSizing,D=gt(y.paddingBottom)+gt(y.paddingTop),z=gt(y.borderBottomWidth)+gt(y.borderTopWidth),L=k.scrollHeight;k.value="x";const H=k.scrollHeight;let B=L;r&&(B=Math.max(Number(r)*H,B)),a&&(B=Math.min(Number(a)*H,B)),B=Math.max(B,H);const q=B+(w==="border-box"?D+z:0),F=Math.abs(B-L)<=1;return{outerHeightStyle:q,overflowing:F}},[a,r,t.placeholder]),C=it(()=>{const g=v.current,k=u();if(!g||!k||Fn(k))return!1;const p=k.outerHeightStyle;return j.current!=null&&j.current!==p}),b=c.useCallback(()=>{const g=v.current,k=u();if(!g||!k||Fn(k))return;const p=k.outerHeightStyle;j.current!==p&&(j.current=p,g.style.height=`${p}px`),g.style.overflow=k.overflowing?"hidden":""},[u]),x=c.useRef(-1);jt(()=>{const g=wi(b),k=v?.current;if(!k)return;const p=We(k);p.addEventListener("resize",g);let y;return typeof ResizeObserver<"u"&&(y=new ResizeObserver(()=>{C()&&(y.unobserve(k),cancelAnimationFrame(x.current),b(),x.current=requestAnimationFrame(()=>{y.observe(k)}))}),y.observe(k)),()=>{g.clear(),cancelAnimationFrame(x.current),p.removeEventListener("resize",g),y&&y.disconnect()}},[u,b,C]),jt(()=>{b()});const R=g=>{m||b();const k=g.target,p=k.value.length,y=k.value.endsWith(` +`),w=k.selectionStart===p;y&&w&&k.setSelectionRange(p,p),i&&i(g)};return o.jsxs(c.Fragment,{children:[o.jsx("textarea",{value:l,onChange:R,ref:h,rows:r,style:s,...d}),o.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...go.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function rt({props:e,states:t,muiFormControl:n}){return t.reduce((i,a)=>(i[a]=e[a],n&&typeof e[a]>"u"&&(i[a]=n[a]),i),{})}const pn=c.createContext(void 0);function st(){return c.useContext(pn)}function An(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ct(e,t=!1){return e&&(An(e.value)&&e.value!==""||t&&An(e.defaultValue)&&e.defaultValue!=="")}function yo(e){return e.startAdornment}function wo(e){return be("MuiInputBase",e)}const ot=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Tn;const At=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Tt=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ko=e=>{const{classes:t,color:n,disabled:i,error:a,endAdornment:r,focused:s,formControl:l,fullWidth:d,hiddenLabel:m,multiline:v,readOnly:h,size:j,startAdornment:f,type:u}=e,C={root:["root",`color${fe(n)}`,i&&"disabled",a&&"error",d&&"fullWidth",s&&"focused",l&&"formControl",j&&j!=="medium"&&`size${fe(j)}`,v&&"multiline",f&&"adornedStart",r&&"adornedEnd",m&&"hiddenLabel",h&&"readOnly"],input:["input",i&&"disabled",u==="search"&&"inputTypeSearch",v&&"inputMultiline",j==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",f&&"inputAdornedStart",r&&"inputAdornedEnd",h&&"readOnly"]};return xe(C,wo,t)},Dt=W("div",{name:"MuiInputBase",slot:"Root",overridesResolver:At})(ke(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),zt=W("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Tt})(ke(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ot.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ot.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:r})=>!r.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:r})=>r.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Dn=Vi({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:r,autoFocus:s,className:l,color:d,components:m={},componentsProps:v={},defaultValue:h,disabled:j,disableInjectingGlobalStyles:f,endAdornment:u,error:C,fullWidth:b=!1,id:x,inputComponent:R="input",inputProps:g={},inputRef:k,margin:p,maxRows:y,minRows:w,multiline:D=!1,name:z,onBlur:L,onChange:H,onClick:B,onFocus:q,onKeyDown:F,onKeyUp:E,placeholder:A,readOnly:G,renderSuffix:te,rows:T,size:ee,slotProps:ie={},slots:Z={},startAdornment:J,type:Y="text",value:oe,...ce}=i,ue=g.value!=null?g.value:oe,{current:je}=c.useRef(ue!=null),ne=c.useRef(),$=c.useCallback(re=>{},[]),U=Be(ne,k,g.ref,$),[V,K]=c.useState(!1),S=st(),M=rt({props:i,muiFormControl:S,states:["color","disabled","error","hiddenLabel","size","required","filled"]});M.focused=S?S.focused:V,c.useEffect(()=>{!S&&j&&V&&(K(!1),L&&L())},[S,j,V,L]);const Q=S&&S.onFilled,ve=S&&S.onEmpty,Ee=c.useCallback(re=>{Ct(re)?Q&&Q():ve&&ve()},[Q,ve]);jt(()=>{je&&Ee({value:ue})},[ue,Ee,je]);const Ae=re=>{q&&q(re),g.onFocus&&g.onFocus(re),S&&S.onFocus?S.onFocus(re):K(!0)},Pe=re=>{L&&L(re),g.onBlur&&g.onBlur(re),S&&S.onBlur?S.onBlur(re):K(!1)},Se=(re,...Oe)=>{if(!je){const qe=re.target||ne.current;if(qe==null)throw new Error(vi(1));Ee({value:qe.value})}g.onChange&&g.onChange(re,...Oe),H&&H(re,...Oe)};c.useEffect(()=>{Ee(ne.current)},[]);const De=re=>{ne.current&&re.currentTarget===re.target&&ne.current.focus(),B&&B(re)};let Me=R,P=g;D&&Me==="input"&&(T?P={type:void 0,minRows:T,maxRows:T,...P}:P={type:void 0,maxRows:y,minRows:w,...P},Me=bo);const O=re=>{Ee(re.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};c.useEffect(()=>{S&&S.setAdornedStart(!!J)},[S,J]);const le={...i,color:M.color||"primary",disabled:M.disabled,endAdornment:u,error:M.error,focused:M.focused,formControl:S,fullWidth:b,hiddenLabel:M.hiddenLabel,multiline:D,size:M.size,startAdornment:J,type:Y},me=ko(le),Ce=Z.root||m.Root||Dt,ze=ie.root||v.root||{},Ie=Z.input||m.Input||zt;return P={...P,...ie.input??v.input},o.jsxs(c.Fragment,{children:[!f&&typeof Dn=="function"&&(Tn||(Tn=o.jsx(Dn,{}))),o.jsxs(Ce,{...ze,ref:n,onClick:De,...ce,...!Ut(Ce)&&{ownerState:{...le,...ze.ownerState}},className:de(me.root,ze.className,l,G&&"MuiInputBase-readOnly"),children:[J,o.jsx(pn.Provider,{value:null,children:o.jsx(Ie,{"aria-invalid":M.error,"aria-describedby":a,autoComplete:r,autoFocus:s,defaultValue:h,disabled:M.disabled,id:x,onAnimationStart:O,name:z,placeholder:A,readOnly:G,required:M.required,rows:T,value:ue,onKeyDown:F,onKeyUp:E,type:Y,...P,...!Ut(Ie)&&{as:Me,ownerState:{...le,...P.ownerState}},ref:U,className:de(me.input,P.className,G&&"MuiInputBase-readOnly"),onBlur:Pe,onChange:Se,onFocus:Ae})}),u,te?te({...M,startAdornment:J}):null]})]})});function jo(e){return be("MuiInput",e)}const lt={...ot,...he("MuiInput",["root","underline","input"])};function Co(e){return be("MuiOutlinedInput",e)}const Ne={...ot,...he("MuiOutlinedInput",["root","notchedOutline","input"])};function So(e){return be("MuiFilledInput",e)}const Ve={...ot,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Ro=Fe(o.jsx("path",{d:"M7 10l5 5 5-5z"})),Po={entering:{opacity:1},entered:{opacity:1}},Zt=c.forwardRef(function(t,n){const i=cn(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:l,easing:d,in:m,onEnter:v,onEntered:h,onEntering:j,onExit:f,onExited:u,onExiting:C,style:b,timeout:x=a,TransitionComponent:R=io,...g}=t,k=c.useRef(null),p=Be(k,Ft(l),n),y=F=>E=>{if(F){const A=k.current;E===void 0?F(A):F(A,E)}},w=y(j),D=y((F,E)=>{oo(F);const A=jn({style:b,timeout:x,easing:d},{mode:"enter"});F.style.webkitTransition=i.transitions.create("opacity",A),F.style.transition=i.transitions.create("opacity",A),v&&v(F,E)}),z=y(h),L=y(C),H=y(F=>{const E=jn({style:b,timeout:x,easing:d},{mode:"exit"});F.style.webkitTransition=i.transitions.create("opacity",E),F.style.transition=i.transitions.create("opacity",E),f&&f(F)}),B=y(u),q=F=>{r&&r(k.current,F)};return o.jsx(R,{appear:s,in:m,nodeRef:k,onEnter:D,onEntered:z,onEntering:w,onExit:H,onExited:B,onExiting:L,addEndListener:q,timeout:x,...g,children:(F,{ownerState:E,...A})=>c.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!m?"hidden":void 0,...Po[F],...b,...l.props.style},ref:p,...A})})});function Eo(e){return be("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const Io=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},Eo,t)},Fo=W("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ci=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiBackdrop"}),{children:a,className:r,component:s="div",invisible:l=!1,open:d,components:m={},componentsProps:v={},slotProps:h={},slots:j={},TransitionComponent:f,transitionDuration:u,...C}=i,b={...i,component:s,invisible:l},x=Io(b),R={transition:f,root:m.Root,...j},g={...v,...h},k={component:s,slots:R,slotProps:g},[p,y]=pe("root",{elementType:Fo,externalForwardedProps:k,className:de(x.root,r),ownerState:b}),[w,D]=pe("transition",{elementType:Zt,externalForwardedProps:k,ownerState:b});return o.jsx(w,{in:d,timeout:u,...C,...D,children:o.jsx(p,{"aria-hidden":!0,...y,classes:x,ref:n,children:a})})});function zn(e){return e.substring(2).toLowerCase()}function Ao(e,t){return t.documentElement.clientWidth(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const v=Be(Ft(t),l),h=it(u=>{const C=m.current;m.current=!1;const b=Te(l.current);if(!d.current||!l.current||"clientX"in u&&Ao(u,b))return;if(s.current){s.current=!1;return}let x;u.composedPath?x=u.composedPath().includes(l.current):x=!b.documentElement.contains(u.target)||l.current.contains(u.target),!x&&(n||!C)&&a(u)}),j=u=>C=>{m.current=!0;const b=t.props[u];b&&b(C)},f={ref:v};return r!==!1&&(f[r]=j(r)),c.useEffect(()=>{if(r!==!1){const u=zn(r),C=Te(l.current),b=()=>{s.current=!0};return C.addEventListener(u,h),C.addEventListener("touchmove",b),()=>{C.removeEventListener(u,h),C.removeEventListener("touchmove",b)}}},[h,r]),i!==!1&&(f[i]=j(i)),c.useEffect(()=>{if(i!==!1){const u=zn(i),C=Te(l.current);return C.addEventListener(u,h),()=>{C.removeEventListener(u,h)}}},[h,i]),c.cloneElement(t,f)}function Si(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Do(e){const t=Te(e);return t.body===e?We(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ut(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mn(e){return parseInt(We(e).getComputedStyle(e).paddingRight,10)||0}function zo(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function On(e,t,n,i,a){const r=[t,n,...i];[].forEach.call(e.children,s=>{const l=!r.includes(s),d=!zo(s);l&&d&&ut(s,a)})}function $t(e,t){let n=-1;return e.some((i,a)=>t(i)?(n=a,!0):!1),n}function Mo(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(Do(i)){const s=Si(We(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Mn(i)+s}px`;const l=Te(i).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Mn(d)+s}px`})}let r;if(i.parentNode instanceof DocumentFragment)r=Te(i).body;else{const s=i.parentElement,l=We(i);r=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:i}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:s,property:l})=>{r?s.style.setProperty(l,r):s.style.removeProperty(l)})}}function Oo(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Lo{constructor(){this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&ut(t.modalRef,!1);const a=Oo(n);On(n,t.mount,t.modalRef,a,!0);const r=$t(this.containers,s=>s.container===n);return r!==-1?(this.containers[r].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),i)}mount(t,n){const i=$t(this.containers,r=>r.modals.includes(t)),a=this.containers[i];a.restore||(a.restore=Mo(a,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const a=$t(this.containers,s=>s.modals.includes(t)),r=this.containers[a];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(i,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&ut(t.modalRef,n),On(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=r.modals[r.modals.length-1];s.modalRef&&ut(s.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const No=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $o(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Wo(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Ho(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Wo(e))}function Bo(e){const t=[],n=[];return Array.from(e.querySelectorAll(No)).forEach((i,a)=>{const r=$o(i);r===-1||!Ho(i)||(r===0?t.push(i):n.push({documentOrder:a,tabIndex:r,node:i}))}),n.sort((i,a)=>i.tabIndex===a.tabIndex?i.documentOrder-a.documentOrder:i.tabIndex-a.tabIndex).map(i=>i.node).concat(t)}function qo(){return!0}function Uo(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:a=!1,getTabbable:r=Bo,isEnabled:s=qo,open:l}=e,d=c.useRef(!1),m=c.useRef(null),v=c.useRef(null),h=c.useRef(null),j=c.useRef(null),f=c.useRef(!1),u=c.useRef(null),C=Be(Ft(t),u),b=c.useRef(null);c.useEffect(()=>{!l||!u.current||(f.current=!n)},[n,l]),c.useEffect(()=>{if(!l||!u.current)return;const g=Te(u.current);return u.current.contains(g.activeElement)||(u.current.hasAttribute("tabIndex")||u.current.setAttribute("tabIndex","-1"),f.current&&u.current.focus()),()=>{a||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[l]),c.useEffect(()=>{if(!l||!u.current)return;const g=Te(u.current),k=w=>{b.current=w,!(i||!s()||w.key!=="Tab")&&g.activeElement===u.current&&w.shiftKey&&(d.current=!0,v.current&&v.current.focus())},p=()=>{const w=u.current;if(w===null)return;if(!g.hasFocus()||!s()||d.current){d.current=!1;return}if(w.contains(g.activeElement)||i&&g.activeElement!==m.current&&g.activeElement!==v.current)return;if(g.activeElement!==j.current)j.current=null;else if(j.current!==null)return;if(!f.current)return;let D=[];if((g.activeElement===m.current||g.activeElement===v.current)&&(D=r(u.current)),D.length>0){const z=!!(b.current?.shiftKey&&b.current?.key==="Tab"),L=D[0],H=D[D.length-1];typeof L!="string"&&typeof H!="string"&&(z?H.focus():L.focus())}else w.focus()};g.addEventListener("focusin",p),g.addEventListener("keydown",k,!0);const y=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&p()},50);return()=>{clearInterval(y),g.removeEventListener("focusin",p),g.removeEventListener("keydown",k,!0)}},[n,i,a,s,l,r]);const x=g=>{h.current===null&&(h.current=g.relatedTarget),f.current=!0,j.current=g.target;const k=t.props.onFocus;k&&k(g)},R=g=>{h.current===null&&(h.current=g.relatedTarget),f.current=!0};return o.jsxs(c.Fragment,{children:[o.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:m,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:C,onFocus:x}),o.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:v,"data-testid":"sentinelEnd"})]})}function _o(e){return typeof e=="function"?e():e}function Vo(e){return e?e.props.hasOwnProperty("in"):!1}const Ln=()=>{},ht=new Lo;function Ko(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:a=!1,onTransitionEnter:r,onTransitionExited:s,children:l,onClose:d,open:m,rootRef:v}=e,h=c.useRef({}),j=c.useRef(null),f=c.useRef(null),u=Be(f,v),[C,b]=c.useState(!m),x=Vo(l);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const g=()=>Te(j.current),k=()=>(h.current.modalRef=f.current,h.current.mount=j.current,h.current),p=()=>{ht.mount(k(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},y=it(()=>{const E=_o(t)||g().body;ht.add(k(),E),f.current&&p()}),w=()=>ht.isTopModal(k()),D=it(E=>{j.current=E,E&&(m&&w()?p():f.current&&ut(f.current,R))}),z=c.useCallback(()=>{ht.remove(k(),R)},[R]);c.useEffect(()=>()=>{z()},[z]),c.useEffect(()=>{m?y():(!x||!a)&&z()},[m,z,x,a,y]);const L=E=>A=>{E.onKeyDown?.(A),!(A.key!=="Escape"||A.which===229||!w())&&(n||(A.stopPropagation(),d&&d(A,"escapeKeyDown")))},H=E=>A=>{E.onClick?.(A),A.target===A.currentTarget&&d&&d(A,"backdropClick")};return{getRootProps:(E={})=>{const A=_t(e);delete A.onTransitionEnter,delete A.onTransitionExited;const G={...A,...E};return{role:"presentation",...G,onKeyDown:L(G),ref:u}},getBackdropProps:(E={})=>{const A=E;return{"aria-hidden":!0,...A,onClick:H(A),open:m}},getTransitionProps:()=>{const E=()=>{b(!1),r&&r()},A=()=>{b(!0),s&&s(),a&&z()};return{onEnter:In(E,l?.props.onEnter??Ln),onExited:In(A,l?.props.onExited??Ln)}},rootRef:u,portalRef:D,isTopModal:w,exited:C,hasTransition:x}}function Go(e){return be("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const Jo=e=>{const{open:t,exited:n,classes:i}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Go,i)},Xo=W("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Yo=W(Ci,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ri=c.forwardRef(function(t,n){const i=ye({name:"MuiModal",props:t}),{BackdropComponent:a=Yo,BackdropProps:r,classes:s,className:l,closeAfterTransition:d=!1,children:m,container:v,component:h,components:j={},componentsProps:f={},disableAutoFocus:u=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:b=!1,disablePortal:x=!1,disableRestoreFocus:R=!1,disableScrollLock:g=!1,hideBackdrop:k=!1,keepMounted:p=!1,onClose:y,onTransitionEnter:w,onTransitionExited:D,open:z,slotProps:L={},slots:H={},theme:B,...q}=i,F={...i,closeAfterTransition:d,disableAutoFocus:u,disableEnforceFocus:C,disableEscapeKeyDown:b,disablePortal:x,disableRestoreFocus:R,disableScrollLock:g,hideBackdrop:k,keepMounted:p},{getRootProps:E,getBackdropProps:A,getTransitionProps:G,portalRef:te,isTopModal:T,exited:ee,hasTransition:ie}=Ko({...F,rootRef:n}),Z={...F,exited:ee},J=Jo(Z),Y={};if(m.props.tabIndex===void 0&&(Y.tabIndex="-1"),ie){const{onEnter:$,onExited:U}=G();Y.onEnter=$,Y.onExited=U}const oe={slots:{root:j.Root,backdrop:j.Backdrop,...H},slotProps:{...f,...L}},[ce,ue]=pe("root",{ref:n,elementType:Xo,externalForwardedProps:{...oe,...q,component:h},getSlotProps:E,ownerState:Z,className:de(l,J?.root,!Z.open&&Z.exited&&J?.hidden)}),[je,ne]=pe("backdrop",{ref:r?.ref,elementType:a,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:$=>A({...$,onClick:U=>{$?.onClick&&$.onClick(U)}}),className:de(r?.className,J?.backdrop),ownerState:Z});return!p&&!z&&(!ie||ee)?null:o.jsx(ao,{ref:te,container:v,disablePortal:x,children:o.jsxs(ce,{...ue,children:[!k&&a?o.jsx(je,{...ne}):null,o.jsx(Uo,{disableEnforceFocus:C,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:T,open:z,children:c.cloneElement(m,Y)})]})})});function Zo(e){return be("MuiDialog",e)}const Wt=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Pi=c.createContext({}),Qo=W(Ci,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ea=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:a,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(i))}`,a&&"paperFullWidth",r&&"paperFullScreen"]};return xe(s,Zo,t)},ta=W(Ri,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),na=W("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),ia=W(xt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ke(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wt.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Qe=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialog"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:m,BackdropProps:v,children:h,className:j,disableEscapeKeyDown:f=!1,fullScreen:u=!1,fullWidth:C=!1,maxWidth:b="sm",onClick:x,onClose:R,open:g,PaperComponent:k=xt,PaperProps:p={},scroll:y="paper",slots:w={},slotProps:D={},TransitionComponent:z=Zt,transitionDuration:L=r,TransitionProps:H,...B}=i,q={...i,disableEscapeKeyDown:f,fullScreen:u,fullWidth:C,maxWidth:b,scroll:y},F=ea(q),E=c.useRef(),A=K=>{E.current=K.target===K.currentTarget},G=K=>{x&&x(K),E.current&&(E.current=null,R&&R(K,"backdropClick"))},te=sn(l),T=c.useMemo(()=>({titleId:te}),[te]),ee={transition:z,...w},ie={transition:H,paper:p,backdrop:v,...D},Z={slots:ee,slotProps:ie},[J,Y]=pe("root",{elementType:ta,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q,className:de(F.root,j),ref:n}),[oe,ce]=pe("backdrop",{elementType:Qo,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q}),[ue,je]=pe("paper",{elementType:ia,shouldForwardComponentProp:!0,externalForwardedProps:Z,ownerState:q,className:de(F.paper,p.className)}),[ne,$]=pe("container",{elementType:na,externalForwardedProps:Z,ownerState:q,className:F.container}),[U,V]=pe("transition",{elementType:Zt,externalForwardedProps:Z,ownerState:q,additionalProps:{appear:!0,in:g,timeout:L,role:"presentation"}});return o.jsx(J,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:L,as:m,...ce}},disableEscapeKeyDown:f,onClose:R,open:g,onClick:G,...Y,...B,children:o.jsx(U,{...V,children:o.jsx(ne,{onMouseDown:A,...$,children:o.jsx(ue,{as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":te,"aria-modal":d,...je,children:o.jsx(Pi.Provider,{value:T,children:h})})})})})});function oa(e){return be("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const aa=e=>{const{classes:t,disableSpacing:n}=e;return xe({root:["root",!n&&"spacing"]},oa,t)},ra=W("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),et=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:r=!1,...s}=i,l={...i,disableSpacing:r},d=aa(l);return o.jsx(ra,{className:de(d.root,a),ownerState:l,ref:n,...s})});function sa(e){return be("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);function la(e){return be("MuiDialogTitle",e)}const ca=he("MuiDialogTitle",["root"]),pa=e=>{const{classes:t,dividers:n}=e;return xe({root:["root",n&&"dividers"]},sa,t)},da=W("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ke(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${ca.root} + &`]:{paddingTop:0}}}]}))),tt=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogContent"}),{className:a,dividers:r=!1,...s}=i,l={...i,dividers:r},d=pa(l);return o.jsx(da,{className:de(d.root,a),ownerState:l,ref:n,...s})}),ua=e=>{const{classes:t}=e;return xe({root:["root"]},la,t)},ma=W(_,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),nt=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDialogTitle"}),{className:a,id:r,...s}=i,l=i,d=ua(l),{titleId:m=r}=c.useContext(Pi);return o.jsx(ma,{component:"h2",className:de(d.root,a),ownerState:l,ref:n,variant:"h6",id:r??m,...s})});function fa(e){return be("MuiDivider",e)}he("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xa=e=>{const{absolute:t,children:n,classes:i,flexItem:a,light:r,orientation:s,textAlign:l,variant:d}=e;return xe({root:["root",t&&"absolute",d,r&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},fa,i)},va=W("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ke(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),ga=W("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ke(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),St=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiDivider"}),{absolute:a=!1,children:r,className:s,orientation:l="horizontal",component:d=r||l==="vertical"?"div":"hr",flexItem:m=!1,light:v=!1,role:h=d!=="hr"?"separator":void 0,textAlign:j="center",variant:f="fullWidth",...u}=i,C={...i,absolute:a,component:d,flexItem:m,light:v,orientation:l,role:h,textAlign:j,variant:f},b=xa(C);return o.jsx(va,{as:d,className:de(b.root,s),role:h,ref:n,ownerState:C,"aria-orientation":h==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...u,children:r?o.jsx(ga,{className:b.wrapper,ownerState:C,children:r}):null})});St&&(St.muiSkipListHighlight=!0);const ha=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:a,size:r,hiddenLabel:s,multiline:l}=e,d={root:["root",!n&&"underline",i&&"adornedStart",a&&"adornedEnd",r==="small"&&`size${fe(r)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},m=xe(d,So,t);return{...t,...m}},ba=W(Dt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...At(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ve.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ve.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ve.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ve.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ve.disabled}, .${Ve.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ve.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(It()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ya=W(zt,{name:"MuiFilledInput",slot:"Input",overridesResolver:Tt})(ke(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),un=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,hiddenLabel:d,inputComponent:m="input",multiline:v=!1,slotProps:h,slots:j={},type:f="text",...u}=i,C={...i,disableUnderline:a,fullWidth:l,inputComponent:m,multiline:v,type:f},b=ha(i),x={root:{ownerState:C},input:{ownerState:C}},R=h??s?ln(x,h??s):x,g=j.root??r.Root??ba,k=j.input??r.Input??ya;return o.jsx(dn,{slots:{root:g,input:k},slotProps:R,fullWidth:l,inputComponent:m,multiline:v,ref:n,type:f,...u,classes:b})});un.muiName="Input";function wa(e){return be("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ka=e=>{const{classes:t,margin:n,fullWidth:i}=e,a={root:["root",n!=="none"&&`margin${fe(n)}`,i&&"fullWidth"]};return xe(a,wa,t)},ja=W("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${fe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ca=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormControl"}),{children:a,className:r,color:s="primary",component:l="div",disabled:d=!1,error:m=!1,focused:v,fullWidth:h=!1,hiddenLabel:j=!1,margin:f="none",required:u=!1,size:C="medium",variant:b="outlined",...x}=i,R={...i,color:s,component:l,disabled:d,error:m,fullWidth:h,hiddenLabel:j,margin:f,required:u,size:C,variant:b},g=ka(R),[k,p]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,A=>{if(!Mt(A,["Input","Select"]))return;const G=Mt(A,["Select"])?A.props.input:A;G&&yo(G.props)&&(E=!0)}),E}),[y,w]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,A=>{Mt(A,["Input","Select"])&&(Ct(A.props,!0)||Ct(A.props.inputProps,!0))&&(E=!0)}),E}),[D,z]=c.useState(!1);d&&D&&z(!1);const L=v!==void 0&&!d?v:D;let H;c.useRef(!1);const B=c.useCallback(()=>{w(!0)},[]),q=c.useCallback(()=>{w(!1)},[]),F=c.useMemo(()=>({adornedStart:k,setAdornedStart:p,color:s,disabled:d,error:m,filled:y,focused:L,fullWidth:h,hiddenLabel:j,size:C,onBlur:()=>{z(!1)},onFocus:()=>{z(!0)},onEmpty:q,onFilled:B,registerEffect:H,required:u,variant:b}),[k,s,d,m,y,L,h,j,H,q,B,u,C,b]);return o.jsx(pn.Provider,{value:F,children:o.jsx(ja,{as:l,ownerState:R,className:de(g.root,r),ref:n,...x,children:a})})});function Sa(e){return be("MuiFormHelperText",e)}const Nn=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $n;const Ra=e=>{const{classes:t,contained:n,size:i,disabled:a,error:r,filled:s,focused:l,required:d}=e,m={root:["root",a&&"disabled",r&&"error",i&&`size${fe(i)}`,n&&"contained",l&&"focused",s&&"filled",d&&"required"]};return xe(m,Sa,t)},Pa=W("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nn.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Ea=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormHelperText"}),{children:a,className:r,component:s="p",disabled:l,error:d,filled:m,focused:v,margin:h,required:j,variant:f,...u}=i,C=st(),b=rt({props:i,muiFormControl:C,states:["variant","size","disabled","error","filled","focused","required"]}),x={...i,component:s,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete x.ownerState;const R=Ra(x);return o.jsx(Pa,{as:s,className:de(R.root,r),ref:n,...u,ownerState:x,children:a===" "?$n||($n=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function Ia(e){return be("MuiFormLabel",e)}const mt=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Fa=e=>{const{classes:t,color:n,focused:i,disabled:a,error:r,filled:s,required:l}=e,d={root:["root",`color${fe(n)}`,a&&"disabled",r&&"error",s&&"filled",i&&"focused",l&&"required"],asterisk:["asterisk",r&&"error"]};return xe(d,Ia,t)},Aa=W("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(It()).map(([t])=>({props:{color:t},style:{[`&.${mt.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${mt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mt.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Ta=W("span",{name:"MuiFormLabel",slot:"Asterisk"})(ke(({theme:e})=>({[`&.${mt.error}`]:{color:(e.vars||e).palette.error.main}}))),Da=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiFormLabel"}),{children:a,className:r,color:s,component:l="label",disabled:d,error:m,filled:v,focused:h,required:j,...f}=i,u=st(),C=rt({props:i,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),b={...i,color:C.color||"primary",component:l,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required},x=Fa(b);return o.jsxs(Aa,{as:l,ownerState:b,className:de(x.root,r),ref:n,...f,children:[a,C.required&&o.jsxs(Ta,{ownerState:b,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})}),za=e=>{const{classes:t,disableUnderline:n}=e,a=xe({root:["root",!n&&"underline"],input:["input"]},jo,t);return{...t,...a}},Ma=W(Dt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...At(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lt.disabled}, .${lt.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${lt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(It()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),Oa=W(zt,{name:"MuiInput",slot:"Input",overridesResolver:Tt})({}),mn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,inputComponent:d="input",multiline:m=!1,slotProps:v,slots:h={},type:j="text",...f}=i,u=za(i),b={root:{ownerState:{disableUnderline:a}}},x=v??s?ln(v??s,b):b,R=h.root??r.Root??Ma,g=h.input??r.Input??Oa;return o.jsx(dn,{slots:{root:R,input:g},slotProps:x,fullWidth:l,inputComponent:d,multiline:m,ref:n,type:j,...f,classes:u})});mn.muiName="Input";function La(e){return be("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Na=e=>{const{classes:t,formControl:n,size:i,shrink:a,disableAnimation:r,variant:s,required:l}=e,d={root:["root",n&&"formControl",!r&&"animated",a&&"shrink",i&&i!=="medium"&&`size${fe(i)}`,s],asterisk:[l&&"asterisk"]},m=xe(d,La,t);return{...t,...m}},$a=W(Da,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mt.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:i})=>t==="filled"&&n.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Wa=c.forwardRef(function(t,n){const i=ye({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:r,shrink:s,variant:l,className:d,...m}=i,v=st();let h=s;typeof h>"u"&&v&&(h=v.filled||v.focused||v.adornedStart);const j=rt({props:i,muiFormControl:v,states:["size","variant","required","focused"]}),f={...i,disableAnimation:a,formControl:v,shrink:h,size:j.size,variant:j.variant,required:j.required,focused:j.focused},u=Na(f);return o.jsx($a,{"data-shrink":h,ref:n,className:de(u.root,d),...m,ownerState:f,classes:u})});function Ht(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wn(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ei(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ct(e,t,n,i,a,r){let s=!1,l=a(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const d=i?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Ei(l,r)||d)l=a(e,l,n);else return l.focus(),!0}return!1}const Ha=c.forwardRef(function(t,n){const{actions:i,autoFocus:a=!1,autoFocusItem:r=!1,children:s,className:l,disabledItemsFocusable:d=!1,disableListWrap:m=!1,onKeyDown:v,variant:h="selectedMenu",...j}=t,f=c.useRef(null),u=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jt(()=>{a&&f.current.focus()},[a]),c.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(g,{direction:k})=>{const p=!f.current.style.width;if(g.clientHeight{const k=f.current,p=g.key;if(g.ctrlKey||g.metaKey||g.altKey){v&&v(g);return}const w=Te(k).activeElement;if(p==="ArrowDown")g.preventDefault(),ct(k,w,m,d,Ht);else if(p==="ArrowUp")g.preventDefault(),ct(k,w,m,d,Wn);else if(p==="Home")g.preventDefault(),ct(k,null,m,d,Ht);else if(p==="End")g.preventDefault(),ct(k,null,m,d,Wn);else if(p.length===1){const D=u.current,z=p.toLowerCase(),L=performance.now();D.keys.length>0&&(L-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&z!==D.keys[0]&&(D.repeating=!1)),D.lastTime=L,D.keys.push(z);const H=w&&!D.repeating&&Ei(w,D);D.previousKeyMatched&&(H||ct(k,w,!1,d,Ht,D))?g.preventDefault():D.previousKeyMatched=!1}v&&v(g)},b=Be(f,n);let x=-1;c.Children.forEach(s,(g,k)=>{if(!c.isValidElement(g)){x===k&&(x+=1,x>=s.length&&(x=-1));return}g.props.disabled||(h==="selectedMenu"&&g.props.selected||x===-1)&&(x=k),x===k&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(x+=1,x>=s.length&&(x=-1))});const R=c.Children.map(s,(g,k)=>{if(k===x){const p={};return r&&(p.autoFocus=!0),g.props.tabIndex===void 0&&h==="selectedMenu"&&(p.tabIndex=0),c.cloneElement(g,p)}return g});return o.jsx(Jt,{role:"menu",ref:b,className:l,onKeyDown:C,tabIndex:a?0:-1,...j,children:R})});function Ba(e){return be("MuiPopover",e)}he("MuiPopover",["root","paper"]);function Hn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Bn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function qn(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function bt(e){return typeof e=="function"?e():e}const qa=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},Ba,t)},Ua=W(Ri,{name:"MuiPopover",slot:"Root"})({}),Ii=W(xt,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),_a=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiPopover"}),{action:a,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:m,className:v,container:h,elevation:j=8,marginThreshold:f=16,open:u,PaperProps:C={},slots:b={},slotProps:x={},transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:g,transitionDuration:k="auto",TransitionProps:p={},disableScrollLock:y=!1,...w}=i,D=c.useRef(),z={...i,anchorOrigin:s,anchorReference:d,elevation:j,marginThreshold:f,transformOrigin:R,TransitionComponent:g,transitionDuration:k,TransitionProps:p},L=qa(z),H=c.useCallback(()=>{if(d==="anchorPosition")return l;const $=bt(r),V=($&&$.nodeType===1?$:Te(D.current).body).getBoundingClientRect();return{top:V.top+Hn(V,s.vertical),left:V.left+Bn(V,s.horizontal)}},[r,s.horizontal,s.vertical,l,d]),B=c.useCallback($=>({vertical:Hn($,R.vertical),horizontal:Bn($,R.horizontal)}),[R.horizontal,R.vertical]),q=c.useCallback($=>{const U={width:$.offsetWidth,height:$.offsetHeight},V=B(U);if(d==="none")return{top:null,left:null,transformOrigin:qn(V)};const K=H();let S=K.top-V.vertical,M=K.left-V.horizontal;const Q=S+U.height,ve=M+U.width,Ee=We(bt(r)),Ae=Ee.innerHeight-f,Pe=Ee.innerWidth-f;if(f!==null&&SAe){const Se=Q-Ae;S-=Se,V.vertical+=Se}if(f!==null&&MPe){const Se=ve-Pe;M-=Se,V.horizontal+=Se}return{top:`${Math.round(S)}px`,left:`${Math.round(M)}px`,transformOrigin:qn(V)}},[r,d,H,B,f]),[F,E]=c.useState(u),A=c.useCallback(()=>{const $=D.current;if(!$)return;const U=q($);U.top!==null&&$.style.setProperty("top",U.top),U.left!==null&&($.style.left=U.left),$.style.transformOrigin=U.transformOrigin,E(!0)},[q]);c.useEffect(()=>(y&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[r,y,A]);const G=()=>{A()},te=()=>{E(!1)};c.useEffect(()=>{u&&A()}),c.useImperativeHandle(a,()=>u?{updatePosition:()=>{A()}}:null,[u,A]),c.useEffect(()=>{if(!u)return;const $=wi(()=>{A()}),U=We(bt(r));return U.addEventListener("resize",$),()=>{$.clear(),U.removeEventListener("resize",$)}},[r,u,A]);let T=k;const ee={slots:{transition:g,...b},slotProps:{transition:p,paper:C,...x}},[ie,Z]=pe("transition",{elementType:ki,externalForwardedProps:ee,ownerState:z,getSlotProps:$=>({...$,onEntering:(U,V)=>{$.onEntering?.(U,V),G()},onExited:U=>{$.onExited?.(U),te()}}),additionalProps:{appear:!0,in:u}});k==="auto"&&!ie.muiSupportAuto&&(T=void 0);const J=h||(r?Te(bt(r)).body:void 0),[Y,{slots:oe,slotProps:ce,...ue}]=pe("root",{ref:n,elementType:Ua,externalForwardedProps:{...ee,...w},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:vo(typeof x.backdrop=="function"?x.backdrop(z):x.backdrop,{invisible:!0})},container:J,open:u},ownerState:z,className:de(L.root,v)}),[je,ne]=pe("paper",{ref:D,className:L.paper,elementType:Ii,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:j,style:F?void 0:{opacity:0}},ownerState:z});return o.jsx(Y,{...ue,...!Ut(Y)&&{slots:oe,slotProps:ce,disableScrollLock:y},children:o.jsx(ie,{...Z,timeout:T,children:o.jsx(je,{...ne,children:m})})})});function Va(e){return be("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Ka={vertical:"top",horizontal:"right"},Ga={vertical:"top",horizontal:"left"},Ja=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},Va,t)},Xa=W(_a,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ya=W(Ii,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Za=W(Ha,{name:"MuiMenu",slot:"List"})({outline:0}),Qa=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:r,className:s,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:m,open:v,PaperProps:h={},PopoverClasses:j,transitionDuration:f="auto",TransitionProps:{onEntering:u,...C}={},variant:b="selectedMenu",slots:x={},slotProps:R={},...g}=i,k=Ki(),p={...i,autoFocus:a,disableAutoFocusItem:l,MenuListProps:d,onEntering:u,PaperProps:h,transitionDuration:f,TransitionProps:C,variant:b},y=Ja(p),w=a&&!l&&v,D=c.useRef(null),z=(T,ee)=>{D.current&&D.current.adjustStyleForScrollbar(T,{direction:k?"rtl":"ltr"}),u&&u(T,ee)},L=T=>{T.key==="Tab"&&(T.preventDefault(),m&&m(T,"tabKeyDown"))};let H=-1;c.Children.map(r,(T,ee)=>{c.isValidElement(T)&&(T.props.disabled||(b==="selectedMenu"&&T.props.selected||H===-1)&&(H=ee))});const B={slots:x,slotProps:{list:d,transition:C,paper:h,...R}},q=eo({elementType:x.root,externalSlotProps:R.root,ownerState:p,className:[y.root,s]}),[F,E]=pe("paper",{className:y.paper,elementType:Ya,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:p}),[A,G]=pe("list",{className:de(y.list,d.className),elementType:Za,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:T=>({...T,onKeyDown:ee=>{L(ee),T.onKeyDown?.(ee)}}),ownerState:p}),te=typeof B.slotProps.transition=="function"?B.slotProps.transition(p):B.slotProps.transition;return o.jsx(Xa,{onClose:m,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Ka:Ga,slots:{root:x.root,paper:F,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:q,paper:E,backdrop:typeof R.backdrop=="function"?R.backdrop(p):R.backdrop,transition:{...te,onEntering:(...T)=>{z(...T),te?.onEntering?.(...T)}}},open:v,ref:n,transitionDuration:f,ownerState:p,...g,classes:j,children:o.jsx(A,{actions:D,autoFocus:a&&(H===-1||l),autoFocusItem:w,variant:b,...G,children:r})})});function er(e){return be("MuiNativeSelect",e)}const fn=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tr=e=>{const{classes:t,variant:n,disabled:i,multiple:a,open:r,error:s}=e,l={select:["select",n,i&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",i&&"disabled"]};return xe(l,er,t)},Fi=W("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${fn.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),nr=W(Fi,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:He,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${fn.multiple}`]:t.multiple}]}})({}),Ai=W("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${fn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ir=W(Ai,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),or=c.forwardRef(function(t,n){const{className:i,disabled:a,error:r,IconComponent:s,inputRef:l,variant:d="standard",...m}=t,v={...t,disabled:a,variant:d,error:r},h=tr(v);return o.jsxs(c.Fragment,{children:[o.jsx(nr,{ownerState:v,className:de(h.select,i),disabled:a,ref:l||n,...m}),t.multiple?null:o.jsx(ir,{as:s,ownerState:v,className:h.icon})]})});var Un;const ar=W("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:He})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rr=W("legend",{name:"MuiNotchedOutlined",shouldForwardProp:He})(ke(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function sr(e){const{children:t,classes:n,className:i,label:a,notched:r,...s}=e,l=a!=null&&a!=="",d={...e,notched:r,withLabel:l};return o.jsx(ar,{"aria-hidden":!0,className:i,ownerState:d,...s,children:o.jsx(rr,{ownerState:d,children:l?o.jsx("span",{children:a}):Un||(Un=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const lr=e=>{const{classes:t}=e,i=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Co,t);return{...t,...i}},cr=W(Dt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:At})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ne.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(It()).map(([n])=>({props:{color:n},style:{[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ne.error} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ne.disabled} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:i})=>n.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),pr=W(sr,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),dr=W(zt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Tt})(ke(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),xn=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:r=!1,inputComponent:s="input",label:l,multiline:d=!1,notched:m,slots:v={},slotProps:h={},type:j="text",...f}=i,u=lr(i),C=st(),b=rt({props:i,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...i,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:C,fullWidth:r,hiddenLabel:b.hiddenLabel,multiline:d,size:b.size,type:j},R=v.root??a.Root??cr,g=v.input??a.Input??dr,[k,p]=pe("notchedOutline",{elementType:pr,className:u.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:v,slotProps:h},additionalProps:{label:l!=null&&l!==""&&b.required?o.jsxs(c.Fragment,{children:[l," ","*"]}):l}});return o.jsx(dn,{slots:{root:R,input:g},slotProps:h,renderSuffix:y=>o.jsx(k,{...p,notched:typeof m<"u"?m:!!(y.startAdornment||y.filled||y.focused)}),fullWidth:r,inputComponent:s,multiline:d,ref:n,type:j,...f,classes:{...u,notchedOutline:null}})});xn.muiName="Input";function Ti(e){return be("MuiSelect",e)}const pt=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _n;const ur=W(Fi,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${pt.select}`]:t.select},{[`&.${pt.select}`]:t[n.variant]},{[`&.${pt.error}`]:t.error},{[`&.${pt.multiple}`]:t.multiple}]}})({[`&.${pt.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mr=W(Ai,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),fr=W("input",{shouldForwardProp:e=>Gi(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vn(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xr(e){return e==null||typeof e=="string"&&!e.trim()}const vr=e=>{const{classes:t,variant:n,disabled:i,multiple:a,open:r,error:s}=e,l={select:["select",n,i&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return xe(l,Ti,t)},gr=c.forwardRef(function(t,n){const{"aria-describedby":i,"aria-label":a,autoFocus:r,autoWidth:s,children:l,className:d,defaultOpen:m,defaultValue:v,disabled:h,displayEmpty:j,error:f=!1,IconComponent:u,inputRef:C,labelId:b,MenuProps:x={},multiple:R,name:g,onBlur:k,onChange:p,onClose:y,onFocus:w,onOpen:D,open:z,readOnly:L,renderValue:H,required:B,SelectDisplayProps:q={},tabIndex:F,type:E,value:A,variant:G="standard",...te}=t,[T,ee]=Cn({controlled:A,default:v,name:"Select"}),[ie,Z]=Cn({controlled:z,default:m,name:"Select"}),J=c.useRef(null),Y=c.useRef(null),[oe,ce]=c.useState(null),{current:ue}=c.useRef(z!=null),[je,ne]=c.useState(),$=Be(n,C),U=c.useCallback(N=>{Y.current=N,N&&ce(N)},[]),V=oe?.parentNode;c.useImperativeHandle($,()=>({focus:()=>{Y.current.focus()},node:J.current,value:T}),[T]),c.useEffect(()=>{m&&ie&&oe&&!ue&&(ne(s?null:V.clientWidth),Y.current.focus())},[oe,s]),c.useEffect(()=>{r&&Y.current.focus()},[r]),c.useEffect(()=>{if(!b)return;const N=Te(Y.current).getElementById(b);if(N){const ae=()=>{getSelection().isCollapsed&&Y.current.focus()};return N.addEventListener("click",ae),()=>{N.removeEventListener("click",ae)}}},[b]);const K=(N,ae)=>{N?D&&D(ae):y&&y(ae),ue||(ne(s?null:V.clientWidth),Z(N))},S=N=>{N.button===0&&(N.preventDefault(),Y.current.focus(),K(!0,N))},M=N=>{K(!1,N)},Q=c.Children.toArray(l),ve=N=>{const ae=Q.find(we=>we.props.value===N.target.value);ae!==void 0&&(ee(ae.props.value),p&&p(N,ae))},Ee=N=>ae=>{let we;if(ae.currentTarget.hasAttribute("tabindex")){if(R){we=Array.isArray(T)?T.slice():[];const Le=T.indexOf(N.props.value);Le===-1?we.push(N.props.value):we.splice(Le,1)}else we=N.props.value;if(N.props.onClick&&N.props.onClick(ae),T!==we&&(ee(we),p)){const Le=ae.nativeEvent||ae,vt=new Le.constructor(Le.type,Le);Object.defineProperty(vt,"target",{writable:!0,value:{value:we,name:g}}),p(vt,N)}R||K(!1,ae)}},Ae=N=>{L||[" ","ArrowUp","ArrowDown","Enter"].includes(N.key)&&(N.preventDefault(),K(!0,N))},Pe=oe!==null&&ie,Se=N=>{!Pe&&k&&(Object.defineProperty(N,"target",{writable:!0,value:{value:T,name:g}}),k(N))};delete te["aria-invalid"];let De,Me;const P=[];let O=!1;(Ct({value:T})||j)&&(H?De=H(T):O=!0);const le=Q.map(N=>{if(!c.isValidElement(N))return null;let ae;if(R){if(!Array.isArray(T))throw new Error(vi(2));ae=T.some(we=>Vn(we,N.props.value)),ae&&O&&P.push(N.props.children)}else ae=Vn(T,N.props.value),ae&&O&&(Me=N.props.children);return c.cloneElement(N,{"aria-selected":ae?"true":"false",onClick:Ee(N),onKeyUp:we=>{we.key===" "&&we.preventDefault(),N.props.onKeyUp&&N.props.onKeyUp(we)},role:"option",selected:ae,value:void 0,"data-value":N.props.value})});O&&(R?P.length===0?De=null:De=P.reduce((N,ae,we)=>(N.push(ae),we{const{classes:t}=e,i=xe({root:["root"]},Ti,t);return{...t,...i}},vn={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>He(e)&&e!=="variant"},br=W(mn,vn)(""),yr=W(xn,vn)(""),wr=W(un,vn)(""),Di=c.forwardRef(function(t,n){const i=ye({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:r,classes:s={},className:l,defaultOpen:d=!1,displayEmpty:m=!1,IconComponent:v=Ro,id:h,input:j,inputProps:f,label:u,labelId:C,MenuProps:b,multiple:x=!1,native:R=!1,onClose:g,onOpen:k,open:p,renderValue:y,SelectDisplayProps:w,variant:D="outlined",...z}=i,L=R?or:gr,H=st(),B=rt({props:i,muiFormControl:H,states:["variant","error"]}),q=B.variant||D,F={...i,variant:q,classes:s},E=hr(F),{root:A,...G}=E,te=j||{standard:o.jsx(br,{ownerState:F}),outlined:o.jsx(yr,{label:u,ownerState:F}),filled:o.jsx(wr,{ownerState:F})}[q],T=Be(n,Ft(te));return o.jsx(c.Fragment,{children:c.cloneElement(te,{inputComponent:L,inputProps:{children:r,error:B.error,IconComponent:v,variant:q,type:void 0,multiple:x,...R?{id:h}:{autoWidth:a,defaultOpen:d,displayEmpty:m,labelId:C,MenuProps:b,onClose:g,onOpen:k,open:p,renderValue:y,SelectDisplayProps:{id:h,...w}},...f,classes:f?ln(G,f.classes):G,...j?j.props.inputProps:{}},...(x&&R||m)&&q==="outlined"?{notched:!0}:{},ref:T,className:de(te.props.className,l,E.root),...!j&&{variant:q},...z})})});Di.muiName="Select";function kr(e){return be("MuiSkeleton",e)}he("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const jr=e=>{const{classes:t,variant:n,animation:i,hasChildren:a,width:r,height:s}=e;return xe({root:["root",n,i,a&&"withChildren",a&&!r&&"fitContent",a&&!s&&"heightAuto"]},kr,t)},Qt=hi` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`,en=hi` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`,Cr=typeof Qt!="string"?gi` + animation: ${Qt} 2s ease-in-out 0.5s infinite; + `:null,Sr=typeof en!="string"?gi` + &::after { + animation: ${en} 2s linear 0.5s infinite; + } + `:null,Rr=W("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(ke(({theme:e})=>{const t=mo(e.shape.borderRadius)||"px",n=fo(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:i})=>i.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:i})=>i.hasChildren&&!i.width,style:{maxWidth:"fit-content"}},{props:({ownerState:i})=>i.hasChildren&&!i.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Cr||{animation:`${Qt} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + 90deg, + transparent, + ${(e.vars||e).palette.action.hover}, + transparent + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Sr||{"&::after":{animation:`${en} 2s linear 0.5s infinite`}}}]}})),Ze=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSkeleton"}),{animation:a="pulse",className:r,component:s="span",height:l,style:d,variant:m="text",width:v,...h}=i,j={...i,animation:a,component:s,variant:m,hasChildren:!!h.children},f=jr(j);return o.jsx(Rr,{as:s,ref:n,className:de(f.root,r),ownerState:j,...h,style:{width:v,height:l,...d}})});function Pr(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:i,open:a,resumeHideDuration:r}=e,s=to();c.useEffect(()=>{if(!a)return;function x(R){R.defaultPrevented||R.key==="Escape"&&i?.(R,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,i]);const l=it((x,R)=>{i?.(x,R)}),d=it(x=>{!i||x==null||s.start(x,()=>{l(null,"timeout")})});c.useEffect(()=>(a&&d(t),s.clear),[a,t,d,s]);const m=x=>{i?.(x,"clickaway")},v=s.clear,h=c.useCallback(()=>{t!=null&&d(r??t*.5)},[t,r,d]),j=x=>R=>{const g=x.onBlur;g?.(R),h()},f=x=>R=>{const g=x.onFocus;g?.(R),v()},u=x=>R=>{const g=x.onMouseEnter;g?.(R),v()},C=x=>R=>{const g=x.onMouseLeave;g?.(R),h()};return c.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",v)}},[n,a,h,v]),{getRootProps:(x={})=>{const R={..._t(e),..._t(x)};return{role:"presentation",...x,...R,onBlur:j(R),onFocus:f(R),onMouseEnter:u(R),onMouseLeave:C(R)}},onClickAway:m}}function Er(e){return be("MuiSnackbarContent",e)}he("MuiSnackbarContent",["root","message","action"]);const Ir=e=>{const{classes:t}=e;return xe({root:["root"],action:["action"],message:["message"]},Er,t)},Fr=W(xt,{name:"MuiSnackbarContent",slot:"Root"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(bn(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:bn(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Ar=W("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Tr=W("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Dr=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSnackbarContent"}),{action:a,className:r,message:s,role:l="alert",...d}=i,m=i,v=Ir(m);return o.jsxs(Fr,{role:l,elevation:6,className:de(v.root,r),ownerState:m,ref:n,...d,children:[o.jsx(Ar,{className:v.message,ownerState:m,children:s}),a?o.jsx(Tr,{className:v.action,ownerState:m,children:a}):null]})});function zr(e){return be("MuiSnackbar",e)}he("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mr=e=>{const{classes:t,anchorOrigin:n}=e,i={root:["root",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`]};return xe(i,zr,t)},Or=W("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}`]]}})(ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Lr=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiSnackbar"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:m=null,children:v,className:h,ClickAwayListenerProps:j,ContentProps:f,disableWindowBlurListener:u=!1,message:C,onBlur:b,onClose:x,onFocus:R,onMouseEnter:g,onMouseLeave:k,open:p,resumeHideDuration:y,slots:w={},slotProps:D={},TransitionComponent:z,transitionDuration:L=r,TransitionProps:{onEnter:H,onExited:B,...q}={},...F}=i,E={...i,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:m,disableWindowBlurListener:u,TransitionComponent:z,transitionDuration:L},A=Mr(E),{getRootProps:G,onClickAway:te}=Pr({...E}),[T,ee]=c.useState(!0),ie=K=>{ee(!0),B&&B(K)},Z=(K,S)=>{ee(!1),H&&H(K,S)},J={slots:{transition:z,...w},slotProps:{content:f,clickAwayListener:j,transition:q,...D}},[Y,oe]=pe("root",{ref:n,className:[A.root,h],elementType:Or,getSlotProps:G,externalForwardedProps:{...J,...F},ownerState:E}),[ce,{ownerState:ue,...je}]=pe("clickAwayListener",{elementType:To,externalForwardedProps:J,getSlotProps:K=>({onClickAway:(...S)=>{const M=S[0];K.onClickAway?.(...S),!M?.defaultMuiPrevented&&te(...S)}}),ownerState:E}),[ne,$]=pe("content",{elementType:Dr,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:C,action:s},ownerState:E}),[U,V]=pe("transition",{elementType:ki,externalForwardedProps:J,getSlotProps:K=>({onEnter:(...S)=>{K.onEnter?.(...S),Z(...S)},onExited:(...S)=>{K.onExited?.(...S),ie(...S)}}),additionalProps:{appear:!0,in:p,timeout:L,direction:l==="top"?"down":"up"},ownerState:E});return!p&&T?null:o.jsx(ce,{...je,...w.clickAwayListener&&{ownerState:ue},children:o.jsx(Y,{...oe,children:o.jsx(U,{...V,children:v||o.jsx(ne,{...$})})})})});function Nr(e){return be("MuiTextField",e)}he("MuiTextField",["root"]);const $r={standard:mn,filled:un,outlined:xn},Wr=e=>{const{classes:t}=e;return xe({root:["root"]},Nr,t)},Hr=W(Ca,{name:"MuiTextField",slot:"Root"})({}),Ke=c.forwardRef(function(t,n){const i=ye({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:r=!1,children:s,className:l,color:d="primary",defaultValue:m,disabled:v=!1,error:h=!1,FormHelperTextProps:j,fullWidth:f=!1,helperText:u,id:C,InputLabelProps:b,inputProps:x,InputProps:R,inputRef:g,label:k,maxRows:p,minRows:y,multiline:w=!1,name:D,onBlur:z,onChange:L,onFocus:H,placeholder:B,required:q=!1,rows:F,select:E=!1,SelectProps:A,slots:G={},slotProps:te={},type:T,value:ee,variant:ie="outlined",...Z}=i,J={...i,autoFocus:r,color:d,disabled:v,error:h,fullWidth:f,multiline:w,required:q,select:E,variant:ie},Y=Wr(J),oe=sn(C),ce=u&&oe?`${oe}-helper-text`:void 0,ue=k&&oe?`${oe}-label`:void 0,je=$r[ie],ne={slots:G,slotProps:{input:R,inputLabel:b,htmlInput:x,formHelperText:j,select:A,...te}},$={},U=ne.slotProps.inputLabel;ie==="outlined"&&(U&&typeof U.shrink<"u"&&($.notched=U.shrink),$.label=k),E&&((!A||!A.native)&&($.id=void 0),$["aria-describedby"]=void 0);const[V,K]=pe("root",{elementType:Hr,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Z},ownerState:J,className:de(Y.root,l),ref:n,additionalProps:{disabled:v,error:h,fullWidth:f,required:q,color:d,variant:ie}}),[S,M]=pe("input",{elementType:je,externalForwardedProps:ne,additionalProps:$,ownerState:J}),[Q,ve]=pe("inputLabel",{elementType:Wa,externalForwardedProps:ne,ownerState:J}),[Ee,Ae]=pe("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:J}),[Pe,Se]=pe("formHelperText",{elementType:Ea,externalForwardedProps:ne,ownerState:J}),[De,Me]=pe("select",{elementType:Di,externalForwardedProps:ne,ownerState:J}),P=o.jsx(S,{"aria-describedby":ce,autoComplete:a,autoFocus:r,defaultValue:m,fullWidth:f,multiline:w,name:D,rows:F,maxRows:p,minRows:y,type:T,value:ee,id:oe,inputRef:g,onBlur:z,onChange:L,onFocus:H,placeholder:B,inputProps:Ae,slots:{input:G.htmlInput?Ee:void 0},...M});return o.jsxs(V,{...K,children:[k!=null&&k!==""&&o.jsx(Q,{htmlFor:oe,id:ue,...ve,children:k}),E?o.jsx(De,{"aria-describedby":ce,id:oe,labelId:ue,value:ee,input:P,...Me,children:s}):P,u&&o.jsx(Pe,{id:ce,...Se,children:u})]})});function Br(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function qr(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ur(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var Kn=e=>Array.isArray(e)?e:[e];function _r(e){const t=Array.isArray(e[0])?e[0]:e;return Ur(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Vr(e,t){const n=[],{length:i}=e;for(let a=0;a{n=yt(),s.resetResultsCount()},s.resultsCount=()=>r,s.resetResultsCount=()=>{r=0},s}function Xr(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...a)=>{let r=0,s=0,l,d={},m=a.pop();typeof m=="object"&&(d=m,m=a.pop()),Br(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const v={...n,...d},{memoize:h,memoizeOptions:j=[],argsMemoize:f=zi,argsMemoizeOptions:u=[]}=v,C=Kn(j),b=Kn(u),x=_r(a),R=h(function(){return r++,m.apply(null,arguments)},...C),g=f(function(){s++;const p=Vr(x,arguments);return l=R.apply(null,p),l},...b);return Object.assign(g,{resultFunc:m,memoizedResultFunc:R,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:h,argsMemoize:f})};return Object.assign(i,{withTypes:()=>i}),i}var gn=Xr(zi),Yr=Object.assign((e,t=gn)=>{qr(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(r=>e[r]);return t(i,(...r)=>r.reduce((s,l,d)=>(s[n[d]]=l,s),{}))},{withTypes:()=>Yr});function Je(e,t,n,i){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function l(v){try{m(i.next(v))}catch(h){s(h)}}function d(v){try{m(i.throw(v))}catch(h){s(h)}}function m(v){v.done?r(v.value):a(v.value).then(l,d)}m((i=i.apply(e,t||[])).next())})}const Zr=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function at(e,t,n){const i=Qr(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof i.path!="string"&&Jn(i,"path",r),Jn(i,"relativePath",r),i}function Qr(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),a=Zr.get(i);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function Jn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const es=[".DS_Store","Thumbs.db"];function ts(e){return Je(this,void 0,void 0,function*(){return Rt(e)&&ns(e.dataTransfer)?rs(e.dataTransfer,e.type):is(e)?os(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?as(e):[]})}function ns(e){return Rt(e)}function is(e){return Rt(e)&&Rt(e.target)}function Rt(e){return typeof e=="object"&&e!==null}function os(e){return tn(e.target.files).map(t=>at(t))}function as(e){return Je(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>at(n))})}function rs(e,t){return Je(this,void 0,void 0,function*(){if(e.items){const n=tn(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(ss));return Xn(Mi(i))}return Xn(tn(e.files).map(n=>at(n)))})}function Xn(e){return e.filter(t=>es.indexOf(t.name)===-1)}function tn(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?Mi(n):[n]],[])}function Yn(e,t){return Je(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const s=yield r.getFile();return s.handle=r,at(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return at(i,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function ls(e){return Je(this,void 0,void 0,function*(){return e.isDirectory?Oi(e):cs(e)})}function Oi(e){const t=e.createReader();return new Promise((n,i)=>{const a=[];function r(){t.readEntries(s=>Je(this,void 0,void 0,function*(){if(s.length){const l=Promise.all(s.map(ls));a.push(l),r()}else try{const l=yield Promise.all(a);n(l)}catch(l){i(l)}}),s=>{i(s)})}r()})}function cs(e){return Je(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const a=at(i,e.fullPath);t(a)},i=>{n(i)})})})}var wt={},Zn;function ps(){return Zn||(Zn=1,wt.__esModule=!0,wt.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?i.toLowerCase().endsWith(l):l.endsWith("/*")?r===l.replace(/\/.*$/,""):a===l})}return!0}),wt}var ds=ps();const Bt=xi(ds);function Qn(e){return fs(e)||ms(e)||Ni(e)||us()}function us(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ms(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fs(e){if(Array.isArray(e))return nn(e)}function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function ti(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:bs,message:"File type must be ".concat(i)}},ni=function(t){return{code:ys,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ii=function(t){return{code:ws,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Cs={code:ks,message:"Too many files"};function $i(e,t){var n=e.type==="application/x-moz-file"||hs(e,t);return[n,n?null:js(t)]}function Wi(e,t,n){if(Ge(e.size))if(Ge(t)&&Ge(n)){if(e.size>n)return[!1,ni(n)];if(e.sizen)return[!1,ni(n)]}return[!0,null]}function Ge(e){return e!=null}function Ss(e){var t=e.files,n=e.accept,i=e.minSize,a=e.maxSize,r=e.multiple,s=e.maxFiles,l=e.validator;return!r&&t.length>1||r&&s>=1&&t.length>s?!1:t.every(function(d){var m=$i(d,n),v=ft(m,1),h=v[0],j=Wi(d,i,a),f=ft(j,1),u=f[0],C=l?l(d):null;return h&&u&&!C})}function Pt(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function kt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function oi(e){e.preventDefault()}function Rs(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ps(e){return e.indexOf("Edge/")!==-1}function Es(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Rs(e)||Ps(e)}function $e(){for(var e=arguments.length,t=new Array(e),n=0;n1?a-1:0),s=1;se.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _s(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,r;for(r=0;r=0)&&(n[a]=e[a]);return n}var hn=c.forwardRef(function(e,t){var n=e.children,i=Et(e,zs),a=_i(i),r=a.open,s=Et(a,Ms);return c.useImperativeHandle(t,function(){return{open:r}},[r]),Ji.createElement(c.Fragment,null,n(ge(ge({},s),{},{open:r})))});hn.displayName="Dropzone";var Ui={disabled:!1,getFilesFromEvent:ts,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};hn.defaultProps=Ui;hn.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var rn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function _i(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},Ui),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,l=t.multiple,d=t.maxFiles,m=t.onDragEnter,v=t.onDragLeave,h=t.onDragOver,j=t.onDrop,f=t.onDropAccepted,u=t.onDropRejected,C=t.onFileDialogCancel,b=t.onFileDialogOpen,x=t.useFsAccessApi,R=t.autoFocus,g=t.preventDropOnDocument,k=t.noClick,p=t.noKeyboard,y=t.noDrag,w=t.noDragEventsBubbling,D=t.onError,z=t.validator,L=c.useMemo(function(){return As(n)},[n]),H=c.useMemo(function(){return Fs(n)},[n]),B=c.useMemo(function(){return typeof b=="function"?b:ri},[b]),q=c.useMemo(function(){return typeof C=="function"?C:ri},[C]),F=c.useRef(null),E=c.useRef(null),A=c.useReducer(Vs,rn),G=qt(A,2),te=G[0],T=G[1],ee=te.isFocused,ie=te.isFileDialogActive,Z=c.useRef(typeof window<"u"&&window.isSecureContext&&x&&Is()),J=function(){!Z.current&&ie&&setTimeout(function(){if(E.current){var O=E.current.files;O.length||(T({type:"closeDialog"}),q())}},300)};c.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[E,ie,q,Z]);var Y=c.useRef([]),oe=function(O){F.current&&F.current.contains(O.target)||(O.preventDefault(),Y.current=[])};c.useEffect(function(){return g&&(document.addEventListener("dragover",oi,!1),document.addEventListener("drop",oe,!1)),function(){g&&(document.removeEventListener("dragover",oi),document.removeEventListener("drop",oe))}},[F,g]),c.useEffect(function(){return!i&&R&&F.current&&F.current.focus(),function(){}},[F,R,i]);var ce=c.useCallback(function(P){D?D(P):console.error(P)},[D]),ue=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P),Y.current=[].concat(Ns(Y.current),[P.target]),kt(P)&&Promise.resolve(a(P)).then(function(O){if(!(Pt(P)&&!w)){var le=O.length,me=le>0&&Ss({files:O,accept:L,minSize:s,maxSize:r,multiple:l,maxFiles:d,validator:z}),Ce=le>0&&!me;T({isDragAccept:me,isDragReject:Ce,isDragActive:!0,type:"setDraggedFiles"}),m&&m(P)}}).catch(function(O){return ce(O)})},[a,m,ce,w,L,s,r,l,d,z]),je=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P);var O=kt(P);if(O&&P.dataTransfer)try{P.dataTransfer.dropEffect="copy"}catch{}return O&&h&&h(P),!1},[h,w]),ne=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P);var O=Y.current.filter(function(me){return F.current&&F.current.contains(me)}),le=O.indexOf(P.target);le!==-1&&O.splice(le,1),Y.current=O,!(O.length>0)&&(T({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kt(P)&&v&&v(P))},[F,v,w]),$=c.useCallback(function(P,O){var le=[],me=[];P.forEach(function(Ce){var ze=$i(Ce,L),Ie=qt(ze,2),re=Ie[0],Oe=Ie[1],qe=Wi(Ce,s,r),_e=qt(qe,2),N=_e[0],ae=_e[1],we=z?z(Ce):null;if(re&&N&&!we)le.push(Ce);else{var Le=[Oe,ae];we&&(Le=Le.concat(we)),me.push({file:Ce,errors:Le.filter(function(vt){return vt})})}}),(!l&&le.length>1||l&&d>=1&&le.length>d)&&(le.forEach(function(Ce){me.push({file:Ce,errors:[Cs]})}),le.splice(0)),T({acceptedFiles:le,fileRejections:me,isDragReject:me.length>0,type:"setFiles"}),j&&j(le,me,O),me.length>0&&u&&u(me,O),le.length>0&&f&&f(le,O)},[T,l,L,s,r,d,j,f,u,z]),U=c.useCallback(function(P){P.preventDefault(),P.persist(),Pe(P),Y.current=[],kt(P)&&Promise.resolve(a(P)).then(function(O){Pt(P)&&!w||$(O,P)}).catch(function(O){return ce(O)}),T({type:"reset"})},[a,$,ce,w]),V=c.useCallback(function(){if(Z.current){T({type:"openDialog"}),B();var P={multiple:l,types:H};window.showOpenFilePicker(P).then(function(O){return a(O)}).then(function(O){$(O,null),T({type:"closeDialog"})}).catch(function(O){Ts(O)?(q(O),T({type:"closeDialog"})):Ds(O)?(Z.current=!1,E.current?(E.current.value=null,E.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ce(O)});return}E.current&&(T({type:"openDialog"}),B(),E.current.value=null,E.current.click())},[T,B,q,x,$,ce,H,l]),K=c.useCallback(function(P){!F.current||!F.current.isEqualNode(P.target)||(P.key===" "||P.key==="Enter"||P.keyCode===32||P.keyCode===13)&&(P.preventDefault(),V())},[F,V]),S=c.useCallback(function(){T({type:"focus"})},[]),M=c.useCallback(function(){T({type:"blur"})},[]),Q=c.useCallback(function(){k||(Es()?setTimeout(V,0):V())},[k,V]),ve=function(O){return i?null:O},Ee=function(O){return p?null:ve(O)},Ae=function(O){return y?null:ve(O)},Pe=function(O){w&&O.stopPropagation()},Se=c.useMemo(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=P.refKey,le=O===void 0?"ref":O,me=P.role,Ce=P.onKeyDown,ze=P.onFocus,Ie=P.onBlur,re=P.onClick,Oe=P.onDragEnter,qe=P.onDragOver,_e=P.onDragLeave,N=P.onDrop,ae=Et(P,Os);return ge(ge(an({onKeyDown:Ee($e(Ce,K)),onFocus:Ee($e(ze,S)),onBlur:Ee($e(Ie,M)),onClick:ve($e(re,Q)),onDragEnter:Ae($e(Oe,ue)),onDragOver:Ae($e(qe,je)),onDragLeave:Ae($e(_e,ne)),onDrop:Ae($e(N,U)),role:typeof me=="string"&&me!==""?me:"presentation"},le,F),!i&&!p?{tabIndex:0}:{}),ae)}},[F,K,S,M,Q,ue,je,ne,U,p,y,i]),De=c.useCallback(function(P){P.stopPropagation()},[]),Me=c.useMemo(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=P.refKey,le=O===void 0?"ref":O,me=P.onChange,Ce=P.onClick,ze=Et(P,Ls),Ie=an({accept:L,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ve($e(me,U)),onClick:ve($e(Ce,De)),tabIndex:-1},le,E);return ge(ge({},Ie),ze)}},[E,n,l,U,i]);return ge(ge({},te),{},{isFocused:ee&&!i,getRootProps:Se,getInputProps:Me,rootRef:F,inputRef:E,open:ve(V)})}function Vs(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},rn),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ge(ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return ge({},rn);default:return e}}function ri(){}const si=Fe(o.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),li=Fe(o.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ks=Fe(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),Gs=Fe(o.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),ci=Fe(o.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),pi=Fe(o.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"})),di=Fe(o.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),Js=Fe(o.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),Xs=Fe(o.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Ys=Fe(o.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),ui=Fe(o.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"})),Zs=Fe(o.jsx("path",{d:"m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42M7 7h7v2H7zm10 10H7v-2h10zm0-4H7v-2h10z"})),Qs=Fe(o.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),mi=Fe([o.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),o.jsx("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")]),fi=Fe(o.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"})),el=e=>e.document.documents,tl=e=>e.document.pendingFiles,nl=e=>e.document.currentFolderName,il=e=>e.document.currentFolderHash,ol=gn([el],e=>e),al=gn([nl,il],(e,t)=>e||(t==="7d99a85daf66a0081a0e881630e6b39b"?"Dossier par défaut":"Dossier sans nom")),rl=({document:e,onClose:t})=>{const n=bi(),i=dt(p=>p.document.currentFolderHash),[a,r]=c.useState(null),[s,l]=c.useState(!0),[d,m]=c.useState(null),[v,h]=c.useState(1),[j,f]=c.useState(1),[u,C]=c.useState(0),[b,x]=c.useState(null);c.useEffect(()=>{l(!0),m(null),h(1),f(1);const p=setTimeout(()=>{C(3),l(!1)},1e3);return()=>clearTimeout(p)},[e]),c.useEffect(()=>{let p=!1;return(async()=>{try{const w=await fetch(`/api/cache/${e.id}`,{headers:{Accept:"application/json"}});if(!w.ok)return;const D=await w.json();p||r(D)}catch{}})(),()=>{p=!0}},[e]);const R=()=>{if(e.previewUrl){const p=window.document.createElement("a");p.href=e.previewUrl,p.download=e.name,p.click()}},g=e.mimeType.includes("pdf")||e.name.toLowerCase().endsWith(".pdf"),k=e.mimeType.startsWith("image/")||[".png",".jpg",".jpeg",".gif",".webp"].some(p=>e.name.toLowerCase().endsWith(p));return!g&&k?o.jsxs(Qe,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsx(_,{variant:"h6",children:e.name}),o.jsx(Vt,{onClick:t,title:"Fermer",children:o.jsx(li,{})})]})}),o.jsxs(tt,{dividers:!0,children:[o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[o.jsx(I,{}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(fi,{}),onClick:()=>f(p=>Math.max(p-.2,.2)),children:"Zoom -"}),o.jsxs(_,{variant:"body2",children:[Math.round(j*100),"%"]}),o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(mi,{}),onClick:()=>f(p=>Math.min(p+.2,4)),children:"Zoom +"})]})]}),o.jsx(I,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"auto",maxHeight:"70vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"grey.50"},children:e.previewUrl?o.jsx("img",{src:e.previewUrl,alt:e.name,style:{maxWidth:`${100*j}%`,maxHeight:`${100*j}%`,objectFit:"contain"},onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement de l'image"),l(!1)}}):o.jsxs(I,{textAlign:"center",p:4,children:[o.jsx(_,{variant:"h6",gutterBottom:!0,children:"Aperçu image"}),o.jsx(_,{variant:"body2",color:"text.secondary",children:"Le fichier a été uploadé avec succès."}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})}),o.jsxs(I,{sx:{mt:2},children:[o.jsx(_,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),o.jsxs(I,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Personnes"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4},defaultValue:p.firstName,onChange:w=>p.firstName=w.target.value}),o.jsx("input",{style:{padding:4},defaultValue:p.lastName,onChange:w=>p.lastName=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`pimg-${y}`,onClick:async()=>{if(i)try{x(`pimg-${y}`),await Xe(i,e.id,"person",{index:y,id:p.id,patch:{firstName:p.firstName,lastName:p.lastName}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"person",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.persons.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`pimg-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Adresses"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:220},defaultValue:p.street,onChange:w=>p.street=w.target.value}),o.jsx("input",{style:{padding:4,width:100},defaultValue:p.postalCode,onChange:w=>p.postalCode=w.target.value}),o.jsx("input",{style:{padding:4,width:160},defaultValue:p.city,onChange:w=>p.city=w.target.value}),o.jsx("input",{style:{padding:4,width:120},defaultValue:p.country||"",onChange:w=>p.country=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`aimg-${y}`,onClick:async()=>{if(i)try{x(`aimg-${y}`),await Xe(i,e.id,"address",{index:y,id:p.id,patch:{street:p.street,city:p.city,postalCode:p.postalCode,country:p.country}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"address",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.addresses.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`aimg-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Entreprises"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,children:o.jsx("input",{style:{padding:4,width:260},defaultValue:p.name,onChange:w=>p.name=w.target.value})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`cimg-${y}`,onClick:async()=>{if(i)try{x(`cimg-${y}`),await Xe(i,e.id,"company",{index:y,id:p.id,patch:{name:p.name}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"company",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.companies.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`cimg-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:t,children:"Fermer"}),o.jsx(X,{variant:"contained",startIcon:o.jsx(ci,{}),onClick:R,disabled:!e.previewUrl,children:"Télécharger"})]})]}):o.jsxs(Qe,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(ui,{color:"error"}),o.jsx(_,{variant:"h6",children:e.name})]}),o.jsx(Vt,{onClick:t,title:"Fermer",children:o.jsx(li,{})})]})}),o.jsxs(tt,{dividers:!0,children:[s&&o.jsxs(I,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:[o.jsx(yi,{}),o.jsx(_,{variant:"body2",sx:{ml:2},children:"Chargement du PDF..."})]}),d&&o.jsx(Kt,{severity:"error",sx:{mb:2},children:d}),!s&&!d&&o.jsxs(I,{children:[o.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(Xs,{}),onClick:()=>h(p=>Math.max(p-1,1)),disabled:v<=1,children:"Précédent"}),o.jsxs(_,{variant:"body2",children:["Page ",v," sur ",u]}),o.jsx(X,{variant:"outlined",size:"small",endIcon:o.jsx(Ys,{}),onClick:()=>h(p=>Math.min(p+1,u)),disabled:v>=u,children:"Suivant"})]}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(fi,{}),onClick:()=>f(p=>Math.max(p-.2,.5)),children:"Zoom -"}),o.jsxs(_,{variant:"body2",children:[Math.round(j*100),"%"]}),o.jsx(X,{variant:"outlined",size:"small",startIcon:o.jsx(mi,{}),onClick:()=>f(p=>Math.min(p+.2,2)),children:"Zoom +"})]})]}),o.jsx(I,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"hidden",maxHeight:"70vh",display:"flex",justifyContent:"center",backgroundColor:"grey.50"},children:e.previewUrl?o.jsx(I,{sx:{width:"100%",height:"600px"},children:o.jsx("iframe",{src:`${e.previewUrl}#toolbar=1&navpanes=1&scrollbar=1&page=1&view=FitH`,width:"100%",height:"100%",style:{border:"none",transform:`scale(${j})`,transformOrigin:"top left",width:`${100/j}%`,height:`${600/j}px`},title:`Aperçu de ${e.name}`,onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement du PDF"),l(!1)}})}):o.jsx(I,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:o.jsxs(I,{textAlign:"center",children:[o.jsx(ui,{sx:{fontSize:64,color:"error.main",mb:2}}),o.jsx(_,{variant:"h6",gutterBottom:!0,children:"Aperçu PDF"}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:['Le fichier PDF "',e.name,'" a été uploadé avec succès.']}),o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})})}),o.jsxs(I,{sx:{mt:2},children:[o.jsx(_,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),o.jsxs(I,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Personnes"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4},defaultValue:p.firstName,onChange:w=>p.firstName=w.target.value}),o.jsx("input",{style:{padding:4},defaultValue:p.lastName,onChange:w=>p.lastName=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`p-${y}`,onClick:async()=>{if(i)try{x(`p-${y}`),await Xe(i,e.id,"person",{index:y,id:p.id,patch:{firstName:p.firstName,lastName:p.lastName}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"person",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.persons.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`p-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Adresses"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx("input",{style:{padding:4,width:220},defaultValue:p.street,onChange:w=>p.street=w.target.value}),o.jsx("input",{style:{padding:4,width:100},defaultValue:p.postalCode,onChange:w=>p.postalCode=w.target.value}),o.jsx("input",{style:{padding:4,width:160},defaultValue:p.city,onChange:w=>p.city=w.target.value}),o.jsx("input",{style:{padding:4,width:120},defaultValue:p.country||"",onChange:w=>p.country=w.target.value})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`a-${y}`,onClick:async()=>{if(i)try{x(`a-${y}`),await Xe(i,e.id,"address",{index:y,id:p.id,patch:{street:p.street,city:p.city,postalCode:p.postalCode,country:p.country}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"address",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.addresses.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`a-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),o.jsxs(I,{children:[o.jsx(_,{variant:"subtitle2",children:"Entreprises"}),o.jsx(I,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((p,y)=>o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,children:o.jsx("input",{style:{padding:4,width:260},defaultValue:p.name,onChange:w=>p.name=w.target.value})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{size:"small",variant:"outlined",disabled:!i||b===`c-${y}`,onClick:async()=>{if(i)try{x(`c-${y}`),await Xe(i,e.id,"company",{index:y,id:p.id,patch:{name:p.name}}),await n(Re(i)).unwrap()}finally{x(null)}},children:"Enregistrer"}),o.jsx(X,{size:"small",color:"error",onClick:async()=>{if(i)try{await Ye(i,e.id,"company",{index:y,id:p.id}),await n(Re(i)).unwrap();const w=JSON.parse(JSON.stringify(a));w.extraction.entities.companies.splice(y,1),r(w)}catch{}},children:"Supprimer"})]})]},`c-${y}`)):o.jsx(_,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:t,children:"Fermer"}),o.jsx(X,{variant:"contained",startIcon:o.jsx(ci,{}),onClick:R,disabled:!e.previewUrl,children:"Télécharger"})]})]})},sl=c.memo(({doc:e,index:t,onPreview:n,onDelete:i,onReplace:a,onConfirmAddress:r,onReview:s,onOpenCorrections:l,isReviewing:d,totalCount:m})=>{const v=f=>f.startsWith("image/")?o.jsx(Js,{}):f==="application/pdf"?o.jsx(Sn,{}):f.startsWith("text/")?o.jsx(Zs,{}):o.jsx(Sn,{}),h=f=>{switch(f){case"completed":return o.jsx(so,{color:"success"});case"processing":return o.jsx(di,{color:"warning"});case"error":return o.jsx(ro,{color:"error"});default:return o.jsx(di,{color:"disabled"})}},j=f=>{switch(f){case"completed":return"success";case"processing":return"warning";case"error":return"error";default:return"default"}};return o.jsxs("div",{children:[o.jsxs(Xt,{children:[o.jsx(ji,{children:v(e.mimeType)}),o.jsx(Yt,{primary:o.jsxs(I,{children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,mb:1,children:[h(e.status),o.jsx(_,{variant:"subtitle1",sx:{wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",maxWidth:{xs:"200px",sm:"300px",md:"400px"}},children:(()=>{if(e.status==="processing"&&e.name===e.id){const u=["53985cbd461f137c847a13f6a4b82758e5920fb9ccc3ffea9d5d1ac99007e6ce.jpg","aceeb1161004f938d2abf1b88b216ef1ea68fad6141374a66efbdda9d796ac6e.jpg"].find(C=>C.startsWith(e.id));if(u)return u}return e.displayName||e.name})()})]}),o.jsxs(I,{display:"flex",gap:1,flexWrap:"wrap",children:[o.jsx(Ue,{label:e.status,size:"small",color:j(e.status)}),e.mimeType&&e.mimeType!=="application/octet-stream"&&o.jsx(Ue,{label:e.mimeType,size:"small",variant:"outlined"}),e.size>0&&o.jsx(Ue,{label:`${(e.size/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"}),d&&o.jsx(Ue,{color:"default",label:"Révision IA en cours…",size:"small"}),(()=>{const f=e,u=f?.metadata?.quality?.ollamaScore??f?.status?.review?.score,C=f?.status?.review?.avis,b=f?.status?.review?.durationMs;if(e.status==="completed"&&typeof u=="number"){const x=o.jsx(Ue,{color:"success",label:`IA: ${u.toFixed(2)}`,size:"small",variant:"outlined"}),R=`${C||""}${b?(C?" — ":"")+"durée: "+b+" ms":""}`;return R?o.jsx(Gt,{title:R,children:o.jsx("span",{children:x})}):x}return null})(),(()=>{const u=e?.status?.review?.corrections,C=Array.isArray(u)?u.length:0;return e.status==="completed"&&C>0?o.jsx(Ue,{color:"info",label:`Corrections: ${C}`,size:"small",variant:"outlined",onClick:()=>l(e,u)}):null})(),e.status==="completed"&&e?.suggestions?.needsReupload&&o.jsx(Ue,{color:"warning",label:"Qualité faible: remplacer",size:"small",onClick:()=>a(e)}),e.status==="completed"&&e?.suggestions?.needsAddressConfirmation&&o.jsx(Ue,{color:"info",label:"Adresse à confirmer",size:"small",onClick:()=>r(e)})]})]})}),o.jsxs(I,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[o.jsx(X,{size:"small",startIcon:o.jsx(Qs,{}),onClick:()=>n(e),disabled:e.status!=="completed",fullWidth:!0,children:"Aperçu"}),o.jsx(Gt,{title:"Analyse IA (Ollama): calcule un score de fiabilité, propose des corrections, ajoute un avis.",children:o.jsx("span",{children:o.jsx(X,{size:"small",onClick:()=>s(e),disabled:e.status!=="completed"||d,fullWidth:!0,children:d?"Révision IA…":"Révision IA"})})}),o.jsx(X,{size:"small",color:"error",onClick:()=>i(e.id),fullWidth:!0,children:"Supprimer"})]})]}),tS.document),s=dt(al),l=dt(ol),d=dt(tl),m=l;console.log("🏠 [UPLOAD_VIEW] Component loaded, documents count:",m.length);const[v,h]=c.useState(null),j=c.useCallback(S=>{e(Xi(S))},[e]),[f,u]=c.useState(!1),[C,b]=c.useState(!1),[x,R]=c.useState(""),[g,k]=c.useState(""),[p,y]=c.useState(""),[w,D]=c.useState(!1),[z,L]=c.useState({street:"",city:"",postalCode:"",country:"France"}),[H,B]=c.useState(null),[q,F]=c.useState(!1),[E,A]=c.useState(null),[G,te]=c.useState([]),[T,ee]=c.useState(null),[ie,Z]=c.useState({open:!1,severity:"success",message:""}),J=c.useCallback(S=>{try{const Q=(S.suggestions||{}).detectedAddress||{street:"",city:"",postalCode:"",country:"France"};L({street:Q.street||"",city:Q.city||"",postalCode:Q.postalCode||"",country:Q.country||"France"}),B(S),D(!0)}catch(M){console.error("❌ Préparation confirmation adresse:",M)}},[]),Y=c.useCallback(async()=>{if(!(!n||!H))try{await Yi(n,H.id,z),D(!1),await e(Re(n)).unwrap()}catch(S){console.error("❌ Confirmation adresse:",S)}},[n,H,z,e]),oe=c.useCallback(async S=>{if(n)try{ee(S.id),await Zi(n,S.id),await e(Re(n)).unwrap(),Z({open:!0,severity:"success",message:"Révision IA terminée: score et corrections mis à jour."})}catch(M){console.error("❌ Révision IA:",M),Z({open:!0,severity:"error",message:"Échec de la révision IA. Réessaie plus tard."})}finally{ee(null)}},[n,e]),ce=c.useCallback(S=>{const M=document.createElement("input");M.type="file",M.accept="image/*,application/pdf",M.onchange=async()=>{const Q=M.files&&M.files[0]||null;if(!(!Q||!n))try{await Qi(n,S.id),await e(yn({file:Q,folderHash:n})).unwrap(),await e(Re(n)).unwrap()}catch(ve){console.error("❌ Remplacement de document:",ve)}},M.click()},[n,e]),ue=c.useCallback(async()=>{try{const S=await fetch("/api/folders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:x||"Nouveau dossier",description:g||""})});if(!S.ok)throw new Error(await S.text());const M=await S.json();e(wn(M.folderHash)),await e(Re(M.folderHash)).unwrap(),console.log("✅ [UPLOAD] Nouveau dossier créé:",M.folderHash),b(!1),R(""),k("")}catch(S){console.error("❌ [UPLOAD] Erreur lors de la création du dossier:",S)}},[e]),je=c.useCallback(async()=>{if(p.trim())try{e(wn(p.trim())),await e(Re(p.trim())).unwrap(),console.log("✅ [UPLOAD] Dossier chargé:",p.trim()),u(!1),y("")}catch(S){console.error("❌ [UPLOAD] Erreur lors du chargement du dossier:",S)}},[e,p]),ne=c.useCallback(()=>{n&&(navigator.clipboard.writeText(n),console.log("📋 [UPLOAD] Hash du dossier copié:",n))},[n]),$=c.useCallback(async S=>{if(!n){console.error("❌ [UPLOAD] Aucun dossier sélectionné");return}const M=S.map(async Q=>{try{console.log(`📤 [UPLOAD] Upload de ${Q.name} dans le dossier ${n}`),await e(yn({file:Q,folderHash:n})).unwrap(),await e(Re(n)).unwrap(),console.log(`✅ [UPLOAD] ${Q.name} uploadé avec succès`)}catch(ve){console.error(`❌ [UPLOAD] Erreur lors du traitement de ${Q.name}:`,ve)}});await Promise.all(M)},[e,n]),{getRootProps:U,getInputProps:V,isDragActive:K}=_i({onDrop:$,accept:{"application/pdf":[".pdf"],"image/*":[".png",".jpg",".jpeg",".tiff"]},multiple:!0});return c.useEffect(()=>{(async()=>{if(n&&!(s&&s.length>0))try{const M=await fetch(`/api/folders/${n}/meta`);if(M.ok){const Q=await M.json();Q?.name&&window.dispatchEvent(new CustomEvent("4nk:setFolderName",{detail:Q.name}))}}catch{}})()},[n,s]),!a||i?o.jsx(kn,{children:o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"center",minHeight:240,children:[o.jsx(yi,{size:28,sx:{mr:2}}),o.jsx(_,{children:"Chargement des fichiers du dossier…"})]})}):o.jsxs(kn,{children:[o.jsx(_,{variant:"h4",gutterBottom:!0,children:"Analyse de documents IA"}),o.jsx(I,{sx:{mb:3,p:2,bgcolor:"grey.50",borderRadius:1,border:"1px solid",borderColor:"grey.200"},children:o.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:2,children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:2,children:[o.jsx(_,{variant:"h6",color:"text.secondary",children:"Dossier actuel :"}),o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(_,{variant:"body1",sx:{fontFamily:"monospace",bgcolor:"grey.100",px:1,py:.5,borderRadius:1,fontSize:"0.875rem"},children:s||(n?"Dossier sans nom":"Aucun dossier sélectionné")}),n&&o.jsx(Gt,{title:"Copier le hash du dossier",children:o.jsx(Vt,{size:"small",onClick:ne,children:o.jsx(Gs,{fontSize:"small"})})})]})]}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(X,{variant:"outlined",startIcon:o.jsx(si,{}),onClick:()=>b(!0),size:"small",children:"CRÉER UN DOSSIER"}),o.jsx(X,{variant:"outlined",startIcon:o.jsx(pi,{}),onClick:()=>u(!0),size:"small",children:"Charger dossier"})]})]})}),o.jsxs(xt,{...U(),sx:{p:{xs:2,sm:4},textAlign:"center",cursor:"pointer",border:"2px dashed",borderColor:K?"primary.main":"grey.300",bgcolor:K?"action.hover":"background.paper","&:hover":{borderColor:"primary.main",bgcolor:"action.hover"}},children:[o.jsx("input",{...V()}),o.jsx(Ks,{sx:{fontSize:{xs:36,sm:48},color:"primary.main",mb:2}}),o.jsx(_,{variant:"h6",gutterBottom:!0,sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"}},children:K?"Déposez les fichiers ici...":"Glissez-déposez vos documents ou cliquez pour sélectionner"}),o.jsx(_,{variant:"body2",color:"text.secondary",sx:{fontSize:{xs:"0.75rem",sm:"0.875rem"}},children:"Formats acceptés: PDF, PNG, JPG, JPEG, TIFF"})]}),t&&o.jsx(Kt,{severity:"error",sx:{mt:2},children:t}),(m.length>0||r)&&o.jsxs(I,{sx:{mt:3},children:[o.jsxs(_,{variant:"h6",gutterBottom:!0,children:["Documents analysés (",m.length,")"]}),o.jsx(no,{children:o.jsxs(Jt,{children:[m.map((S,M)=>o.jsx(sl,{doc:S,index:M,onPreview:h,onDelete:j,onReplace:ce,onConfirmAddress:J,onReview:oe,onOpenCorrections:(Q,ve)=>{A(Q),te(ve),F(!0)},isReviewing:T===S.id,totalCount:m.length},`${S.id}-${M}`)),r&&o.jsx(o.Fragment,{children:(d.length>0?d:new Array(2).fill(null)).map((S,M)=>o.jsxs("div",{children:[o.jsxs(Xt,{children:[o.jsx(ji,{children:o.jsx(Ze,{variant:"circular",width:24,height:24})}),o.jsx(Yt,{primary:o.jsxs(I,{children:[o.jsx(I,{display:"flex",alignItems:"center",gap:1,mb:1,children:o.jsx(Ze,{variant:"rounded",width:180,height:18})}),o.jsxs(I,{display:"flex",gap:1,children:[o.jsx(Ze,{variant:"rounded",width:60,height:24}),o.jsx(Ze,{variant:"rounded",width:100,height:24})]})]})}),o.jsxs(I,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[o.jsx(Ze,{variant:"rounded",width:84,height:32}),o.jsx(Ze,{variant:"rounded",width:84,height:32})]})]}),o.jsx(St,{})]},`sk-${M}`))})]})})]}),v&&o.jsx(rl,{document:v,onClose:()=>h(null)}),o.jsxs(Qe,{open:f,onClose:()=>u(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(pi,{}),"Charger un dossier existant"]})}),o.jsxs(tt,{children:[o.jsx(_,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Entrez le hash du dossier que vous souhaitez charger. Le hash est un identifiant unique de 32 caractères."}),o.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Hash du dossier",placeholder:"ex: 0e7ae08a4f14f3154be1bd69d5617c74",fullWidth:!0,variant:"outlined",value:p,onChange:S=>y(S.target.value),sx:{fontFamily:"monospace"},helperText:"Le hash doit contenir exactement 32 caractères hexadécimaux"})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>u(!1),children:"Annuler"}),o.jsx(X,{onClick:je,variant:"contained",disabled:!p.trim()||p.trim().length!==32,children:"Charger le dossier"})]})]}),o.jsxs(Qe,{open:C,onClose:()=>b(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(si,{}),"Créer un nouveau dossier"]})}),o.jsxs(tt,{children:[o.jsx(Ke,{autoFocus:!0,margin:"dense",label:"Nom du dossier",fullWidth:!0,variant:"outlined",value:x,onChange:S=>R(S.target.value)}),o.jsx(Ke,{margin:"dense",label:"Description",fullWidth:!0,multiline:!0,minRows:2,variant:"outlined",value:g,onChange:S=>k(S.target.value)})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>b(!1),children:"Annuler"}),o.jsx(X,{onClick:ue,variant:"contained",disabled:!x.trim(),children:"Créer"})]})]}),o.jsxs(Qe,{open:w,onClose:()=>D(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:"Confirmer l'adresse détectée"}),o.jsxs(tt,{children:[o.jsx(Ke,{margin:"dense",label:"Rue",fullWidth:!0,variant:"outlined",value:z.street,onChange:S=>L({...z,street:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Code postal",fullWidth:!0,variant:"outlined",value:z.postalCode,onChange:S=>L({...z,postalCode:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Ville",fullWidth:!0,variant:"outlined",value:z.city,onChange:S=>L({...z,city:S.target.value})}),o.jsx(Ke,{margin:"dense",label:"Pays",fullWidth:!0,variant:"outlined",value:z.country,onChange:S=>L({...z,country:S.target.value})})]}),o.jsxs(et,{children:[o.jsx(X,{onClick:()=>D(!1),children:"Annuler"}),o.jsx(X,{variant:"contained",onClick:Y,children:"Confirmer"})]})]}),o.jsxs(Qe,{open:q,onClose:()=>F(!1),maxWidth:"sm",fullWidth:!0,children:[o.jsx(nt,{children:"Corrections proposées par l'IA"}),o.jsxs(tt,{children:[E?o.jsxs(_,{variant:"subtitle2",sx:{mb:1},children:["Document: ",E.displayName||E.name]}):null,Array.isArray(G)&&G.length>0?o.jsx(Jt,{children:G.map((S,M)=>o.jsx(Xt,{alignItems:"flex-start",children:o.jsx(Yt,{primary:S?.path?String(S.path):`Correction ${M+1}`,secondary:o.jsxs(o.Fragment,{children:[o.jsxs(_,{variant:"body2",color:"text.secondary",children:["Valeur: ",typeof S?.value=="object"?JSON.stringify(S.value):String(S?.value??"")]}),typeof S?.confidence=="number"&&o.jsxs(_,{variant:"caption",color:"text.secondary",children:["Confiance: ",S.confidence.toFixed?S.confidence.toFixed(2):S.confidence]})]})})},`corr-${M}`))}):o.jsx(_,{variant:"body2",color:"text.secondary",children:"Aucune correction disponible."})]}),o.jsx(et,{children:o.jsx(X,{onClick:()=>F(!1),children:"Fermer"})})]}),o.jsx(Lr,{open:ie.open,autoHideDuration:3e3,onClose:()=>Z({...ie,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:o.jsx(Kt,{onClose:()=>Z({...ie,open:!1}),severity:ie.severity,variant:"filled",sx:{width:"100%"},children:ie.message})})]})}export{xl as default}; diff --git a/public/assets/Warning-9PqtY1pT.js b/public/assets/Warning-9PqtY1pT.js new file mode 100644 index 0000000..f4164ff --- /dev/null +++ b/public/assets/Warning-9PqtY1pT.js @@ -0,0 +1 @@ +import{j as o}from"./index-CuLfHvEh.js";import{c as r}from"./Layout-BwmFxbkK.js";const s=r(o.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));export{s as W}; diff --git a/public/assets/Warning-AzBBLDe4.js b/public/assets/Warning-AzBBLDe4.js new file mode 100644 index 0000000..1577c78 --- /dev/null +++ b/public/assets/Warning-AzBBLDe4.js @@ -0,0 +1 @@ +import{j as o}from"./index-wde0U4qL.js";import{c as r}from"./Layout-aWSA1CnN.js";const s=r(o.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));export{s as W}; diff --git a/public/assets/Warning-BYDm3ItC.js b/public/assets/Warning-BYDm3ItC.js new file mode 100644 index 0000000..c7d6ff8 --- /dev/null +++ b/public/assets/Warning-BYDm3ItC.js @@ -0,0 +1 @@ +import{j as o}from"./index-BkuOAsyQ.js";import{c as r}from"./Layout-HUfQIbZm.js";const s=r(o.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));export{s as W}; diff --git a/public/assets/Warning-BfA_XJFt.js b/public/assets/Warning-BfA_XJFt.js new file mode 100644 index 0000000..df0a7f4 --- /dev/null +++ b/public/assets/Warning-BfA_XJFt.js @@ -0,0 +1 @@ +import{j as o}from"./index-ChSrE95j.js";import{c as r}from"./Layout-EP4xiiHA.js";const s=r(o.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));export{s as W}; diff --git a/public/assets/Warning-DUm-aenG.js b/public/assets/Warning-DUm-aenG.js new file mode 100644 index 0000000..ce22777 --- /dev/null +++ b/public/assets/Warning-DUm-aenG.js @@ -0,0 +1 @@ +import{j as o}from"./index-CedKFzDs.js";import{c as r}from"./Layout-D-i60CyA.js";const s=r(o.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));export{s as W}; diff --git a/public/assets/Warning-SpZY3gdb.js b/public/assets/Warning-SpZY3gdb.js new file mode 100644 index 0000000..fc4e4fd --- /dev/null +++ b/public/assets/Warning-SpZY3gdb.js @@ -0,0 +1 @@ +import{j as o}from"./index-DwyPw-ga.js";import{c as r}from"./Layout-BXCKqMhs.js";const s=r(o.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));export{s as W}; diff --git a/public/assets/__vite-browser-external-BIHI7g3E.js b/public/assets/__vite-browser-external-BIHI7g3E.js new file mode 100644 index 0000000..b480ffe --- /dev/null +++ b/public/assets/__vite-browser-external-BIHI7g3E.js @@ -0,0 +1 @@ +const e={};export{e as default}; diff --git a/public/assets/index-BkuOAsyQ.js b/public/assets/index-BkuOAsyQ.js new file mode 100644 index 0000000..a2a3bab --- /dev/null +++ b/public/assets/index-BkuOAsyQ.js @@ -0,0 +1,154 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/UploadView-C9SKEcCT.js","assets/Layout-HUfQIbZm.js","assets/utils-DOxjq0mC.js","assets/Description-rLhKmJBh.js","assets/ListItemText-siZDedtT.js","assets/ListItemIcon-BghqebyC.js","assets/Error-BFlYSo8E.js","assets/ExtractionView-BRvVO-MB.js","assets/CardContent-D_m--IFw.js","assets/Assessment-CaixQ7iY.js","assets/LocationOn-g4BgcU6o.js","assets/ContexteView-BJCk76pf.js","assets/Warning-BYDm3ItC.js","assets/ConseilView-BhbViRrx.js"])))=>i.map(i=>d[i]); +function $E(t,r){for(var l=0;li[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function l(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(u){if(u.ep)return;u.ep=!0;const c=l(u);fetch(u.href,c)}})();function Cv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var id={exports:{}},Xi={};/** + * @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 Mg;function PE(){if(Mg)return Xi;Mg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(i,u,c){var f=null;if(c!==void 0&&(f=""+c),u.key!==void 0&&(f=""+u.key),"key"in u){c={};for(var h in u)h!=="key"&&(c[h]=u[h])}else c=u;return u=c.ref,{$$typeof:t,type:i,key:f,ref:u!==void 0?u:null,props:c}}return Xi.Fragment=r,Xi.jsx=l,Xi.jsxs=l,Xi}var Ng;function qE(){return Ng||(Ng=1,id.exports=PE()),id.exports}var Re=qE(),od={exports:{}},Ne={};/** + * @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 zg;function VE(){if(zg)return Ne;zg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function S(_){return _===null||typeof _!="object"?null:(_=v&&_[v]||_["@@iterator"],typeof _=="function"?_:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function C(_,X,re){this.props=_,this.context=X,this.refs=T,this.updater=re||w}C.prototype.isReactComponent={},C.prototype.setState=function(_,X){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,X,"setState")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function L(){}L.prototype=C.prototype;function H(_,X,re){this.props=_,this.context=X,this.refs=T,this.updater=re||w}var B=H.prototype=new L;B.constructor=H,E(B,C.prototype),B.isPureReactComponent=!0;var G=Array.isArray,O={H:null,A:null,T:null,S:null,V:null},x=Object.prototype.hasOwnProperty;function V(_,X,re,le,fe,Oe){return re=Oe.ref,{$$typeof:t,type:_,key:X,ref:re!==void 0?re:null,props:Oe}}function J(_,X){return V(_.type,X,void 0,void 0,void 0,_.props)}function ee(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function ue(_){var X={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(re){return X[re]})}var se=/\/+/g;function R(_,X){return typeof _=="object"&&_!==null&&_.key!=null?ue(""+_.key):X.toString(36)}function ae(){}function I(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(ae,ae):(_.status="pending",_.then(function(X){_.status==="pending"&&(_.status="fulfilled",_.value=X)},function(X){_.status==="pending"&&(_.status="rejected",_.reason=X)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function ce(_,X,re,le,fe){var Oe=typeof _;(Oe==="undefined"||Oe==="boolean")&&(_=null);var Se=!1;if(_===null)Se=!0;else switch(Oe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(_.$$typeof){case t:case r:Se=!0;break;case y:return Se=_._init,ce(Se(_._payload),X,re,le,fe)}}if(Se)return fe=fe(_),Se=le===""?"."+R(_,0):le,G(fe)?(re="",Se!=null&&(re=Se.replace(se,"$&/")+"/"),ce(fe,X,re,"",function(rn){return rn})):fe!=null&&(ee(fe)&&(fe=J(fe,re+(fe.key==null||_&&_.key===fe.key?"":(""+fe.key).replace(se,"$&/")+"/")+Se)),X.push(fe)),1;Se=0;var dt=le===""?".":le+":";if(G(_))for(var Fe=0;Fe<_.length;Fe++)le=_[Fe],Oe=dt+R(le,Fe),Se+=ce(le,X,re,Oe,fe);else if(Fe=S(_),typeof Fe=="function")for(_=Fe.call(_),Fe=0;!(le=_.next()).done;)le=le.value,Oe=dt+R(le,Fe++),Se+=ce(le,X,re,Oe,fe);else if(Oe==="object"){if(typeof _.then=="function")return ce(I(_),X,re,le,fe);throw X=String(_),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function z(_,X,re){if(_==null)return _;var le=[],fe=0;return ce(_,le,"","",function(Oe){return X.call(re,Oe,fe++)}),le}function ne(_){if(_._status===-1){var X=_._result;X=X(),X.then(function(re){(_._status===0||_._status===-1)&&(_._status=1,_._result=re)},function(re){(_._status===0||_._status===-1)&&(_._status=2,_._result=re)}),_._status===-1&&(_._status=0,_._result=X)}if(_._status===1)return _._result.default;throw _._result}var oe=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)};function xe(){}return Ne.Children={map:z,forEach:function(_,X,re){z(_,function(){X.apply(this,arguments)},re)},count:function(_){var X=0;return z(_,function(){X++}),X},toArray:function(_){return z(_,function(X){return X})||[]},only:function(_){if(!ee(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Ne.Component=C,Ne.Fragment=l,Ne.Profiler=u,Ne.PureComponent=H,Ne.StrictMode=i,Ne.Suspense=p,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(_){return O.H.useMemoCache(_)}},Ne.cache=function(_){return function(){return _.apply(null,arguments)}},Ne.cloneElement=function(_,X,re){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var le=E({},_.props),fe=_.key,Oe=void 0;if(X!=null)for(Se in X.ref!==void 0&&(Oe=void 0),X.key!==void 0&&(fe=""+X.key),X)!x.call(X,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&X.ref===void 0||(le[Se]=X[Se]);var Se=arguments.length-2;if(Se===1)le.children=re;else if(1>>1,_=z[xe];if(0>>1;xeu(le,oe))fe<_&&0>u(Oe,le)?(z[xe]=Oe,z[fe]=oe,xe=fe):(z[xe]=le,z[re]=oe,xe=re);else if(fe<_&&0>u(Oe,oe))z[xe]=Oe,z[fe]=oe,xe=fe;else break e}}return ne}function u(z,ne){var oe=z.sortIndex-ne.sortIndex;return oe!==0?oe:z.id-ne.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}var p=[],m=[],y=1,v=null,S=3,w=!1,E=!1,T=!1,C=!1,L=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function G(z){for(var ne=l(m);ne!==null;){if(ne.callback===null)i(m);else if(ne.startTime<=z)i(m),ne.sortIndex=ne.expirationTime,r(p,ne);else break;ne=l(m)}}function O(z){if(T=!1,G(z),!E)if(l(p)!==null)E=!0,x||(x=!0,R());else{var ne=l(m);ne!==null&&ce(O,ne.startTime-z)}}var x=!1,V=-1,J=5,ee=-1;function ue(){return C?!0:!(t.unstable_now()-eez&&ue());){var xe=v.callback;if(typeof xe=="function"){v.callback=null,S=v.priorityLevel;var _=xe(v.expirationTime<=z);if(z=t.unstable_now(),typeof _=="function"){v.callback=_,G(z),ne=!0;break t}v===l(p)&&i(p),G(z)}else i(p);v=l(p)}if(v!==null)ne=!0;else{var X=l(m);X!==null&&ce(O,X.startTime-z),ne=!1}}break e}finally{v=null,S=oe,w=!1}ne=void 0}}finally{ne?R():x=!1}}}var R;if(typeof B=="function")R=function(){B(se)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,I=ae.port2;ae.port1.onmessage=se,R=function(){I.postMessage(null)}}else R=function(){L(se,0)};function ce(z,ne){V=L(function(){z(t.unstable_now())},ne)}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(z){z.callback=null},t.unstable_forceFrameRate=function(z){0>z||125xe?(z.sortIndex=oe,r(m,z),l(p)===null&&z===l(m)&&(T?(H(V),V=-1):T=!0,ce(O,oe-xe))):(z.sortIndex=_,r(p,z),E||w||(E=!0,x||(x=!0,R()))),z},t.unstable_shouldYield=ue,t.unstable_wrapCallback=function(z){var ne=S;return function(){var oe=S;S=ne;try{return z.apply(this,arguments)}finally{S=oe}}}})(cd)),cd}var Bg;function FE(){return Bg||(Bg=1,sd.exports=GE()),sd.exports}var fd={exports:{}},Pt={};/** + * @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 jg;function XE(){if(jg)return Pt;jg=1;var t=Os();function r(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(r){console.error(r)}}return t(),fd.exports=XE(),fd.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 Hg;function KE(){if(Hg)return Ki;Hg=1;var t=FE(),r=Os(),l=xv();function i(e){var n="https://react.dev/errors/"+e;if(1_||(e.current=xe[_],xe[_]=null,_--)}function le(e,n){_++,xe[_]=e.current,e.current=n}var fe=X(null),Oe=X(null),Se=X(null),dt=X(null);function Fe(e,n){switch(le(Se,n),le(Oe,e),le(fe,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?lg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=lg(n),e=ig(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}re(fe),le(fe,e)}function rn(){re(fe),re(Oe),re(Se)}function ht(e){e.memoizedState!==null&&le(dt,e);var n=fe.current,a=ig(n,e.type);n!==a&&(le(Oe,e),le(fe,a))}function an(e){Oe.current===e&&(re(fe),re(Oe)),dt.current===e&&(re(dt),qi._currentValue=oe)}var rr=Object.prototype.hasOwnProperty,Nr=t.unstable_scheduleCallback,Xt=t.unstable_cancelCallback,Wa=t.unstable_shouldYield,Wl=t.unstable_requestPaint,kt=t.unstable_now,pa=t.unstable_getCurrentPriorityLevel,Ht=t.unstable_ImmediatePriority,ar=t.unstable_UserBlockingPriority,$n=t.unstable_NormalPriority,Yt=t.unstable_LowPriority,Pn=t.unstable_IdlePriority,ya=t.log,zr=t.unstable_setDisableYieldValue,rt=null,Ae=null;function it(e){if(typeof ya=="function"&&zr(e),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(rt,e)}catch{}}var Je=Math.clz32?Math.clz32:zo,ga=Math.log,Sn=Math.LN2;function zo(e){return e>>>=0,e===0?32:31-(ga(e)/Sn|0)|0}var va=256,ba=4194304;function lr(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Sa(e,n,a){var o=e.pendingLanes;if(o===0)return 0;var s=0,d=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=o&134217727;return b!==0?(o=b&~d,o!==0?s=lr(o):(g&=b,g!==0?s=lr(g):a||(a=b&~e,a!==0&&(s=lr(a))))):(b=o&~d,b!==0?s=lr(b):g!==0?s=lr(g):a||(a=o&~e,a!==0&&(s=lr(a)))),s===0?0:n!==0&&n!==s&&(n&d)===0&&(d=s&-s,a=n&-n,d>=a||d===32&&(a&4194048)!==0)?n:s}function qn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Lo(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+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 Ia(){var e=va;return va<<=1,(va&4194048)===0&&(va=256),e}function Uo(){var e=ba;return ba<<=1,(ba&62914560)===0&&(ba=4194304),e}function el(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function Ea(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bo(e,n,a,o,s,d){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,A=e.expirationTimes,$=e.hiddenUpdates;for(a=g&~a;0)":-1s||A[o]!==$[s]){var Q=` +`+A[o].replace(" at new "," at ");return e.displayName&&Q.includes("")&&(Q=Q.replace("",e.displayName)),Q}while(1<=o&&0<=s);break}}}finally{ct=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Kt(a):""}function jo(e){switch(e.tag){case 26:case 27:case 5:return Kt(e.type);case 16:return Kt("Lazy");case 13:return Kt("Suspense");case 19:return Kt("SuspenseList");case 0:case 15:return Ur(e.type,!1);case 11:return Ur(e.type.render,!1);case 1:return Ur(e.type,!0);case 31:return Kt("Activity");default:return""}}function ko(e){try{var n="";do n+=jo(e),e=e.return;while(e);return n}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}function wn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function em(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function US(e){var n=em(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,d=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return s.call(this)},set:function(g){o=""+g,d.call(this,g)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(g){o=""+g},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ho(e){e._valueTracker||(e._valueTracker=US(e))}function tm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return e&&(o=em(e)?e.checked?"true":"false":e.value),e=o,e!==a?(n.setValue(e),!0):!1}function $o(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var BS=/[\n"\\]/g;function Tn(e){return e.replace(BS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function nc(e,n,a,o,s,d,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),n!=null?g==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+wn(n)):e.value!==""+wn(n)&&(e.value=""+wn(n)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),n!=null?rc(e,g,wn(n)):a!=null?rc(e,g,wn(a)):o!=null&&e.removeAttribute("value"),s==null&&d!=null&&(e.defaultChecked=!!d),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+wn(b):e.removeAttribute("name")}function nm(e,n,a,o,s,d,g,b){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||n!=null))return;a=a!=null?""+wn(a):"",n=n!=null?""+wn(n):a,b||n===e.value||(e.value=n),e.defaultValue=n}o=o??s,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=b?e.checked:!!o,e.defaultChecked=!!o,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function rc(e,n,a){n==="number"&&$o(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function nl(e,n,a,o){if(e=e.options,n){n={};for(var s=0;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uc=!1;if(cr)try{var ni={};Object.defineProperty(ni,"passive",{get:function(){uc=!0}}),window.addEventListener("test",ni,ni),window.removeEventListener("test",ni,ni)}catch{uc=!1}var Br=null,sc=null,qo=null;function sm(){if(qo)return qo;var e,n=sc,a=n.length,o,s="value"in Br?Br.value:Br.textContent,d=s.length;for(e=0;e=li),pm=" ",ym=!1;function gm(e,n){switch(e){case"keyup":return c1.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function d1(e,n){switch(e){case"compositionend":return vm(n);case"keypress":return n.which!==32?null:(ym=!0,pm);case"textInput":return e=n.data,e===pm&&ym?null:e;default:return null}}function h1(e,n){if(il)return e==="compositionend"||!mc&&gm(e,n)?(e=sm(),qo=sc=Br=null,il=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:a,offset:n-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=xm(a)}}function Om(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Om(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function _m(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=$o(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=$o(e.document)}return n}function gc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var E1=cr&&"documentMode"in document&&11>=document.documentMode,ol=null,vc=null,si=null,bc=!1;function Dm(e,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;bc||ol==null||ol!==$o(o)||(o=ol,"selectionStart"in o&&gc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),si&&ui(si,o)||(si=o,o=Nu(vc,"onSelect"),0>=g,s-=g,dr=1<<32-Je(n)+s|a<d?d:8;var g=z.T,b={};z.T=b,af(e,!1,n,a);try{var A=s(),$=z.S;if($!==null&&$(b,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Q=D1(A,o);Ri(e,n,Q,dn(e))}else Ri(e,n,o,dn(e))}catch(W){Ri(e,n,{then:function(){},status:"rejected",reason:W},dn())}finally{ne.p=d,z.T=g}}function U1(){}function nf(e,n,a,o){if(e.tag!==5)throw Error(i(476));var s=Mp(e).queue;Dp(e,s,n,oe,a===null?U1:function(){return Np(e),a(o)})}function Mp(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yr,lastRenderedState:oe},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Np(e){var n=Mp(e).next.queue;Ri(e,n,{},dn())}function rf(){return $t(qi)}function zp(){return Ct().memoizedState}function Lp(){return Ct().memoizedState}function B1(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=dn();e=Hr(a);var o=$r(n,e,a);o!==null&&(hn(o,n,a),vi(o,n,a)),n={cache:zc()},e.payload=n;return}n=n.return}}function j1(e,n,a){var o=dn();a={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},du(e)?Bp(n,a):(a=Tc(e,n,a,o),a!==null&&(hn(a,e,o),jp(a,n,o)))}function Up(e,n,a){var o=dn();Ri(e,n,a,o)}function Ri(e,n,a,o){var s={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(du(e))Bp(n,s);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var g=n.lastRenderedState,b=d(g,a);if(s.hasEagerState=!0,s.eagerState=b,on(b,g))return Qo(e,n,s,0),lt===null&&Ko(),!1}catch{}finally{}if(a=Tc(e,n,s,o),a!==null)return hn(a,e,o),jp(a,n,o),!0}return!1}function af(e,n,a,o){if(o={lane:2,revertLane:jf(),action:o,hasEagerState:!1,eagerState:null,next:null},du(e)){if(n)throw Error(i(479))}else n=Tc(e,a,o,2),n!==null&&hn(n,e,2)}function du(e){var n=e.alternate;return e===Le||n!==null&&n===Le}function Bp(e,n){gl=iu=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function jp(e,n,a){if((a&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,Ta(e,a)}}var hu={readContext:$t,use:uu,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt},kp={readContext:$t,use:uu,useCallback:function(e,n){return Zt().memoizedState=[e,n===void 0?null:n],e},useContext:$t,useEffect:Ep,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,fu(4194308,4,Cp.bind(null,n,e),a)},useLayoutEffect:function(e,n){return fu(4194308,4,e,n)},useInsertionEffect:function(e,n){fu(4,2,e,n)},useMemo:function(e,n){var a=Zt();n=n===void 0?null:n;var o=e();if(Ua){it(!0);try{e()}finally{it(!1)}}return a.memoizedState=[o,n],o},useReducer:function(e,n,a){var o=Zt();if(a!==void 0){var s=a(n);if(Ua){it(!0);try{a(n)}finally{it(!1)}}}else s=n;return o.memoizedState=o.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},o.queue=e,e=e.dispatch=j1.bind(null,Le,e),[o.memoizedState,e]},useRef:function(e){var n=Zt();return e={current:e},n.memoizedState=e},useState:function(e){e=Wc(e);var n=e.queue,a=Up.bind(null,Le,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:ef,useDeferredValue:function(e,n){var a=Zt();return tf(a,e,n)},useTransition:function(){var e=Wc(!1);return e=Dp.bind(null,Le,e.queue,!0,!1),Zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var o=Le,s=Zt();if(qe){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),lt===null)throw Error(i(349));(He&124)!==0||lp(o,n,a)}s.memoizedState=a;var d={value:a,getSnapshot:n};return s.queue=d,Ep(op.bind(null,o,d,e),[e]),o.flags|=2048,bl(9,cu(),ip.bind(null,o,d,a,n),null),a},useId:function(){var e=Zt(),n=lt.identifierPrefix;if(qe){var a=hr,o=dr;a=(o&~(1<<32-Je(o)-1)).toString(32)+a,n="«"+n+"R"+a,a=ou++,0Te?(Nt=ve,ve=null):Nt=ve.sibling;var $e=P(U,ve,k[Te],Z);if($e===null){ve===null&&(ve=Nt);break}e&&ve&&$e.alternate===null&&n(U,ve),N=d($e,N,Te),Ue===null?de=$e:Ue.sibling=$e,Ue=$e,ve=Nt}if(Te===k.length)return a(U,ve),qe&&_a(U,Te),de;if(ve===null){for(;TeTe?(Nt=ve,ve=null):Nt=ve.sibling;var ra=P(U,ve,$e.value,Z);if(ra===null){ve===null&&(ve=Nt);break}e&&ve&&ra.alternate===null&&n(U,ve),N=d(ra,N,Te),Ue===null?de=ra:Ue.sibling=ra,Ue=ra,ve=Nt}if($e.done)return a(U,ve),qe&&_a(U,Te),de;if(ve===null){for(;!$e.done;Te++,$e=k.next())$e=W(U,$e.value,Z),$e!==null&&(N=d($e,N,Te),Ue===null?de=$e:Ue.sibling=$e,Ue=$e);return qe&&_a(U,Te),de}for(ve=o(ve);!$e.done;Te++,$e=k.next())$e=q(ve,U,Te,$e.value,Z),$e!==null&&(e&&$e.alternate!==null&&ve.delete($e.key===null?Te:$e.key),N=d($e,N,Te),Ue===null?de=$e:Ue.sibling=$e,Ue=$e);return e&&ve.forEach(function(HE){return n(U,HE)}),qe&&_a(U,Te),de}function tt(U,N,k,Z){if(typeof k=="object"&&k!==null&&k.type===E&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case S:e:{for(var de=k.key;N!==null;){if(N.key===de){if(de=k.type,de===E){if(N.tag===7){a(U,N.sibling),Z=s(N,k.props.children),Z.return=U,U=Z;break e}}else if(N.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===J&&$p(de)===N.type){a(U,N.sibling),Z=s(N,k.props),xi(Z,k),Z.return=U,U=Z;break e}a(U,N);break}else n(U,N);N=N.sibling}k.type===E?(Z=Aa(k.props.children,U.mode,Z,k.key),Z.return=U,U=Z):(Z=Jo(k.type,k.key,k.props,null,U.mode,Z),xi(Z,k),Z.return=U,U=Z)}return g(U);case w:e:{for(de=k.key;N!==null;){if(N.key===de)if(N.tag===4&&N.stateNode.containerInfo===k.containerInfo&&N.stateNode.implementation===k.implementation){a(U,N.sibling),Z=s(N,k.children||[]),Z.return=U,U=Z;break e}else{a(U,N);break}else n(U,N);N=N.sibling}Z=xc(k,U.mode,Z),Z.return=U,U=Z}return g(U);case J:return de=k._init,k=de(k._payload),tt(U,N,k,Z)}if(ce(k))return Ce(U,N,k,Z);if(R(k)){if(de=R(k),typeof de!="function")throw Error(i(150));return k=de.call(k),we(U,N,k,Z)}if(typeof k.then=="function")return tt(U,N,mu(k),Z);if(k.$$typeof===B)return tt(U,N,tu(U,k),Z);pu(U,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,N!==null&&N.tag===6?(a(U,N.sibling),Z=s(N,k),Z.return=U,U=Z):(a(U,N),Z=Cc(k,U.mode,Z),Z.return=U,U=Z),g(U)):a(U,N)}return function(U,N,k,Z){try{Ci=0;var de=tt(U,N,k,Z);return Sl=null,de}catch(ve){if(ve===yi||ve===ru)throw ve;var Ue=un(29,ve,null,U.mode);return Ue.lanes=Z,Ue.return=U,Ue}finally{}}}var El=Pp(!0),qp=Pp(!1),On=X(null),Gn=null;function qr(e){var n=e.alternate;le(_t,_t.current&1),le(On,e),Gn===null&&(n===null||yl.current!==null||n.memoizedState!==null)&&(Gn=e)}function Vp(e){if(e.tag===22){if(le(_t,_t.current),le(On,e),Gn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Gn=e)}}else Vr()}function Vr(){le(_t,_t.current),le(On,On.current)}function gr(e){re(On),Gn===e&&(Gn=null),re(_t)}var _t=X(0);function yu(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Qf(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function lf(e,n,a,o){n=e.memoizedState,a=a(o,n),a=a==null?n:y({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var of={enqueueSetState:function(e,n,a){e=e._reactInternals;var o=dn(),s=Hr(o);s.payload=n,a!=null&&(s.callback=a),n=$r(e,s,o),n!==null&&(hn(n,e,o),vi(n,e,o))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var o=dn(),s=Hr(o);s.tag=1,s.payload=n,a!=null&&(s.callback=a),n=$r(e,s,o),n!==null&&(hn(n,e,o),vi(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=dn(),o=Hr(a);o.tag=2,n!=null&&(o.callback=n),n=$r(e,o,a),n!==null&&(hn(n,e,a),vi(n,e,a))}};function Yp(e,n,a,o,s,d,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,g):n.prototype&&n.prototype.isPureReactComponent?!ui(a,o)||!ui(s,d):!0}function Gp(e,n,a,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==e&&of.enqueueReplaceState(n,n.state,null)}function Ba(e,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(e=e.defaultProps){a===n&&(a=y({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}var gu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Fp(e){gu(e)}function Xp(e){console.error(e)}function Kp(e){gu(e)}function vu(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function Qp(e,n,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function uf(e,n,a){return a=Hr(a),a.tag=3,a.payload={element:null},a.callback=function(){vu(e,n)},a}function Zp(e){return e=Hr(e),e.tag=3,e}function Jp(e,n,a,o){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var d=o.value;e.payload=function(){return s(d)},e.callback=function(){Qp(n,a,o)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Qp(n,a,o),typeof s!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})})}function H1(e,n,a,o,s){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&hi(n,a,s,!0),a=On.current,a!==null){switch(a.tag){case 13:return Gn===null?Nf():a.alternate===null&&yt===0&&(yt=3),a.flags&=-257,a.flags|=65536,a.lanes=s,o===Bc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),Lf(e,o,s)),!1;case 22:return a.flags|=65536,o===Bc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),Lf(e,o,s)),!1}throw Error(i(435,a.tag))}return Lf(e,o,s),Nf(),!1}if(qe)return n=On.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=s,o!==_c&&(e=Error(i(422),{cause:o}),di(Rn(e,a)))):(o!==_c&&(n=Error(i(423),{cause:o}),di(Rn(n,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,o=Rn(o,a),s=uf(e.stateNode,o,s),Hc(e,s),yt!==4&&(yt=2)),!1;var d=Error(i(520),{cause:o});if(d=Rn(d,a),zi===null?zi=[d]:zi.push(d),yt!==4&&(yt=2),n===null)return!0;o=Rn(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=uf(a.stateNode,o,e),Hc(a,e),!1;case 1:if(n=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Qr===null||!Qr.has(d))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Zp(s),Jp(s,e,a,o),Hc(a,s),!1}a=a.return}while(a!==null);return!1}var Wp=Error(i(461)),Dt=!1;function zt(e,n,a,o){n.child=e===null?qp(n,null,a,o):El(n,e.child,a,o)}function Ip(e,n,a,o,s){a=a.render;var d=n.ref;if("ref"in o){var g={};for(var b in o)b!=="ref"&&(g[b]=o[b])}else g=o;return za(n),o=Yc(e,n,a,g,d,s),b=Gc(),e!==null&&!Dt?(Fc(e,n,s),vr(e,n,s)):(qe&&b&&Ac(n),n.flags|=1,zt(e,n,o,s),n.child)}function ey(e,n,a,o,s){if(e===null){var d=a.type;return typeof d=="function"&&!Rc(d)&&d.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=d,ty(e,n,d,o,s)):(e=Jo(a.type,null,o,n,n.mode,s),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!yf(e,s)){var g=d.memoizedProps;if(a=a.compare,a=a!==null?a:ui,a(g,o)&&e.ref===n.ref)return vr(e,n,s)}return n.flags|=1,e=fr(d,o),e.ref=n.ref,e.return=n,n.child=e}function ty(e,n,a,o,s){if(e!==null){var d=e.memoizedProps;if(ui(d,o)&&e.ref===n.ref)if(Dt=!1,n.pendingProps=o=d,yf(e,s))(e.flags&131072)!==0&&(Dt=!0);else return n.lanes=e.lanes,vr(e,n,s)}return sf(e,n,a,o,s)}function ny(e,n,a){var o=n.pendingProps,s=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((n.flags&128)!==0){if(o=d!==null?d.baseLanes|a:a,e!==null){for(s=n.child=e.child,d=0;s!==null;)d=d|s.lanes|s.childLanes,s=s.sibling;n.childLanes=d&~o}else n.childLanes=0,n.child=null;return ry(e,n,o,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&nu(n,d!==null?d.cachePool:null),d!==null?tp(n,d):Pc(),Vp(n);else return n.lanes=n.childLanes=536870912,ry(e,n,d!==null?d.baseLanes|a:a,a)}else d!==null?(nu(n,d.cachePool),tp(n,d),Vr(),n.memoizedState=null):(e!==null&&nu(n,null),Pc(),Vr());return zt(e,n,s,a),n.child}function ry(e,n,a,o){var s=Uc();return s=s===null?null:{parent:Ot._currentValue,pool:s},n.memoizedState={baseLanes:a,cachePool:s},e!==null&&nu(n,null),Pc(),Vp(n),e!==null&&hi(e,n,o,!0),null}function bu(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function sf(e,n,a,o,s){return za(n),a=Yc(e,n,a,o,void 0,s),o=Gc(),e!==null&&!Dt?(Fc(e,n,s),vr(e,n,s)):(qe&&o&&Ac(n),n.flags|=1,zt(e,n,a,s),n.child)}function ay(e,n,a,o,s,d){return za(n),n.updateQueue=null,a=rp(n,o,a,s),np(e),o=Gc(),e!==null&&!Dt?(Fc(e,n,d),vr(e,n,d)):(qe&&o&&Ac(n),n.flags|=1,zt(e,n,a,d),n.child)}function ly(e,n,a,o,s){if(za(n),n.stateNode===null){var d=fl,g=a.contextType;typeof g=="object"&&g!==null&&(d=$t(g)),d=new a(o,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=of,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=o,d.state=n.memoizedState,d.refs={},jc(n),g=a.contextType,d.context=typeof g=="object"&&g!==null?$t(g):fl,d.state=n.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(lf(n,a,g,o),d.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(g=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),g!==d.state&&of.enqueueReplaceState(d,d.state,null),Si(n,o,d,s),bi(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){d=n.stateNode;var b=n.memoizedProps,A=Ba(a,b);d.props=A;var $=d.context,Q=a.contextType;g=fl,typeof Q=="object"&&Q!==null&&(g=$t(Q));var W=a.getDerivedStateFromProps;Q=typeof W=="function"||typeof d.getSnapshotBeforeUpdate=="function",b=n.pendingProps!==b,Q||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b||$!==g)&&Gp(n,d,o,g),kr=!1;var P=n.memoizedState;d.state=P,Si(n,o,d,s),bi(),$=n.memoizedState,b||P!==$||kr?(typeof W=="function"&&(lf(n,a,W,o),$=n.memoizedState),(A=kr||Yp(n,a,A,o,P,$,g))?(Q||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=$),d.props=o,d.state=$,d.context=g,o=A):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{d=n.stateNode,kc(e,n),g=n.memoizedProps,Q=Ba(a,g),d.props=Q,W=n.pendingProps,P=d.context,$=a.contextType,A=fl,typeof $=="object"&&$!==null&&(A=$t($)),b=a.getDerivedStateFromProps,($=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==W||P!==A)&&Gp(n,d,o,A),kr=!1,P=n.memoizedState,d.state=P,Si(n,o,d,s),bi();var q=n.memoizedState;g!==W||P!==q||kr||e!==null&&e.dependencies!==null&&eu(e.dependencies)?(typeof b=="function"&&(lf(n,a,b,o),q=n.memoizedState),(Q=kr||Yp(n,a,Q,o,P,q,A)||e!==null&&e.dependencies!==null&&eu(e.dependencies))?($||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,q,A),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,q,A)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=q),d.props=o,d.state=q,d.context=A,o=Q):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),o=!1)}return d=o,bu(e,n),o=(n.flags&128)!==0,d||o?(d=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&o?(n.child=El(n,e.child,null,s),n.child=El(n,null,a,s)):zt(e,n,a,s),n.memoizedState=d.state,e=n.child):e=vr(e,n,s),e}function iy(e,n,a,o){return fi(),n.flags|=256,zt(e,n,a,o),n.child}var cf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ff(e){return{baseLanes:e,cachePool:Xm()}}function df(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=_n),e}function oy(e,n,a){var o=n.pendingProps,s=!1,d=(n.flags&128)!==0,g;if((g=d)||(g=e!==null&&e.memoizedState===null?!1:(_t.current&2)!==0),g&&(s=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,e===null){if(qe){if(s?qr(n):Vr(),qe){var b=pt,A;if(A=b){e:{for(A=b,b=Yn;A.nodeType!==8;){if(!b){b=null;break e}if(A=jn(A.nextSibling),A===null){b=null;break e}}b=A}b!==null?(n.memoizedState={dehydrated:b,treeContext:Oa!==null?{id:dr,overflow:hr}:null,retryLane:536870912,hydrationErrors:null},A=un(18,null,null,0),A.stateNode=b,A.return=n,n.child=A,Ft=n,pt=null,A=!0):A=!1}A||Ma(n)}if(b=n.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Qf(b)?n.lanes=32:n.lanes=536870912,null;gr(n)}return b=o.children,o=o.fallback,s?(Vr(),s=n.mode,b=Su({mode:"hidden",children:b},s),o=Aa(o,s,a,null),b.return=n,o.return=n,b.sibling=o,n.child=b,s=n.child,s.memoizedState=ff(a),s.childLanes=df(e,g,a),n.memoizedState=cf,o):(qr(n),hf(n,b))}if(A=e.memoizedState,A!==null&&(b=A.dehydrated,b!==null)){if(d)n.flags&256?(qr(n),n.flags&=-257,n=mf(e,n,a)):n.memoizedState!==null?(Vr(),n.child=e.child,n.flags|=128,n=null):(Vr(),s=o.fallback,b=n.mode,o=Su({mode:"visible",children:o.children},b),s=Aa(s,b,a,null),s.flags|=2,o.return=n,s.return=n,o.sibling=s,n.child=o,El(n,e.child,null,a),o=n.child,o.memoizedState=ff(a),o.childLanes=df(e,g,a),n.memoizedState=cf,n=s);else if(qr(n),Qf(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var $=g.dgst;g=$,o=Error(i(419)),o.stack="",o.digest=g,di({value:o,source:null,stack:null}),n=mf(e,n,a)}else if(Dt||hi(e,n,a,!1),g=(a&e.childLanes)!==0,Dt||g){if(g=lt,g!==null&&(o=a&-a,o=(o&42)!==0?1:Il(o),o=(o&(g.suspendedLanes|a))!==0?0:o,o!==0&&o!==A.retryLane))throw A.retryLane=o,cl(e,o),hn(g,e,o),Wp;b.data==="$?"||Nf(),n=mf(e,n,a)}else b.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=A.treeContext,pt=jn(b.nextSibling),Ft=n,qe=!0,Da=null,Yn=!1,e!==null&&(xn[An++]=dr,xn[An++]=hr,xn[An++]=Oa,dr=e.id,hr=e.overflow,Oa=n),n=hf(n,o.children),n.flags|=4096);return n}return s?(Vr(),s=o.fallback,b=n.mode,A=e.child,$=A.sibling,o=fr(A,{mode:"hidden",children:o.children}),o.subtreeFlags=A.subtreeFlags&65011712,$!==null?s=fr($,s):(s=Aa(s,b,a,null),s.flags|=2),s.return=n,o.return=n,o.sibling=s,n.child=o,o=s,s=n.child,b=e.child.memoizedState,b===null?b=ff(a):(A=b.cachePool,A!==null?($=Ot._currentValue,A=A.parent!==$?{parent:$,pool:$}:A):A=Xm(),b={baseLanes:b.baseLanes|a,cachePool:A}),s.memoizedState=b,s.childLanes=df(e,g,a),n.memoizedState=cf,o):(qr(n),a=e.child,e=a.sibling,a=fr(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,e!==null&&(g=n.deletions,g===null?(n.deletions=[e],n.flags|=16):g.push(e)),n.child=a,n.memoizedState=null,a)}function hf(e,n){return n=Su({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Su(e,n){return e=un(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function mf(e,n,a){return El(n,e.child,null,a),e=hf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function uy(e,n,a){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),Mc(e.return,n,a)}function pf(e,n,a,o,s){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:s}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=a,d.tailMode=s)}function sy(e,n,a){var o=n.pendingProps,s=o.revealOrder,d=o.tail;if(zt(e,n,o.children,a),o=_t.current,(o&2)!==0)o=o&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uy(e,a,n);else if(e.tag===19)uy(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(le(_t,o),s){case"forwards":for(a=n.child,s=null;a!==null;)e=a.alternate,e!==null&&yu(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=n.child,n.child=null):(s=a.sibling,a.sibling=null),pf(n,!1,s,a,d);break;case"backwards":for(a=null,s=n.child,n.child=null;s!==null;){if(e=s.alternate,e!==null&&yu(e)===null){n.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}pf(n,!0,a,null,d);break;case"together":pf(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function vr(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Kr|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(hi(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,a=fr(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=fr(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function yf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&eu(e)))}function $1(e,n,a){switch(n.tag){case 3:Fe(n,n.stateNode.containerInfo),jr(n,Ot,e.memoizedState.cache),fi();break;case 27:case 5:ht(n);break;case 4:Fe(n,n.stateNode.containerInfo);break;case 10:jr(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(qr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?oy(e,n,a):(qr(n),e=vr(e,n,a),e!==null?e.sibling:null);qr(n);break;case 19:var s=(e.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(hi(e,n,a,!1),o=(a&n.childLanes)!==0),s){if(o)return sy(e,n,a);n.flags|=128}if(s=n.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),le(_t,_t.current),o)break;return null;case 22:case 23:return n.lanes=0,ny(e,n,a);case 24:jr(n,Ot,e.memoizedState.cache)}return vr(e,n,a)}function cy(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Dt=!0;else{if(!yf(e,a)&&(n.flags&128)===0)return Dt=!1,$1(e,n,a);Dt=(e.flags&131072)!==0}else Dt=!1,qe&&(n.flags&1048576)!==0&&$m(n,Io,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var o=n.elementType,s=o._init;if(o=s(o._payload),n.type=o,typeof o=="function")Rc(o)?(e=Ba(o,e),n.tag=1,n=ly(null,n,o,e,a)):(n.tag=0,n=sf(null,n,o,e,a));else{if(o!=null){if(s=o.$$typeof,s===G){n.tag=11,n=Ip(null,n,o,e,a);break e}else if(s===V){n.tag=14,n=ey(null,n,o,e,a);break e}}throw n=I(o)||o,Error(i(306,n,""))}}return n;case 0:return sf(e,n,n.type,n.pendingProps,a);case 1:return o=n.type,s=Ba(o,n.pendingProps),ly(e,n,o,s,a);case 3:e:{if(Fe(n,n.stateNode.containerInfo),e===null)throw Error(i(387));o=n.pendingProps;var d=n.memoizedState;s=d.element,kc(e,n),Si(n,o,null,a);var g=n.memoizedState;if(o=g.cache,jr(n,Ot,o),o!==d.cache&&Nc(n,[Ot],a,!0),bi(),o=g.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:g.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=iy(e,n,o,a);break e}else if(o!==s){s=Rn(Error(i(424)),n),di(s),n=iy(e,n,o,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(pt=jn(e.firstChild),Ft=n,qe=!0,Da=null,Yn=!0,a=qp(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(fi(),o===s){n=vr(e,n,a);break e}zt(e,n,o,a)}n=n.child}return n;case 26:return bu(e,n),e===null?(a=mg(n.type,null,n.pendingProps,null))?n.memoizedState=a:qe||(a=n.type,e=n.pendingProps,o=Lu(Se.current).createElement(a),o[te]=n,o[ie]=e,Ut(o,a,e),_e(o),n.stateNode=o):n.memoizedState=mg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return ht(n),e===null&&qe&&(o=n.stateNode=fg(n.type,n.pendingProps,Se.current),Ft=n,Yn=!0,s=pt,Wr(n.type)?(Zf=s,pt=jn(o.firstChild)):pt=s),zt(e,n,n.pendingProps.children,a),bu(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&qe&&((s=o=pt)&&(o=mE(o,n.type,n.pendingProps,Yn),o!==null?(n.stateNode=o,Ft=n,pt=jn(o.firstChild),Yn=!1,s=!0):s=!1),s||Ma(n)),ht(n),s=n.type,d=n.pendingProps,g=e!==null?e.memoizedProps:null,o=d.children,Ff(s,d)?o=null:g!==null&&Ff(s,g)&&(n.flags|=32),n.memoizedState!==null&&(s=Yc(e,n,N1,null,null,a),qi._currentValue=s),bu(e,n),zt(e,n,o,a),n.child;case 6:return e===null&&qe&&((e=a=pt)&&(a=pE(a,n.pendingProps,Yn),a!==null?(n.stateNode=a,Ft=n,pt=null,e=!0):e=!1),e||Ma(n)),null;case 13:return oy(e,n,a);case 4:return Fe(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=El(n,null,o,a):zt(e,n,o,a),n.child;case 11:return Ip(e,n,n.type,n.pendingProps,a);case 7:return zt(e,n,n.pendingProps,a),n.child;case 8:return zt(e,n,n.pendingProps.children,a),n.child;case 12:return zt(e,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,jr(n,n.type,o.value),zt(e,n,o.children,a),n.child;case 9:return s=n.type._context,o=n.pendingProps.children,za(n),s=$t(s),o=o(s),n.flags|=1,zt(e,n,o,a),n.child;case 14:return ey(e,n,n.type,n.pendingProps,a);case 15:return ty(e,n,n.type,n.pendingProps,a);case 19:return sy(e,n,a);case 31:return o=n.pendingProps,a=n.mode,o={mode:o.mode,children:o.children},e===null?(a=Su(o,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=fr(e.child,o),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return ny(e,n,a);case 24:return za(n),o=$t(Ot),e===null?(s=Uc(),s===null&&(s=lt,d=zc(),s.pooledCache=d,d.refCount++,d!==null&&(s.pooledCacheLanes|=a),s=d),n.memoizedState={parent:o,cache:s},jc(n),jr(n,Ot,s)):((e.lanes&a)!==0&&(kc(e,n),Si(n,null,null,a),bi()),s=e.memoizedState,d=n.memoizedState,s.parent!==o?(s={parent:o,cache:o},n.memoizedState=s,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=s),jr(n,Ot,o)):(o=d.cache,jr(n,Ot,o),o!==s.cache&&Nc(n,[Ot],a,!0))),zt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function br(e){e.flags|=4}function fy(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bg(n)){if(n=On.current,n!==null&&((He&4194048)===He?Gn!==null:(He&62914560)!==He&&(He&536870912)===0||n!==Gn))throw gi=Bc,Km;e.flags|=8192}}function Eu(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Uo():536870912,e.lanes|=n,Cl|=n)}function Ai(e,n){if(!qe)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ft(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(n)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags&65011712,o|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=o,e.childLanes=a,n}function P1(e,n,a){var o=n.pendingProps;switch(Oc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(n),null;case 1:return ft(n),null;case 3:return a=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),pr(Ot),rn(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ci(n)?br(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Vm())),ft(n),null;case 26:return a=n.memoizedState,e===null?(br(n),a!==null?(ft(n),fy(n,a)):(ft(n),n.flags&=-16777217)):a?a!==e.memoizedState?(br(n),ft(n),fy(n,a)):(ft(n),n.flags&=-16777217):(e.memoizedProps!==o&&br(n),ft(n),n.flags&=-16777217),null;case 27:an(n),a=Se.current;var s=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==o&&br(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ft(n),null}e=fe.current,ci(n)?Pm(n):(e=fg(s,o,a),n.stateNode=e,br(n))}return ft(n),null;case 5:if(an(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&br(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ft(n),null}if(e=fe.current,ci(n))Pm(n);else{switch(s=Lu(Se.current),e){case 1:e=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=s.createElement("div"),e.innerHTML=" + + + +
+ + diff --git a/tests/e2e_create_default.json b/tests/e2e_create_default.json new file mode 100644 index 0000000..fb339b6 --- /dev/null +++ b/tests/e2e_create_default.json @@ -0,0 +1 @@ +{"success":true,"folderHash":"ccabb08fdecdc60b2ac6b25aaef88ba0","name":"Dossier par défaut","message":"Dossier par défaut créé avec succès"} \ No newline at end of file diff --git a/tests/e2e_create_default_clean.json b/tests/e2e_create_default_clean.json new file mode 100644 index 0000000..13ef1c1 --- /dev/null +++ b/tests/e2e_create_default_clean.json @@ -0,0 +1 @@ +{"success":true,"folderHash":"716595c2e819e18050ac9551449e4e94","name":"Dossier par défaut","message":"Dossier par défaut créé avec succès"} \ No newline at end of file diff --git a/tests/e2e_create_default_final.json b/tests/e2e_create_default_final.json new file mode 100644 index 0000000..712034a --- /dev/null +++ b/tests/e2e_create_default_final.json @@ -0,0 +1 @@ +{"success":true,"folderHash":"0a2181967e0fc92c64477bae8d98b2d8","name":"Dossier par défaut","message":"Dossier par défaut créé avec succès"} \ No newline at end of file diff --git a/tests/e2e_create_default_jq.json b/tests/e2e_create_default_jq.json new file mode 100644 index 0000000..63ab40f --- /dev/null +++ b/tests/e2e_create_default_jq.json @@ -0,0 +1 @@ +{"success":true,"folderHash":"1abb873db92a0da6adad6a8bb5814f94","name":"Dossier par défaut","message":"Dossier par défaut créé avec succès"} \ No newline at end of file diff --git a/tests/e2e_folder_hash.txt b/tests/e2e_folder_hash.txt new file mode 100644 index 0000000..eb36929 --- /dev/null +++ b/tests/e2e_folder_hash.txt @@ -0,0 +1 @@ +0a2181967e0fc92c64477bae8d98b2d8 diff --git a/tests/e2e_results_before.json b/tests/e2e_results_before.json new file mode 100644 index 0000000..b6064da --- /dev/null +++ b/tests/e2e_results_before.json @@ -0,0 +1,10 @@ + + + + +Error + + +
Cannot GET /api/folders//results
+ + diff --git a/tests/e2e_results_step1.json b/tests/e2e_results_step1.json new file mode 100644 index 0000000..b6064da --- /dev/null +++ b/tests/e2e_results_step1.json @@ -0,0 +1,10 @@ + + + + +Error + + +
Cannot GET /api/folders//results
+ +