@gyramais/gyra-design 0.2.2 → 0.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Filter/index.js +6 -6
- package/dist/components/Filter/index.js.map +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/MultiSelectPicker/MultiSelectPicker.d.ts +0 -3
- package/dist/components/MultiSelectPicker/index.js +1 -1
- package/dist/components/MultiSelectPicker/index.js.map +1 -1
- package/dist/components/RichInput/index.js +3 -3
- package/dist/components/RichInput/index.js.map +1 -1
- package/dist/components/SelectTree/index.js +1 -1
- package/dist/components/SelectTree/index.js.map +1 -1
- package/dist/components/TourGuide/TourGuide.d.ts +39 -0
- package/dist/components/TourGuide/index.d.ts +1 -0
- package/dist/components/TourGuide/index.js +7 -0
- package/dist/components/TourGuide/index.js.map +1 -0
- package/dist/index.css +164 -220
- package/package.json +1 -1
- package/dist/components/AiParecer/AiParecer.d.ts +0 -75
- package/dist/components/AiParecer/index.d.ts +0 -1
- package/dist/components/AiParecer/index.js +0 -7
- package/dist/components/AiParecer/index.js.map +0 -1
- package/dist/components/Email/Email.d.ts +0 -25
- package/dist/components/Email/index.d.ts +0 -2
- package/dist/components/Email/index.js +0 -2
- package/dist/components/Email/index.js.map +0 -1
- package/dist/components/EmailBalanceSheetFinalized/EmailBalanceSheetFinalized.d.ts +0 -18
- package/dist/components/EmailBalanceSheetFinalized/index.d.ts +0 -2
- package/dist/components/EmailBalanceSheetFinalized/index.js +0 -2
- package/dist/components/EmailBalanceSheetFinalized/index.js.map +0 -1
- package/dist/emails/balance-sheet-finalized/index.d.ts +0 -33
- package/dist/emails/balance-sheet-finalized/index.esm.js +0 -2
- package/dist/emails/balance-sheet-finalized/index.esm.js.map +0 -1
- package/dist/emails/balance-sheet-finalized/index.js +0 -2
- package/dist/emails/balance-sheet-finalized/index.js.map +0 -1
- package/dist/emails/email/index.d.ts +0 -94
- package/dist/emails/email/index.esm.js +0 -2
- package/dist/emails/email/index.esm.js.map +0 -1
- package/dist/emails/email/index.js +0 -2
- package/dist/emails/email/index.js.map +0 -1
|
@@ -41,5 +41,5 @@ object-assign
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
function(e,t){const r=Hr(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const n="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some(e=>void 0===e)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...t)}:r},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:function(e){return Yr[0]=e,gr(Yr)},keyframes:function(){var e=Dr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}}),Jr=p(Xr),Zr=p(C),Qr=p(fe),en=p(le);const tn=["values","unit","step"];function rn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Te(e,tn),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>x({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function c(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function l(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return x({keys:a,values:i,up:s,down:c,between:l,only:function(e){return a.indexOf(e)+1<a.length?l(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?c(a[t]):l(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const nn={borderRadius:4},on="production"!==process.env.NODE_ENV?X.oneOfType([X.number,X.string,X.object,X.array]):{};function an(e,t){return t?O(e,t,{clone:!1}):e}const sn={xs:0,sm:600,md:900,lg:1200,xl:1536},cn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${sn[e]}px)`};function ln(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||cn;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||cn;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||sn).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function un(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function fn(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function dn(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:fn(e,r)||n,t&&(o=t(o,n,e)),o}function pn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=fn(e.theme,n)||{};return ln(e,i,e=>{let n=dn(a,o,e);return e===n&&"string"==typeof e&&(n=dn(a,o,`${t}${"default"===e?"":ue(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:on}:{},i.filterProps=[t],i}const mn={m:"margin",p:"padding"},hn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gn=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!yn[e])return[e];e=yn[e]}const[t,r]=e.split(""),n=mn[t],o=hn[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),vn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],wn=[...vn,...bn];function xn(e,t,r,n){var o;const i=null!=(o=fn(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function En(e){return xn(e,"spacing",8,"spacing")}function Sn(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function On(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=Sn(t,r),e),{})}(gn(r),n);return ln(e,e[r],o)}function kn(e,t){const r=En(e.theme);return Object.keys(e).map(n=>On(e,t,n,r)).reduce(an,{})}function Cn(e){return kn(e,vn)}function _n(e){return kn(e,bn)}function $n(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?an(r,t[n](e)):r,{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce((e,t)=>Object.assign(e,t.propTypes),{}):{},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function Nn(e){return"number"!=typeof e?e:`${e}px solid`}function Pn(e,t){return pn({prop:e,themeKey:"borders",transform:t})}Cn.propTypes="production"!==process.env.NODE_ENV?vn.reduce((e,t)=>(e[t]=on,e),{}):{},Cn.filterProps=vn,_n.propTypes="production"!==process.env.NODE_ENV?bn.reduce((e,t)=>(e[t]=on,e),{}):{},_n.filterProps=bn,"production"===process.env.NODE_ENV||wn.reduce((e,t)=>(e[t]=on,e),{});const An=Pn("border",Nn),Tn=Pn("borderTop",Nn),Rn=Pn("borderRight",Nn),Mn=Pn("borderBottom",Nn),jn=Pn("borderLeft",Nn),In=Pn("borderColor"),Dn=Pn("borderTopColor"),zn=Pn("borderRightColor"),Ln=Pn("borderBottomColor"),Fn=Pn("borderLeftColor"),Vn=Pn("outline",Nn),Wn=Pn("outlineColor"),Bn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xn(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:Sn(t,e)});return ln(e,e.borderRadius,r)}return null};Bn.propTypes="production"!==process.env.NODE_ENV?{borderRadius:on}:{},Bn.filterProps=["borderRadius"],$n(An,Tn,Rn,Mn,jn,In,Dn,zn,Ln,Fn,Bn,Vn,Wn);const Un=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xn(e.theme,"spacing",8,"gap"),r=e=>({gap:Sn(t,e)});return ln(e,e.gap,r)}return null};Un.propTypes="production"!==process.env.NODE_ENV?{gap:on}:{},Un.filterProps=["gap"];const Hn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xn(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:Sn(t,e)});return ln(e,e.columnGap,r)}return null};Hn.propTypes="production"!==process.env.NODE_ENV?{columnGap:on}:{},Hn.filterProps=["columnGap"];const Gn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xn(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:Sn(t,e)});return ln(e,e.rowGap,r)}return null};Gn.propTypes="production"!==process.env.NODE_ENV?{rowGap:on}:{},Gn.filterProps=["rowGap"];function Kn(e,t){return"grey"===t?t:e}$n(Un,Hn,Gn,pn({prop:"gridColumn"}),pn({prop:"gridRow"}),pn({prop:"gridAutoFlow"}),pn({prop:"gridAutoColumns"}),pn({prop:"gridAutoRows"}),pn({prop:"gridTemplateColumns"}),pn({prop:"gridTemplateRows"}),pn({prop:"gridTemplateAreas"}),pn({prop:"gridArea"}));function qn(e){return e<=1&&0!==e?100*e+"%":e}$n(pn({prop:"color",themeKey:"palette",transform:Kn}),pn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Kn}),pn({prop:"backgroundColor",themeKey:"palette",transform:Kn}));const Yn=pn({prop:"width",transform:qn}),Xn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||sn[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:qn(t)}};return ln(e,e.maxWidth,t)}return null};Xn.filterProps=["maxWidth"];const Jn=pn({prop:"minWidth",transform:qn}),Zn=pn({prop:"height",transform:qn}),Qn=pn({prop:"maxHeight",transform:qn}),eo=pn({prop:"minHeight",transform:qn});pn({prop:"size",cssProperty:"width",transform:qn}),pn({prop:"size",cssProperty:"height",transform:qn});$n(Yn,Xn,Jn,Zn,Qn,eo,pn({prop:"boxSizing"}));const to={border:{themeKey:"borders",transform:Nn},borderTop:{themeKey:"borders",transform:Nn},borderRight:{themeKey:"borders",transform:Nn},borderBottom:{themeKey:"borders",transform:Nn},borderLeft:{themeKey:"borders",transform:Nn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bn},color:{themeKey:"palette",transform:Kn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Kn},backgroundColor:{themeKey:"palette",transform:Kn},p:{style:_n},pt:{style:_n},pr:{style:_n},pb:{style:_n},pl:{style:_n},px:{style:_n},py:{style:_n},padding:{style:_n},paddingTop:{style:_n},paddingRight:{style:_n},paddingBottom:{style:_n},paddingLeft:{style:_n},paddingX:{style:_n},paddingY:{style:_n},paddingInline:{style:_n},paddingInlineStart:{style:_n},paddingInlineEnd:{style:_n},paddingBlock:{style:_n},paddingBlockStart:{style:_n},paddingBlockEnd:{style:_n},m:{style:Cn},mt:{style:Cn},mr:{style:Cn},mb:{style:Cn},ml:{style:Cn},mx:{style:Cn},my:{style:Cn},margin:{style:Cn},marginTop:{style:Cn},marginRight:{style:Cn},marginBottom:{style:Cn},marginLeft:{style:Cn},marginX:{style:Cn},marginY:{style:Cn},marginInline:{style:Cn},marginInlineStart:{style:Cn},marginInlineEnd:{style:Cn},marginBlock:{style:Cn},marginBlockStart:{style:Cn},marginBlockEnd:{style:Cn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Un},rowGap:{style:Gn},columnGap:{style:Hn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qn},maxWidth:{style:Xn},minWidth:{transform:qn},height:{transform:qn},maxHeight:{transform:qn},minHeight:{transform:qn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ro(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:c,style:l}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=fn(r,s)||{};if(l)return l(o);return ln(o,t,t=>{let r=dn(u,c,t);return t===r&&"string"==typeof t&&(r=dn(u,c,`${e}${"default"===t?"":ue(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:to;function c(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{}))||{}}(i.breakpoints),c=Object.keys(o);let l=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],c=i,"function"==typeof a?a(c):a);var a,c;if(null!=o)if("object"==typeof o)if(s[r])l=an(l,e(r,o,i,s));else{const e=ln({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?l=an(l,e):l[r]=t({sx:o,theme:i,nested:!0})}else l=an(l,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":un(c,l)}:un(c,l)}return Array.isArray(o)?o.map(c):c(o)}}const no=ro();function oo(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}no.filterProps=["sx"];const io=["breakpoints","palette","spacing","shape"];function ao(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Te(e,io),s=rn(r),c=function(e=8){if(e.mui)return e;const t=En({spacing:e}),r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" "));return r.mui=!0,r}(o);let l=O({breakpoints:s,direction:"ltr",components:{},palette:x({mode:"light"},n),spacing:c,shape:x({},nn,i)},a);return l.applyStyles=oo,l=t.reduce((e,t)=>O(e,t),l),l.unstable_sxConfig=x({},to,null==a?void 0:a.unstable_sxConfig),l.unstable_sx=function(e){return no({sx:e,theme:this})},l}var so=p(Object.freeze({__proto__:null,default:ao,private_createBreakpoints:rn,unstable_applyStyles:oo}));const co=["sx"];var lo=p(Object.freeze({__proto__:null,default:no,extendSxProp:function(e){const{sx:t}=e,r=Te(e,co),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:to;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return E(r)?x({},n,r):n}:x({},n,t),x({},o,{sx:i})},unstable_createStyleFunctionSx:ro,unstable_defaultSxConfig:to})),uo=b;Object.defineProperty(ze,"__esModule",{value:!0});var fo=ze.default=function(e={}){const{themeId:t,defaultTheme:r=_o,rootShouldForwardProp:n=ko,slotShouldForwardProp:o=ko}=e,i=e=>(0,wo.default)((0,po.default)({},e,{theme:No((0,po.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,ho.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:c,skipVariantsResolver:l,skipSx:u,overridesResolver:f=Po($o(c))}=a,d=(0,mo.default)(a,So),p=s&&s.startsWith("Mui")||c?"components":"custom",m=void 0!==l?l:c&&"Root"!==c&&"root"!==c||!1,h=u||!1;let y;"production"!==process.env.NODE_ENV&&s&&(y=`${s}-${$o(c||"Root")}`);let g=ko;"Root"===c||"root"===c?g=n:c?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,ho.default)(e,(0,po.default)({shouldForwardProp:g,label:y},d)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,yo.isPlainObject)(e)?n=>{const o=No({theme:n.theme,defaultTheme:r,themeId:t});return Ao(e,(0,po.default)({},n,{theme:o}),o.modularCssLayers?p:void 0)}:e,w=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&f&&l.push(e=>{const n=No((0,po.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,r])=>{i[t]=Ao(r,(0,po.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),f(e,i)}),s&&!m&&l.push(e=>{var n;const o=No((0,po.default)({},e,{defaultTheme:r,themeId:t}));return Ao({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,po.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),h||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const d=v(a,...l);if("production"!==process.env.NODE_ENV){let t;s&&(t=`${s}${(0,go.default)(c||"")}`),void 0===t&&(t=`Styled(${(0,vo.default)(e)})`),d.displayName=t}return e.muiName&&(d.muiName=e.muiName),d};return v.withConfig&&(w.withConfig=v.withConfig),w}};ze.shouldForwardProp=ko,ze.systemDefaultTheme=void 0;var po=uo((De||(De=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Le)),Le.exports)),mo=uo((Fe||(Fe=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Ve)),Ve.exports)),ho=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Oo(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Jr),yo=Zr,go=uo(Qr),vo=uo(en),bo=uo(so),wo=uo(lo);const xo=["ownerState"],Eo=["variants"],So=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Oo(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Oo=function(e){return e?r:t})(e)}function ko(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Co(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const _o=ze.systemDefaultTheme=(0,bo.default)(),$o=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function No({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Po(e){return e?(t,r)=>r[e]:null}function Ao(e,t,r){let{ownerState:n}=t,o=(0,mo.default)(t,xo);const i="function"==typeof e?e((0,po.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap(e=>Ao(e,(0,po.default)({ownerState:n},o),r));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,mo.default)(i,Eo);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,po.default)({ownerState:n},o,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,po.default)({ownerState:n},o,n)):e.style;t.push(r?Co((0,ho.internal_serializeStyles)(i),r):i)}}),t}return r?Co((0,ho.internal_serializeStyles)(i),r):i}var To={},Ro=p(Q),Mo=p(Ae),jo=b;Object.defineProperty(To,"__esModule",{value:!0}),To.alpha=qo,To.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Bo(e),a=Bo(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Ho({type:"rgb",values:s})},To.colorChannel=void 0;var Io=To.darken=Yo;To.decomposeColor=Bo,To.emphasize=Jo;var Do=To.getContrastRatio=function(e,t){const r=Ko(e),n=Ko(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};To.getLuminance=Ko,To.hexToRgb=Wo,To.hslToRgb=Go;var zo=To.lighten=Xo;To.private_safeAlpha=function(e,t,r){try{return qo(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},To.private_safeColorChannel=void 0,To.private_safeDarken=function(e,t,r){try{return Yo(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},To.private_safeEmphasize=function(e,t,r){try{return Jo(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},To.private_safeLighten=function(e,t,r){try{return Xo(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},To.recomposeColor=Ho,To.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Bo(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var Lo=jo(Ro),Fo=jo(Mo);function Vo(e,t=0,r=1){return"production"!==process.env.NODE_ENV&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,Fo.default)(e,t,r)}function Wo(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function Bo(e){if(e.type)return e;if("#"===e.charAt(0))return Bo(Wo(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Lo.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${n}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Lo.default)(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}const Uo=e=>{const t=Bo(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};To.colorChannel=Uo;function Ho(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Go(e){e=Bo(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),Ho({type:s,values:c})}function Ko(e){let t="hsl"===(e=Bo(e)).type||"hsla"===e.type?Bo(Go(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qo(e,t){return e=Bo(e),t=Vo(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ho(e)}function Yo(e,t){if(e=Bo(e),t=Vo(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ho(e)}function Xo(e,t){if(e=Bo(e),t=Vo(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ho(e)}function Jo(e,t=.15){return Ko(e)>.5?Yo(e,t):Xo(e,t)}To.private_safeColorChannel=(e,t)=>{try{return Uo(e)}catch(r){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};const Zo={black:"#000",white:"#fff"},Qo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ei="#f3e5f5",ti="#ce93d8",ri="#ba68c8",ni="#ab47bc",oi="#9c27b0",ii="#7b1fa2",ai="#e57373",si="#ef5350",ci="#f44336",li="#d32f2f",ui="#c62828",fi="#ffb74d",di="#ffa726",pi="#ff9800",mi="#f57c00",hi="#e65100",yi="#e3f2fd",gi="#90caf9",vi="#42a5f5",bi="#1976d2",wi="#1565c0",xi="#4fc3f7",Ei="#29b6f6",Si="#03a9f4",Oi="#0288d1",ki="#01579b",Ci="#81c784",_i="#66bb6a",$i="#4caf50",Ni="#388e3c",Pi="#2e7d32",Ai="#1b5e20",Ti=["mode","contrastThreshold","tonalOffset"],Ri={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Zo.white,default:Zo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Mi={text:{primary:Zo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Zo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ji(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=zo(e.main,o):"dark"===t&&(e.dark=Io(e.main,i)))}function Ii(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Te(e,Ti),i=e.primary||function(e="light"){return"dark"===e?{main:gi,light:yi,dark:vi}:{main:bi,light:vi,dark:wi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ti,light:ei,dark:ni}:{main:oi,light:ri,dark:ii}}(t),s=e.error||function(e="light"){return"dark"===e?{main:ci,light:ai,dark:li}:{main:li,light:si,dark:ui}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Ei,light:xi,dark:Oi}:{main:Oi,light:Si,dark:ki}}(t),l=e.success||function(e="light"){return"dark"===e?{main:_i,light:Ci,dark:Ni}:{main:Pi,light:$i,dark:Ai}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:di,light:fi,dark:mi}:{main:"#ed6c02",light:pi,dark:hi}}(t);function f(e){const t=Do(e,Mi.text.primary)>=r?Mi.text.primary:Ri.text.primary;if("production"!==process.env.NODE_ENV){const r=Do(e,t);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const d=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=x({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:J(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:J(12,t?` (${t})`:"",JSON.stringify(e.main)));return ji(e,"light",o,n),ji(e,"dark",i,n),e.contrastText||(e.contrastText=f(e.main)),e},p={dark:Mi,light:Ri};"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return O(x({common:x({},Zo),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:l,name:"success"}),grey:Qo,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},p[t]),o)}const Di=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const zi={textTransform:"uppercase"},Li='"Roboto", "Helvetica", "Arial", sans-serif';function Fi(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Li,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:u,pxToRem:f}=r,d=Te(r,Di);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,m=f||(e=>e/l*p+"rem"),h=(e,t,r,o,i)=>{return x({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Li?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},y={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,zi),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,zi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return O(x({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c},y),d,{clone:!1})}function Vi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Wi=["none",Vi(0,2,1,-1,0,1,1,0,0,1,3,0),Vi(0,3,1,-2,0,2,2,0,0,1,5,0),Vi(0,3,3,-2,0,3,4,0,0,1,8,0),Vi(0,2,4,-1,0,4,5,0,0,1,10,0),Vi(0,3,5,-1,0,5,8,0,0,1,14,0),Vi(0,3,5,-1,0,6,10,0,0,1,18,0),Vi(0,4,5,-2,0,7,10,1,0,2,16,1),Vi(0,5,5,-3,0,8,10,1,0,3,14,2),Vi(0,5,6,-3,0,9,12,1,0,3,16,2),Vi(0,6,6,-3,0,10,14,1,0,4,18,3),Vi(0,6,7,-4,0,11,15,1,0,4,20,3),Vi(0,7,8,-4,0,12,17,2,0,5,22,4),Vi(0,7,8,-4,0,13,19,2,0,5,24,4),Vi(0,7,9,-4,0,14,21,2,0,5,26,4),Vi(0,8,9,-5,0,15,22,2,0,6,28,5),Vi(0,8,10,-5,0,16,24,2,0,6,30,5),Vi(0,8,11,-5,0,17,26,2,0,6,32,5),Vi(0,9,11,-5,0,18,28,2,0,7,34,6),Vi(0,9,12,-6,0,19,29,2,0,7,36,6),Vi(0,10,13,-6,0,20,31,3,0,8,38,7),Vi(0,10,13,-6,0,21,33,3,0,8,40,7),Vi(0,10,14,-6,0,22,35,3,0,8,42,7),Vi(0,11,14,-7,0,23,36,3,0,9,44,8),Vi(0,11,15,-7,0,24,38,3,0,9,46,8)],Bi=["duration","easing","delay"],Ui={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Hi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gi(e){return`${Math.round(e)}ms`}function Ki(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function qi(e){const t=x({},Ui,e.easing),r=x({},Hi,e.duration);return x({getAutoHeightDuration:Ki,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n,s=Te(n,Bi);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,r=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),r(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof n&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Gi(o)} ${i} ${"string"==typeof a?a:Gi(a)}`).join(",")}},e,{easing:t,duration:r})}const Yi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Ji=function(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Te(e,Xi);if(e.vars&&void 0===e.generateCssVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":J(18));const s=Ii(n),c=ao(e);let l=O(c,{mixins:(u=c.breakpoints,f=r,x({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},f)),palette:s,shadows:Wi.slice(),typography:Fi(s,i),transitions:qi(o),zIndex:x({},Yi)});var u,f;if(l=O(l,a),l=t.reduce((e,t)=>O(e,t),l),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,r)=>{let n;for(n in t){const o=t[n];if(-1!==e.indexOf(n)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=Pe("",n);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${n}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[n]={}}}};Object.keys(l.components).forEach(e=>{const r=l.components[e].styleOverrides;r&&0===e.indexOf("Mui")&&t(r,e)})}return l.unstable_sxConfig=x({},to,null==a?void 0:a.unstable_sxConfig),l.unstable_sx=function(e){return no({sx:e,theme:this})},l}();const Zi=fo({themeId:"$$material",defaultTheme:Ji,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function Qi(e){return Pe("MuiSvgIcon",e)}!function(e,t,r="Mui"){const n={};t.forEach(t=>{n[t]=Pe(e,t,r)})}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ea=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ta=e=>{const{color:t,fontSize:r,classes:n}=e;return function(e,t,r){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}({root:["root","inherit"!==t&&`color${ue(t)}`,`fontSize${ue(r)}`]},Qi,n)},ra=Zi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ue(r.color)}`],t[`fontSize${ue(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,c,l,u,f,d,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(l=e.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"}[t.fontSize],color:null!=(f=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?f:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}}),na=e.forwardRef(function(t,r){const n=Ie({props:t,name:"MuiSvgIcon"});const{children:o,className:i,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24"}=n,h=Te(n,ea),y=e.isValidElement(o)&&"svg"===o.type,g=x({},n,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:y}),v={};d||(v.viewBox=m);const b=ta(g);return l(ra,x({as:s,className:Me(b.root,i),focusable:"false",color:f,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:r},v,h,y&&o.props,{ownerState:g,children:[y?o.props.children:o,p?c("title",{children:p}):null]}))});"production"!==process.env.NODE_ENV&&(na.propTypes={children:X.node,classes:X.object,className:X.string,color:X.oneOfType([X.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),X.string]),component:X.elementType,fontSize:X.oneOfType([X.oneOf(["inherit","large","medium","small"]),X.string]),htmlColor:X.string,inheritViewBox:X.bool,shapeRendering:X.string,sx:X.oneOfType([X.arrayOf(X.oneOfType([X.func,X.object,X.bool])),X.func,X.object]),titleAccess:X.string,viewBox:X.string}),na.muiName="SvgIcon";const oa={configure:e=>{"production"!==process.env.NODE_ENV&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),$e.configure(e)}};var ia,aa=Object.freeze({__proto__:null,capitalize:ue,createChainedFunction:function(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})},createSvgIcon:function(t,r){function n(e,n){return c(na,x({"data-testid":`${r}Icon`,ref:n},e,{children:t}))}return"production"!==process.env.NODE_ENV&&(n.displayName=`${r}Icon`),n.muiName=na.muiName,e.memo(e.forwardRef(n))},debounce:function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n},deprecatedPropType:function(e,t){return"production"===process.env.NODE_ENV?()=>null:(e,r,n,o,i)=>{const a=n||"<<anonymous>>",s=i||r;return void 0!==e[r]?new Error(`The ${o} \`${s}\` of \`${a}\` is deprecated. ${t}`):null}},isMuiElement:function(t,r){var n,o;return e.isValidElement(t)&&-1!==r.indexOf(null!=(n=t.type.muiName)?n:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:de,ownerWindow:function(e){return de(e).defaultView||window},requirePropFactory:function(e,t){if("production"===process.env.NODE_ENV)return()=>null;const r=t?x({},t.propTypes):null;return t=>(n,o,i,a,s,...c)=>{const l=s||o,u=null==r?void 0:r[l];if(u){const e=u(n,o,i,a,s,...c);if(e)return e}return void 0===n[o]||n[t]?null:new Error(`The prop \`${l}\` of \`${e}\` can only be used together with the \`${t}\` prop.`)}},setRef:pe,unstable_ClassNameGenerator:oa,unstable_useEnhancedEffect:me,unstable_useId:function(t){if(void 0!==ye){const e=ye();return null!=t?t:e}return function(t){const[r,n]=e.useState(t),o=t||r;return e.useEffect(()=>{null==r&&(he+=1,n(`mui-${he}`))},[r]),o}(t)},unsupportedProp:function(e,t,r,n,o){if("production"===process.env.NODE_ENV)return null;const i=o||t;return void 0!==e[t]?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null},useControlled:function({controlled:t,default:r,name:n,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(r),c=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect(()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))},[o,n,t]);const{current:a}=e.useRef(r);e.useEffect(()=>{i||Object.is(a,r)||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"))},[JSON.stringify(r)])}return[c,e.useCallback(e=>{i||s(e)},[])]},useEventCallback:function(t){const r=e.useRef(t);return me(()=>{r.current=t}),e.useRef((...e)=>(0,r.current)(...e)).current},useForkRef:function(...t){return e.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{pe(t,e)})},t)},useIsFocusVisible:function(){const t=e.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ee,!0),t.addEventListener("mousedown",Se,!0),t.addEventListener("pointerdown",Se,!0),t.addEventListener("touchstart",Se,!0),t.addEventListener("visibilitychange",Oe,!0))},[]),r=e.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!ke(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(be=!0,we.start(100,()=>{be=!1}),r.current=!1,!0)},ref:t}}}),sa=p(aa);function ca(){return ia||(ia=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=sa}(w)),w}var la=b;Object.defineProperty(g,"__esModule",{value:!0});var ua=g.default=void 0,fa=la(ca()),da=s;ua=g.default=(0,fa.default)((0,da.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"}),"Close");var pa={},ma=b;Object.defineProperty(pa,"__esModule",{value:!0});var ha=pa.default=void 0,ya=ma(ca()),ga=s;function va(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function ba(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function wa(...e){return t=>{let r=!1;const n=e.map(e=>{const n=ba(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():ba(e[t],null)}}}}function xa(...t){return e.useCallback(wa(...t),t)}function Ea(t,r=[]){let n=[];const o=()=>{const r=n.map(t=>e.createContext(t));return function(n){const o=n?.[t]||r;return e.useMemo(()=>({[`__scope${t}`]:{...n,[t]:o}}),[n,o])}};return o.scopeName=t,[function(r,o){const i=e.createContext(o),a=n.length;n=[...n,o];const s=r=>{const{scope:n,children:o,...s}=r,l=n?.[t]?.[a]||i,u=e.useMemo(()=>s,Object.values(s));return c(l.Provider,{value:u,children:o})};return s.displayName=r+"Provider",[s,function(n,s){const c=s?.[t]?.[a]||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},Sa(o,...r)]}function Sa(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=n.reduce((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]}),{});return e.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}function Oa(t){const r=ka(t),n=e.forwardRef((t,n)=>{const{children:o,...i}=t,a=e.Children.toArray(o),s=a.find(_a);if(s){const t=s.props.children,o=a.map(r=>r===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:r);return c(r,{...i,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return c(r,{...i,ref:n,children:o})});return n.displayName=`${t}.Slot`,n}function ka(t){const r=e.forwardRef((t,r)=>{const{children:n,...o}=t;if(e.isValidElement(n)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,n.props);return n.type!==e.Fragment&&(i.ref=r?wa(r,t):t),e.cloneElement(n,i)}return e.Children.count(n)>1?e.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}ha=pa.default=(0,ya.default)((0,ga.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"}),"Search");var Ca=Symbol("radix.slottable");function _a(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Ca}var $a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,r)=>{const n=Oa(`Primitive.${r}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?n:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),c(a,{...i,ref:t})});return o.displayName=`Primitive.${r}`,{...t,[r]:o}},{});function Na(t){const r=e.useRef(t);return e.useEffect(()=>{r.current=t}),e.useMemo(()=>(...e)=>r.current?.(...e),[])}var Pa,Aa="dismissableLayer.update",Ta="dismissableLayer.pointerDownOutside",Ra="dismissableLayer.focusOutside",Ma=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ja=e.forwardRef((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=t,f=e.useContext(Ma),[d,p]=e.useState(null),m=d?.ownerDocument??globalThis?.document,[,h]=e.useState({}),y=xa(r,e=>p(e)),g=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),w=d?g.indexOf(d):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,S=function(t,r=globalThis?.document){const n=Na(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){za(Ta,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",i.current),i.current=t,r.addEventListener("click",i.current,{once:!0})):t()}else r.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",i.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,r=[...f.branches].some(e=>e.contains(t));E&&!r&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},m),O=function(t,r=globalThis?.document){const n=Na(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){za(Ra,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},m);return function(t,r=globalThis?.document){const n=Na(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})},[n,r])}(e=>{w===f.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},m),e.useEffect(()=>{if(d)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(Pa=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Da(),()=>{n&&1===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Pa)}},[d,m,n,f]),e.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Da())},[d,f]),e.useEffect(()=>{const e=()=>h({});return document.addEventListener(Aa,e),()=>document.removeEventListener(Aa,e)},[]),c($a.div,{...u,ref:y,style:{pointerEvents:x?E?"auto":"none":void 0,...t.style},onFocusCapture:va(t.onFocusCapture,O.onFocusCapture),onBlurCapture:va(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:va(t.onPointerDownCapture,S.onPointerDownCapture)})});ja.displayName="DismissableLayer";var Ia=e.forwardRef((t,r)=>{const n=e.useContext(Ma),o=e.useRef(null),i=xa(r,o);return e.useEffect(()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),c($a.div,{...t,ref:i})});function Da(){const e=new CustomEvent(Aa);document.dispatchEvent(e)}function za(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}Ia.displayName="DismissableLayerBranch";var La=0;function Fa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Va="focusScope.autoFocusOnMount",Wa="focusScope.autoFocusOnUnmount",Ba={bubbles:!1,cancelable:!0},Ua=e.forwardRef((t,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[l,u]=e.useState(null),f=Na(i),d=Na(a),p=e.useRef(null),m=xa(r,e=>u(e)),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:qa(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||qa(p.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&qa(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,l,h.paused]),e.useEffect(()=>{if(l){Ya.add(h);const t=document.activeElement;if(!l.contains(t)){const r=new CustomEvent(Va,Ba);l.addEventListener(Va,f),l.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(qa(n,{select:t}),document.activeElement!==r)return}((e=Ha(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&qa(l))}return()=>{l.removeEventListener(Va,f),setTimeout(()=>{const e=new CustomEvent(Wa,Ba);l.addEventListener(Wa,d),l.dispatchEvent(e),e.defaultPrevented||qa(t??document.body,{select:!0}),l.removeEventListener(Wa,d),Ya.remove(h)},0)}}var e},[l,f,d,h]);const y=e.useCallback(e=>{if(!n&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,i]=function(e){const t=Ha(e),r=Ga(t,e),n=Ga(t.reverse(),e);return[r,n]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&qa(i,{select:!0})):(e.preventDefault(),n&&qa(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,h.paused]);return c($a.div,{tabIndex:-1,...s,ref:m,onKeyDown:y})});function Ha(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ga(e,t){for(const r of e)if(!Ka(r,{upTo:t}))return r}function Ka(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function qa(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Ua.displayName="FocusScope";var Ya=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Xa(e,t),e.unshift(t)},remove(t){e=Xa(e,t),e[0]?.resume()}}}();function Xa(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var Ja=globalThis?.document?e.useLayoutEffect:()=>{},Za=e[" useId ".trim().toString()]||(()=>{}),Qa=0;function es(t){const[r,n]=e.useState(Za());return Ja(()=>{n(e=>e??String(Qa++))},[t]),t||(r?`radix-${r}`:"")}const ts=["top","right","bottom","left"],rs=Math.min,ns=Math.max,os=Math.round,is=Math.floor,as=e=>({x:e,y:e}),ss={left:"right",right:"left",bottom:"top",top:"bottom"};function cs(e,t,r){return ns(e,rs(t,r))}function ls(e,t){return"function"==typeof e?e(t):e}function us(e){return e.split("-")[0]}function fs(e){return e.split("-")[1]}function ds(e){return"x"===e?"y":"x"}function ps(e){return"y"===e?"height":"width"}function ms(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function hs(e){return ds(ms(e))}function ys(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const gs=["left","right"],vs=["right","left"],bs=["top","bottom"],ws=["bottom","top"];function xs(e,t,r,n){const o=fs(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?vs:gs:t?gs:vs;case"left":case"right":return t?bs:ws;default:return[]}}(us(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ys)))),i}function Es(e){const t=us(e);return ss[t]+e.slice(t.length)}function Ss(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Os(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ks(e,t,r){let{reference:n,floating:o}=e;const i=ms(t),a=hs(t),s=ps(a),c=us(t),l="y"===i,u=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[s]/2-o[s]/2;let p;switch(c){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(fs(t)){case"start":p[a]-=d*(r&&l?-1:1);break;case"end":p[a]+=d*(r&&l?-1:1)}return p}async function Cs(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ls(t,e),m=Ss(p),h=s[d?"floating"===f?"reference":"floating":f],y=Os(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Os(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:c}):g);return{top:(y.top-w.top+m.top)/b.y,bottom:(w.bottom-y.bottom+m.bottom)/b.y,left:(y.left-w.left+m.left)/b.x,right:(w.right-y.right+m.right)/b.x}}function _s(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $s(e){return ts.some(t=>e[t]>=0)}const Ns=new Set(["left","top"]);function Ps(){return"undefined"!=typeof window}function As(e){return Ms(e)?(e.nodeName||"").toLowerCase():"#document"}function Ts(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rs(e){var t;return null==(t=(Ms(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ms(e){return!!Ps()&&(e instanceof Node||e instanceof Ts(e).Node)}function js(e){return!!Ps()&&(e instanceof Element||e instanceof Ts(e).Element)}function Is(e){return!!Ps()&&(e instanceof HTMLElement||e instanceof Ts(e).HTMLElement)}function Ds(e){return!(!Ps()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ts(e).ShadowRoot)}function zs(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=qs(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function Ls(e){return/^(table|td|th)$/.test(As(e))}function Fs(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Vs=/transform|translate|scale|rotate|perspective|filter/,Ws=/paint|layout|strict|content/,Bs=e=>!!e&&"none"!==e;let Us;function Hs(e){const t=js(e)?qs(e):e;return Bs(t.transform)||Bs(t.translate)||Bs(t.scale)||Bs(t.rotate)||Bs(t.perspective)||!Gs()&&(Bs(t.backdropFilter)||Bs(t.filter))||Vs.test(t.willChange||"")||Ws.test(t.contain||"")}function Gs(){return null==Us&&(Us="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Us}function Ks(e){return/^(html|body|#document)$/.test(As(e))}function qs(e){return Ts(e).getComputedStyle(e)}function Ys(e){return js(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xs(e){if("html"===As(e))return e;const t=e.assignedSlot||e.parentNode||Ds(e)&&e.host||Rs(e);return Ds(t)?t.host:t}function Js(e){const t=Xs(e);return Ks(t)?e.ownerDocument?e.ownerDocument.body:e.body:Is(t)&&zs(t)?t:Js(t)}function Zs(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=Js(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Ts(o);if(i){const e=Qs(a);return t.concat(a,a.visualViewport||[],zs(o)?o:[],e&&r?Zs(e):[])}return t.concat(o,Zs(o,[],r))}function Qs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ec(e){const t=qs(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Is(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=os(r)!==i||os(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function tc(e){return js(e)?e:e.contextElement}function rc(e){const t=tc(e);if(!Is(t))return as(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ec(t);let a=(i?os(r.width):r.width)/n,s=(i?os(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const nc=as(0);function oc(e){const t=Ts(e);return Gs()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:nc}function ic(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=tc(e);let a=as(1);t&&(n?js(n)&&(a=rc(n)):a=rc(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Ts(e))&&t}(i,r,n)?oc(i):as(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=Ts(i),t=n&&js(n)?Ts(n):n;let r=e,o=Qs(r);for(;o&&n&&t!==r;){const e=rc(o),t=o.getBoundingClientRect(),n=qs(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=i,l+=a,r=Ts(o),o=Qs(r)}}return Os({width:u,height:f,x:c,y:l})}function ac(e,t){const r=Ys(e).scrollLeft;return t?t.left+r:ic(Rs(e)).left+r}function sc(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ac(e,r),y:r.top+t.scrollTop}}function cc(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Ts(e),n=Rs(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Gs();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const l=ac(n);if(l<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else l<=25&&(i+=l);return{width:i,height:a,x:s,y:c}}(e,r);else if("document"===t)n=function(e){const t=Rs(e),r=Ys(e),n=e.ownerDocument.body,o=ns(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ns(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+ac(e);const s=-r.scrollTop;return"rtl"===qs(n).direction&&(a+=ns(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Rs(e));else if(js(t))n=function(e,t){const r=ic(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Is(e)?rc(e):as(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=oc(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Os(n)}function lc(e,t){const r=Xs(e);return!(r===t||!js(r)||Ks(r))&&("fixed"===qs(r).position||lc(r,t))}function uc(e,t,r){const n=Is(t),o=Rs(t),i="fixed"===r,a=ic(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=as(0);function l(){c.x=ac(o)}if(n||!n&&!i)if(("body"!==As(t)||zs(o))&&(s=Ys(t)),n){const e=ic(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!n&&o&&l();const u=!o||n||i?as(0):sc(o,s);return{x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function fc(e){return"static"===qs(e).position}function dc(e,t){if(!Is(e)||"fixed"===qs(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Rs(e)===r&&(r=r.ownerDocument.body),r}function pc(e,t){const r=Ts(e);if(Fs(e))return r;if(!Is(e)){let t=Xs(e);for(;t&&!Ks(t);){if(js(t)&&!fc(t))return t;t=Xs(t)}return r}let n=dc(e,t);for(;n&&Ls(n)&&fc(n);)n=dc(n,t);return n&&Ks(n)&&fc(n)&&!Hs(n)?r:n||function(e){let t=Xs(e);for(;Is(t)&&!Ks(t);){if(Hs(t))return t;if(Fs(t))return null;t=Xs(t)}return null}(e)||r}const mc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=Rs(n),s=!!t&&Fs(t.floating);if(n===a||s&&i)return r;let c={scrollLeft:0,scrollTop:0},l=as(1);const u=as(0),f=Is(n);if((f||!f&&!i)&&(("body"!==As(n)||zs(a))&&(c=Ys(n)),f)){const e=ic(n);l=rc(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const d=!a||f||i?as(0):sc(a,c);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:r.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:Rs,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i="clippingAncestors"===r?Fs(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Zs(e,[],!1).filter(e=>js(e)&&"body"!==As(e)),o=null;const i="fixed"===qs(e).position;let a=i?Xs(e):e;for(;js(a)&&!Ks(a);){const t=qs(a),r=Hs(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||zs(a)&&!r&&lc(e,a))?n=n.filter(e=>e!==a):o=t,a=Xs(a)}return t.set(e,n),n}(t,this._c):[].concat(r),a=[...i,n],s=cc(t,a[0],o);let c=s.top,l=s.right,u=s.bottom,f=s.left;for(let e=1;e<a.length;e++){const r=cc(t,a[e],o);c=ns(r.top,c),l=rs(r.right,l),u=rs(r.bottom,u),f=ns(r.left,f)}return{width:l-f,height:u-c,x:f,y:c}},getOffsetParent:pc,getElementRects:async function(e){const t=this.getOffsetParent||pc,r=this.getDimensions,n=await r(e.floating);return{reference:uc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=ec(e);return{width:t,height:r}},getScale:rc,isElement:js,isRTL:function(e){return"rtl"===qs(e).direction}};function hc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yc(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,l=tc(e),u=o||i?[...l?Zs(l):[],...t?Zs(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});const f=l&&s?function(e,t){let r,n=null;const o=Rs(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=l;if(s||t(),!d||!p)return;const m={rootMargin:-is(f)+"px "+-is(o.clientWidth-(u+d))+"px "+-is(o.clientHeight-(f+p))+"px "+-is(u)+"px",threshold:ns(0,rs(1,c))||1};let h=!0;function y(t){const n=t[0].intersectionRatio;if(n!==c){if(!h)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||hc(l,e.getBoundingClientRect())||a(),h=!1}try{n=new IntersectionObserver(y,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(y,m)}n.observe(e)}(!0),i}(l,r):null;let d,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),l&&!c&&m.observe(l),t&&m.observe(t));let h=c?ic(e):null;return c&&function t(){const n=ic(e);h&&!hc(h,n)&&r();h=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(d)}}const gc=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=us(r),s=fs(r),c="y"===ms(r),l=Ns.has(a)?-1:1,u=i&&c?-1:1,f=ls(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},vc=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=ls(e,t),u={x:r,y:n},f=await i.detectOverflow(t,l),d=ms(us(o)),p=ds(d);let m=u[p],h=u[d];if(a){const e="y"===p?"bottom":"right";m=cs(m+f["y"===p?"top":"left"],m,m-f[e])}if(s){const e="y"===d?"bottom":"right";h=cs(h+f["y"===d?"top":"left"],h,h-f[e])}const y=c.fn({...t,[p]:m,[d]:h});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[p]:a,[d]:s}}}}}},bc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=ls(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const g=us(o),v=ms(s),b=us(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=d||(b||!h?[Es(s)]:function(e){const t=Es(e);return[ys(e),t,ys(t)]}(s)),E="none"!==m;!d&&E&&x.push(...xs(s,h,m,w));const S=[s,...x],O=await c.detectOverflow(t,y),k=[];let C=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&k.push(O[g]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=fs(e),o=hs(e),i=ps(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Es(a)),[a,Es(a)]}(o,a,w);k.push(O[e[0]],O[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every(e=>e<=0)){var _,$;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=S[e];if(t){if(!("alignment"===f&&v!==ms(t))||C.every(e=>ms(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:C},reset:{placement:t}}}let r=null==($=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:$.placement;if(!r)switch(p){case"bestFit":{var N;const e=null==(N=C.filter(e=>{if(E){const t=ms(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:N[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},wc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...l}=ls(e,t),u=await a.detectOverflow(t,l),f=us(o),d=fs(o),p="y"===ms(o),{width:m,height:h}=i.floating;let y,g;"top"===f||"bottom"===f?(y=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,y="end"===d?"top":"bottom");const v=h-u.top-u.bottom,b=m-u.left-u.right,w=rs(h-u[y],v),x=rs(m-u[g],b),E=!t.middlewareData.shift;let S=w,O=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(O=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(S=v),E&&!d){const e=ns(u.left,0),t=ns(u.right,0),r=ns(u.top,0),n=ns(u.bottom,0);p?O=m-2*(0!==e||0!==t?e+t:ns(u.left,u.right)):S=h-2*(0!==r||0!==n?r+n:ns(u.top,u.bottom))}await c({...t,availableWidth:O,availableHeight:S});const k=await a.getDimensions(s.floating);return m!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}},xc=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=ls(e,t);switch(o){case"referenceHidden":{const e=_s(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:$s(e)}}}case"escaped":{const e=_s(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:$s(e)}}}default:return{}}}}},Ec=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ls(e,t)||{};if(null==l)return{};const f=Ss(u),d={x:r,y:n},p=hs(o),m=ps(p),h=await a.getDimensions(l),y="y"===p,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=E?E[b]:0;S&&await(null==a.isElement?void 0:a.isElement(E))||(S=s.floating[b]||i.floating[m]);const O=w/2-x/2,k=S/2-h[m]/2-1,C=rs(f[g],k),_=rs(f[v],k),$=C,N=S-h[m]-_,P=S/2-h[m]/2+O,A=cs($,P,N),T=!c.arrow&&null!=fs(o)&&P!==A&&i.reference[m]/2-(P<$?C:_)-h[m]/2<0,R=T?P<$?P-$:P-N:0;return{[p]:d[p]+R,data:{[p]:A,centerOffset:P-A-R,...T&&{alignmentOffset:R}},reset:T}}}),Sc=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ls(e,t),u={x:r,y:n},f=ms(o),d=ds(f);let p=u[d],m=u[f];const h=ls(s,t),y="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+y.mainAxis,r=i.reference[d]+i.reference[e]-y.mainAxis;p<t?p=t:p>r&&(p=r)}if(l){var g,v;const e="y"===d?"width":"height",t=Ns.has(us(o)),r=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:y.crossAxis),n=i.reference[f]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[f])||0)-(t?y.crossAxis:0);m<r?m=r:m>n&&(m=n)}return{[d]:p,[f]:m}}}},Oc=(e,t,r)=>{const n=new Map,o={platform:mc,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:Cs},c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=ks(l,n,c),d=n,p=0;const m={};for(let r=0;r<i.length;r++){const h=i[r];if(!h)continue;const{name:y,fn:g}=h,{x:v,y:b,data:w,reset:x}=await g({x:u,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,f=null!=b?b:f,m[y]={...m[y],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(l=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=ks(l,d,c))),r=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var kc="undefined"!=typeof document?o:function(){};function Cc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Cc(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Cc(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function _c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $c(e,t){const r=_c(e);return Math.round(t*r)/r}function Nc(t){const r=e.useRef(t);return kc(()=>{r.current=t}),r}const Pc=(e,t)=>{const r=gc(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ac=(e,t)=>{const r=vc(e);return{name:r.name,fn:r.fn,options:[e,t]}},Tc=(e,t)=>({fn:Sc(e).fn,options:[e,t]}),Rc=(e,t)=>{const r=bc(e);return{name:r.name,fn:r.fn,options:[e,t]}},Mc=(e,t)=>{const r=wc(e);return{name:r.name,fn:r.fn,options:[e,t]}},jc=(e,t)=>{const r=xc(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ic=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?Ec({element:r.current,padding:n}).fn(t):{}:r?Ec({element:r,padding:n}).fn(t):{};var o}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Dc=e.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return c($a.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c("polygon",{points:"0,0 30,0 15,10"})})});Dc.displayName="Arrow";var zc=Dc;var Lc="Popper",[Fc,Vc]=Ea(Lc),[Wc,Bc]=Fc(Lc),Uc=t=>{const{__scopePopper:r,children:n}=t,[o,i]=e.useState(null);return c(Wc,{scope:r,anchor:o,onAnchorChange:i,children:n})};Uc.displayName=Lc;var Hc="PopperAnchor",Gc=e.forwardRef((t,r)=>{const{__scopePopper:n,virtualRef:o,...i}=t,a=Bc(Hc,n),s=e.useRef(null),l=xa(r,s),u=e.useRef(null);return e.useEffect(()=>{const e=u.current;u.current=o?.current||s.current,e!==u.current&&a.onAnchorChange(u.current)}),o?null:c($a.div,{...i,ref:l})});Gc.displayName=Hc;var Kc="PopperContent",[qc,Yc]=Fc(Kc),Xc=e.forwardRef((t,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:g,...v}=t,b=Bc(Kc,n),[w,x]=e.useState(null),E=xa(r,e=>x(e)),[S,O]=e.useState(null),k=function(t){const[r,n]=e.useState(void 0);return Ja(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;n({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),r}(S),C=k?.width??0,_=k?.height??0,$=o+("center"!==a?"-"+a:""),N="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},P=Array.isArray(d)?d:[d],A=P.length>0,T={padding:N,boundary:P.filter(el),altBoundary:A},{refs:R,floatingStyles:M,placement:j,isPositioned:I,middlewareData:D}=function(t){void 0===t&&(t={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:f}=t,[d,p]=e.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(o);Cc(m,o)||h(o);const[y,g]=e.useState(null),[v,b]=e.useState(null),w=e.useCallback(e=>{e!==O.current&&(O.current=e,g(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),E=a||y,S=s||v,O=e.useRef(null),k=e.useRef(null),C=e.useRef(d),_=null!=l,$=Nc(l),N=Nc(i),P=Nc(f),A=e.useCallback(()=>{if(!O.current||!k.current)return;const e={placement:r,strategy:n,middleware:m};N.current&&(e.platform=N.current),Oc(O.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};T.current&&!Cc(C.current,t)&&(C.current=t,u.flushSync(()=>{p(t)}))})},[m,r,n,N,P]);kc(()=>{!1===f&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[f]);const T=e.useRef(!1);kc(()=>(T.current=!0,()=>{T.current=!1}),[]),kc(()=>{if(E&&(O.current=E),S&&(k.current=S),E&&S){if($.current)return $.current(E,S,A);A()}},[E,S,A,$,_]);const R=e.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:E,floating:S}),[E,S]),j=e.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=$c(M.floating,d.x),r=$c(M.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",..._c(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,c,M.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:A,refs:R,elements:M,floatingStyles:j}),[d,A,R,M,j])}({strategy:"fixed",placement:$,whileElementsMounted:(...e)=>yc(...e,{animationFrame:"always"===y}),elements:{reference:b.anchor},middleware:[Pc({mainAxis:i+_,alignmentAxis:s}),f&&Ac({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?Tc():void 0,...T}),f&&Rc({...T}),Mc({...T,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),S&&Ic({element:S,padding:l}),tl({arrowWidth:C,arrowHeight:_}),h&&jc({strategy:"referenceHidden",...T})]}),[z,L]=rl(j),F=Na(g);Ja(()=>{I&&F?.()},[I,F]);const V=D.arrow?.x,W=D.arrow?.y,B=0!==D.arrow?.centerOffset,[U,H]=e.useState();return Ja(()=>{w&&H(window.getComputedStyle(w).zIndex)},[w]),c("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:I?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c(qc,{scope:n,placedSide:z,onArrowChange:O,arrowX:V,arrowY:W,shouldHideArrow:B,children:c($a.div,{"data-side":z,"data-align":L,...v,ref:E,style:{...v.style,animation:I?void 0:"none"}})})})});Xc.displayName=Kc;var Jc="PopperArrow",Zc={top:"bottom",right:"left",bottom:"top",left:"right"},Qc=e.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=Yc(Jc,r),i=Zc[o.placedSide];return c("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:c(zc,{...n,ref:t,style:{...n.style,display:"block"}})})});function el(e){return null!==e}Qc.displayName=Jc;var tl=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[c,l]=rl(r),u={start:"0%",center:"50%",end:"100%"}[l],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===c?(p=i?u:`${f}px`,m=-s+"px"):"top"===c?(p=i?u:`${f}px`,m=`${n.floating.height+s}px`):"right"===c?(p=-s+"px",m=i?u:`${d}px`):"left"===c&&(p=`${n.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:p,y:m}}}});function rl(e){const[t,r="center"]=e.split("-");return[t,r]}var nl=Uc,ol=Gc,il=Xc,al=Qc,sl=e.forwardRef((t,r)=>{const{container:n,...o}=t,[i,a]=e.useState(!1);Ja(()=>a(!0),[]);const s=n||i&&globalThis?.document?.body;return s?f.createPortal(c($a.div,{...o,ref:r}),s):null});sl.displayName="Portal";var cl=t=>{const{present:r,children:n}=t,o=function(t){const[r,n]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[c,l]=function(t,r){return e.useReducer((e,t)=>r[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=ll(o.current);a.current="mounted"===c?e:"none"},[c]),Ja(()=>{const e=o.current,r=i.current;if(r!==t){const n=a.current,o=ll(e);if(t)l("MOUNT");else if("none"===o||"none"===e?.display)l("UNMOUNT");else{l(r&&n!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,l]),Ja(()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const a=ll(o.current).includes(CSS.escape(n.animationName));if(n.target===r&&a&&(l("ANIMATION_END"),!i.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},s=e=>{e.target===r&&(a.current=ll(o.current))};return r.addEventListener("animationstart",s),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",s),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}l("ANIMATION_END")},[r,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}(r),i="function"==typeof n?n({present:o.isPresent}):e.Children.only(n),a=xa(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?e.cloneElement(i,{ref:a}):null};function ll(e){return e?.animationName||"none"}cl.displayName="Presence";var ul=e[" useInsertionEffect ".trim().toString()]||Ja;function fl({prop:t,defaultProp:r,onChange:n=()=>{},caller:o}){const[i,a,s]=function({defaultProp:t,onChange:r}){const[n,o]=e.useState(t),i=e.useRef(n),a=e.useRef(r);return ul(()=>{a.current=r},[r]),e.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,o,a]}({defaultProp:r,onChange:n}),c=void 0!==t,l=c?t:i;{const r=e.useRef(void 0!==t);e.useEffect(()=>{const e=r.current;if(e!==c){const t=e?"controlled":"uncontrolled",r=c?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${r}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=c},[c,o])}const u=e.useCallback(e=>{if(c){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&s.current?.(r)}else a(e)},[c,t,a,s]);return[l,u]}var dl=new WeakMap,pl=new WeakMap,ml={},hl=0,yl=function(e){return e&&(e.host||yl(e.parentNode))},gl=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=yl(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);ml[r]||(ml[r]=new WeakMap);var i=ml[r],a=[],s=new Set,c=new Set(o),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,c=(dl.get(e)||0)+1,l=(i.get(e)||0)+1;dl.set(e,c),i.set(e,l),a.push(e),1===c&&o&&pl.set(e,!0),1===l&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),hl++,function(){a.forEach(function(e){var t=dl.get(e)-1,o=i.get(e)-1;dl.set(e,t),i.set(e,o),t||(pl.has(e)||e.removeAttribute(n),pl.delete(e)),o||e.removeAttribute(r)}),--hl||(dl=new WeakMap,dl=new WeakMap,pl=new WeakMap,ml={})}},vl=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),gl(n,o,r,"aria-hidden")):function(){return null}},bl=function(){return bl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bl.apply(this,arguments)};function wl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}"function"==typeof SuppressedError&&SuppressedError;var xl="right-scroll-bar-position",El="width-before-scroll-bar";function Sl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ol="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,kl=new WeakMap;function Cl(e,t){var r,n,o,a=(r=null,n=function(t){return e.forEach(function(e){return Sl(e,t)})},(o=i(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=n,o.facade);return Ol(function(){var t=kl.get(a);if(t){var r=new Set(t),n=new Set(e),o=a.current;r.forEach(function(e){n.has(e)||Sl(e,null)}),n.forEach(function(e){r.has(e)||Sl(e,o)})}kl.set(a,e)},[e]),a}function _l(e){return e}var $l=function(t){var r=t.sideCar,n=wl(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,bl({},n))};$l.isSideCarExport=!0;var Nl=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=_l);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}(null);return t.options=bl({async:!0,ssr:!1},e),t}(),Pl=function(){},Al=e.forwardRef(function(t,r){var n=e.useRef(null),o=e.useState({onScrollCapture:Pl,onWheelCapture:Pl,onTouchMoveCapture:Pl}),i=o[0],a=o[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,f=t.enabled,d=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,y=t.inert,g=t.allowPinchZoom,v=t.as,b=void 0===v?"div":v,w=t.gapMode,x=wl(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,S=Cl([n,r]),O=bl(bl({},x),i);return e.createElement(e.Fragment,null,f&&e.createElement(E,{sideCar:Nl,removeScrollBar:u,shards:d,noRelative:m,noIsolation:h,inert:y,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:w}),s?e.cloneElement(e.Children.only(c),bl(bl({},O),{ref:S})):e.createElement(b,bl({},O,{className:l,ref:S}),c))});Al.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Al.classNames={fullWidth:El,zeroRight:xl};function Tl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Rl=function(){var e=0,t=null;return{add:function(r){var n;0==e&&(t=Tl())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),n=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(n)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ml=function(){var t,r=(t=Rl(),function(r,n){e.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&n])});return function(e){var t=e.styles,n=e.dynamic;return r(t,n),null}},jl={left:0,top:0,right:0,gap:0},Il=function(e){return parseInt(e||"",10)||0},Dl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return jl;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Il(r),Il(n),Il(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},zl=Ml(),Ll="data-scroll-locked",Fl=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(Ll,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(xl," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(El," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(xl," .").concat(xl," {\n right: 0 ").concat(n,";\n }\n \n .").concat(El," .").concat(El," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(Ll,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Vl=function(){var e=parseInt(document.body.getAttribute(Ll)||"0",10);return isFinite(e)?e:0},Wl=function(t){var r=t.noRelative,n=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(Ll,(Vl()+1).toString()),function(){var e=Vl()-1;e<=0?document.body.removeAttribute(Ll):document.body.setAttribute(Ll,e.toString())}},[]);var a=e.useMemo(function(){return Dl(i)},[i]);return e.createElement(zl,{styles:Fl(a,!r,i,n?"":"!important")})},Bl=!1;if("undefined"!=typeof window)try{var Ul=Object.defineProperty({},"passive",{get:function(){return Bl=!0,!0}});window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch(e){Bl=!1}var Hl=!!Bl&&{passive:!1},Gl=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},Kl=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ql(e,n)){var o=Yl(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ql=function(e,t){return"v"===e?function(e){return Gl(e,"overflowY")}(t):function(e){return Gl(e,"overflowX")}(t)},Yl=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Xl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jl=function(e){return[e.deltaX,e.deltaY]},Zl=function(e){return e&&"current"in e?e.current:e},Ql=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},eu=0,tu=[];function ru(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var nu,ou=(nu=function(t){var r=e.useRef([]),n=e.useRef([0,0]),o=e.useRef(),i=e.useState(eu++)[0],a=e.useState(Ml)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(Zl),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,i=Xl(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Kl(f,u);if(!m)return!0;if(m?r=f:(r="v"===f?"h":"v",m=Kl(f,u)),!m)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=r),!r)return!0;var h=o.current||r;return function(e,t,r,n){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*n,a=r.target,s=t.contains(a),c=!1,l=i>0,u=0,f=0;do{if(!a)break;var d=Yl(e,a),p=d[0],m=d[1]-d[2]-o*p;(p||m)&&ql(e,a)&&(u+=m,f+=p);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(l&&Math.abs(u)<1||!l&&Math.abs(f)<1)&&(c=!0),c}(h,t,e,"h"===h?c:l)},[]),l=e.useCallback(function(e){var t=e;if(tu.length&&tu[tu.length-1]===a){var n="deltaY"in t?Jl(t):Xl(t),o=r.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(r=e.delta,o=n,r[0]===o[0]&&r[1]===o[1]);var r,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(Zl).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?c(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,n,o){var i={name:e,delta:t,target:n,should:o,shadowParent:ru(n)};r.current.push(i),setTimeout(function(){r.current=r.current.filter(function(e){return e!==i})},1)},[]),f=e.useCallback(function(e){n.current=Xl(e),o.current=void 0},[]),d=e.useCallback(function(e){u(e.type,Jl(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Xl(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return tu.push(a),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Hl),document.addEventListener("touchmove",l,Hl),document.addEventListener("touchstart",f,Hl),function(){tu=tu.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,Hl),document.removeEventListener("touchmove",l,Hl),document.removeEventListener("touchstart",f,Hl)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:Ql(i)}):null,m?e.createElement(Wl,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},Nl.useMedium(nu),$l),iu=e.forwardRef(function(t,r){return e.createElement(Al,bl({},t,{ref:r,sideCar:ou}))});iu.classNames=Al.classNames;var au="Popover",[su]=Ea(au,[Vc]),cu=Vc(),[lu,uu]=su(au),fu=t=>{const{__scopePopover:r,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=t,l=cu(r),u=e.useRef(null),[f,d]=e.useState(!1),[p,m]=fl({prop:o,defaultProp:i??!1,onChange:a,caller:au});return c(nl,{...l,children:c(lu,{scope:r,contentId:es(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:s,children:n})})};fu.displayName=au;var du="PopoverAnchor";e.forwardRef((t,r)=>{const{__scopePopover:n,...o}=t,i=uu(du,n),a=cu(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return e.useEffect(()=>(s(),()=>l()),[s,l]),c(ol,{...a,...o,ref:r})}).displayName=du;var pu="PopoverTrigger",mu=e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=uu(pu,r),i=cu(r),a=xa(t,o.triggerRef),s=c($a.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cu(o.open),...n,ref:a,onClick:va(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:c(ol,{asChild:!0,...i,children:s})});mu.displayName=pu;var hu="PopoverPortal",[yu,gu]=su(hu,{forceMount:void 0}),vu=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=uu(hu,t);return c(yu,{scope:t,forceMount:r,children:c(cl,{present:r||i.open,children:c(sl,{asChild:!0,container:o,children:n})})})};vu.displayName=hu;var bu="PopoverContent",wu=e.forwardRef((e,t)=>{const r=gu(bu,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=uu(bu,e.__scopePopover);return c(cl,{present:n||i.open,children:i.modal?c(Eu,{...o,ref:t}):c(Su,{...o,ref:t})})});wu.displayName=bu;var xu=Oa("PopoverContent.RemoveScroll"),Eu=e.forwardRef((t,r)=>{const n=uu(bu,t.__scopePopover),o=e.useRef(null),i=xa(r,o),a=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return vl(e)},[]),c(iu,{as:xu,allowPinchZoom:!0,children:c(Ou,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:va(t.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:va(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;a.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:va(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Su=e.forwardRef((t,r)=>{const n=uu(bu,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return c(Ou,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||n.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const r=e.target,a=n.triggerRef.current?.contains(r);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),Ou=e.forwardRef((t,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,...p}=t,m=uu(bu,n),h=cu(n);return e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Fa()),document.body.insertAdjacentElement("beforeend",e[1]??Fa()),La++,()=>{1===La&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),La--}},[]),c(Ua,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:c(ja,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>m.onOpenChange(!1),children:c(il,{"data-state":Cu(m.open),role:"dialog",id:m.contentId,...h,...p,ref:r,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ku="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=uu(ku,r);return c($a.button,{type:"button",...n,ref:t,onClick:va(e.onClick,()=>o.onOpenChange(!1))})}).displayName=ku;function Cu(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=cu(r);return c(al,{...o,...n,ref:t})}).displayName="PopoverArrow";var _u=fu,$u=mu,Nu=vu,Pu=wu;const Au=e=>{const t=ju(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),Tu(r,t)||Mu(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},Tu=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Tu(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},Ru=/^\[(.+)\]$/,Mu=e=>{if(Ru.test(e)){const t=Ru.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ju=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Lu(Object.entries(e.classGroups),r).forEach(([e,r])=>{Iu(r,n,e,t)}),n},Iu=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Du(t,e)).classGroupId=r)}if("function"==typeof e)return zu(e)?void Iu(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{Iu(o,Du(t,e),r,n)})})},Du=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},zu=e=>e.isThemeGetter,Lu=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,Fu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},Vu=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length,a=e=>{const r=[];let a,s=0,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(0===s){if(u===o&&(n||e.slice(l,l+i)===t)){r.push(e.slice(c,l)),c=l+i;continue}if("/"===u){a=l;continue}}"["===u?s++:"]"===u&&s--}const l=0===r.length?e:e.substring(c),u=l.startsWith("!");return{modifiers:r,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:a&&a>c?a-c:void 0}};return r?e=>r({className:e,parseClassName:a}):a},Wu=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},Bu=/\s+/;function Uu(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Hu(e))&&(n&&(n+=" "),n+=t);return n}const Hu=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Hu(e[n]))&&(r&&(r+=" "),r+=t);return r};function Gu(e,...t){let r,n,o,i=function(s){const c=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:Fu(e.cacheSize),parseClassName:Vu(e),...Au(e)}))(c),n=r.cache.get,o=r.cache.set,i=a,a(s)};function a(e){const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Bu);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:f}=r(t);let d=Boolean(f),p=n(d?u.substring(0,f):u);if(!p){if(!d){s=t+(s.length>0?" "+s:s);continue}if(p=n(u),!p){s=t+(s.length>0?" "+s:s);continue}d=!1}const m=Wu(c).join(":"),h=l?m+"!":m,y=h+p;if(i.includes(y))continue;i.push(y);const g=o(p,d);for(let e=0;e<g.length;++e){const t=g[e];i.push(h+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return o(e,i),i}return function(){return i(Uu.apply(null,arguments))}}const Ku=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},qu=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yu=/^\d+\/\d+$/,Xu=new Set(["px","full","screen"]),Ju=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ef=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rf=e=>of(e)||Xu.has(e)||Yu.test(e),nf=e=>vf(e,"length",bf),of=e=>Boolean(e)&&!Number.isNaN(Number(e)),af=e=>vf(e,"number",of),sf=e=>Boolean(e)&&Number.isInteger(Number(e)),cf=e=>e.endsWith("%")&&of(e.slice(0,-1)),lf=e=>qu.test(e),uf=e=>Ju.test(e),ff=new Set(["length","size","percentage"]),df=e=>vf(e,ff,wf),pf=e=>vf(e,"position",wf),mf=new Set(["image","url"]),hf=e=>vf(e,mf,Ef),yf=e=>vf(e,"",xf),gf=()=>!0,vf=(e,t,r)=>{const n=qu.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},bf=e=>Zu.test(e)&&!Qu.test(e),wf=()=>!1,xf=e=>ef.test(e),Ef=e=>tf.test(e),Sf=()=>{const e=Ku("colors"),t=Ku("spacing"),r=Ku("blur"),n=Ku("brightness"),o=Ku("borderColor"),i=Ku("borderRadius"),a=Ku("borderSpacing"),s=Ku("borderWidth"),c=Ku("contrast"),l=Ku("grayscale"),u=Ku("hueRotate"),f=Ku("invert"),d=Ku("gap"),p=Ku("gradientColorStops"),m=Ku("gradientColorStopPositions"),h=Ku("inset"),y=Ku("margin"),g=Ku("opacity"),v=Ku("padding"),b=Ku("saturate"),w=Ku("scale"),x=Ku("sepia"),E=Ku("skew"),S=Ku("space"),O=Ku("translate"),k=()=>["auto",lf,t],C=()=>[lf,t],_=()=>["",rf,nf],$=()=>["auto",of,lf],N=()=>["","0",lf],P=()=>[of,lf];return{cacheSize:500,separator:":",theme:{colors:[gf],spacing:[rf,nf],blur:["none","",uf,lf],brightness:P(),borderColor:[e],borderRadius:["none","","full",uf,lf],borderSpacing:C(),borderWidth:_(),contrast:P(),grayscale:N(),hueRotate:P(),invert:N(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[cf,nf],inset:k(),margin:k(),opacity:P(),padding:C(),saturate:P(),scale:P(),sepia:N(),skew:P(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",lf]}],container:["container"],columns:[{columns:[uf]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",lf]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sf,lf]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",lf]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",sf,lf]}],"grid-cols":[{"grid-cols":[gf]}],"col-start-end":[{col:["auto",{span:["full",sf,lf]},lf]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[gf]}],"row-start-end":[{row:["auto",{span:[sf,lf]},lf]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",lf]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",lf]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",lf,t]}],"min-w":[{"min-w":[lf,t,"min","max","fit"]}],"max-w":[{"max-w":[lf,t,"none","full","min","max","fit","prose",{screen:[uf]},uf]}],h:[{h:[lf,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[lf,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[lf,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[lf,t,"auto","min","max","fit"]}],"font-size":[{text:["base",uf,nf]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",af]}],"font-family":[{font:[gf]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",lf]}],"line-clamp":[{"line-clamp":["none",of,af]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rf,lf]}],"list-image":[{"list-image":["none",lf]}],"list-style-type":[{list:["none","disc","decimal",lf]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rf,nf]}],"underline-offset":[{"underline-offset":["auto",rf,lf]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lf]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lf]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",pf]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",df]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hf]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[rf,lf]}],"outline-w":[{outline:[rf,nf]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[rf,nf]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",uf,yf]}],"shadow-color":[{shadow:[gf]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",uf,lf]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",lf]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",lf]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",lf]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[sf,lf]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",lf]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",lf]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",lf]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[rf,nf,af]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Of=Gu(Sf);function kf(...e){return Of(Me(e))}const Cf=_u,_f=$u,$f=e.forwardRef(({className:t,align:r="center",sideOffset:n=4,...o},i)=>e.createElement(Nu,null,e.createElement(Pu,{ref:i,align:r,sideOffset:n,className:kf("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})));$f.displayName=Pu.displayName;const Nf=({id:e,className:r,align:n,side:o,sideOffset:i=8,visible:a,content:s,children:c,onPointerDownOutside:l,onOpenAutoFocus:u})=>t.createElement(Cf,{open:a},t.createElement(_f,{asChild:!0},c),t.createElement($f,{id:e,className:y("gyramais-popover-content",r),align:n,side:o,sideOffset:i,onPointerDownOutside:l,onOpenAutoFocus:u},s)),Pf=({id:e,className:r,visible:n,align:o="start",side:i="bottom",sideOffset:a=6,width:s=320,maxHeight:c=480,trigger:l,children:u,onPointerDownOutside:f,onOpenAutoFocus:d})=>{const p="number"==typeof s?`${s}px`:s,m="number"==typeof c?`${c}px`:c;return t.createElement(Nf,{id:e,visible:n,align:o,side:i,sideOffset:a,className:y("gyramais-picker-popover",r),onPointerDownOutside:f,onOpenAutoFocus:d,content:t.createElement("div",{className:"gyramais-picker-popover-inner",style:{width:p,maxHeight:m}},u)},l)};Pf.Header=({className:e,title:r,searchPlaceholder:n,searchValue:o,onSearchChange:i,onSearchKeyDown:a,searchAutoFocus:s=!0,accessory:c})=>{const l=void 0!==n||void 0!==i;return t.createElement("div",{className:y("gyramais-picker-popover-head",e)},r&&t.createElement("div",{className:"gyramais-picker-popover-title"},r),(l||c)&&t.createElement("div",{className:"gyramais-picker-popover-head-row"},l&&t.createElement("div",{className:"gyramais-picker-popover-search"},t.createElement(ha,{className:"gyramais-picker-popover-search-icon"}),t.createElement("input",{type:"text",placeholder:n,value:o??"",onChange:e=>i?.(e.target.value),onKeyDown:a,autoFocus:s})),c&&t.createElement("div",{className:"gyramais-picker-popover-accessory"},c)))},Pf.Body=({className:e,children:r})=>t.createElement("div",{className:y("gyramais-picker-popover-body",e)},r),Pf.Footer=({className:e,children:r})=>t.createElement("div",{className:y("gyramais-picker-popover-foot",e)},r),Pf.Section=({className:e,title:r,children:n})=>t.createElement("div",{className:y("gyramais-picker-popover-section",e)},r&&t.createElement("div",{className:"gyramais-picker-popover-section-head"},r),n);const Af=({id:e,className:r,visible:n,title:o,searchPlaceholder:s="Buscar...",options:c,values:l,onChange:u,trigger:f,totalCount:d,clearLabel:p="Limpar seleção",showClear:m=!0,collapsedChipsCount:h=5,width:g=420,align:v,side:b,filter:w,onPointerDownOutside:x})=>{const[E,S]=i(""),[O,k]=i(!1);t.useEffect(()=>{n||(S(""),k(!1))},[n]);const C=a(()=>new Set(l),[l]),_=a(()=>{const e=E.trim().toLowerCase();if(!e)return c;const t=w??((e,t)=>e.label.toLowerCase().includes(t)||(e.code?.toLowerCase().includes(t)??!1));return c.filter(r=>t(r,e))},[c,E,w]),$=a(()=>c.filter(e=>C.has(e.value)),[c,C]),N=a(()=>{const e=[],t=new Map;for(const r of _){const n=r.group??"";let o=t.get(n);o||(o={name:r.group,items:[]},t.set(n,o),e.push(o)),o.items.push(r)}return e},[_]),P=O?$:$.slice(0,h),A=Math.max(0,$.length-h);return t.createElement(Pf,{id:e,className:y("gyramais-multi-select-picker",r),visible:n,align:v,side:b,width:g,trigger:f,onPointerDownOutside:x},t.createElement(Pf.Header,{title:o,searchPlaceholder:s,searchValue:E,onSearchChange:S}),$.length>0&&t.createElement("div",{className:"gyramais-multi-select-picker-selected"},t.createElement("div",{className:"gyramais-multi-select-picker-lab"},"Selecionados (",$.length,")"),t.createElement("div",{className:"gyramais-multi-select-picker-chips"},P.map(e=>t.createElement("span",{key:e.value,className:"gyramais-multi-select-picker-chip"},e.code??e.label,t.createElement("button",{type:"button",className:"gyramais-multi-select-picker-chip-x",onClick:t=>{var r;t.stopPropagation(),r=e.value,u?.(l.filter(e=>e!==r))},"aria-label":`Remover ${e.label}`},t.createElement(ua,null)))),A>0&&!O&&t.createElement("button",{type:"button",className:"gyramais-multi-select-picker-chip-more",onClick:()=>k(!0)},"+",A," mais"))),t.createElement(Pf.Body,null,0===_.length?t.createElement("div",{className:"gyramais-multi-select-picker-empty"},"Nenhuma opção corresponde à busca."):N.map((e,r)=>t.createElement("div",{key:e.name??`__group-${r}`,className:"gyramais-multi-select-picker-group"},e.name&&t.createElement("div",{className:"gyramais-multi-select-picker-group-head"},e.name),e.items.map(e=>{const r=C.has(e.value);return t.createElement("button",{key:e.value,type:"button",role:"menuitemcheckbox","aria-checked":r,disabled:e.disabled,className:y("gyramais-multi-select-picker-opt",r&&"is-on"),onClick:()=>{return!e.disabled&&(t=e.value,void(C.has(t)?u?.(l.filter(e=>e!==t)):u?.([...l,t])));var t}},t.createElement("span",{className:"gyramais-multi-select-picker-check"},t.createElement(Tf,null)),t.createElement("span",{className:"gyramais-multi-select-picker-opt-body"},e.code&&t.createElement("span",{className:"gyramais-multi-select-picker-opt-code"},e.code),t.createElement("span",{className:"gyramais-multi-select-picker-opt-desc"},e.label)))})))),t.createElement(Pf.Footer,null,t.createElement("span",{className:"gyramais-multi-select-picker-count"},l.length," de ",d??c.length),m&&l.length>0&&t.createElement("button",{type:"button",className:"gyramais-multi-select-picker-clear",onClick:()=>u?.([])},p)))},Tf=()=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round","aria-hidden":"true"},t.createElement("path",{d:"m5 13 4 4L19 7"}));export{Af as MultiSelectPicker};
|
|
44
|
+
function(e,t){const r=Hr(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const n="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some(e=>void 0===e)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...t)}:r},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:function(e){return Yr[0]=e,gr(Yr)},keyframes:function(){var e=Dr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}}),Jr=p(Xr),Zr=p(C),Qr=p(fe),en=p(le);const tn=["values","unit","step"];function rn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Te(e,tn),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>x({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function c(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function l(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return x({keys:a,values:i,up:s,down:c,between:l,only:function(e){return a.indexOf(e)+1<a.length?l(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?c(a[t]):l(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const nn={borderRadius:4},on="production"!==process.env.NODE_ENV?X.oneOfType([X.number,X.string,X.object,X.array]):{};function an(e,t){return t?O(e,t,{clone:!1}):e}const sn={xs:0,sm:600,md:900,lg:1200,xl:1536},cn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${sn[e]}px)`};function ln(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||cn;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||cn;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||sn).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function un(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function fn(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function dn(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:fn(e,r)||n,t&&(o=t(o,n,e)),o}function pn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=fn(e.theme,n)||{};return ln(e,i,e=>{let n=dn(a,o,e);return e===n&&"string"==typeof e&&(n=dn(a,o,`${t}${"default"===e?"":ue(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:on}:{},i.filterProps=[t],i}const mn={m:"margin",p:"padding"},hn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gn=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!yn[e])return[e];e=yn[e]}const[t,r]=e.split(""),n=mn[t],o=hn[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),vn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],wn=[...vn,...bn];function xn(e,t,r,n){var o;const i=null!=(o=fn(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function En(e){return xn(e,"spacing",8,"spacing")}function Sn(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function On(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=Sn(t,r),e),{})}(gn(r),n);return ln(e,e[r],o)}function kn(e,t){const r=En(e.theme);return Object.keys(e).map(n=>On(e,t,n,r)).reduce(an,{})}function Cn(e){return kn(e,vn)}function _n(e){return kn(e,bn)}function $n(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?an(r,t[n](e)):r,{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce((e,t)=>Object.assign(e,t.propTypes),{}):{},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function Nn(e){return"number"!=typeof e?e:`${e}px solid`}function Pn(e,t){return pn({prop:e,themeKey:"borders",transform:t})}Cn.propTypes="production"!==process.env.NODE_ENV?vn.reduce((e,t)=>(e[t]=on,e),{}):{},Cn.filterProps=vn,_n.propTypes="production"!==process.env.NODE_ENV?bn.reduce((e,t)=>(e[t]=on,e),{}):{},_n.filterProps=bn,"production"===process.env.NODE_ENV||wn.reduce((e,t)=>(e[t]=on,e),{});const An=Pn("border",Nn),Tn=Pn("borderTop",Nn),Rn=Pn("borderRight",Nn),Mn=Pn("borderBottom",Nn),jn=Pn("borderLeft",Nn),In=Pn("borderColor"),Dn=Pn("borderTopColor"),zn=Pn("borderRightColor"),Ln=Pn("borderBottomColor"),Fn=Pn("borderLeftColor"),Vn=Pn("outline",Nn),Wn=Pn("outlineColor"),Bn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xn(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:Sn(t,e)});return ln(e,e.borderRadius,r)}return null};Bn.propTypes="production"!==process.env.NODE_ENV?{borderRadius:on}:{},Bn.filterProps=["borderRadius"],$n(An,Tn,Rn,Mn,jn,In,Dn,zn,Ln,Fn,Bn,Vn,Wn);const Un=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xn(e.theme,"spacing",8,"gap"),r=e=>({gap:Sn(t,e)});return ln(e,e.gap,r)}return null};Un.propTypes="production"!==process.env.NODE_ENV?{gap:on}:{},Un.filterProps=["gap"];const Hn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xn(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:Sn(t,e)});return ln(e,e.columnGap,r)}return null};Hn.propTypes="production"!==process.env.NODE_ENV?{columnGap:on}:{},Hn.filterProps=["columnGap"];const Gn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xn(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:Sn(t,e)});return ln(e,e.rowGap,r)}return null};Gn.propTypes="production"!==process.env.NODE_ENV?{rowGap:on}:{},Gn.filterProps=["rowGap"];function Kn(e,t){return"grey"===t?t:e}$n(Un,Hn,Gn,pn({prop:"gridColumn"}),pn({prop:"gridRow"}),pn({prop:"gridAutoFlow"}),pn({prop:"gridAutoColumns"}),pn({prop:"gridAutoRows"}),pn({prop:"gridTemplateColumns"}),pn({prop:"gridTemplateRows"}),pn({prop:"gridTemplateAreas"}),pn({prop:"gridArea"}));function qn(e){return e<=1&&0!==e?100*e+"%":e}$n(pn({prop:"color",themeKey:"palette",transform:Kn}),pn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Kn}),pn({prop:"backgroundColor",themeKey:"palette",transform:Kn}));const Yn=pn({prop:"width",transform:qn}),Xn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||sn[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:qn(t)}};return ln(e,e.maxWidth,t)}return null};Xn.filterProps=["maxWidth"];const Jn=pn({prop:"minWidth",transform:qn}),Zn=pn({prop:"height",transform:qn}),Qn=pn({prop:"maxHeight",transform:qn}),eo=pn({prop:"minHeight",transform:qn});pn({prop:"size",cssProperty:"width",transform:qn}),pn({prop:"size",cssProperty:"height",transform:qn});$n(Yn,Xn,Jn,Zn,Qn,eo,pn({prop:"boxSizing"}));const to={border:{themeKey:"borders",transform:Nn},borderTop:{themeKey:"borders",transform:Nn},borderRight:{themeKey:"borders",transform:Nn},borderBottom:{themeKey:"borders",transform:Nn},borderLeft:{themeKey:"borders",transform:Nn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bn},color:{themeKey:"palette",transform:Kn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Kn},backgroundColor:{themeKey:"palette",transform:Kn},p:{style:_n},pt:{style:_n},pr:{style:_n},pb:{style:_n},pl:{style:_n},px:{style:_n},py:{style:_n},padding:{style:_n},paddingTop:{style:_n},paddingRight:{style:_n},paddingBottom:{style:_n},paddingLeft:{style:_n},paddingX:{style:_n},paddingY:{style:_n},paddingInline:{style:_n},paddingInlineStart:{style:_n},paddingInlineEnd:{style:_n},paddingBlock:{style:_n},paddingBlockStart:{style:_n},paddingBlockEnd:{style:_n},m:{style:Cn},mt:{style:Cn},mr:{style:Cn},mb:{style:Cn},ml:{style:Cn},mx:{style:Cn},my:{style:Cn},margin:{style:Cn},marginTop:{style:Cn},marginRight:{style:Cn},marginBottom:{style:Cn},marginLeft:{style:Cn},marginX:{style:Cn},marginY:{style:Cn},marginInline:{style:Cn},marginInlineStart:{style:Cn},marginInlineEnd:{style:Cn},marginBlock:{style:Cn},marginBlockStart:{style:Cn},marginBlockEnd:{style:Cn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Un},rowGap:{style:Gn},columnGap:{style:Hn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qn},maxWidth:{style:Xn},minWidth:{transform:qn},height:{transform:qn},maxHeight:{transform:qn},minHeight:{transform:qn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ro(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:c,style:l}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=fn(r,s)||{};if(l)return l(o);return ln(o,t,t=>{let r=dn(u,c,t);return t===r&&"string"==typeof t&&(r=dn(u,c,`${e}${"default"===t?"":ue(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:to;function c(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{}))||{}}(i.breakpoints),c=Object.keys(o);let l=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],c=i,"function"==typeof a?a(c):a);var a,c;if(null!=o)if("object"==typeof o)if(s[r])l=an(l,e(r,o,i,s));else{const e=ln({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?l=an(l,e):l[r]=t({sx:o,theme:i,nested:!0})}else l=an(l,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":un(c,l)}:un(c,l)}return Array.isArray(o)?o.map(c):c(o)}}const no=ro();function oo(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}no.filterProps=["sx"];const io=["breakpoints","palette","spacing","shape"];function ao(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Te(e,io),s=rn(r),c=function(e=8){if(e.mui)return e;const t=En({spacing:e}),r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" "));return r.mui=!0,r}(o);let l=O({breakpoints:s,direction:"ltr",components:{},palette:x({mode:"light"},n),spacing:c,shape:x({},nn,i)},a);return l.applyStyles=oo,l=t.reduce((e,t)=>O(e,t),l),l.unstable_sxConfig=x({},to,null==a?void 0:a.unstable_sxConfig),l.unstable_sx=function(e){return no({sx:e,theme:this})},l}var so=p(Object.freeze({__proto__:null,default:ao,private_createBreakpoints:rn,unstable_applyStyles:oo}));const co=["sx"];var lo=p(Object.freeze({__proto__:null,default:no,extendSxProp:function(e){const{sx:t}=e,r=Te(e,co),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:to;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return E(r)?x({},n,r):n}:x({},n,t),x({},o,{sx:i})},unstable_createStyleFunctionSx:ro,unstable_defaultSxConfig:to})),uo=b;Object.defineProperty(ze,"__esModule",{value:!0});var fo=ze.default=function(e={}){const{themeId:t,defaultTheme:r=_o,rootShouldForwardProp:n=ko,slotShouldForwardProp:o=ko}=e,i=e=>(0,wo.default)((0,po.default)({},e,{theme:No((0,po.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,ho.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:c,skipVariantsResolver:l,skipSx:u,overridesResolver:f=Po($o(c))}=a,d=(0,mo.default)(a,So),p=s&&s.startsWith("Mui")||c?"components":"custom",m=void 0!==l?l:c&&"Root"!==c&&"root"!==c||!1,h=u||!1;let y;"production"!==process.env.NODE_ENV&&s&&(y=`${s}-${$o(c||"Root")}`);let g=ko;"Root"===c||"root"===c?g=n:c?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,ho.default)(e,(0,po.default)({shouldForwardProp:g,label:y},d)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,yo.isPlainObject)(e)?n=>{const o=No({theme:n.theme,defaultTheme:r,themeId:t});return Ao(e,(0,po.default)({},n,{theme:o}),o.modularCssLayers?p:void 0)}:e,w=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&f&&l.push(e=>{const n=No((0,po.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,r])=>{i[t]=Ao(r,(0,po.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),f(e,i)}),s&&!m&&l.push(e=>{var n;const o=No((0,po.default)({},e,{defaultTheme:r,themeId:t}));return Ao({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,po.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),h||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const d=v(a,...l);if("production"!==process.env.NODE_ENV){let t;s&&(t=`${s}${(0,go.default)(c||"")}`),void 0===t&&(t=`Styled(${(0,vo.default)(e)})`),d.displayName=t}return e.muiName&&(d.muiName=e.muiName),d};return v.withConfig&&(w.withConfig=v.withConfig),w}};ze.shouldForwardProp=ko,ze.systemDefaultTheme=void 0;var po=uo((De||(De=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Le)),Le.exports)),mo=uo((Fe||(Fe=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Ve)),Ve.exports)),ho=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Oo(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Jr),yo=Zr,go=uo(Qr),vo=uo(en),bo=uo(so),wo=uo(lo);const xo=["ownerState"],Eo=["variants"],So=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Oo(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Oo=function(e){return e?r:t})(e)}function ko(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Co(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const _o=ze.systemDefaultTheme=(0,bo.default)(),$o=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function No({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Po(e){return e?(t,r)=>r[e]:null}function Ao(e,t,r){let{ownerState:n}=t,o=(0,mo.default)(t,xo);const i="function"==typeof e?e((0,po.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap(e=>Ao(e,(0,po.default)({ownerState:n},o),r));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,mo.default)(i,Eo);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,po.default)({ownerState:n},o,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,po.default)({ownerState:n},o,n)):e.style;t.push(r?Co((0,ho.internal_serializeStyles)(i),r):i)}}),t}return r?Co((0,ho.internal_serializeStyles)(i),r):i}var To={},Ro=p(Q),Mo=p(Ae),jo=b;Object.defineProperty(To,"__esModule",{value:!0}),To.alpha=qo,To.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Bo(e),a=Bo(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Ho({type:"rgb",values:s})},To.colorChannel=void 0;var Io=To.darken=Yo;To.decomposeColor=Bo,To.emphasize=Jo;var Do=To.getContrastRatio=function(e,t){const r=Ko(e),n=Ko(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};To.getLuminance=Ko,To.hexToRgb=Wo,To.hslToRgb=Go;var zo=To.lighten=Xo;To.private_safeAlpha=function(e,t,r){try{return qo(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},To.private_safeColorChannel=void 0,To.private_safeDarken=function(e,t,r){try{return Yo(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},To.private_safeEmphasize=function(e,t,r){try{return Jo(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},To.private_safeLighten=function(e,t,r){try{return Xo(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},To.recomposeColor=Ho,To.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Bo(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var Lo=jo(Ro),Fo=jo(Mo);function Vo(e,t=0,r=1){return"production"!==process.env.NODE_ENV&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,Fo.default)(e,t,r)}function Wo(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function Bo(e){if(e.type)return e;if("#"===e.charAt(0))return Bo(Wo(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Lo.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${n}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Lo.default)(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}const Uo=e=>{const t=Bo(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};To.colorChannel=Uo;function Ho(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Go(e){e=Bo(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),Ho({type:s,values:c})}function Ko(e){let t="hsl"===(e=Bo(e)).type||"hsla"===e.type?Bo(Go(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qo(e,t){return e=Bo(e),t=Vo(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ho(e)}function Yo(e,t){if(e=Bo(e),t=Vo(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ho(e)}function Xo(e,t){if(e=Bo(e),t=Vo(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ho(e)}function Jo(e,t=.15){return Ko(e)>.5?Yo(e,t):Xo(e,t)}To.private_safeColorChannel=(e,t)=>{try{return Uo(e)}catch(r){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};const Zo={black:"#000",white:"#fff"},Qo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ei="#f3e5f5",ti="#ce93d8",ri="#ba68c8",ni="#ab47bc",oi="#9c27b0",ii="#7b1fa2",ai="#e57373",si="#ef5350",ci="#f44336",li="#d32f2f",ui="#c62828",fi="#ffb74d",di="#ffa726",pi="#ff9800",mi="#f57c00",hi="#e65100",yi="#e3f2fd",gi="#90caf9",vi="#42a5f5",bi="#1976d2",wi="#1565c0",xi="#4fc3f7",Ei="#29b6f6",Si="#03a9f4",Oi="#0288d1",ki="#01579b",Ci="#81c784",_i="#66bb6a",$i="#4caf50",Ni="#388e3c",Pi="#2e7d32",Ai="#1b5e20",Ti=["mode","contrastThreshold","tonalOffset"],Ri={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Zo.white,default:Zo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Mi={text:{primary:Zo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Zo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ji(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=zo(e.main,o):"dark"===t&&(e.dark=Io(e.main,i)))}function Ii(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Te(e,Ti),i=e.primary||function(e="light"){return"dark"===e?{main:gi,light:yi,dark:vi}:{main:bi,light:vi,dark:wi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ti,light:ei,dark:ni}:{main:oi,light:ri,dark:ii}}(t),s=e.error||function(e="light"){return"dark"===e?{main:ci,light:ai,dark:li}:{main:li,light:si,dark:ui}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Ei,light:xi,dark:Oi}:{main:Oi,light:Si,dark:ki}}(t),l=e.success||function(e="light"){return"dark"===e?{main:_i,light:Ci,dark:Ni}:{main:Pi,light:$i,dark:Ai}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:di,light:fi,dark:mi}:{main:"#ed6c02",light:pi,dark:hi}}(t);function f(e){const t=Do(e,Mi.text.primary)>=r?Mi.text.primary:Ri.text.primary;if("production"!==process.env.NODE_ENV){const r=Do(e,t);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const d=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=x({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:J(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:J(12,t?` (${t})`:"",JSON.stringify(e.main)));return ji(e,"light",o,n),ji(e,"dark",i,n),e.contrastText||(e.contrastText=f(e.main)),e},p={dark:Mi,light:Ri};"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return O(x({common:x({},Zo),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:l,name:"success"}),grey:Qo,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},p[t]),o)}const Di=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const zi={textTransform:"uppercase"},Li='"Roboto", "Helvetica", "Arial", sans-serif';function Fi(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Li,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:u,pxToRem:f}=r,d=Te(r,Di);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,m=f||(e=>e/l*p+"rem"),h=(e,t,r,o,i)=>{return x({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Li?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},y={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,zi),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,zi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return O(x({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c},y),d,{clone:!1})}function Vi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Wi=["none",Vi(0,2,1,-1,0,1,1,0,0,1,3,0),Vi(0,3,1,-2,0,2,2,0,0,1,5,0),Vi(0,3,3,-2,0,3,4,0,0,1,8,0),Vi(0,2,4,-1,0,4,5,0,0,1,10,0),Vi(0,3,5,-1,0,5,8,0,0,1,14,0),Vi(0,3,5,-1,0,6,10,0,0,1,18,0),Vi(0,4,5,-2,0,7,10,1,0,2,16,1),Vi(0,5,5,-3,0,8,10,1,0,3,14,2),Vi(0,5,6,-3,0,9,12,1,0,3,16,2),Vi(0,6,6,-3,0,10,14,1,0,4,18,3),Vi(0,6,7,-4,0,11,15,1,0,4,20,3),Vi(0,7,8,-4,0,12,17,2,0,5,22,4),Vi(0,7,8,-4,0,13,19,2,0,5,24,4),Vi(0,7,9,-4,0,14,21,2,0,5,26,4),Vi(0,8,9,-5,0,15,22,2,0,6,28,5),Vi(0,8,10,-5,0,16,24,2,0,6,30,5),Vi(0,8,11,-5,0,17,26,2,0,6,32,5),Vi(0,9,11,-5,0,18,28,2,0,7,34,6),Vi(0,9,12,-6,0,19,29,2,0,7,36,6),Vi(0,10,13,-6,0,20,31,3,0,8,38,7),Vi(0,10,13,-6,0,21,33,3,0,8,40,7),Vi(0,10,14,-6,0,22,35,3,0,8,42,7),Vi(0,11,14,-7,0,23,36,3,0,9,44,8),Vi(0,11,15,-7,0,24,38,3,0,9,46,8)],Bi=["duration","easing","delay"],Ui={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Hi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gi(e){return`${Math.round(e)}ms`}function Ki(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function qi(e){const t=x({},Ui,e.easing),r=x({},Hi,e.duration);return x({getAutoHeightDuration:Ki,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n,s=Te(n,Bi);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,r=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),r(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof n&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Gi(o)} ${i} ${"string"==typeof a?a:Gi(a)}`).join(",")}},e,{easing:t,duration:r})}const Yi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Ji=function(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Te(e,Xi);if(e.vars&&void 0===e.generateCssVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":J(18));const s=Ii(n),c=ao(e);let l=O(c,{mixins:(u=c.breakpoints,f=r,x({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},f)),palette:s,shadows:Wi.slice(),typography:Fi(s,i),transitions:qi(o),zIndex:x({},Yi)});var u,f;if(l=O(l,a),l=t.reduce((e,t)=>O(e,t),l),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,r)=>{let n;for(n in t){const o=t[n];if(-1!==e.indexOf(n)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=Pe("",n);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${n}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[n]={}}}};Object.keys(l.components).forEach(e=>{const r=l.components[e].styleOverrides;r&&0===e.indexOf("Mui")&&t(r,e)})}return l.unstable_sxConfig=x({},to,null==a?void 0:a.unstable_sxConfig),l.unstable_sx=function(e){return no({sx:e,theme:this})},l}();const Zi=fo({themeId:"$$material",defaultTheme:Ji,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function Qi(e){return Pe("MuiSvgIcon",e)}!function(e,t,r="Mui"){const n={};t.forEach(t=>{n[t]=Pe(e,t,r)})}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ea=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ta=e=>{const{color:t,fontSize:r,classes:n}=e;return function(e,t,r){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}({root:["root","inherit"!==t&&`color${ue(t)}`,`fontSize${ue(r)}`]},Qi,n)},ra=Zi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ue(r.color)}`],t[`fontSize${ue(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,c,l,u,f,d,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(l=e.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"}[t.fontSize],color:null!=(f=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?f:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}}),na=e.forwardRef(function(t,r){const n=Ie({props:t,name:"MuiSvgIcon"});const{children:o,className:i,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24"}=n,h=Te(n,ea),y=e.isValidElement(o)&&"svg"===o.type,g=x({},n,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:y}),v={};d||(v.viewBox=m);const b=ta(g);return l(ra,x({as:s,className:Me(b.root,i),focusable:"false",color:f,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:r},v,h,y&&o.props,{ownerState:g,children:[y?o.props.children:o,p?c("title",{children:p}):null]}))});"production"!==process.env.NODE_ENV&&(na.propTypes={children:X.node,classes:X.object,className:X.string,color:X.oneOfType([X.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),X.string]),component:X.elementType,fontSize:X.oneOfType([X.oneOf(["inherit","large","medium","small"]),X.string]),htmlColor:X.string,inheritViewBox:X.bool,shapeRendering:X.string,sx:X.oneOfType([X.arrayOf(X.oneOfType([X.func,X.object,X.bool])),X.func,X.object]),titleAccess:X.string,viewBox:X.string}),na.muiName="SvgIcon";const oa={configure:e=>{"production"!==process.env.NODE_ENV&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),$e.configure(e)}};var ia,aa=Object.freeze({__proto__:null,capitalize:ue,createChainedFunction:function(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})},createSvgIcon:function(t,r){function n(e,n){return c(na,x({"data-testid":`${r}Icon`,ref:n},e,{children:t}))}return"production"!==process.env.NODE_ENV&&(n.displayName=`${r}Icon`),n.muiName=na.muiName,e.memo(e.forwardRef(n))},debounce:function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n},deprecatedPropType:function(e,t){return"production"===process.env.NODE_ENV?()=>null:(e,r,n,o,i)=>{const a=n||"<<anonymous>>",s=i||r;return void 0!==e[r]?new Error(`The ${o} \`${s}\` of \`${a}\` is deprecated. ${t}`):null}},isMuiElement:function(t,r){var n,o;return e.isValidElement(t)&&-1!==r.indexOf(null!=(n=t.type.muiName)?n:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:de,ownerWindow:function(e){return de(e).defaultView||window},requirePropFactory:function(e,t){if("production"===process.env.NODE_ENV)return()=>null;const r=t?x({},t.propTypes):null;return t=>(n,o,i,a,s,...c)=>{const l=s||o,u=null==r?void 0:r[l];if(u){const e=u(n,o,i,a,s,...c);if(e)return e}return void 0===n[o]||n[t]?null:new Error(`The prop \`${l}\` of \`${e}\` can only be used together with the \`${t}\` prop.`)}},setRef:pe,unstable_ClassNameGenerator:oa,unstable_useEnhancedEffect:me,unstable_useId:function(t){if(void 0!==ye){const e=ye();return null!=t?t:e}return function(t){const[r,n]=e.useState(t),o=t||r;return e.useEffect(()=>{null==r&&(he+=1,n(`mui-${he}`))},[r]),o}(t)},unsupportedProp:function(e,t,r,n,o){if("production"===process.env.NODE_ENV)return null;const i=o||t;return void 0!==e[t]?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null},useControlled:function({controlled:t,default:r,name:n,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(r),c=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect(()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))},[o,n,t]);const{current:a}=e.useRef(r);e.useEffect(()=>{i||Object.is(a,r)||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"))},[JSON.stringify(r)])}return[c,e.useCallback(e=>{i||s(e)},[])]},useEventCallback:function(t){const r=e.useRef(t);return me(()=>{r.current=t}),e.useRef((...e)=>(0,r.current)(...e)).current},useForkRef:function(...t){return e.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{pe(t,e)})},t)},useIsFocusVisible:function(){const t=e.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ee,!0),t.addEventListener("mousedown",Se,!0),t.addEventListener("pointerdown",Se,!0),t.addEventListener("touchstart",Se,!0),t.addEventListener("visibilitychange",Oe,!0))},[]),r=e.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!ke(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(be=!0,we.start(100,()=>{be=!1}),r.current=!1,!0)},ref:t}}}),sa=p(aa);function ca(){return ia||(ia=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=sa}(w)),w}var la=b;Object.defineProperty(g,"__esModule",{value:!0});var ua=g.default=void 0,fa=la(ca()),da=s;ua=g.default=(0,fa.default)((0,da.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"}),"Close");var pa={},ma=b;Object.defineProperty(pa,"__esModule",{value:!0});var ha=pa.default=void 0,ya=ma(ca()),ga=s;function va(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function ba(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function wa(...e){return t=>{let r=!1;const n=e.map(e=>{const n=ba(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():ba(e[t],null)}}}}function xa(...t){return e.useCallback(wa(...t),t)}function Ea(t,r=[]){let n=[];const o=()=>{const r=n.map(t=>e.createContext(t));return function(n){const o=n?.[t]||r;return e.useMemo(()=>({[`__scope${t}`]:{...n,[t]:o}}),[n,o])}};return o.scopeName=t,[function(r,o){const i=e.createContext(o),a=n.length;n=[...n,o];const s=r=>{const{scope:n,children:o,...s}=r,l=n?.[t]?.[a]||i,u=e.useMemo(()=>s,Object.values(s));return c(l.Provider,{value:u,children:o})};return s.displayName=r+"Provider",[s,function(n,s){const c=s?.[t]?.[a]||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},Sa(o,...r)]}function Sa(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=n.reduce((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]}),{});return e.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}function Oa(t){const r=ka(t),n=e.forwardRef((t,n)=>{const{children:o,...i}=t,a=e.Children.toArray(o),s=a.find(_a);if(s){const t=s.props.children,o=a.map(r=>r===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:r);return c(r,{...i,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return c(r,{...i,ref:n,children:o})});return n.displayName=`${t}.Slot`,n}function ka(t){const r=e.forwardRef((t,r)=>{const{children:n,...o}=t;if(e.isValidElement(n)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,n.props);return n.type!==e.Fragment&&(i.ref=r?wa(r,t):t),e.cloneElement(n,i)}return e.Children.count(n)>1?e.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}ha=pa.default=(0,ya.default)((0,ga.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"}),"Search");var Ca=Symbol("radix.slottable");function _a(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Ca}var $a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,r)=>{const n=Oa(`Primitive.${r}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?n:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),c(a,{...i,ref:t})});return o.displayName=`Primitive.${r}`,{...t,[r]:o}},{});function Na(t){const r=e.useRef(t);return e.useEffect(()=>{r.current=t}),e.useMemo(()=>(...e)=>r.current?.(...e),[])}var Pa,Aa="dismissableLayer.update",Ta="dismissableLayer.pointerDownOutside",Ra="dismissableLayer.focusOutside",Ma=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ja=e.forwardRef((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=t,f=e.useContext(Ma),[d,p]=e.useState(null),m=d?.ownerDocument??globalThis?.document,[,h]=e.useState({}),y=xa(r,e=>p(e)),g=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),w=d?g.indexOf(d):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,S=function(t,r=globalThis?.document){const n=Na(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){za(Ta,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",i.current),i.current=t,r.addEventListener("click",i.current,{once:!0})):t()}else r.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",i.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,r=[...f.branches].some(e=>e.contains(t));E&&!r&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},m),O=function(t,r=globalThis?.document){const n=Na(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){za(Ra,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},m);return function(t,r=globalThis?.document){const n=Na(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})},[n,r])}(e=>{w===f.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},m),e.useEffect(()=>{if(d)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(Pa=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Da(),()=>{n&&1===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Pa)}},[d,m,n,f]),e.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Da())},[d,f]),e.useEffect(()=>{const e=()=>h({});return document.addEventListener(Aa,e),()=>document.removeEventListener(Aa,e)},[]),c($a.div,{...u,ref:y,style:{pointerEvents:x?E?"auto":"none":void 0,...t.style},onFocusCapture:va(t.onFocusCapture,O.onFocusCapture),onBlurCapture:va(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:va(t.onPointerDownCapture,S.onPointerDownCapture)})});ja.displayName="DismissableLayer";var Ia=e.forwardRef((t,r)=>{const n=e.useContext(Ma),o=e.useRef(null),i=xa(r,o);return e.useEffect(()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),c($a.div,{...t,ref:i})});function Da(){const e=new CustomEvent(Aa);document.dispatchEvent(e)}function za(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}Ia.displayName="DismissableLayerBranch";var La=0;function Fa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Va="focusScope.autoFocusOnMount",Wa="focusScope.autoFocusOnUnmount",Ba={bubbles:!1,cancelable:!0},Ua=e.forwardRef((t,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[l,u]=e.useState(null),f=Na(i),d=Na(a),p=e.useRef(null),m=xa(r,e=>u(e)),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:qa(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||qa(p.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&qa(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,l,h.paused]),e.useEffect(()=>{if(l){Ya.add(h);const t=document.activeElement;if(!l.contains(t)){const r=new CustomEvent(Va,Ba);l.addEventListener(Va,f),l.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(qa(n,{select:t}),document.activeElement!==r)return}((e=Ha(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&qa(l))}return()=>{l.removeEventListener(Va,f),setTimeout(()=>{const e=new CustomEvent(Wa,Ba);l.addEventListener(Wa,d),l.dispatchEvent(e),e.defaultPrevented||qa(t??document.body,{select:!0}),l.removeEventListener(Wa,d),Ya.remove(h)},0)}}var e},[l,f,d,h]);const y=e.useCallback(e=>{if(!n&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,i]=function(e){const t=Ha(e),r=Ga(t,e),n=Ga(t.reverse(),e);return[r,n]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&qa(i,{select:!0})):(e.preventDefault(),n&&qa(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,h.paused]);return c($a.div,{tabIndex:-1,...s,ref:m,onKeyDown:y})});function Ha(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ga(e,t){for(const r of e)if(!Ka(r,{upTo:t}))return r}function Ka(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function qa(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Ua.displayName="FocusScope";var Ya=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Xa(e,t),e.unshift(t)},remove(t){e=Xa(e,t),e[0]?.resume()}}}();function Xa(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var Ja=globalThis?.document?e.useLayoutEffect:()=>{},Za=e[" useId ".trim().toString()]||(()=>{}),Qa=0;function es(t){const[r,n]=e.useState(Za());return Ja(()=>{n(e=>e??String(Qa++))},[t]),t||(r?`radix-${r}`:"")}const ts=["top","right","bottom","left"],rs=Math.min,ns=Math.max,os=Math.round,is=Math.floor,as=e=>({x:e,y:e}),ss={left:"right",right:"left",bottom:"top",top:"bottom"};function cs(e,t,r){return ns(e,rs(t,r))}function ls(e,t){return"function"==typeof e?e(t):e}function us(e){return e.split("-")[0]}function fs(e){return e.split("-")[1]}function ds(e){return"x"===e?"y":"x"}function ps(e){return"y"===e?"height":"width"}function ms(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function hs(e){return ds(ms(e))}function ys(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const gs=["left","right"],vs=["right","left"],bs=["top","bottom"],ws=["bottom","top"];function xs(e,t,r,n){const o=fs(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?vs:gs:t?gs:vs;case"left":case"right":return t?bs:ws;default:return[]}}(us(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ys)))),i}function Es(e){const t=us(e);return ss[t]+e.slice(t.length)}function Ss(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Os(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ks(e,t,r){let{reference:n,floating:o}=e;const i=ms(t),a=hs(t),s=ps(a),c=us(t),l="y"===i,u=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[s]/2-o[s]/2;let p;switch(c){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(fs(t)){case"start":p[a]-=d*(r&&l?-1:1);break;case"end":p[a]+=d*(r&&l?-1:1)}return p}async function Cs(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ls(t,e),m=Ss(p),h=s[d?"floating"===f?"reference":"floating":f],y=Os(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Os(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:c}):g);return{top:(y.top-w.top+m.top)/b.y,bottom:(w.bottom-y.bottom+m.bottom)/b.y,left:(y.left-w.left+m.left)/b.x,right:(w.right-y.right+m.right)/b.x}}function _s(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $s(e){return ts.some(t=>e[t]>=0)}const Ns=new Set(["left","top"]);function Ps(){return"undefined"!=typeof window}function As(e){return Ms(e)?(e.nodeName||"").toLowerCase():"#document"}function Ts(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rs(e){var t;return null==(t=(Ms(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ms(e){return!!Ps()&&(e instanceof Node||e instanceof Ts(e).Node)}function js(e){return!!Ps()&&(e instanceof Element||e instanceof Ts(e).Element)}function Is(e){return!!Ps()&&(e instanceof HTMLElement||e instanceof Ts(e).HTMLElement)}function Ds(e){return!(!Ps()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ts(e).ShadowRoot)}function zs(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=qs(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function Ls(e){return/^(table|td|th)$/.test(As(e))}function Fs(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Vs=/transform|translate|scale|rotate|perspective|filter/,Ws=/paint|layout|strict|content/,Bs=e=>!!e&&"none"!==e;let Us;function Hs(e){const t=js(e)?qs(e):e;return Bs(t.transform)||Bs(t.translate)||Bs(t.scale)||Bs(t.rotate)||Bs(t.perspective)||!Gs()&&(Bs(t.backdropFilter)||Bs(t.filter))||Vs.test(t.willChange||"")||Ws.test(t.contain||"")}function Gs(){return null==Us&&(Us="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Us}function Ks(e){return/^(html|body|#document)$/.test(As(e))}function qs(e){return Ts(e).getComputedStyle(e)}function Ys(e){return js(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xs(e){if("html"===As(e))return e;const t=e.assignedSlot||e.parentNode||Ds(e)&&e.host||Rs(e);return Ds(t)?t.host:t}function Js(e){const t=Xs(e);return Ks(t)?e.ownerDocument?e.ownerDocument.body:e.body:Is(t)&&zs(t)?t:Js(t)}function Zs(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=Js(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Ts(o);if(i){const e=Qs(a);return t.concat(a,a.visualViewport||[],zs(o)?o:[],e&&r?Zs(e):[])}return t.concat(o,Zs(o,[],r))}function Qs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ec(e){const t=qs(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Is(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=os(r)!==i||os(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function tc(e){return js(e)?e:e.contextElement}function rc(e){const t=tc(e);if(!Is(t))return as(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ec(t);let a=(i?os(r.width):r.width)/n,s=(i?os(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const nc=as(0);function oc(e){const t=Ts(e);return Gs()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:nc}function ic(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=tc(e);let a=as(1);t&&(n?js(n)&&(a=rc(n)):a=rc(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Ts(e))&&t}(i,r,n)?oc(i):as(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=Ts(i),t=n&&js(n)?Ts(n):n;let r=e,o=Qs(r);for(;o&&n&&t!==r;){const e=rc(o),t=o.getBoundingClientRect(),n=qs(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=i,l+=a,r=Ts(o),o=Qs(r)}}return Os({width:u,height:f,x:c,y:l})}function ac(e,t){const r=Ys(e).scrollLeft;return t?t.left+r:ic(Rs(e)).left+r}function sc(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ac(e,r),y:r.top+t.scrollTop}}function cc(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Ts(e),n=Rs(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Gs();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const l=ac(n);if(l<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else l<=25&&(i+=l);return{width:i,height:a,x:s,y:c}}(e,r);else if("document"===t)n=function(e){const t=Rs(e),r=Ys(e),n=e.ownerDocument.body,o=ns(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ns(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+ac(e);const s=-r.scrollTop;return"rtl"===qs(n).direction&&(a+=ns(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Rs(e));else if(js(t))n=function(e,t){const r=ic(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Is(e)?rc(e):as(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=oc(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Os(n)}function lc(e,t){const r=Xs(e);return!(r===t||!js(r)||Ks(r))&&("fixed"===qs(r).position||lc(r,t))}function uc(e,t,r){const n=Is(t),o=Rs(t),i="fixed"===r,a=ic(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=as(0);function l(){c.x=ac(o)}if(n||!n&&!i)if(("body"!==As(t)||zs(o))&&(s=Ys(t)),n){const e=ic(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!n&&o&&l();const u=!o||n||i?as(0):sc(o,s);return{x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function fc(e){return"static"===qs(e).position}function dc(e,t){if(!Is(e)||"fixed"===qs(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Rs(e)===r&&(r=r.ownerDocument.body),r}function pc(e,t){const r=Ts(e);if(Fs(e))return r;if(!Is(e)){let t=Xs(e);for(;t&&!Ks(t);){if(js(t)&&!fc(t))return t;t=Xs(t)}return r}let n=dc(e,t);for(;n&&Ls(n)&&fc(n);)n=dc(n,t);return n&&Ks(n)&&fc(n)&&!Hs(n)?r:n||function(e){let t=Xs(e);for(;Is(t)&&!Ks(t);){if(Hs(t))return t;if(Fs(t))return null;t=Xs(t)}return null}(e)||r}const mc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=Rs(n),s=!!t&&Fs(t.floating);if(n===a||s&&i)return r;let c={scrollLeft:0,scrollTop:0},l=as(1);const u=as(0),f=Is(n);if((f||!f&&!i)&&(("body"!==As(n)||zs(a))&&(c=Ys(n)),f)){const e=ic(n);l=rc(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const d=!a||f||i?as(0):sc(a,c);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:r.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:Rs,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i="clippingAncestors"===r?Fs(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Zs(e,[],!1).filter(e=>js(e)&&"body"!==As(e)),o=null;const i="fixed"===qs(e).position;let a=i?Xs(e):e;for(;js(a)&&!Ks(a);){const t=qs(a),r=Hs(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||zs(a)&&!r&&lc(e,a))?n=n.filter(e=>e!==a):o=t,a=Xs(a)}return t.set(e,n),n}(t,this._c):[].concat(r),a=[...i,n],s=cc(t,a[0],o);let c=s.top,l=s.right,u=s.bottom,f=s.left;for(let e=1;e<a.length;e++){const r=cc(t,a[e],o);c=ns(r.top,c),l=rs(r.right,l),u=rs(r.bottom,u),f=ns(r.left,f)}return{width:l-f,height:u-c,x:f,y:c}},getOffsetParent:pc,getElementRects:async function(e){const t=this.getOffsetParent||pc,r=this.getDimensions,n=await r(e.floating);return{reference:uc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=ec(e);return{width:t,height:r}},getScale:rc,isElement:js,isRTL:function(e){return"rtl"===qs(e).direction}};function hc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yc(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,l=tc(e),u=o||i?[...l?Zs(l):[],...t?Zs(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});const f=l&&s?function(e,t){let r,n=null;const o=Rs(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=l;if(s||t(),!d||!p)return;const m={rootMargin:-is(f)+"px "+-is(o.clientWidth-(u+d))+"px "+-is(o.clientHeight-(f+p))+"px "+-is(u)+"px",threshold:ns(0,rs(1,c))||1};let h=!0;function y(t){const n=t[0].intersectionRatio;if(n!==c){if(!h)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||hc(l,e.getBoundingClientRect())||a(),h=!1}try{n=new IntersectionObserver(y,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(y,m)}n.observe(e)}(!0),i}(l,r):null;let d,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),l&&!c&&m.observe(l),t&&m.observe(t));let h=c?ic(e):null;return c&&function t(){const n=ic(e);h&&!hc(h,n)&&r();h=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(d)}}const gc=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=us(r),s=fs(r),c="y"===ms(r),l=Ns.has(a)?-1:1,u=i&&c?-1:1,f=ls(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},vc=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=ls(e,t),u={x:r,y:n},f=await i.detectOverflow(t,l),d=ms(us(o)),p=ds(d);let m=u[p],h=u[d];if(a){const e="y"===p?"bottom":"right";m=cs(m+f["y"===p?"top":"left"],m,m-f[e])}if(s){const e="y"===d?"bottom":"right";h=cs(h+f["y"===d?"top":"left"],h,h-f[e])}const y=c.fn({...t,[p]:m,[d]:h});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[p]:a,[d]:s}}}}}},bc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=ls(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const g=us(o),v=ms(s),b=us(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=d||(b||!h?[Es(s)]:function(e){const t=Es(e);return[ys(e),t,ys(t)]}(s)),E="none"!==m;!d&&E&&x.push(...xs(s,h,m,w));const S=[s,...x],O=await c.detectOverflow(t,y),k=[];let C=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&k.push(O[g]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=fs(e),o=hs(e),i=ps(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Es(a)),[a,Es(a)]}(o,a,w);k.push(O[e[0]],O[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every(e=>e<=0)){var _,$;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=S[e];if(t){if(!("alignment"===f&&v!==ms(t))||C.every(e=>ms(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:C},reset:{placement:t}}}let r=null==($=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:$.placement;if(!r)switch(p){case"bestFit":{var N;const e=null==(N=C.filter(e=>{if(E){const t=ms(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:N[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},wc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...l}=ls(e,t),u=await a.detectOverflow(t,l),f=us(o),d=fs(o),p="y"===ms(o),{width:m,height:h}=i.floating;let y,g;"top"===f||"bottom"===f?(y=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,y="end"===d?"top":"bottom");const v=h-u.top-u.bottom,b=m-u.left-u.right,w=rs(h-u[y],v),x=rs(m-u[g],b),E=!t.middlewareData.shift;let S=w,O=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(O=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(S=v),E&&!d){const e=ns(u.left,0),t=ns(u.right,0),r=ns(u.top,0),n=ns(u.bottom,0);p?O=m-2*(0!==e||0!==t?e+t:ns(u.left,u.right)):S=h-2*(0!==r||0!==n?r+n:ns(u.top,u.bottom))}await c({...t,availableWidth:O,availableHeight:S});const k=await a.getDimensions(s.floating);return m!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}},xc=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=ls(e,t);switch(o){case"referenceHidden":{const e=_s(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:$s(e)}}}case"escaped":{const e=_s(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:$s(e)}}}default:return{}}}}},Ec=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ls(e,t)||{};if(null==l)return{};const f=Ss(u),d={x:r,y:n},p=hs(o),m=ps(p),h=await a.getDimensions(l),y="y"===p,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=E?E[b]:0;S&&await(null==a.isElement?void 0:a.isElement(E))||(S=s.floating[b]||i.floating[m]);const O=w/2-x/2,k=S/2-h[m]/2-1,C=rs(f[g],k),_=rs(f[v],k),$=C,N=S-h[m]-_,P=S/2-h[m]/2+O,A=cs($,P,N),T=!c.arrow&&null!=fs(o)&&P!==A&&i.reference[m]/2-(P<$?C:_)-h[m]/2<0,R=T?P<$?P-$:P-N:0;return{[p]:d[p]+R,data:{[p]:A,centerOffset:P-A-R,...T&&{alignmentOffset:R}},reset:T}}}),Sc=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ls(e,t),u={x:r,y:n},f=ms(o),d=ds(f);let p=u[d],m=u[f];const h=ls(s,t),y="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+y.mainAxis,r=i.reference[d]+i.reference[e]-y.mainAxis;p<t?p=t:p>r&&(p=r)}if(l){var g,v;const e="y"===d?"width":"height",t=Ns.has(us(o)),r=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:y.crossAxis),n=i.reference[f]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[f])||0)-(t?y.crossAxis:0);m<r?m=r:m>n&&(m=n)}return{[d]:p,[f]:m}}}},Oc=(e,t,r)=>{const n=new Map,o={platform:mc,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:Cs},c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=ks(l,n,c),d=n,p=0;const m={};for(let r=0;r<i.length;r++){const h=i[r];if(!h)continue;const{name:y,fn:g}=h,{x:v,y:b,data:w,reset:x}=await g({x:u,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,f=null!=b?b:f,m[y]={...m[y],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(l=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=ks(l,d,c))),r=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var kc="undefined"!=typeof document?o:function(){};function Cc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Cc(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Cc(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function _c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $c(e,t){const r=_c(e);return Math.round(t*r)/r}function Nc(t){const r=e.useRef(t);return kc(()=>{r.current=t}),r}const Pc=(e,t)=>{const r=gc(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ac=(e,t)=>{const r=vc(e);return{name:r.name,fn:r.fn,options:[e,t]}},Tc=(e,t)=>({fn:Sc(e).fn,options:[e,t]}),Rc=(e,t)=>{const r=bc(e);return{name:r.name,fn:r.fn,options:[e,t]}},Mc=(e,t)=>{const r=wc(e);return{name:r.name,fn:r.fn,options:[e,t]}},jc=(e,t)=>{const r=xc(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ic=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?Ec({element:r.current,padding:n}).fn(t):{}:r?Ec({element:r,padding:n}).fn(t):{};var o}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Dc=e.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return c($a.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c("polygon",{points:"0,0 30,0 15,10"})})});Dc.displayName="Arrow";var zc=Dc;var Lc="Popper",[Fc,Vc]=Ea(Lc),[Wc,Bc]=Fc(Lc),Uc=t=>{const{__scopePopper:r,children:n}=t,[o,i]=e.useState(null);return c(Wc,{scope:r,anchor:o,onAnchorChange:i,children:n})};Uc.displayName=Lc;var Hc="PopperAnchor",Gc=e.forwardRef((t,r)=>{const{__scopePopper:n,virtualRef:o,...i}=t,a=Bc(Hc,n),s=e.useRef(null),l=xa(r,s),u=e.useRef(null);return e.useEffect(()=>{const e=u.current;u.current=o?.current||s.current,e!==u.current&&a.onAnchorChange(u.current)}),o?null:c($a.div,{...i,ref:l})});Gc.displayName=Hc;var Kc="PopperContent",[qc,Yc]=Fc(Kc),Xc=e.forwardRef((t,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:g,...v}=t,b=Bc(Kc,n),[w,x]=e.useState(null),E=xa(r,e=>x(e)),[S,O]=e.useState(null),k=function(t){const[r,n]=e.useState(void 0);return Ja(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;n({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),r}(S),C=k?.width??0,_=k?.height??0,$=o+("center"!==a?"-"+a:""),N="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},P=Array.isArray(d)?d:[d],A=P.length>0,T={padding:N,boundary:P.filter(el),altBoundary:A},{refs:R,floatingStyles:M,placement:j,isPositioned:I,middlewareData:D}=function(t){void 0===t&&(t={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:f}=t,[d,p]=e.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(o);Cc(m,o)||h(o);const[y,g]=e.useState(null),[v,b]=e.useState(null),w=e.useCallback(e=>{e!==O.current&&(O.current=e,g(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),E=a||y,S=s||v,O=e.useRef(null),k=e.useRef(null),C=e.useRef(d),_=null!=l,$=Nc(l),N=Nc(i),P=Nc(f),A=e.useCallback(()=>{if(!O.current||!k.current)return;const e={placement:r,strategy:n,middleware:m};N.current&&(e.platform=N.current),Oc(O.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};T.current&&!Cc(C.current,t)&&(C.current=t,u.flushSync(()=>{p(t)}))})},[m,r,n,N,P]);kc(()=>{!1===f&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[f]);const T=e.useRef(!1);kc(()=>(T.current=!0,()=>{T.current=!1}),[]),kc(()=>{if(E&&(O.current=E),S&&(k.current=S),E&&S){if($.current)return $.current(E,S,A);A()}},[E,S,A,$,_]);const R=e.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:E,floating:S}),[E,S]),j=e.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=$c(M.floating,d.x),r=$c(M.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",..._c(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,c,M.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:A,refs:R,elements:M,floatingStyles:j}),[d,A,R,M,j])}({strategy:"fixed",placement:$,whileElementsMounted:(...e)=>yc(...e,{animationFrame:"always"===y}),elements:{reference:b.anchor},middleware:[Pc({mainAxis:i+_,alignmentAxis:s}),f&&Ac({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?Tc():void 0,...T}),f&&Rc({...T}),Mc({...T,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),S&&Ic({element:S,padding:l}),tl({arrowWidth:C,arrowHeight:_}),h&&jc({strategy:"referenceHidden",...T})]}),[z,L]=rl(j),F=Na(g);Ja(()=>{I&&F?.()},[I,F]);const V=D.arrow?.x,W=D.arrow?.y,B=0!==D.arrow?.centerOffset,[U,H]=e.useState();return Ja(()=>{w&&H(window.getComputedStyle(w).zIndex)},[w]),c("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:I?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c(qc,{scope:n,placedSide:z,onArrowChange:O,arrowX:V,arrowY:W,shouldHideArrow:B,children:c($a.div,{"data-side":z,"data-align":L,...v,ref:E,style:{...v.style,animation:I?void 0:"none"}})})})});Xc.displayName=Kc;var Jc="PopperArrow",Zc={top:"bottom",right:"left",bottom:"top",left:"right"},Qc=e.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=Yc(Jc,r),i=Zc[o.placedSide];return c("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:c(zc,{...n,ref:t,style:{...n.style,display:"block"}})})});function el(e){return null!==e}Qc.displayName=Jc;var tl=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[c,l]=rl(r),u={start:"0%",center:"50%",end:"100%"}[l],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===c?(p=i?u:`${f}px`,m=-s+"px"):"top"===c?(p=i?u:`${f}px`,m=`${n.floating.height+s}px`):"right"===c?(p=-s+"px",m=i?u:`${d}px`):"left"===c&&(p=`${n.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:p,y:m}}}});function rl(e){const[t,r="center"]=e.split("-");return[t,r]}var nl=Uc,ol=Gc,il=Xc,al=Qc,sl=e.forwardRef((t,r)=>{const{container:n,...o}=t,[i,a]=e.useState(!1);Ja(()=>a(!0),[]);const s=n||i&&globalThis?.document?.body;return s?f.createPortal(c($a.div,{...o,ref:r}),s):null});sl.displayName="Portal";var cl=t=>{const{present:r,children:n}=t,o=function(t){const[r,n]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[c,l]=function(t,r){return e.useReducer((e,t)=>r[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=ll(o.current);a.current="mounted"===c?e:"none"},[c]),Ja(()=>{const e=o.current,r=i.current;if(r!==t){const n=a.current,o=ll(e);if(t)l("MOUNT");else if("none"===o||"none"===e?.display)l("UNMOUNT");else{l(r&&n!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,l]),Ja(()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const a=ll(o.current).includes(CSS.escape(n.animationName));if(n.target===r&&a&&(l("ANIMATION_END"),!i.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},s=e=>{e.target===r&&(a.current=ll(o.current))};return r.addEventListener("animationstart",s),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",s),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}l("ANIMATION_END")},[r,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}(r),i="function"==typeof n?n({present:o.isPresent}):e.Children.only(n),a=xa(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?e.cloneElement(i,{ref:a}):null};function ll(e){return e?.animationName||"none"}cl.displayName="Presence";var ul=e[" useInsertionEffect ".trim().toString()]||Ja;function fl({prop:t,defaultProp:r,onChange:n=()=>{},caller:o}){const[i,a,s]=function({defaultProp:t,onChange:r}){const[n,o]=e.useState(t),i=e.useRef(n),a=e.useRef(r);return ul(()=>{a.current=r},[r]),e.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,o,a]}({defaultProp:r,onChange:n}),c=void 0!==t,l=c?t:i;{const r=e.useRef(void 0!==t);e.useEffect(()=>{const e=r.current;if(e!==c){const t=e?"controlled":"uncontrolled",r=c?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${r}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=c},[c,o])}const u=e.useCallback(e=>{if(c){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&s.current?.(r)}else a(e)},[c,t,a,s]);return[l,u]}var dl=new WeakMap,pl=new WeakMap,ml={},hl=0,yl=function(e){return e&&(e.host||yl(e.parentNode))},gl=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=yl(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);ml[r]||(ml[r]=new WeakMap);var i=ml[r],a=[],s=new Set,c=new Set(o),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,c=(dl.get(e)||0)+1,l=(i.get(e)||0)+1;dl.set(e,c),i.set(e,l),a.push(e),1===c&&o&&pl.set(e,!0),1===l&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),hl++,function(){a.forEach(function(e){var t=dl.get(e)-1,o=i.get(e)-1;dl.set(e,t),i.set(e,o),t||(pl.has(e)||e.removeAttribute(n),pl.delete(e)),o||e.removeAttribute(r)}),--hl||(dl=new WeakMap,dl=new WeakMap,pl=new WeakMap,ml={})}},vl=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),gl(n,o,r,"aria-hidden")):function(){return null}},bl=function(){return bl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bl.apply(this,arguments)};function wl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}"function"==typeof SuppressedError&&SuppressedError;var xl="right-scroll-bar-position",El="width-before-scroll-bar";function Sl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ol="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,kl=new WeakMap;function Cl(e,t){var r,n,o,a=(r=null,n=function(t){return e.forEach(function(e){return Sl(e,t)})},(o=i(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=n,o.facade);return Ol(function(){var t=kl.get(a);if(t){var r=new Set(t),n=new Set(e),o=a.current;r.forEach(function(e){n.has(e)||Sl(e,null)}),n.forEach(function(e){r.has(e)||Sl(e,o)})}kl.set(a,e)},[e]),a}function _l(e){return e}var $l=function(t){var r=t.sideCar,n=wl(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,bl({},n))};$l.isSideCarExport=!0;var Nl=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=_l);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}(null);return t.options=bl({async:!0,ssr:!1},e),t}(),Pl=function(){},Al=e.forwardRef(function(t,r){var n=e.useRef(null),o=e.useState({onScrollCapture:Pl,onWheelCapture:Pl,onTouchMoveCapture:Pl}),i=o[0],a=o[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,f=t.enabled,d=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,y=t.inert,g=t.allowPinchZoom,v=t.as,b=void 0===v?"div":v,w=t.gapMode,x=wl(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,S=Cl([n,r]),O=bl(bl({},x),i);return e.createElement(e.Fragment,null,f&&e.createElement(E,{sideCar:Nl,removeScrollBar:u,shards:d,noRelative:m,noIsolation:h,inert:y,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:w}),s?e.cloneElement(e.Children.only(c),bl(bl({},O),{ref:S})):e.createElement(b,bl({},O,{className:l,ref:S}),c))});Al.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Al.classNames={fullWidth:El,zeroRight:xl};function Tl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Rl=function(){var e=0,t=null;return{add:function(r){var n;0==e&&(t=Tl())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),n=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(n)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ml=function(){var t,r=(t=Rl(),function(r,n){e.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&n])});return function(e){var t=e.styles,n=e.dynamic;return r(t,n),null}},jl={left:0,top:0,right:0,gap:0},Il=function(e){return parseInt(e||"",10)||0},Dl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return jl;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Il(r),Il(n),Il(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},zl=Ml(),Ll="data-scroll-locked",Fl=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(Ll,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(xl," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(El," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(xl," .").concat(xl," {\n right: 0 ").concat(n,";\n }\n \n .").concat(El," .").concat(El," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(Ll,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Vl=function(){var e=parseInt(document.body.getAttribute(Ll)||"0",10);return isFinite(e)?e:0},Wl=function(t){var r=t.noRelative,n=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(Ll,(Vl()+1).toString()),function(){var e=Vl()-1;e<=0?document.body.removeAttribute(Ll):document.body.setAttribute(Ll,e.toString())}},[]);var a=e.useMemo(function(){return Dl(i)},[i]);return e.createElement(zl,{styles:Fl(a,!r,i,n?"":"!important")})},Bl=!1;if("undefined"!=typeof window)try{var Ul=Object.defineProperty({},"passive",{get:function(){return Bl=!0,!0}});window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch(e){Bl=!1}var Hl=!!Bl&&{passive:!1},Gl=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},Kl=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ql(e,n)){var o=Yl(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ql=function(e,t){return"v"===e?function(e){return Gl(e,"overflowY")}(t):function(e){return Gl(e,"overflowX")}(t)},Yl=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Xl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jl=function(e){return[e.deltaX,e.deltaY]},Zl=function(e){return e&&"current"in e?e.current:e},Ql=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},eu=0,tu=[];function ru(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var nu,ou=(nu=function(t){var r=e.useRef([]),n=e.useRef([0,0]),o=e.useRef(),i=e.useState(eu++)[0],a=e.useState(Ml)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(Zl),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,i=Xl(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Kl(f,u);if(!m)return!0;if(m?r=f:(r="v"===f?"h":"v",m=Kl(f,u)),!m)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=r),!r)return!0;var h=o.current||r;return function(e,t,r,n){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*n,a=r.target,s=t.contains(a),c=!1,l=i>0,u=0,f=0;do{if(!a)break;var d=Yl(e,a),p=d[0],m=d[1]-d[2]-o*p;(p||m)&&ql(e,a)&&(u+=m,f+=p);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(l&&Math.abs(u)<1||!l&&Math.abs(f)<1)&&(c=!0),c}(h,t,e,"h"===h?c:l)},[]),l=e.useCallback(function(e){var t=e;if(tu.length&&tu[tu.length-1]===a){var n="deltaY"in t?Jl(t):Xl(t),o=r.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(r=e.delta,o=n,r[0]===o[0]&&r[1]===o[1]);var r,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(Zl).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?c(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,n,o){var i={name:e,delta:t,target:n,should:o,shadowParent:ru(n)};r.current.push(i),setTimeout(function(){r.current=r.current.filter(function(e){return e!==i})},1)},[]),f=e.useCallback(function(e){n.current=Xl(e),o.current=void 0},[]),d=e.useCallback(function(e){u(e.type,Jl(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Xl(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return tu.push(a),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Hl),document.addEventListener("touchmove",l,Hl),document.addEventListener("touchstart",f,Hl),function(){tu=tu.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,Hl),document.removeEventListener("touchmove",l,Hl),document.removeEventListener("touchstart",f,Hl)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:Ql(i)}):null,m?e.createElement(Wl,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},Nl.useMedium(nu),$l),iu=e.forwardRef(function(t,r){return e.createElement(Al,bl({},t,{ref:r,sideCar:ou}))});iu.classNames=Al.classNames;var au="Popover",[su]=Ea(au,[Vc]),cu=Vc(),[lu,uu]=su(au),fu=t=>{const{__scopePopover:r,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=t,l=cu(r),u=e.useRef(null),[f,d]=e.useState(!1),[p,m]=fl({prop:o,defaultProp:i??!1,onChange:a,caller:au});return c(nl,{...l,children:c(lu,{scope:r,contentId:es(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:s,children:n})})};fu.displayName=au;var du="PopoverAnchor";e.forwardRef((t,r)=>{const{__scopePopover:n,...o}=t,i=uu(du,n),a=cu(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return e.useEffect(()=>(s(),()=>l()),[s,l]),c(ol,{...a,...o,ref:r})}).displayName=du;var pu="PopoverTrigger",mu=e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=uu(pu,r),i=cu(r),a=xa(t,o.triggerRef),s=c($a.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cu(o.open),...n,ref:a,onClick:va(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:c(ol,{asChild:!0,...i,children:s})});mu.displayName=pu;var hu="PopoverPortal",[yu,gu]=su(hu,{forceMount:void 0}),vu=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=uu(hu,t);return c(yu,{scope:t,forceMount:r,children:c(cl,{present:r||i.open,children:c(sl,{asChild:!0,container:o,children:n})})})};vu.displayName=hu;var bu="PopoverContent",wu=e.forwardRef((e,t)=>{const r=gu(bu,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=uu(bu,e.__scopePopover);return c(cl,{present:n||i.open,children:i.modal?c(Eu,{...o,ref:t}):c(Su,{...o,ref:t})})});wu.displayName=bu;var xu=Oa("PopoverContent.RemoveScroll"),Eu=e.forwardRef((t,r)=>{const n=uu(bu,t.__scopePopover),o=e.useRef(null),i=xa(r,o),a=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return vl(e)},[]),c(iu,{as:xu,allowPinchZoom:!0,children:c(Ou,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:va(t.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:va(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;a.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:va(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Su=e.forwardRef((t,r)=>{const n=uu(bu,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return c(Ou,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||n.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const r=e.target,a=n.triggerRef.current?.contains(r);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),Ou=e.forwardRef((t,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,...p}=t,m=uu(bu,n),h=cu(n);return e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Fa()),document.body.insertAdjacentElement("beforeend",e[1]??Fa()),La++,()=>{1===La&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),La--}},[]),c(Ua,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:c(ja,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>m.onOpenChange(!1),children:c(il,{"data-state":Cu(m.open),role:"dialog",id:m.contentId,...h,...p,ref:r,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ku="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=uu(ku,r);return c($a.button,{type:"button",...n,ref:t,onClick:va(e.onClick,()=>o.onOpenChange(!1))})}).displayName=ku;function Cu(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=cu(r);return c(al,{...o,...n,ref:t})}).displayName="PopoverArrow";var _u=fu,$u=mu,Nu=vu,Pu=wu;const Au=e=>{const t=ju(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),Tu(r,t)||Mu(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},Tu=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Tu(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},Ru=/^\[(.+)\]$/,Mu=e=>{if(Ru.test(e)){const t=Ru.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ju=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Lu(Object.entries(e.classGroups),r).forEach(([e,r])=>{Iu(r,n,e,t)}),n},Iu=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Du(t,e)).classGroupId=r)}if("function"==typeof e)return zu(e)?void Iu(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{Iu(o,Du(t,e),r,n)})})},Du=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},zu=e=>e.isThemeGetter,Lu=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,Fu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},Vu=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length,a=e=>{const r=[];let a,s=0,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(0===s){if(u===o&&(n||e.slice(l,l+i)===t)){r.push(e.slice(c,l)),c=l+i;continue}if("/"===u){a=l;continue}}"["===u?s++:"]"===u&&s--}const l=0===r.length?e:e.substring(c),u=l.startsWith("!");return{modifiers:r,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:a&&a>c?a-c:void 0}};return r?e=>r({className:e,parseClassName:a}):a},Wu=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},Bu=/\s+/;function Uu(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Hu(e))&&(n&&(n+=" "),n+=t);return n}const Hu=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Hu(e[n]))&&(r&&(r+=" "),r+=t);return r};function Gu(e,...t){let r,n,o,i=function(s){const c=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:Fu(e.cacheSize),parseClassName:Vu(e),...Au(e)}))(c),n=r.cache.get,o=r.cache.set,i=a,a(s)};function a(e){const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Bu);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:f}=r(t);let d=Boolean(f),p=n(d?u.substring(0,f):u);if(!p){if(!d){s=t+(s.length>0?" "+s:s);continue}if(p=n(u),!p){s=t+(s.length>0?" "+s:s);continue}d=!1}const m=Wu(c).join(":"),h=l?m+"!":m,y=h+p;if(i.includes(y))continue;i.push(y);const g=o(p,d);for(let e=0;e<g.length;++e){const t=g[e];i.push(h+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return o(e,i),i}return function(){return i(Uu.apply(null,arguments))}}const Ku=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},qu=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yu=/^\d+\/\d+$/,Xu=new Set(["px","full","screen"]),Ju=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ef=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rf=e=>of(e)||Xu.has(e)||Yu.test(e),nf=e=>vf(e,"length",bf),of=e=>Boolean(e)&&!Number.isNaN(Number(e)),af=e=>vf(e,"number",of),sf=e=>Boolean(e)&&Number.isInteger(Number(e)),cf=e=>e.endsWith("%")&&of(e.slice(0,-1)),lf=e=>qu.test(e),uf=e=>Ju.test(e),ff=new Set(["length","size","percentage"]),df=e=>vf(e,ff,wf),pf=e=>vf(e,"position",wf),mf=new Set(["image","url"]),hf=e=>vf(e,mf,Ef),yf=e=>vf(e,"",xf),gf=()=>!0,vf=(e,t,r)=>{const n=qu.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},bf=e=>Zu.test(e)&&!Qu.test(e),wf=()=>!1,xf=e=>ef.test(e),Ef=e=>tf.test(e),Sf=()=>{const e=Ku("colors"),t=Ku("spacing"),r=Ku("blur"),n=Ku("brightness"),o=Ku("borderColor"),i=Ku("borderRadius"),a=Ku("borderSpacing"),s=Ku("borderWidth"),c=Ku("contrast"),l=Ku("grayscale"),u=Ku("hueRotate"),f=Ku("invert"),d=Ku("gap"),p=Ku("gradientColorStops"),m=Ku("gradientColorStopPositions"),h=Ku("inset"),y=Ku("margin"),g=Ku("opacity"),v=Ku("padding"),b=Ku("saturate"),w=Ku("scale"),x=Ku("sepia"),E=Ku("skew"),S=Ku("space"),O=Ku("translate"),k=()=>["auto",lf,t],C=()=>[lf,t],_=()=>["",rf,nf],$=()=>["auto",of,lf],N=()=>["","0",lf],P=()=>[of,lf];return{cacheSize:500,separator:":",theme:{colors:[gf],spacing:[rf,nf],blur:["none","",uf,lf],brightness:P(),borderColor:[e],borderRadius:["none","","full",uf,lf],borderSpacing:C(),borderWidth:_(),contrast:P(),grayscale:N(),hueRotate:P(),invert:N(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[cf,nf],inset:k(),margin:k(),opacity:P(),padding:C(),saturate:P(),scale:P(),sepia:N(),skew:P(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",lf]}],container:["container"],columns:[{columns:[uf]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",lf]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sf,lf]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",lf]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",sf,lf]}],"grid-cols":[{"grid-cols":[gf]}],"col-start-end":[{col:["auto",{span:["full",sf,lf]},lf]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[gf]}],"row-start-end":[{row:["auto",{span:[sf,lf]},lf]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",lf]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",lf]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",lf,t]}],"min-w":[{"min-w":[lf,t,"min","max","fit"]}],"max-w":[{"max-w":[lf,t,"none","full","min","max","fit","prose",{screen:[uf]},uf]}],h:[{h:[lf,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[lf,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[lf,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[lf,t,"auto","min","max","fit"]}],"font-size":[{text:["base",uf,nf]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",af]}],"font-family":[{font:[gf]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",lf]}],"line-clamp":[{"line-clamp":["none",of,af]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rf,lf]}],"list-image":[{"list-image":["none",lf]}],"list-style-type":[{list:["none","disc","decimal",lf]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rf,nf]}],"underline-offset":[{"underline-offset":["auto",rf,lf]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lf]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lf]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",pf]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",df]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hf]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[rf,lf]}],"outline-w":[{outline:[rf,nf]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[rf,nf]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",uf,yf]}],"shadow-color":[{shadow:[gf]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",uf,lf]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",lf]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",lf]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",lf]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[sf,lf]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",lf]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",lf]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",lf]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[rf,nf,af]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Of=Gu(Sf);function kf(...e){return Of(Me(e))}const Cf=_u,_f=$u,$f=e.forwardRef(({className:t,align:r="center",sideOffset:n=4,...o},i)=>e.createElement(Nu,null,e.createElement(Pu,{ref:i,align:r,sideOffset:n,className:kf("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})));$f.displayName=Pu.displayName;const Nf=({id:e,className:r,align:n,side:o,sideOffset:i=8,visible:a,content:s,children:c,onPointerDownOutside:l,onOpenAutoFocus:u})=>t.createElement(Cf,{open:a},t.createElement(_f,{asChild:!0},c),t.createElement($f,{id:e,className:y("gyramais-popover-content",r),align:n,side:o,sideOffset:i,onPointerDownOutside:l,onOpenAutoFocus:u},s)),Pf=({id:e,className:r,visible:n,align:o="start",side:i="bottom",sideOffset:a=6,width:s=320,maxHeight:c=480,trigger:l,children:u,onPointerDownOutside:f,onOpenAutoFocus:d})=>{const p="number"==typeof s?`${s}px`:s,m="number"==typeof c?`${c}px`:c;return t.createElement(Nf,{id:e,visible:n,align:o,side:i,sideOffset:a,className:y("gyramais-picker-popover",r),onPointerDownOutside:f,onOpenAutoFocus:d,content:t.createElement("div",{className:"gyramais-picker-popover-inner",style:{width:p,maxHeight:m}},u)},l)};Pf.Header=({className:e,title:r,searchPlaceholder:n,searchValue:o,onSearchChange:i,onSearchKeyDown:a,searchAutoFocus:s=!0,accessory:c})=>{const l=void 0!==n||void 0!==i;return t.createElement("div",{className:y("gyramais-picker-popover-head",e)},r&&t.createElement("div",{className:"gyramais-picker-popover-title"},r),(l||c)&&t.createElement("div",{className:"gyramais-picker-popover-head-row"},l&&t.createElement("div",{className:"gyramais-picker-popover-search"},t.createElement(ha,{className:"gyramais-picker-popover-search-icon"}),t.createElement("input",{type:"text",placeholder:n,value:o??"",onChange:e=>i?.(e.target.value),onKeyDown:a,autoFocus:s})),c&&t.createElement("div",{className:"gyramais-picker-popover-accessory"},c)))},Pf.Body=({className:e,children:r})=>t.createElement("div",{className:y("gyramais-picker-popover-body",e)},r),Pf.Footer=({className:e,children:r})=>t.createElement("div",{className:y("gyramais-picker-popover-foot",e)},r),Pf.Section=({className:e,title:r,children:n})=>t.createElement("div",{className:y("gyramais-picker-popover-section",e)},r&&t.createElement("div",{className:"gyramais-picker-popover-section-head"},r),n);const Af=({id:e,className:r,visible:n,title:o,searchPlaceholder:s="Buscar...",options:c,values:l,onChange:u,trigger:f,totalCount:d,clearLabel:p="Limpar seleção",showClear:m=!0,collapsedChipsCount:h=5,width:g=420,align:v,side:b,filter:w,onPointerDownOutside:x})=>{const[E,S]=i(""),[O,k]=i(!1);t.useEffect(()=>{n||(S(""),k(!1))},[n]);const C=a(()=>new Set(l),[l]),_=a(()=>{const e=E.trim().toLowerCase();if(!e)return c;const t=w??((e,t)=>e.label.toLowerCase().includes(t)||(e.code?.toLowerCase().includes(t)??!1));return c.filter(r=>t(r,e))},[c,E,w]),$=a(()=>c.filter(e=>C.has(e.value)),[c,C]),N=O?$:$.slice(0,h),P=Math.max(0,$.length-h);return t.createElement(Pf,{id:e,className:y("gyramais-multi-select-picker",r),visible:n,align:v,side:b,width:g,trigger:f,onPointerDownOutside:x},t.createElement(Pf.Header,{title:o,searchPlaceholder:s,searchValue:E,onSearchChange:S}),$.length>0&&t.createElement("div",{className:"gyramais-multi-select-picker-selected"},t.createElement("div",{className:"gyramais-multi-select-picker-lab"},"Selecionados (",$.length,")"),t.createElement("div",{className:"gyramais-multi-select-picker-chips"},N.map(e=>t.createElement("span",{key:e.value,className:"gyramais-multi-select-picker-chip"},e.code??e.label,t.createElement("button",{type:"button",className:"gyramais-multi-select-picker-chip-x",onClick:t=>{var r;t.stopPropagation(),r=e.value,u?.(l.filter(e=>e!==r))},"aria-label":`Remover ${e.label}`},t.createElement(ua,null)))),P>0&&!O&&t.createElement("button",{type:"button",className:"gyramais-multi-select-picker-chip-more",onClick:()=>k(!0)},"+",P," mais"))),t.createElement(Pf.Body,null,0===_.length?t.createElement("div",{className:"gyramais-multi-select-picker-empty"},"Nenhuma opção corresponde à busca."):_.map(e=>{const r=C.has(e.value);return t.createElement("button",{key:e.value,type:"button",role:"menuitemcheckbox","aria-checked":r,disabled:e.disabled,className:y("gyramais-multi-select-picker-opt",r&&"is-on"),onClick:()=>{return!e.disabled&&(t=e.value,void(C.has(t)?u?.(l.filter(e=>e!==t)):u?.([...l,t])));var t}},t.createElement("span",{className:"gyramais-multi-select-picker-check"},t.createElement(Tf,null)),t.createElement("span",{className:"gyramais-multi-select-picker-opt-body"},e.code&&t.createElement("span",{className:"gyramais-multi-select-picker-opt-code"},e.code),t.createElement("span",{className:"gyramais-multi-select-picker-opt-desc"},e.label)))})),t.createElement(Pf.Footer,null,t.createElement("span",{className:"gyramais-multi-select-picker-count"},l.length," de ",d??c.length),m&&l.length>0&&t.createElement("button",{type:"button",className:"gyramais-multi-select-picker-clear",onClick:()=>u?.([])},p)))},Tf=()=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round","aria-hidden":"true"},t.createElement("path",{d:"m5 13 4 4L19 7"}));export{Af as MultiSelectPicker};
|
|
45
45
|
//# sourceMappingURL=index.js.map
|