@aistrike-dev/ui-shell-dev 2.1.0 → 3.0.0

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.
Files changed (45) hide show
  1. package/README.md +41 -17
  2. package/dist/args.d.ts +9 -1
  3. package/dist/args.js +51 -5
  4. package/dist/cell.d.ts +29 -0
  5. package/dist/cell.js +194 -0
  6. package/dist/cli.js +25 -1
  7. package/dist/devfile.d.ts +25 -9
  8. package/dist/devfile.js +75 -30
  9. package/dist/hosts.d.ts +17 -0
  10. package/dist/hosts.js +51 -0
  11. package/dist/inject.js +0 -3
  12. package/dist/platform/host.d.ts +5 -7
  13. package/dist/platform/host.js +4 -4
  14. package/dist/platform/list.d.ts +2 -2
  15. package/dist/platform/list.js +6 -5
  16. package/dist/platform/server.d.ts +3 -2
  17. package/dist/platform/server.js +21 -10
  18. package/dist/ports.d.ts +12 -0
  19. package/dist/ports.js +14 -0
  20. package/dist/preamble.d.ts +15 -0
  21. package/dist/preamble.js +44 -0
  22. package/dist/serve.d.ts +28 -0
  23. package/dist/serve.js +161 -0
  24. package/dist/token.d.ts +6 -1
  25. package/dist/token.js +2 -2
  26. package/dist/vite/plugin.d.ts +12 -3
  27. package/dist/vite/plugin.js +126 -27
  28. package/dist/vite/targets.d.ts +27 -0
  29. package/dist/vite/targets.js +35 -0
  30. package/package.json +2 -2
  31. package/platform/assistant/mock.js +1809 -222
  32. package/platform/assistant/ui/chunks/ui-CnxV0v5I.js +280 -0
  33. package/platform/assistant/ui/entry.js +2 -2
  34. package/platform/home/ui/chunks/ui-BJZEfOZI.js +174 -0
  35. package/platform/home/ui/entry.js +1 -1
  36. package/platform/settings/ui/chunks/ui-BRCsapmB.js +271 -0
  37. package/platform/settings/ui/entry.js +2 -2
  38. package/shell/assets/LabHost-D3o-OJsx.js +2 -0
  39. package/shell/assets/index-DW0Z5YeB.js +185 -0
  40. package/shell/index.html +1 -1
  41. package/platform/assistant/ui/chunks/ui--m9X09Oo.js +0 -182
  42. package/platform/home/ui/chunks/ui-SNPmLvIE.js +0 -174
  43. package/platform/settings/ui/chunks/ui-C21hUUVD.js +0 -271
  44. package/shell/assets/LabHost-nKG_bmEN.js +0 -2
  45. package/shell/assets/index-Bm6IWtZi.js +0 -184
@@ -0,0 +1,280 @@
1
+ import{t as e}from"./preload-helper-CYtfOYgs.js";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),u=[`page`,`primary`,`widget`,`surface`,`raised`,`overlay`];function d(e){let t=u.indexOf(e);return u[Math.min(t+1,u.length-1)]}function f(e){let t=u.indexOf(e);return u[Math.max(t-1,0)]}function p(e){let t=u.indexOf(`raised`),n=u.indexOf(d(e));return u[Math.max(t,n)]}var m={bg:`--ds-bg`,field:`--ds-field`,fieldBorder:`--ds-field-border`,text:`--ds-text`,textQuiet:`--ds-text-quiet`,border:`--ds-border`,separator:`--ds-separator`,hover:`--ds-hover`,selected:`--ds-selected`,child:`--ds-child`,textSecondary:`--ds-text-secondary`,outline:`--ds-outline`,fieldFill:`--ds-field-fill`,rowSelected:`--ds-row-selected`,rowSelectedInk:`--ds-row-selected-ink`,control:`--ds-control`,raised:`--ds-raised`,tableHeader:`--ds-table-header`,tableHeaderLabel:`--ds-table-header-ink`,tableRowHover:`--ds-table-row-hover`};function h(e,t){return t===void 0?`var(${m[e]})`:`var(${m[e]}, ${t})`}var g=[`success`,`failure`,`warning`,`info`,`general`,`tabIcon`,`actionActive`,`inactiveToggle`,`activeTabIcon`,`alert`,`vulnerability`,`attackPathDefault`,`attackPathSuccess`,`attackPathFailure`],_={none:0,xs:4,sm:6,md:8,lg:10,xl:24,pill:9999},v={plane:_.lg,card:_.md,control:_.sm,kbd:_.xs},y=_.sm,b={primary:`#E1E1E3`,secondary:`#C7C8CA`,tertiary:`#A9AAAE`,subtle:`#94959A`,muted:`#7A7C81`,tooltip:`#E1E1E3`,disabled:`#616269`,link:`#A5BFF2`},x={page:`#191919`,primary:`#20222A`,widget:`#292B34`,surface:`#33363F`,raised:`#3F424D`,overlay:`#4A4D59`,tableDivider:`#33353D`,darkGreen:`#1D2E2A`,border:`#383A41`,borderSubtle:`#2B2D34`,cardBorder:`#45474D`},S={page:`#333333`,primary:`#383A41`,widget:`#40414A`,surface:`#494C54`,raised:`#555761`,overlay:`#60636D`},C={page:`#414141`,primary:`#45474D`,widget:`#4D4E56`,surface:`#565860`,raised:`#62656E`,overlay:`#6D707A`},w={page:`#262626`,primary:`#2B2D34`,widget:`#33353D`,surface:`#3D4048`,raised:`#484B55`,overlay:`#535661`},T={page:`#202020`,primary:`#262830`,widget:`#2E3038`,surface:`#383B44`,raised:`#444751`,overlay:`#4F525D`},E={background:`#191919`,border:`#383A41`,borderHover:`#45474D`,focusRing:`#7FA3E8`,errorBorder:`#F0566A`},D={background:`#EEF1F8`,border:`#DFE0E2`,borderHover:`#C9CCD6`,focusRing:`#3B4FD8`,errorBorder:`#C92F3F`},O={page:`#EEF1F8`,primary:`#FAFBFD`,widget:`#FFFFFF`,surface:`#FFFFFF`,raised:`#FFFFFF`,overlay:`#FFFFFF`,tableDivider:`#EDEDEF`,borderSubtle:`#E8E9ED`,border:`#DFE0E2`,cardBorder:`#C9CCD6`,tintGreen:`#E8F2EF`,inset:`#F3F5FA`,groundInset:`#E3E7EE`,groundField:`#F7F9FC`},k={primary:`#1A1F33`,secondary:`#3A4160`,tertiary:`#5A6280`,subtle:`#666E8A`,muted:`#8A91A8`,disabled:`#B5BACB`,link:`#3B4FD8`,highlight:`#3B4FD8`,tooltip:`#FAFBFD`},A={dark:{plane:{rgb:`32, 34, 42`,opacity:.86,blur:28,lift:.03},subnav:{rgb:`25, 26, 28`,opacity:.5,blur:2},band:{opacity:.7,blur:6}},light:{plane:{rgb:`250, 251, 253`,opacity:.9,blur:28,lift:.5},subnav:{rgb:`255, 255, 255`,opacity:.32,blur:2},band:{opacity:.7,blur:6}}},j=`#141414`,M={dark:{success:`#4FC98A`,failure:`#F0566A`,warning:`#E0B84A`,info:`#A0A5B2`,general:`#7FA3E8`},light:{success:`#178049`,failure:`#C92F3F`,warning:`#FFC800`,info:`#5A6280`,general:`#3B4FD8`}};M.dark;var N={dark:{critical:`#F0566A`,high:`#F28A47`,medium:`#E0B84A`,low:`#8A8F9C`,info:`#7FA3E8`,untriaged:`#C0C0C0`},light:{critical:`#E02F40`,high:`#FF8A00`,medium:`#FFC800`,low:`#949CAB`,info:`#1266CC`,untriaged:`#b7b7b7`}};N.dark;var P={radiusScale:`--ds-radius-scale`,elevationStrength:`--ds-elevation-strength`,groundGlow:`--ds-ground-glow`,rowPad:`--ds-row-pad`,fontUi:`--ds-font-ui`,railWidth:`--ds-rail-width`,railIcon:`--ds-rail-icon`,railPad:`--ds-rail-pad`,railGap:`--ds-rail-gap`,railFoot:`--ds-rail-foot`,planeGlassOpacity:`--ds-plane-glass-opacity`,planeGlassBlur:`--ds-plane-glass-blur`,planeGlassTint:`--ds-plane-glass-tint`,subnavGlassOpacity:`--ds-subnav-glass-opacity`,subnavGlassOpacityLight:`--ds-subnav-glass-opacity-light`,subnavGlassBlur:`--ds-subnav-glass-blur`,bandGlassOpacity:`--ds-band-glass-opacity`,bandGlassBlur:`--ds-band-glass-blur`,fieldWhiteLight:`--ds-field-white-light`,fieldTintLight:`--ds-field-tint-light`,fieldEdgeLight:`--ds-field-edge-light`,chromeFieldColorLight:`--ds-chrome-field-color-light`,chromeFieldAlphaLight:`--ds-chrome-field-alpha-light`,chromeFieldEdgeLight:`--ds-chrome-field-edge-light`,tableHeaderShadowY:`--ds-table-header-shadow-y`,tableHeaderShadowBlur:`--ds-table-header-shadow-blur`,tableHeaderShadowSpread:`--ds-table-header-shadow-spread`,tableHeaderShadowStrength:`--ds-table-header-shadow-strength`,agentDepthLight:`--ds-agent-depth-light`,tabsScrollFade:`--ds-tabs-scroll-fade`,rowIconGap:`--ds-row-icon-gap`,rowIconSize:`--ds-row-icon-size`,countRadius:`--ds-count-radius`,mastheadPadY:`--ds-masthead-pad-y`,metaPadY:`--ds-meta-pad-y`,cardPad:`--ds-card-pad`,eyebrowGap:`--ds-eyebrow-gap`,chipRadius:`--ds-chip-radius`,chipPadX:`--ds-chip-pad-x`,chipPadXSmall:`--ds-chip-pad-x-small`,chipPadY:`--ds-chip-pad-y`,chipPadYSmall:`--ds-chip-pad-y-small`,seamBlur:`--ds-seam-blur`,seamStrength:`--ds-seam-strength`,metaGlassOpacity:`--ds-meta-glass-opacity`,appearanceFade:`--ds-appearance-fade`,assistantScrollFade:`--ds-assistant-scroll-fade`,topbarHeight:`--ds-topbar-height`,topbarControl:`--ds-topbar-control`,commandWidth:`--ds-command-width`,brandMarkSize:`--ds-brand-mark-size`,paneGlassOpacity:`--ds-pane-glass-opacity`,paneGlassBlur:`--ds-pane-glass-blur`},F={countStyle:`data-ds-count-style`,density:`data-ds-density`,frame:`data-ds-frame`,planeCorner:`data-ds-plane-corner`},I={white:1,tint:0,edge:.4},L={color:`#000000`,alpha:.04,edge:0};function R(e,t){return`var(${P[e]}, ${t})`}var z=1.5,ee=.3,te=`12px`,B=`32px`,V=`24px`,ne=`18px`,re=`16px`,ie=`12px`,H={medium:`12px`,small:`8px`},U={medium:4,small:3},W={light:`35%`,dark:`30%`};function ae(e){return e===`blur`&&{"& > .MuiBackdrop-root":{backdropFilter:`blur(6px)`}}}var oe=`18px`,se={comfortable:1,compact:.75},ce={mastheadPadY:`14px`,metaPadY:`6px`,eyebrowGap:`7px`,cardPad:`12px`};function G(e){return`calc(${e} * var(--ds-space-scale, 1))`}var le=`fill`,ue=`16px`,de={blur:`16px`,alphaLight:.14,alphaDark:.5},fe={light:45,dark:16},pe={height:`64px`,control:`38px`,commandWidth:`520px`,brandMark:`32px`},me={opacity:.24,blur:`4px`};function he(){return B}function ge(){return`var(--ds-page-inset, ${B})`}function _e(){return`var(--ds-page-end, ${B})`}function ve(e){return`calc(${R(`radiusScale`,String(z))} * ${e}px)`}function ye(e){return e===`pane`?`blur(${R(`paneGlassBlur`,me.blur)})`:e===`plane`?`blur(${R(`planeGlassBlur`,`28px`)})`:e===`band`?`blur(${R(`bandGlassBlur`,`${A.light.band.blur}px`)})`:`blur(${R(`subnavGlassBlur`,`2px`)})`}var be=e=>`color-mix(in srgb, color-mix(in oklab, var(--ds-bg) 40%, var(--ds-shadow-ink, black)) ${String(e)}%, transparent)`,xe={small:`0 1px 1px ${be(10)}`,medium:[`0 2px 2px`,`0 4px 4px`,`0 6px 6px`].map(e=>`${e} ${be(6)}`).join(`, `)},Se=`0 1px 2px light-dark(${be(9)}, ${be(36)})`,Ce=`1398px`,we=`1500px`,Te=`data-plane-panes`,Ee=`data-page-width`,De=`cubic-bezier(0.45, 0, 0.2, 1)`,Oe=`html[${F.frame}]:not([${F.frame}="full"])`,ke=[`${Oe} [data-shell-row]{--ds-content-max:calc(${Ce} + 2 * ${he()} + var(--ds-page-aside, 0px));--ds-frame-max:var(--ds-content-max);}`,`${Oe} [data-shell-row]:has([${Ee}="wide"]){--ds-content-max:calc(${we} + 2 * ${he()} + var(--ds-page-aside, 0px));}`,`${Oe} [data-shell-row]:has([${Ee}="custom"]){--ds-content-max:calc(var(--ds-page-custom, ${Ce}) + 2 * ${he()} + var(--ds-page-aside, 0px));}`,`${Oe} [data-shell-row]:has([${Ee}="full"]){--ds-content-max:100%;}`,`${Oe}[${F.frame}="stretch"] [data-shell-row]{--ds-frame-max:100%;}`,`${Oe}[${F.frame}="stretch"] [${Te}]{--ds-page-main:calc(var(--ds-content-max) - 2 * ${he()} - var(--ds-left-shown, 0px) - var(--ds-page-aside, 0px));--ds-page-inset:max(${he()}, calc((100cqi - var(--ds-page-aside, 0px) - var(--ds-page-main)) / 2));--ds-page-end:max(${he()}, calc(100% - var(--ds-page-inset) - var(--ds-page-main)));}`,`${Oe} [data-plane]{margin-left:0;margin-right:auto;max-width:var(--ds-frame-max);transition:max-width 400ms ${De};}`,`${Oe} [data-plane][data-page-aside-dragging]{transition:none;}`,`${Oe} nav:has(+ [data-plane]){margin-left:auto;}`,`${Oe} [data-shell-row]{padding-right:clamp(4px, calc(100% - ${R(`railWidth`,`64px`)} - var(--ds-frame-max) - var(--ds-docked-pane-width, 0px)), calc(${R(`railWidth`,`64px`)} + 4px));}`,`${Oe} [data-shell-row]:has(> [data-docked-pane-moving]){transition:padding-right 400ms ${De};}`,`${Oe} [data-top-bar]{padding-left:var(--ds-frame-start, 0px);padding-right:calc(24px + var(--ds-frame-end, 0px));}`,`${Oe} [data-plane]:has(+ [data-docked-pane]:not([hidden])){margin-right:0;}`,`${Oe} [data-plane] + [data-docked-pane]:not([hidden]){margin-right:auto;transition-duration:400ms;transition-timing-function:${De};}`,`${Oe} [data-docked-pane-sheet]{left:auto;right:0;}`,`${Oe} [data-docked-pane-body]{will-change:transform;}`,`${Oe} [data-plane]:has(+ [data-docked-pane-moving]) [data-plane-tabs] *,${Oe} [data-plane]:has(+ [data-docked-pane-moving]) [data-plane-tabs] *::before,${Oe} [data-plane]:has(+ [data-docked-pane-moving]) [data-plane-tabs] *::after{backdrop-filter:none !important;}`,`${Oe} [data-shell-row]{box-sizing:border-box;}`,`${Oe} [data-docked-pane],${Oe} [data-docked-pane-clip]{border-top-right-radius:${ve(v.plane)};}`,`${Oe} [data-plane]:has(+ [data-docked-pane]:not([hidden])){border-top-right-radius:0;}`,`${Oe} [data-docked-pane-seam]{display:none;}`,`${Oe} [data-docked-pane-clip]::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-top-right-radius:inherit;box-shadow:var(--ds-shadow-seam);}`,`${Oe}[${F.planeCorner}="round"] [data-plane]:has(+ [data-docked-pane]:not([hidden])){border-top-right-radius:${ve(v.plane)};z-index:1;box-shadow:var(--ds-elevation-surface), 7px 0 16px -7px ${be(30)};}`,`${Oe}[${F.planeCorner}="round"] [data-docked-pane-clip]::after{display:none;}`,`${Oe}[${F.planeCorner}="round"] [data-plane] + [data-docked-pane]:not([hidden])::before{content:"";position:absolute;top:0;left:calc(-1 * ${ve(v.plane)});width:${ve(v.plane)};height:${ve(v.plane)};background:var(--ds-glass-pane);backdrop-filter:${ye(`pane`)};pointer-events:none;}`].join(`
2
+ `),Ae=`color-mix(in srgb, var(--ds-accent) 18%, transparent)`,je=e=>`color-mix(in oklab, var(--ds-accent) ${String(e)}%, black)`,Me=[`:root,:root *{--ds-border:${Ae};--ds-separator:${Ae};}`,`:root{`+[`surface`,`raised`,`agent`,`inset`,`header`].map(e=>`--ds-elevation-${e}:var(--ds-elevation-tinted-${e});`).join(``)+`--ds-shadow-seam:var(--ds-shadow-seam-tinted);`+[`menu`,`drawer`,`dialog`,`loading`].map(e=>`--ds-scrim-${e}:var(--ds-scrim-${e}-tinted);`).join(``)+`--ds-shadow-ink:light-dark(${je(fe.light)}, ${je(fe.dark)});}`].join(`
3
+ `),Ne=[`widget`,`surface`,`raised`,`overlay`].map(e=>`[data-surface="${e}"] &`).join(`, `),Pe={backgroundColor:`var(--ds-glass-subnav)`,backdropFilter:ye(`subnav`),[Ne]:{backgroundColor:`light-dark(color-mix(in srgb, var(--ds-text) 3%, transparent), color-mix(in srgb, var(--ds-text) 2%, transparent))`}};ye(`band`);function Fe(e,t=`top`){let n=e===`tabs`?R(`tabsScrollFade`,V):R(`assistantScrollFade`,ue),r=`transparent 0, black ${n}`,i=`black calc(100% - ${n}), transparent 100%`;return t===`top`?`linear-gradient(to bottom, ${r})`:t===`bottom`?`linear-gradient(to bottom, ${i})`:`linear-gradient(to bottom, ${r}, ${i})`}var Ie=`--ds-topbar-control-scoped`;function Le(e){return`var(${Ie}, ${e})`}var Re=`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`,ze={primary:Re,ui:Re,mono:`"JetBrains Mono Variable", "JetBrains Mono", Menlo, Monaco, "SF Mono", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", Consolas, "Lucida Console", "Courier New", monospace`,system:Re},Be={thin:100,extraLight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extraBold:800,black:900,emphasis:600},Ve={normal:`normal`,italic:`italic`},He={default:`'liga' 1, 'calt' 1`,tabularNums:`'tnum' 1`,slashedZero:`'zero' 1`,dataDisplay:`'tnum' 1, 'zero' 1, 'liga' 1, 'calt' 1`},Ue={"2xs":11,xs:12,sm:13,base:14,md:16,lg:18,title:20,xl:22,"2xl":24,"3xl":32,"4xl":48,"5xl":64},We=`${Ue.md/Ue.base}em`,Ge={tight:1.2,normal:1.4,relaxed:1.6},Ke={tight:`-0.01em`,normal:`0`,wide:`0.02em`,tracked:`0.08em`},qe={fontFamily:ze,fontWeight:Be,fontStyle:Ve,fontFeatureSettings:He,fontSize:Ue,lineHeight:Ge,letterSpacing:Ke},Je=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function z(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(z.bind(null,e))}var ee={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ee,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=z,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),Ye=s(((e,t)=>{t.exports=Je()})),K=l(Ye(),1),Xe=[{at:[14,8],size:[70,78],alpha:.8},{at:[86,14],size:[66,74],alpha:.8},{at:[12,92],size:[72,72],alpha:.8},{at:[52,50],size:[78,78],alpha:.56},{at:[90,88],size:[66,70],alpha:.8}],Ze={lineCount:16,ribbonWidth:1,lineWeight:.75,lineOffsetY:-.22,blobIntensity:.75,blobBlur:0},Qe={dark:.16,light:.16},$e=/^#[0-9a-f]{6}$/i,et=e=>typeof e==`string`&&$e.test(e),tt=e=>[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)/255),nt=e=>`#${e.map(e=>Math.round(Math.min(1,Math.max(0,e))*255).toString(16).padStart(2,`0`)).join(``)}`.toUpperCase(),rt=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,it=e=>e<=.0031308?12.92*e:1.055*Math.max(0,e)**(1/2.4)-.055;function at(e){let[t,n,r]=tt(e).map(rt),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r);return[.2104542553*i+.793617785*a-.0040720468*o,1.9779984951*i-2.428592205*a+.4505937099*o,.0259040371*i+.7827717662*a-.808675766*o]}function ot([e,t,n]){let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return[4.0767416621*r-3.3077115913*i+.2309699292*a,-1.2684380046*r+2.6097574011*i-.3413193965*a,-.0041960863*r-.7034186147*i+1.707614701*a]}var st=e=>e.every(e=>e>=-1e-4&&e<=1.0001);function ct(e){return nt(ot(e).map(it))}function lt(e){let[t,n,r]=at(e),i=Math.hypot(n,r);return[t,i,i<1e-4?NaN:(Math.atan2(r,n)*180/Math.PI+360)%360]}function ut([e,t,n]){if(!(t>0)||Number.isNaN(n))return ct([e,0,0]);let r=n*Math.PI/180,i=t;for(let t=0;t<48;t+=1){let t=ot([e,i*Math.cos(r),i*Math.sin(r)]);if(st(t))return nt(t.map(it));i*=.9}return ct([e,0,0])}function dt(e,t,n){let r=tt(e),i=tt(t);return nt(r.map((e,t)=>e+(i[t]-e)*n))}function ft(e){let[t,n,r]=tt(e).map(rt);return .2126*t+.7152*n+.0722*r}function pt(e,t){let[n,r]=[ft(e),ft(t)].sort((e,t)=>t-e);return(n+.05)/(r+.05)}function mt(e,t,n){if(n(e))return e;if(!n(t))return t;let r=0,i=1;for(let a=0;a<24;a+=1){let a=(r+i)/2;n(dt(e,t,a))?i=a:r=a}return dt(e,t,i)}function ht(e,t,n){let[r,i]=lt(e);return ut([r,Math.min(i,Math.max(0,n)),t])}var gt=e=>tt(e).map(e=>Math.round(e*255)).join(`, `),_t=(e,t)=>`rgba(${gt(e)}, ${t})`,vt=[{id:`dusk`,label:`Dusk`,mode:`dark`,colors:{accent:`#A99BF2`,fields:[`#4E2E96`,`#34509E`,`#743064`,`#150F22`,`#262F70`],line:`#CFC4F5`}},{id:`aurora`,label:`Aurora`,mode:`dark`,colors:{accent:`#3ECFB8`,fields:[`#008475`,`#2957C2`,`#673ACC`,`#0A1E28`,`#147C8C`],line:`#A8F0E4`}},{id:`ember`,label:`Ember`,mode:`dark`,colors:{accent:`#F08A4B`,fields:[`#A13A1E`,`#A52655`,`#5A1E8C`,`#1E0C14`,`#9A601A`],line:`#FFD2B8`}},{id:`jade`,label:`Jade`,mode:`dark`,colors:{accent:`#8FD4B8`,fields:[`#3E6E4E`,`#2E6466`,`#2C523C`,`#111A16`,`#2F6E62`],line:`#CFE8DC`}},{id:`graphite`,label:`Graphite`,mode:`dark`,colors:{accent:`#B8C4D6`,fields:[`#3B4447`,`#2E3238`,`#44403A`,`#141414`,`#2A3340`],line:`#C8CED8`}},{id:`daylight`,label:`Daylight`,mode:`light`,colors:{accent:`#3B4FD8`,fields:[`#B9C8FF`,`#D6C8FF`,`#A8D8FF`,`#E6EAF6`,`#C8D4FF`],line:`#5A6AB8`}},{id:`mint`,label:`Mint`,mode:`light`,colors:{accent:`#0E8273`,fields:[`#A8EBDC`,`#B8E0FF`,`#C8F2C0`,`#E4F4EE`,`#9EDCE6`],line:`#2E8C7E`}},{id:`sunrise`,label:`Sunrise`,mode:`light`,colors:{accent:`#C35027`,fields:[`#FFC8A8`,`#FFB8C8`,`#FFE0A0`,`#F8ECE6`,`#F6C0E0`],line:`#C2603E`}},{id:`lavender`,label:`Lavender`,mode:`light`,colors:{accent:`#8B3FD9`,fields:[`#DCC4FF`,`#F6C4EC`,`#C4CCFF`,`#F0EAF8`,`#E8B8F0`],line:`#8A5AC8`}},{id:`stone`,label:`Stone`,mode:`light`,colors:{accent:`#3D5A80`,fields:[`#E2D8C8`,`#CCD4DC`,`#D8D0E0`,`#F0EDE8`,`#C8D6D0`],line:`#6A7280`}}],yt={dark:`graphite`,light:`stone`};function bt(e){return vt.filter(t=>t.mode===e)}function xt(e,t){let n=bt(t);return n.find(t=>t.id===e)??n.find(e=>e.id===yt[t])}var St=`#FFFFFF`,Ct=`#000000`,wt=4.5,Tt=3,Et=pt(`#9A9A9A`,Ct);function Dt(e,t,n){if(pt(e,Ct)>=Et&&pt(n,e)>=wt){let t=mt(dt(e,Ct,.08),e,e=>pt(n,e)>=wt),r=[dt(e,Ct,.06),dt(t,Ct,.06)],i=r.every(e=>pt(n,e)>=wt)?r:[e,t];return{buttonInk:n,buttonGradient:[e,t],buttonGradientHover:i}}let r=mt(e,Ct,e=>pt(St,e)>=wt),i=dt(r,Ct,t===`dark`?.1:.08);return{buttonInk:St,buttonGradient:[r,i],buttonGradientHover:[dt(r,Ct,.08),dt(i,Ct,.08)]}}function Ot(e,t,n){let r=e.toUpperCase(),i=t===`dark`,a=n.ladder,o=u.map(e=>a[e]),s=i?St:Ct,c=n.extra.fillInk,l=mt(r,s,e=>pt(e,a.primary)>=wt&&pt(e,a.widget)>=wt),d=pt(St,l)>=pt(c,l)?St:c,f=i?.16:.1;return{main:l,light:dt(l,St,i?.18:.12),onAccent:d,...Dt(r,t,c),focusRing:mt(l,s,e=>o.every(t=>pt(e,t)>=Tt)),link:mt(l,s,e=>o.every(t=>pt(e,t)>=wt)),wash:_t(l,f),tintByRung:Object.fromEntries(u.map(e=>[e,dt(a[e],l,f)]))}}var kt=[`surface`,`raised`,`agent`,`inset`,`header`];function At(e,t,n){let r=`#FFFFFF`;if(e===`dark`){let e=t;return{surface:[{x:0,y:4,blur:12,spread:0,color:e,alpha:.25}],raised:[{x:0,y:6,blur:16,spread:-4,color:e,alpha:.3},{inset:!0,x:0,y:1,blur:0,spread:0,color:r,alpha:.04}],agent:[{x:0,y:12,blur:28,spread:-8,color:e,alpha:.45},{inset:!0,x:0,y:1,blur:0,spread:0,color:r,alpha:.06}],inset:[{inset:!0,x:0,y:1,blur:2,spread:0,color:e,alpha:.4}],header:[{x:0,y:1,blur:8,spread:-1,color:e,alpha:.35}]}}return{surface:[{x:0,y:1,blur:2,spread:0,color:t,alpha:.06},{x:0,y:18,blur:36,spread:-22,color:t,alpha:.4}],raised:[{x:0,y:2,blur:4,spread:0,color:t,alpha:.08},{x:0,y:32,blur:56,spread:-28,color:t,alpha:.5}],agent:[{x:0,y:24,blur:48,spread:-20,color:n,alpha:.65},{inset:!0,x:0,y:1,blur:0,spread:0,color:r,alpha:.1}],inset:[{inset:!0,x:0,y:1,blur:2,spread:0,color:t,alpha:.14}],header:[{x:0,y:1,blur:8,spread:-1,color:t,alpha:.1}]}}function jt(e,t,n){return`color-mix(in srgb, color-mix(in oklab, var(--ds-accent) ${String(fe[e])}%, ${t}) calc(${n} * 100%), transparent)`}function Mt(e,t,n,r=!1){let i=n&&!t.inset?`calc(${t.alpha} * ${R(`elevationStrength`,String(ee))})`:String(t.alpha),a=`${t.x}px ${t.y}px ${t.blur}px ${t.spread}px`,o=r&&t.color.toUpperCase()!==`#FFFFFF`?jt(e,t.color,i):`rgba(${gt(t.color)}, ${i})`;return`${t.inset?`inset `:``}${a} ${o}`}var Nt={plane:{dark:`planeGlassOpacity`,light:`planeGlassOpacity`},subnav:{dark:`subnavGlassOpacity`,light:`subnavGlassOpacityLight`}},Pt=.5,Ft=.5,It=.04;function Lt(e,t){let n=0,r=0,i=0;e.forEach((e,t)=>{let[,a,o]=at(e);n+=a*Xe[t].alpha,r+=o*Xe[t].alpha,i+=Xe[t].alpha}),n/=i,r/=i;let a=Math.hypot(n,r),o=Math.min(a*Ft,It),s=a===0?0:o/a;return ct([at(t)[0],n*s,r*s])}function Rt(e,t){let{mode:n}=e,r=dt(t.ladder.primary,`#FFFFFF`,A[n].plane.lift),i=n===`dark`?ht(`#191A1C`,lt(t.ladder.primary)[2],.02):`#FFFFFF`,a=e=>R(Nt[e][n],String(A[n][e].opacity)),o=`rgba(${gt(r)}, ${a(`plane`)})`;if(n===`dark`){let t=`calc(${R(`planeGlassTint`,String(Pt))} * 100%)`;o=`color-mix(in oklab, rgba(${gt(Lt(e.colors.fields,r))}, ${a(`plane`)}) ${t}, ${o})`}let s=n===`dark`?i:t.ladder.page,c=`rgba(${gt(s)}, ${R(`bandGlassOpacity`,String(A[n].band.opacity))})`,l=`rgba(${gt(i)}, ${R(`paneGlassOpacity`,String(me.opacity))})`;return{plane:o,planeBase:r,subnav:`rgba(${gt(i)}, ${a(`subnav`)})`,subnavBase:i,band:c,bandBase:s,pane:l}}var zt=e=>[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)/255),Bt=e=>`#${e.map(e=>Math.round(Math.min(1,Math.max(0,e))*255).toString(16).padStart(2,`0`)).join(``)}`.toUpperCase(),Vt=(e,t,n)=>e.map((e,r)=>e*t+n[r]*(1-t)),Ht=(e,t)=>e.map((e,n)=>e<=.5?2*e*t[n]:1-2*(1-e)*(1-t[n])),Ut=Math.max(...Xe.map(e=>e.alpha))*Ze.blobIntensity;function Wt(e,t,n,r){let i=zt(r),a=zt(e),o=Vt(n===`dark`?Ht(a,i):a,Ut,i),s=Qe[n];return Bt(Vt(zt(t),s,o))}function Gt(e,t,n){let r=n.ladder.page,i=t===`dark`?n.ink.subtle:n.ink.tertiary,a=a=>{let o=Wt(a,e.line,t,r);return pt(n.ink.primary,o)>=4.5&&pt(i,o)>=3};return e.fields.map(e=>{if(a(e))return e;let t=0,n=1;for(let i=0;i<24;i+=1){let i=(t+n)/2;a(dt(e,r,i))?n=i:t=i}return dt(e,r,n)})}function Kt(e,t,n){let r=R(`groundGlow`,`1`),i=(e,t,n)=>`radial-gradient(${e}, rgba(${gt(t)}, calc(${n} * ${r})) 0%, rgba(${gt(t)}, 0) 70%)`;if(e===`dark`){let e=(e,t)=>ct([at(t)[0],...at(e).slice(1)]);return[i(`ellipse 46% 62% at 4% 0%`,e(n[0],`#3B4447`),.95),i(`ellipse 58% 48% at 72% 0%`,e(n[1],`#202436`),1),i(`ellipse 42% 46% at 92% 96%`,e(n[2],`#50331A`),.16),t.ladder.page].join(`, `)}return[i(`ellipse 94% 78% at 50% 0%`,dt(t.ladder.primary,`#FFFFFF`,.5),.9),`linear-gradient(180deg, ${t.extra.groundTop}, ${t.extra.groundBottom})`,t.ladder.page].join(`, `)}var qt={menu:.32,drawer:.5,dialog:.6,loading:.4};function Jt(e,t){let{mode:n}=e,r=At(n,t.extra.deep,t.ink.primary),i=(e,t=!1)=>Object.fromEntries(Object.entries(r).map(([r,i])=>[r,i.map(r=>Mt(n,r,e,t)).join(`, `)])),a=i(!0),o=i(!0,!0);a.raised=`${a.raised}, ${Se}`,o.raised=`${o.raised}, ${Se}`;let[s]=r.header,c=Gt(e.colors,n,t),l=`calc(${n===`dark`?de.alphaDark:de.alphaLight} * ${R(`seamStrength`,`1`)})`,u=e=>`inset 7px 0 ${R(`seamBlur`,de.blur)} -7px ${e}`;return{shadow:i(!1),elevation:a,tableHeaderShadow:`0 ${R(`tableHeaderShadowY`,`${s.y}px`)} ${R(`tableHeaderShadowBlur`,`${s.blur}px`)} ${R(`tableHeaderShadowSpread`,`${s.spread}px`)} rgba(${gt(s.color)}, calc(${s.alpha} * ${R(`tableHeaderShadowStrength`,`1`)}))`,seamShadow:u(`rgba(${gt(t.extra.deep)}, ${l})`),tinted:{elevation:o,seamShadow:u(jt(n,t.extra.deep,l)),scrim:Object.fromEntries(Object.entries(qt).map(([e,r])=>[e,jt(n,t.extra.deep,String(r))]))},glass:Rt(e,t),ground:{background:Kt(n,t,c),page:t.ladder.page,fields:c,line:e.colors.line,lineOpacity:Qe[n],blend:n===`dark`?`hard-light`:`normal`},scrim:Object.fromEntries(Object.entries(qt).map(([e,n])=>[e,_t(t.extra.deep,n)])),onAccentInset:`rgba(0, 0, 0, 0.18)`,avatarHairline:`inset 0 0 0 1px rgba(255, 255, 255, 0.10)`,scrollbar:t.extra.border,tooltip:n===`dark`?{bg:t.ladder.raised,ink:t.ink.tooltip,edge:t.border.raised}:{bg:t.ink.primary,ink:t.ink.tooltip,edge:dt(t.ink.primary,`#FFFFFF`,.12)}}}var Yt=e=>Object.fromEntries(u.map(t=>[t,e(t)])),Xt=e=>O[e]===O.overlay,Zt={dark:{ladder:Yt(e=>x[e]),border:{...S},outline:{...C},separator:{...w},tableHeader:{...T},ink:{primary:b.primary,secondary:b.secondary,tertiary:b.tertiary,subtle:b.subtle,muted:b.muted,disabled:b.disabled,tooltip:b.tooltip},extra:{inset:j,groundInset:j,groundField:j,tableDivider:x.tableDivider,borderSubtle:x.borderSubtle,border:x.border,cardBorder:x.cardBorder,pageSeparator:w.page,inputBackground:E.background,inputBorder:E.border,inputBorderHover:E.borderHover,groundTop:x.page,groundBottom:x.page,deep:`#000000`,fillInk:`#191919`,agentInk:`#15171C`,agentQuiet:`#C3C6CE`}},light:{ladder:Yt(e=>O[e]),border:Yt(e=>e===`raised`?O.borderSubtle:O.border),outline:Yt(()=>O.cardBorder),separator:Yt(e=>e===`page`?`#DDE0E8`:O.tableDivider),tableHeader:Yt(e=>e===`page`?O.groundInset:Xt(e)?O.inset:O.page),ink:{primary:k.primary,secondary:k.secondary,tertiary:k.tertiary,subtle:k.subtle,muted:k.muted,disabled:k.disabled,tooltip:k.tooltip},extra:{inset:O.inset,groundInset:O.groundInset,groundField:O.groundField,tableDivider:O.tableDivider,borderSubtle:O.borderSubtle,border:O.border,cardBorder:O.cardBorder,pageSeparator:`#DDE0E8`,inputBackground:D.background,inputBorder:D.border,inputBorderHover:D.borderHover,groundTop:`#F5F7FC`,groundBottom:`#E6EAF3`,deep:`#1E2850`,fillInk:`#191919`,agentInk:`#15171C`,agentQuiet:`#C3C6CE`}}},Qt=.02,$t=.03;function en(e){let t=e.values?.neutral;if(et(t)){let[,e,n]=lt(t);return{hue:n,chroma:e}}let n=0,r=0,i=0;e.colors.fields.forEach((e,t)=>{let[,a,o]=at(e);n+=a*Xe[t].alpha,r+=o*Xe[t].alpha,i+=Xe[t].alpha}),n/=i,r/=i;let a=Math.hypot(n,r);return{hue:a<1e-4?NaN:(Math.atan2(r,n)*180/Math.PI+360)%360,chroma:a}}var tn=(e,t)=>Object.fromEntries(Object.entries(e).map(([e,n])=>[e,t(n)]));function nn(e,t,n,r){let i={...e};for(let a of[`primary`,`secondary`,`tertiary`,`subtle`,`muted`]){let o=pt(t.ink[a],t.ladder.widget);i[a]=mt(e[a],r,e=>pt(e,n.widget)>=o-.005)}return i}function rn(e){let t=Zt[e.mode],n=en(e),r=e=>ht(e,n.hue,Math.min(n.chroma,Qt)),i=e=>ht(e,n.hue,Math.min(n.chroma,$t)),a=tn(t.ladder,r),o=tn(t.ink,i),s=tn(t.extra,r);for(let e of[`deep`,`fillInk`,`agentInk`,`agentQuiet`])s[e]=i(t.extra[e]);return{ladder:a,border:tn(t.border,r),outline:tn(t.outline,r),separator:tn(t.separator,r),tableHeader:tn(t.tableHeader,r),ink:nn(o,t,a,e.mode===`dark`?`#FFFFFF`:`#000000`),extra:s}}function an(e){return e===`raised`||e===`overlay`?`secondary`:e===`surface`?`tertiary`:`subtle`}function on(e){return d(e)===e?f(e):d(e)}function sn(e,t,n){let r=t.ladder,i=e===`page`,a=r[d(d(e))],o=i?t.extra.groundInset:r[f(e)];return{bg:r[e],field:o,fieldFill:o,fieldBorder:i?t.outline[e]:t.extra.inputBorder,text:t.ink.primary,textSecondary:t.ink.secondary,textQuiet:t.ink[an(e)],border:t.border[e],outline:t.outline[e],separator:t.separator[e],hover:`rgba(255, 255, 255, 0.06)`,selected:n.tintByRung[e],child:r[d(e)],rowSelected:r[on(e)],rowSelectedInk:t.ink[an(on(e))],control:r[d(d(e))],raised:r[p(e)],tableHeader:t.tableHeader[e],tableHeaderInk:e===`raised`||e===`overlay`?t.ink.secondary:t.ink.tertiary,tableRowHover:a===r[e]?r[f(e)]:a}}var cn=(e,t)=>`calc(${R(e,String(t))} * 100%)`;function ln(e,t){let n=`color-mix(in oklab, #FFFFFF ${cn(`fieldWhiteLight`,I.white)}, ${e})`;return`color-mix(in oklab, ${t} ${cn(`fieldTintLight`,I.tint)}, ${n})`}function un(e,t,n){let r=t.ladder,i=r[e]===r.overlay,a=e===`page`?t.extra.groundField:i?t.extra.inset:r[f(e)];return{bg:r[e],field:a,fieldFill:ln(a,n.main),fieldBorder:t.extra.inputBorder,text:t.ink.primary,textSecondary:t.ink.secondary,textQuiet:e===`page`?t.ink.tertiary:t.ink.subtle,border:t.border[e],outline:t.outline[e],separator:t.separator[e],hover:_t(t.ink.primary,.04),selected:n.tintByRung[e],child:r[d(e)],rowSelected:i?n.tintByRung[e]:r[d(e)],rowSelectedInk:i?t.ink.tertiary:t.ink.subtle,control:e===`page`?t.extra.groundInset:i?t.extra.inset:r.page,raised:r[p(e)],tableHeader:t.tableHeader[e],tableHeaderInk:t.ink.tertiary,tableRowHover:i?t.extra.inset:r.overlay}}var dn=.5,fn=(e,t,n)=>`color-mix(in oklab, ${e} ${Math.round(t*100)}%, ${n})`;function pn(e,t){let n=e.extra.agentInk,r=e.extra.agentQuiet,i=n;for(let e=.35;e<1;e+=.02){let a=dt(t.main,n,e);if(pt(r,a)>=4.5&&pt(`#FFFFFF`,a)>=7){i=a;break}}let a=`color-mix(in oklab, ${dt(t.main,n,.78)} ${`calc(${R(`agentDepthLight`,String(dn))} * 100%)`}, ${i})`,o=fn(`#FFFFFF`,.08,a);return{bg:a,field:fn(`#000000`,.22,a),fieldFill:fn(`#000000`,.22,a),fieldBorder:fn(`#FFFFFF`,.18,a),text:`#FFFFFF`,textSecondary:r,textQuiet:r,border:fn(`#FFFFFF`,.16,a),outline:fn(`#FFFFFF`,.22,a),separator:fn(`#FFFFFF`,.1,a),hover:`rgba(255, 255, 255, 0.06)`,selected:fn(t.main,.35,a),child:o,rowSelected:o,rowSelectedInk:r,control:fn(`#FFFFFF`,.12,a),raised:o,tableHeader:fn(`#000000`,.1,a),tableHeaderInk:r,tableRowHover:o}}function mn(e,t,n){let r=e.mode===`dark`?sn:un,i=Object.fromEntries(u.map(e=>[e,r(e,t,n)]));return{...i,agent:e.mode===`dark`?i.surface:pn(t,n)}}var hn={dark:{ask:{ink:`#6FCF97`,fill:`#6FCF9729`},plan:{ink:`#F2C94C`,fill:`#F2C94C29`},agent:{ink:`#D39FE6`,fill:`#BB6BD929`}},light:{ask:{ink:`#3A6B4F`,fill:`#E8F3EC`},plan:{ink:`#76603A`,fill:`#F6EFD9`},agent:{ink:`#6A5180`,fill:`#F0E9F4`}}},gn={impacted:{label:`Impacted`,stroke:`#BA1358`,fill:`#BA1358`},host:{label:`Host`,stroke:`#36C5F0`,fill:`#103B48`},role:{label:`Role`,stroke:`#C8511B`,fill:`#4E2A1A`},policy:{label:`Policy`,stroke:`#3F8624`,fill:`#26351F`},action:{label:`Action`,stroke:`#D3D3D3`,fill:`#363636`},resource:{label:`Resource`,stroke:`#12264D`,fill:`#3D7FFF`}},_n={dark:{surface:`#141414`,series:[`#6737fe`,`#cd7a00`,`#009ed2`,`#fc4400`,`#3a9c00`,`#0058fb`,`#9b9501`],sequential:[`#00596a`,`#00819c`,`#00a9cf`,`#22c9f2`,`#7ce0fa`],diverging:{negative:[`#8d1d00`,`#ab2600`,`#ca3000`],midpoint:`#5e5e5e`,positive:[`#00596a`,`#00819c`,`#00acd0`]},ink:{grid:`rgba(255, 255, 255, 0.06)`,axis:`rgba(174, 174, 174, 0.55)`,label:`#AEAEAE`,tooltipBg:`#242424`,tooltipBorder:`#2B2B33`,tooltipText:`#FFFFFF`,areaOpacity:.22}},light:{surface:`#FFFFFF`,series:[`#6107fe`,`#ac6500`,`#0084b0`,`#d43800`,`#2e8100`,`#005cff`,`#827d00`],sequential:[`#00c4f0`,`#00aed5`,`#0098bb`,`#0083a1`,`#006e88`],diverging:{negative:[`#7a1c00`,`#b32c00`,`#ef4b12`],midpoint:`#888888`,positive:[`#003d49`,`#00728a`,`#00acd0`]},ink:{grid:`rgba(0, 0, 0, 0.08)`,axis:`rgba(92, 92, 92, 0.55)`,label:`#5C5C5C`,tooltipBg:`#FFFFFF`,tooltipBorder:`#DDDDDD`,tooltipText:`#1A1A1A`,areaOpacity:.18}}},vn=[`success`,`failure`,`warning`,`info`,`general`],yn=[`critical`,`high`,`medium`,`low`,`info`,`untriaged`],bn=[`neutral`,`info`,`success`,`warning`,`error`,`critical`,`high`,`medium`,`low`,`primary`],xn=[`ask`,`plan`,`agent`],Sn=Object.keys(gn),Cn=[`comment`,`keyword`,`string`,`constant`,`regexp`,`type`,`identifier`,`tag`,`invalid`],wn={dark:`#A99BE8`,light:`#8E7CFF`},Tn={dark:{comment:`#6A737D`,keyword:`#F97583`,string:`#9ECBFF`,constant:`#79B8FF`,regexp:`#DBEDFF`,type:`#B392F0`,tag:`#85E89D`,invalid:`#FDAEB7`},light:{comment:`#6A737D`,keyword:`#D73A49`,string:`#032F62`,constant:`#005CC5`,regexp:`#032F62`,type:`#6F42C1`,tag:`#22863A`,invalid:`#B31D28`}};function En(e,t,n){let r=e.values?.[t];return et(r)?r.toUpperCase():n}function Dn(e,t){return pt(`#FFFFFF`,e)>=pt(t.extra.fillInk,e)?`#FFFFFF`:t.extra.fillInk}var On=e=>(pt(e,`#000000`)-1)/20;function kn(e,t,n){if(t===`dark`){let t=On(e);return t<.08?dt(e,`#FFFFFF`,.45):t<.15?dt(e,`#FFFFFF`,.25):e}return mt(e,`#000000`,e=>pt(e,n.ladder.widget)>=4.5)}function An(e,t,n,r){let i=On(e)<.08?dt(e,`#FFFFFF`,.35):e;return{hue:e,label:r?e:kn(e,t,n),fill:i,on:On(i)<.3?`#FFFFFF`:n.extra.fillInk,tint:r?t===`light`?.06:.12:On(e)<.08?.18:.12}}var jn=(e,t)=>Object.fromEntries(e.map(e=>[e,t(e)]));function Mn(e,t,n){let{mode:r}=e,i=r===`dark`?`#FFFFFF`:`#000000`,a=jn(vn,i=>{let a=En(e,`status-${i}`,i===`general`?n.main:M[r][i]);return{fill:a,ink:Dn(a,t)}}),o=jn(yn,n=>{let a=En(e,`severity-${n}`,N[r][n].toUpperCase()),o=mt(a,i,e=>u.every(n=>pt(e,t.ladder[n])>=4.5));return{fill:a,ink:Dn(a,t),text:o}}),s={neutral:t.ink.secondary,info:a.info.fill,success:a.success.fill,warning:a.warning.fill,error:a.failure.fill,critical:o.critical.fill,high:o.high.fill,medium:o.medium.fill,low:o.low.fill,primary:n.main},c=jn(bn,n=>An(En(e,`chip-${n}`,s[n]),r,t,n===`neutral`)),l=e=>mt(e,i,e=>u.every(n=>pt(e,t.ladder[n])>=3)),d={success:l(a.success.fill),failure:l(a.failure.fill),warning:l(a.warning.fill),info:l(a.info.fill),general:n.main,tabIcon:t.ink.muted,actionActive:t.ink.primary,inactiveToggle:t.ink.secondary,activeTabIcon:n.main,alert:l(o.critical.fill),vulnerability:l(o.high.fill),attackPathDefault:t.ink.primary,attackPathSuccess:l(a.success.fill),attackPathFailure:l(a.failure.fill)},f=jn(g,t=>En(e,`icon-${t}`,d[t])),p=jn(xn,t=>({ink:e.values?.[`mode-${t}-ink`]??hn[r][t].ink,fill:e.values?.[`mode-${t}-fill`]??hn[r][t].fill})),m=jn(Sn,t=>({stroke:En(e,`attack-${t}-stroke`,gn[t].stroke),fill:En(e,`attack-${t}-fill`,gn[t].fill)})),h=_n[r],_=e=>e.map(e=>e.toUpperCase()),v={surface:t.ladder.widget,series:_(h.series).map((t,n)=>En(e,`chart-series-${n+1}`,t)),sequential:_(h.sequential),negative:_(h.diverging.negative),midpoint:r===`dark`?t.ink.disabled:t.ink.muted,positive:_(h.diverging.positive),grid:h.ink.grid,axis:h.ink.axis,label:t.ink.tertiary,tooltipBg:r===`dark`?t.ladder.surface:t.ladder.overlay,tooltipBorder:t.border.surface,tooltipInk:t.ink.primary,areaOpacity:h.ink.areaOpacity},y=jn(Cn,n=>En(e,`syntax-${n}`,n===`identifier`?t.ink.primary:Tn[r][n]));return{ai:En(e,`accent-ai`,wn[r]),status:a,severity:o,chip:c,icon:f,agentMode:p,attack:m,chart:v,syntax:y}}var Nn=e=>`--ds-${e}`,Pn=e=>Array.from({length:e},(e,t)=>t+1),Fn={bg:Nn(`bg`),field:Nn(`field`),fieldFill:Nn(`field-fill`),fieldBorder:Nn(`field-border`),text:Nn(`text`),textSecondary:Nn(`text-secondary`),textQuiet:Nn(`text-quiet`),border:Nn(`border`),outline:Nn(`outline`),separator:Nn(`separator`),hover:Nn(`hover`),selected:Nn(`selected`),child:Nn(`child`),rowSelected:Nn(`row-selected`),rowSelectedInk:Nn(`row-selected-ink`),control:Nn(`control`),raised:Nn(`raised`),tableHeader:Nn(`table-header`),tableHeaderInk:Nn(`table-header-ink`),tableRowHover:Nn(`table-row-hover`)},In=Object.values(Fn),Ln=[`accent`,`accent-light`,`accent-ai`,`on-accent`,`button-ink`,`button-top`,`button-bottom`,`button-hover-top`,`button-hover-bottom`,`focus-ring`,`link`,`accent-wash`,`ink-primary`,`ink-secondary`,`ink-tertiary`,`ink-subtle`,`ink-muted`,`ink-disabled`,`tooltip-bg`,`tooltip-ink`,`tooltip-edge`,`input-border`,`input-border-hover`,`input-error`,`divider`,`paper`,`body`,`scrollbar`,`color-scheme`,...vn.flatMap(e=>[`status-${e}`,`status-${e}-ink`]),...yn.flatMap(e=>[`severity-${e}`,`severity-${e}-ink`,`severity-${e}-text`]),...bn.flatMap(e=>[`chip-${e}`,`chip-${e}-text`,`chip-${e}-fill`,`chip-${e}-on`,`chip-${e}-tint`]),...g.map(e=>`icon-${e}`),...xn.flatMap(e=>[`mode-${e}-ink`,`mode-${e}-fill`]),...Sn.flatMap(e=>[`attack-${e}-stroke`,`attack-${e}-fill`]),`chart-surface`,...Pn(7).map(e=>`chart-series-${e}`),...Pn(5).map(e=>`chart-seq-${e}`),...Pn(3).map(e=>`chart-neg-${e}`),`chart-mid`,...Pn(3).map(e=>`chart-pos-${e}`),`chart-grid`,`chart-axis`,`chart-text`,`chart-tooltip-bg`,`chart-tooltip-border`,`chart-tooltip-ink`,`chart-area-opacity`,...Cn.map(e=>`syntax-${e}`),...kt.flatMap(e=>[`shadow-${e}`,`elevation-${e}`,`elevation-tinted-${e}`]),`shadow-table-header`,`shadow-seam`,`shadow-seam-tinted`,...[`menu`,`drawer`,`dialog`,`loading`].map(e=>`scrim-${e}-tinted`),`glass-plane`,`glass-plane-base`,`glass-subnav`,`glass-subnav-base`,`glass-band`,`glass-band-base`,`glass-pane`,`ground`,`ground-page`,...Pn(5).map(e=>`ground-field-${e}`),`ground-line`,`ground-line-opacity`,`ground-blend`,`scrim-menu`,`scrim-drawer`,`scrim-dialog`,`scrim-loading`,`on-accent-inset`,`avatar-hairline`,`agent-bg`,`agent-text`,`agent-child`,`fill-ink`,`on-fill`].map(Nn);[...Ln,...In];function Rn(e){return Object.fromEntries(Object.keys(Fn).map(t=>[Fn[t],e[t]]))}function zn(e){let t=rn(e),n=Ot(e.colors.accent,e.mode,t),r=Mn(e,t,n),i=Jt(e,t),a=mn(e,t,n),o={accent:n.main,"accent-light":n.light,"accent-ai":r.ai,"on-accent":n.onAccent,"button-ink":n.buttonInk,"button-top":n.buttonGradient[0],"button-bottom":n.buttonGradient[1],"button-hover-top":n.buttonGradientHover[0],"button-hover-bottom":n.buttonGradientHover[1],"focus-ring":n.focusRing,link:n.link,"accent-wash":n.wash,"ink-primary":t.ink.primary,"ink-secondary":t.ink.secondary,"ink-tertiary":t.ink.tertiary,"ink-subtle":t.ink.subtle,"ink-muted":t.ink.muted,"ink-disabled":t.ink.disabled,"tooltip-bg":i.tooltip.bg,"tooltip-ink":i.tooltip.ink,"tooltip-edge":i.tooltip.edge,"input-border":t.extra.inputBorder,"input-border-hover":t.extra.inputBorderHover,"input-error":r.status.failure.fill,divider:t.extra.border,paper:t.ladder.widget,body:t.ladder.primary,scrollbar:i.scrollbar,"color-scheme":e.mode,"chart-surface":r.chart.surface,"chart-mid":r.chart.midpoint,"chart-grid":r.chart.grid,"chart-axis":r.chart.axis,"chart-text":r.chart.label,"chart-tooltip-bg":r.chart.tooltipBg,"chart-tooltip-border":r.chart.tooltipBorder,"chart-tooltip-ink":r.chart.tooltipInk,"chart-area-opacity":r.chart.areaOpacity,"shadow-table-header":i.tableHeaderShadow,"shadow-seam":i.seamShadow,"glass-plane":i.glass.plane,"glass-plane-base":i.glass.planeBase,"glass-subnav":i.glass.subnav,"glass-subnav-base":i.glass.subnavBase,"glass-band":i.glass.band,"glass-band-base":i.glass.bandBase,"glass-pane":i.glass.pane,ground:i.ground.background,"ground-page":i.ground.page,"ground-line":i.ground.line,"ground-line-opacity":i.ground.lineOpacity,"ground-blend":i.ground.blend,"on-accent-inset":i.onAccentInset,"avatar-hairline":i.avatarHairline,"agent-bg":a.agent.bg,"agent-text":a.agent.text,"agent-child":a.agent.child,"fill-ink":t.extra.fillInk,"on-fill":e.mode===`dark`?t.extra.fillInk:`#FFFFFF`};for(let[e,t]of Object.entries(r.status))Object.assign(o,{[`status-${e}`]:t.fill,[`status-${e}-ink`]:t.ink});for(let[e,t]of Object.entries(r.severity))Object.assign(o,{[`severity-${e}`]:t.fill,[`severity-${e}-ink`]:t.ink,[`severity-${e}-text`]:t.text});for(let[e,t]of Object.entries(r.chip))Object.assign(o,{[`chip-${e}`]:t.hue,[`chip-${e}-text`]:t.label,[`chip-${e}-fill`]:t.fill,[`chip-${e}-on`]:t.on,[`chip-${e}-tint`]:t.tint});for(let[e,t]of Object.entries(r.icon))o[`icon-${e}`]=t;for(let[e,t]of Object.entries(r.agentMode))Object.assign(o,{[`mode-${e}-ink`]:t.ink,[`mode-${e}-fill`]:t.fill});for(let[e,t]of Object.entries(r.attack))Object.assign(o,{[`attack-${e}-stroke`]:t.stroke,[`attack-${e}-fill`]:t.fill});r.chart.series.forEach((e,t)=>{o[`chart-series-${t+1}`]=e}),r.chart.sequential.forEach((e,t)=>{o[`chart-seq-${t+1}`]=e}),r.chart.negative.forEach((e,t)=>{o[`chart-neg-${t+1}`]=e}),r.chart.positive.forEach((e,t)=>{o[`chart-pos-${t+1}`]=e});for(let[e,t]of Object.entries(r.syntax))o[`syntax-${e}`]=t;for(let[e,t]of Object.entries(i.shadow))o[`shadow-${e}`]=t;for(let[e,t]of Object.entries(i.elevation))o[`elevation-${e}`]=t;for(let[e,t]of Object.entries(i.tinted.elevation))o[`elevation-tinted-${e}`]=t;o[`shadow-seam-tinted`]=i.tinted.seamShadow;for(let[e,t]of Object.entries(i.tinted.scrim))o[`scrim-${e}-tinted`]=t;i.ground.fields.forEach((e,t)=>{o[`ground-field-${t+1}`]=e});for(let[e,t]of Object.entries(i.scrim))o[`scrim-${e}`]=t;for(let[t,n]of Object.entries(e.values??{}))n!==void 0&&Ln.includes(`--ds-${t}`)&&(o[t]=n);let s=Object.fromEntries(Ln.map(e=>[e,String(o[e.slice(5)])])),c=[...u,`agent`];return{id:e.id,mode:e.mode,globals:s,scopes:Object.fromEntries(c.map(e=>[e,Rn(a[e])]))}}var Bn=`ds-theme-change`,Vn=`data-ds-theme`,Hn=[`page`,`primary`,`widget`,`surface`,`raised`,`overlay`,`agent`],Un=[[`.MuiAppBar-root`,`page`],[`.MuiDialog-paper`,`surface`],[`.MuiDrawer-paper`,`surface`],[`.MuiPopover-paper`,`raised`],[`.MuiSnackbarContent-root`,`raised`]],Wn=e=>Object.entries(e).map(([e,t])=>`${e}:${t};`).join(``),Gn={"--mui-palette-text-primary":`var(--ds-text)`,"--mui-palette-text-secondary":`var(--ds-text-secondary)`,"--mui-palette-text-quiet":`var(--ds-text-quiet)`},Kn=e=>Wn(e)+Wn(Gn);function qn(e,t){let n=t??`:root`,r=e=>t?`${t} ${e}`:e,i=[`${n}{color-scheme:${e.mode};${Wn(e.globals)}${Kn(e.scopes.primary)}}`];for(let t of Hn)i.push(`${r(`[data-surface="${t}"]`)}{${Kn(e.scopes[t])}}`);let a=e.mode===`dark`?[...Un,[`.MuiTooltip-tooltip`,`raised`]]:Un;for(let[t,n]of a)i.push(`${r(`:where(${t})`)}{${Kn(e.scopes[n])}}`);return t||i.push(ke,Me,`:root,:root *{--ds-hover:color-mix(in srgb, var(--ds-accent) 9%, transparent);--ds-selected:color-mix(in srgb, var(--ds-accent) 15%, transparent);--ds-accent-wash:color-mix(in srgb, var(--ds-accent) 15%, transparent);}`),i.join(`
4
+ `)}function Jn(e,t=globalThis.document){if(!t)return;let n=t.head.querySelector(`style[${Vn}]`);n||(n=t.createElement(`style`),n.setAttribute(Vn,``),t.head.appendChild(n)),n.textContent=qn(e),t.documentElement.dataset.dsTheme=e.id,t.documentElement.dataset.dsMode=e.mode,t.defaultView?.dispatchEvent(new Event(Bn))}function Yn(e=globalThis.document){if(!e||e.documentElement.dataset.dsTheme)return;let t=e.defaultView?.matchMedia?.(`(prefers-color-scheme: dark)`).matches??!0?`dark`:`light`;Jn(zn(xt(yt[t],t)),e)}function Xn(e,t){let n=e??globalThis.document?.documentElement,r=n&&typeof getComputedStyle==`function`?getComputedStyle(n):null;return Object.fromEntries(t.map(e=>[e,r?.getPropertyValue(e).trim()??``]))}function Zn(){let[e,t]=(0,K.useState)(0);return(0,K.useEffect)(()=>{let e=()=>t(e=>e+1);return window.addEventListener(Bn,e),()=>window.removeEventListener(Bn,e)},[]),e}var Qn={duration:{fast:120,base:160,slow:220},easing:{standard:`cubic-bezier(0.2, 0, 0, 1)`},pulse:`1.6s`};function $n(e,t=`base`){return(typeof e==`string`?[e]:e).map(e=>`${e} ${Qn.duration[t]}ms ${Qn.easing.standard}`).join(`, `)}var er={"@media (prefers-reduced-motion: reduce)":{"*, *::before, *::after":{transitionDuration:`1ms !important`,animationDuration:`1ms !important`,animationIterationCount:`1 !important`}}},tr=`--ds-field-fill-scoped`,nr=(e,t)=>`calc(${R(e,String(t))} * 100%)`;function rr(e){return{backgroundColor:`var(${tr}, var(--ds-field-fill))`,...e.applyStyles(`dark`,{backgroundColor:`var(--ds-field-fill)`})}}function ir(e){return`color-mix(in oklab, ${e} ${nr(`fieldEdgeLight`,I.edge)}, transparent)`}function ar(){let e=R(`chromeFieldColorLight`,L.color);return{[tr]:`color-mix(in srgb, ${e} ${nr(`chromeFieldAlphaLight`,L.alpha)}, transparent)`,[P.fieldEdgeLight]:R(`chromeFieldEdgeLight`,String(L.edge))}}var or={sm:14,md:16,lg:20},sr={sm:380,md:430,lg:560,xl:660,full:954},cr={small:28,medium:36,large:44},lr={small:22,medium:cr.small,large:cr.medium,extraLarge:cr.large},ur={small:24,medium:32,large:40},dr=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),fr=s(((e,t)=>{t.exports=dr()})),pr=e=>e,mr=(()=>{let e=pr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pr}}})();function hr(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function gr(e){if(typeof e!=`string`)throw Error(hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var _r=gr;function vr(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}var yr=vr;function br(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=br(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function q(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=br(e))&&(r&&(r+=` `),r+=t);return r}function xr(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function Sr(e,t){let n=Array.isArray(t),r=Array.isArray(e);return Dr(t)?t:Or(e)?kr(t):n&&r?Tr(e,t):n===r?Ar(e,t):kr(t)}function Cr(e){let t=0,n=e.length,r=Array(n);for(t=0;t<n;t+=1)r[t]=kr(e[t]);return r}function wr(e){let t={};for(let n in e)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=kr(e[n]));return t}function Tr(e,t){let n=e.length;for(let r=0;r<t.length;r+=1)e[n+r]=kr(t[r]);return e}function Er(e){return typeof e==`object`&&!!e&&!(e instanceof RegExp)&&!(e instanceof Date)}function Dr(e){return typeof e!=`object`||!e}function Or(e){return typeof e!=`object`||!e||e instanceof RegExp||e instanceof Date}function kr(e){return Er(e)?Array.isArray(e)?Cr(e):wr(e):e}function Ar(e,t){for(let n in t)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(e[n]=n in e?Sr(e[n],t[n]):kr(t[n]));return e}function jr(e){if(e==null)return!0;for(let t in e)return!1;return!0}var Mr=s((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.view_transition`),f=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||e===d||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===f||e.getModuleId!==void 0))}})),Nr=s(((e,t)=>{t.exports=Mr()}))();function Pr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fr(e){if(K.isValidElement(e)||(0,Nr.isValidElementType)(e)||!Pr(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=Fr(e[n])}),t}function Ir(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Pr(e)&&Pr(t)&&Object.keys(t).forEach(i=>{K.isValidElement(t[i])||(0,Nr.isValidElementType)(t[i])?r[i]=t[i]:Pr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Pr(e[i])?r[i]=Ir(e[i],t[i],n):n.clone?r[i]=Pr(t[i])?Fr(t[i]):t[i]:r[i]=t[i]}),r}var Lr=/min-width:\s*([0-9.]+)/;function Rr(e,t){if(!e.containerQueries||!zr(t))return t;let n=[];for(let e in t)e.startsWith(`@container`)&&n.push(e);n.sort((e,t)=>+(e.match(Lr)?.[1]||0)-(t.match(Lr)?.[1]||0));let r=t;for(let e=0;e<n.length;e+=1){let t=n[e],i=r[t];delete r[t],r[t]=i}return r}function zr(e){for(let t in e)if(t.startsWith(`@container`))return!0;return!1}function Br(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Vr(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Hr(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Ur=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Wr(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Ur(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}let f=[];for(let e=0;e<o.length;e+=1)f.push(s(o[e]));return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,internal_mediaKeys:f,...i}}var Gr={},Kr={xs:0,sm:600,md:900,lg:1200,xl:1536},qr=Wr({values:Kr}),Jr={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Kr[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Yr(e,t,n){let r={};return Xr(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:Sr(r,a)})}function Xr(e,t,n,r){if(t??=Gr,Array.isArray(n)){let i=t.breakpoints??qr;for(let t=0;t<n.length;t+=1)Zr(e,i.up(i.keys[t]),n[t],void 0,r);return e}if(typeof n==`object`){let i=t.breakpoints??qr,a=i.values??Kr;for(let o in n)if(Br(i.keys,o)){let i=Vr(t.containerQueries?t:Jr,o);i&&Zr(e,i,n[o],o,r)}else if(o in a)Zr(e,i.up(o),n[o],o,r);else{let t=o;e[t]=n[t]}return e}return r(void 0,n),e}function Zr(e,t,n,r,i){e[t]??={},i(t,n,r)}function Qr(e=qr){let{internal_mediaKeys:t}=e,n={};for(let e=0;e<t.length;e+=1)n[t[e]]={};return n}function $r(e,t){let n=e.internal_mediaKeys;for(let e=0;e<n.length;e+=1){let r=n[e];jr(t[r])&&delete t[r]}return t}function ei(e,...t){return $r(e,[Qr(e),...t].reduce((e,t)=>Ir(e,t),{}))}function ti(e,t){if(typeof e!=`object`)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{e[t]!=null&&(n[t]=!0)}),n}function ni(e){let{values:t,breakpoints:n,base:r}=e,i=r||ti(t,n),a=Object.keys(i);if(a.length===0)return t;let o;return a.reduce((e,n,r)=>{if(Array.isArray(t))e[n]=t[r]==null?t[o]:t[r],o=r;else if(typeof t==`object`&&t){let r=t;e[n]=r[n]==null?r[o]:r[n],o=n}else e[n]=t;return e},{})}function ri(e,t){if(Array.isArray(t))return!0;if(typeof t==`object`&&t){for(let n=0;n<e.keys.length;n+=1)if(e.keys[n]in t)return!0;let n=Object.keys(t);for(let t=0;t<n.length;t+=1)if(Br(e.keys,n[t]))return!0}return!1}function ii(e,t,n,r){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||n:typeof n==`string`&&ai(e,n,!0,r)||n,t&&(i=t(i,n,e)),i}function ai(e,t,n=!0,r=void 0){if(!e||!t)return null;let i=t.split(`.`);if(e.vars&&n){let t=oi(e.vars,i,r);if(t!=null)return t}return oi(e,i,r)}function oi(e,t,n=void 0){let r,i=e,a=0;for(;a<t.length;){if(i==null)return i;r=i,i=i[t[a]],a+=1}if(n&&i===void 0){let e=t[t.length-1],i=`${n}${e==="default"?``:gr(e)}`;return r?.[i]}return i}function si(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=ai(o,r)||{};return Yr(e,a,e=>{let r=ii(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}var ci={internal_cache:{}},li={m:`margin`,p:`padding`},ui={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},di={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},fi={};for(let e in li)fi[e]=[li[e]];for(let e in li)for(let t in ui){let n=li[e],r=ui[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];fi[e+t]=i}for(let e in di)fi[e]=fi[di[e]];var pi=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),mi=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]);[...pi,...mi];function hi(e,t,n,r){let i=ai(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function gi(e){return hi(e,`spacing`,8,`spacing`)}function _i(e,t){return typeof t==`string`||t==null?t:e(t)}var vi=[``];function yi(e,t){let n=e.theme??ci,r=n?.internal_cache?.unarySpacing??gi(n),i={};for(let n in e){if(!t.has(n))continue;let a=fi[n]??(vi[0]=n,vi),o=e[n];Xr(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e<a.length;e+=1)n[a[e]]=_i(r,t)})}return i}function bi(e){return yi(e,pi)}bi.propTypes={},bi.filterProps=pi;var xi=bi;function Si(e){return yi(e,mi)}Si.propTypes={},Si.filterProps=mi;var Ci=Si;function wi(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>{let n={};for(let r in e)t[r]&&Sr(n,t[r](e));return n};return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Ti(e){return typeof e==`number`?`${e}px solid`:e}function Ei(e,t){return si({prop:e,themeKey:`borders`,transform:t})}var Di=Ei(`border`,Ti),Oi=Ei(`borderTop`,Ti),ki=Ei(`borderRight`,Ti),Ai=Ei(`borderBottom`,Ti),ji=Ei(`borderLeft`,Ti),Mi=Ei(`borderColor`),Ni=Ei(`borderTopColor`),Pi=Ei(`borderRightColor`),Fi=Ei(`borderBottomColor`),Ii=Ei(`borderLeftColor`),Li=Ei(`outline`,Ti),Ri=Ei(`outlineColor`),zi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=hi(e.theme,`shape.borderRadius`,4,`borderRadius`);return Yr(e,e.borderRadius,e=>({borderRadius:_i(t,e)}))}return null};zi.propTypes={},zi.filterProps=[`borderRadius`],wi(Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,zi,Li,Ri);var Bi=e=>{if(e.gap!==void 0&&e.gap!==null){let t=hi(e.theme,`spacing`,8,`gap`);return Yr(e,e.gap,e=>({gap:_i(t,e)}))}return null};Bi.propTypes={},Bi.filterProps=[`gap`];var Vi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=hi(e.theme,`spacing`,8,`columnGap`);return Yr(e,e.columnGap,e=>({columnGap:_i(t,e)}))}return null};Vi.propTypes={},Vi.filterProps=[`columnGap`];var Hi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=hi(e.theme,`spacing`,8,`rowGap`);return Yr(e,e.rowGap,e=>({rowGap:_i(t,e)}))}return null};Hi.propTypes={},Hi.filterProps=[`rowGap`],wi(Bi,Vi,Hi,si({prop:`gridColumn`}),si({prop:`gridRow`}),si({prop:`gridAutoFlow`}),si({prop:`gridAutoColumns`}),si({prop:`gridAutoRows`}),si({prop:`gridTemplateColumns`}),si({prop:`gridTemplateRows`}),si({prop:`gridTemplateAreas`}),si({prop:`gridArea`}));function Ui(e,t){return t===`grey`?t:e}wi(si({prop:`color`,themeKey:`palette`,transform:Ui}),si({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Ui}),si({prop:`backgroundColor`,themeKey:`palette`,transform:Ui}));var Wi=Kr;function Gi(e){return e<=1&&e!==0?`${e*100}%`:e}var Ki=si({prop:`width`,transform:Gi}),qi=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Yr(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Wi[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Gi(t)}}):null;qi.filterProps=[`maxWidth`];var Ji=si({prop:`minWidth`,transform:Gi}),Yi=si({prop:`height`,transform:Gi}),Xi=si({prop:`maxHeight`,transform:Gi}),Zi=si({prop:`minHeight`,transform:Gi});si({prop:`size`,cssProperty:`width`,transform:Gi}),si({prop:`size`,cssProperty:`height`,transform:Gi}),wi(Ki,qi,Ji,Yi,Xi,Zi,si({prop:`boxSizing`}));var Qi={border:{themeKey:`borders`,transform:Ti},borderTop:{themeKey:`borders`,transform:Ti},borderRight:{themeKey:`borders`,transform:Ti},borderBottom:{themeKey:`borders`,transform:Ti},borderLeft:{themeKey:`borders`,transform:Ti},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Ti},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:zi},color:{themeKey:`palette`,transform:Ui},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Ui},backgroundColor:{themeKey:`palette`,transform:Ui},p:{style:Ci},pt:{style:Ci},pr:{style:Ci},pb:{style:Ci},pl:{style:Ci},px:{style:Ci},py:{style:Ci},padding:{style:Ci},paddingTop:{style:Ci},paddingRight:{style:Ci},paddingBottom:{style:Ci},paddingLeft:{style:Ci},paddingX:{style:Ci},paddingY:{style:Ci},paddingInline:{style:Ci},paddingInlineStart:{style:Ci},paddingInlineEnd:{style:Ci},paddingBlock:{style:Ci},paddingBlockStart:{style:Ci},paddingBlockEnd:{style:Ci},m:{style:xi},mt:{style:xi},mr:{style:xi},mb:{style:xi},ml:{style:xi},mx:{style:xi},my:{style:xi},margin:{style:xi},marginTop:{style:xi},marginRight:{style:xi},marginBottom:{style:xi},marginLeft:{style:xi},marginX:{style:xi},marginY:{style:xi},marginInline:{style:xi},marginInlineStart:{style:xi},marginInlineEnd:{style:xi},marginBlock:{style:xi},marginBlockStart:{style:xi},marginBlockEnd:{style:xi},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:Bi},rowGap:{style:Hi},columnGap:{style:Vi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Gi},maxWidth:{style:qi},minWidth:{transform:Gi},height:{transform:Gi},maxHeight:{transform:Gi},minHeight:{transform:Gi},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}},$i={};function ea(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=$i,nested:i}=t,a=r.unstable_sxConfig??Qi,o={sx:null,theme:r,nested:!0};function s(n){let s=n;if(typeof n==`function`)s=n(r);else if(typeof n!=`object`)return n;if(!s)return null;let c=r.breakpoints??qr,l=Qr(c);for(let n in s){let i=ra(s[n],r);if(i!=null){if(typeof i!=`object`){na(l,n,i,r,a);continue}if(a[n]){na(l,n,i,r,a);continue}ri(c,i)?Xr(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o))}}return!i&&r.modularCssLayers?{"@layer sx":Rr(r,$r(c,l))}:Rr(r,$r(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var ta=ea();function na(e,t,n,r,i){let a=i[t];if(!a){e[t]=n;return}if(n==null)return;let{themeKey:o}=a;if(o===`typography`&&n===`inherit`){e[t]=n;return}let{style:s}=a;if(s){Sr(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=ai(r,o);Xr(e,r,n,(n,r)=>{let i=ii(u,l,r,t);c===!1?Sr(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function ra(e,t){return typeof e==`function`?e(t):e}var J=fr();function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}function ia(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function aa(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var oa=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(aa(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=ia(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),sa=`-ms-`,ca=`-moz-`,la=`-webkit-`,ua=`comm`,da=`rule`,fa=`decl`,pa=`@import`,ma=`@keyframes`,ha=`@layer`,ga=Math.abs,_a=String.fromCharCode,va=Object.assign;function ya(e,t){return wa(e,0)^45?(((t<<2^wa(e,0))<<2^wa(e,1))<<2^wa(e,2))<<2^wa(e,3):0}function ba(e){return e.trim()}function xa(e,t){return(e=t.exec(e))?e[0]:e}function Sa(e,t,n){return e.replace(t,n)}function Ca(e,t){return e.indexOf(t)}function wa(e,t){return e.charCodeAt(t)|0}function Ta(e,t,n){return e.slice(t,n)}function Ea(e){return e.length}function Da(e){return e.length}function Oa(e,t){return t.push(e),e}function ka(e,t){return e.map(t).join(``)}var Aa=1,ja=1,Ma=0,Na=0,Pa=0,Fa=``;function Ia(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Aa,column:ja,length:o,return:``}}function La(e,t){return va(Ia(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Ra(){return Pa}function za(){return Pa=Na>0?wa(Fa,--Na):0,ja--,Pa===10&&(ja=1,Aa--),Pa}function Ba(){return Pa=Na<Ma?wa(Fa,Na++):0,ja++,Pa===10&&(ja=1,Aa++),Pa}function Va(){return wa(Fa,Na)}function Ha(){return Na}function Ua(e,t){return Ta(Fa,e,t)}function Wa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ga(e){return Aa=ja=1,Ma=Ea(Fa=e),Na=0,[]}function Ka(e){return Fa=``,e}function qa(e){return ba(Ua(Na-1,Xa(e===91?e+2:e===40?e+1:e)))}function Ja(e){for(;(Pa=Va())&&Pa<33;)Ba();return Wa(e)>2||Wa(Pa)>3?``:` `}function Ya(e,t){for(;--t&&Ba()&&!(Pa<48||Pa>102||Pa>57&&Pa<65||Pa>70&&Pa<97););return Ua(e,Ha()+(t<6&&Va()==32&&Ba()==32))}function Xa(e){for(;Ba();)switch(Pa){case e:return Na;case 34:case 39:e!==34&&e!==39&&Xa(Pa);break;case 40:e===41&&Xa(e);break;case 92:Ba()}return Na}function Za(e,t){for(;Ba()&&e+Pa!==57&&(e+Pa!==84||Va()!==47););return`/*`+Ua(t,Na-1)+`*`+_a(e===47?e:Ba())}function Qa(e){for(;!Wa(Va());)Ba();return Ua(e,Na)}function $a(e){return Ka(eo(``,null,null,null,[``],e=Ga(e),0,[0],e))}function eo(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Ba()){case 40:if(m!=108&&wa(C,d-1)==58){Ca(C+=Sa(qa(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=qa(v);break;case 9:case 10:case 13:case 32:C+=Ja(m);break;case 92:C+=Ya(Ha()-1,7);continue;case 47:switch(Va()){case 42:case 47:Oa(no(Za(Ba(),Ha()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=Ea(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=Sa(C,/\f/g,``)),p>0&&Ea(C)-d&&Oa(p>32?ro(C+`;`,r,n,d-1):ro(Sa(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Oa(S=to(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123){if(u===0)eo(C,t,S,S,b,a,d,s,x);else switch(f===99&&wa(C,3)===110?100:f){case 100:case 108:case 109:case 115:eo(e,S,S,r&&Oa(to(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:eo(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Ea(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&za()==125)continue}switch(C+=_a(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Ea(C)-1)*_,_=1;break;case 64:Va()===45&&(C+=qa(Ba())),f=Va(),u=d=Ea(y=C+=Qa(Ha())),v++;break;case 45:m===45&&Ea(C)==2&&(h=0)}}return a}function to(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Da(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=Ta(e,d+1,d=ga(h=o[m])),y=e;_<p;++_)(y=ba(h>0?f[_]+` `+v:Sa(v,/&\f/g,f[_])))&&(c[g++]=y);return Ia(e,t,n,i===0?da:s,c,l,u)}function no(e,t,n){return Ia(e,t,n,ua,_a(Ra()),Ta(e,2,-2),0)}function ro(e,t,n,r){return Ia(e,t,n,fa,Ta(e,0,r),Ta(e,r+1,-1),r)}function io(e,t){for(var n=``,r=Da(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function ao(e,t,n,r){switch(e.type){case ha:if(e.children.length)break;case pa:case fa:return e.return=e.return||e.value;case ua:return``;case ma:return e.return=e.value+`{`+io(e.children,r)+`}`;case da:e.value=e.props.join(`,`)}return Ea(n=io(e.children,r))?e.return=e.value+`{`+n+`}`:``}function oo(e){var t=Da(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function so(e){return function(t){t.root||(t=t.return)&&e(t)}}function co(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var lo=function(e,t,n){for(var r=0,i=0;r=i,i=Va(),r===38&&i===12&&(t[n]=1),!Wa(i);)Ba();return Ua(e,Na)},uo=function(e,t){var n=-1,r=44;do switch(Wa(r)){case 0:r===38&&Va()===12&&(t[n]=1),e[n]+=lo(Na-1,t,n);break;case 2:e[n]+=qa(r);break;case 4:if(r===44){e[++n]=Va()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=_a(r)}while(r=Ba());return e},fo=function(e,t){return Ka(uo(Ga(e),t))},po=new WeakMap,mo=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if((e.props.length!==1||t.charCodeAt(0)===58||po.get(n))&&!r){po.set(e,!0);for(var i=[],a=fo(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},ho=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function go(e,t){switch(ya(e,t)){case 5103:return la+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return la+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return la+e+ca+e+sa+e+e;case 6828:case 4268:return la+e+sa+e+e;case 6165:return la+e+sa+`flex-`+e+e;case 5187:return la+e+Sa(e,/(\w+).+(:[^]+)/,la+`box-$1$2`+sa+`flex-$1$2`)+e;case 5443:return la+e+sa+`flex-item-`+Sa(e,/flex-|-self/,``)+e;case 4675:return la+e+sa+`flex-line-pack`+Sa(e,/align-content|flex-|-self/,``)+e;case 5548:return la+e+sa+Sa(e,`shrink`,`negative`)+e;case 5292:return la+e+sa+Sa(e,`basis`,`preferred-size`)+e;case 6060:return la+`box-`+Sa(e,`-grow`,``)+la+e+sa+Sa(e,`grow`,`positive`)+e;case 4554:return la+Sa(e,/([^-])(transform)/g,`$1`+la+`$2`)+e;case 6187:return Sa(Sa(Sa(e,/(zoom-|grab)/,la+`$1`),/(image-set)/,la+`$1`),e,``)+e;case 5495:case 3959:return Sa(e,/(image-set\([^]*)/,la+"$1$`$1");case 4968:return Sa(Sa(e,/(.+:)(flex-)?(.*)/,la+`box-pack:$3`+sa+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+la+e+e;case 4095:case 3583:case 4068:case 2532:return Sa(e,/(.+)-inline(.+)/,la+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ea(e)-1-t>6)switch(wa(e,t+1)){case 109:if(wa(e,t+4)!==45)break;case 102:return Sa(e,/(.+:)(.+)-([^]+)/,`$1`+la+`$2-$3$1`+ca+(wa(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Ca(e,`stretch`)?go(Sa(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(wa(e,t+1)!==115)break;case 6444:switch(wa(e,Ea(e)-3-(~Ca(e,`!important`)&&10))){case 107:return Sa(e,`:`,`:`+la)+e;case 101:return Sa(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+la+(wa(e,14)===45?`inline-`:``)+`box$3$1`+la+`$2$3$1`+sa+`$2box$3`)+e}break;case 5936:switch(wa(e,t+11)){case 114:return la+e+sa+Sa(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return la+e+sa+Sa(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return la+e+sa+Sa(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return la+e+sa+e+e}return e}var _o=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case fa:e.return=go(e.value,e.length);break;case ma:return io([La(e,{value:Sa(e.value,`@`,`@`+la)})],r);case da:if(e.length)return ka(e.props,function(t){switch(xa(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return io([La(e,{props:[Sa(t,/:(read-\w+)/,`:`+ca+`$1`)]})],r);case`::placeholder`:return io([La(e,{props:[Sa(t,/:(plac\w+)/,`:`+la+`input-$1`)]}),La(e,{props:[Sa(t,/:(plac\w+)/,`:`+ca+`$1`)]}),La(e,{props:[Sa(t,/:(plac\w+)/,sa+`input-$1`)]})],r)}return``})}}],vo=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||_o,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[mo,ho],l,u=[ao,so(function(e){l.insert(e)})],d=oo(c.concat(r,u)),f=function(e){return io($a(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new oa({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},yo=s((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),bo=s(((e,t)=>{t.exports=yo()})),xo=s(((e,t)=>{var n=bo(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function So(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var Co=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},wo=function(e,t,n){Co(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function To(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Eo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Do=/[A-Z]|^ms/g,Oo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ko=function(e){return e.charCodeAt(1)===45},Ao=function(e){return e!=null&&typeof e!=`boolean`},jo=co(function(e){return ko(e)?e:e.replace(Do,`-$&`).toLowerCase()}),Mo=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Oo,function(e,t,n){return Io={name:t,styles:n,next:Io},t})}return Eo[e]!==1&&!ko(e)&&typeof t==`number`&&t!==0?t+`px`:t};function No(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Io={name:i.name,styles:i.styles,next:Io},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Io={name:o.name,styles:o.styles,next:Io},o=o.next;return a.styles+`;`}return Po(e,t,n);case`function`:if(e!==void 0){var s=Io,c=n(e);return Io=s,No(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Po(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=No(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Ao(s)&&(r+=jo(a)+`:`+Mo(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Ao(o[c])&&(r+=jo(a)+`:`+Mo(a,o[c])+`;`);else{var l=No(e,t,o);switch(a){case`animation`:case`animationName`:r+=jo(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Fo=/label:\s*([^\s;{]+)\s*(;|$)/g,Io;function Lo(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Io=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=No(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=No(n,t,e[o]),r&&(i+=a[o]);Fo.lastIndex=0;for(var s=``,c;(c=Fo.exec(i))!==null;)s+=`-`+c[1];return{name:To(i)+s,styles:i,next:Io}}var Ro=function(e){return e()},zo=K.useInsertionEffect?K.useInsertionEffect:!1,Bo=zo||Ro,Vo=zo||K.useLayoutEffect,Ho=K.createContext(typeof HTMLElement<`u`?vo({key:`css`}):null),Uo=Ho.Provider,Wo=function(e){return(0,K.forwardRef)(function(t,n){return e(t,(0,K.useContext)(Ho),n)})},Go=K.createContext({}),Ko={}.hasOwnProperty,qo=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Jo=function(e,t){var n={};for(var r in t)Ko.call(t,r)&&(n[r]=t[r]);return n[qo]=e,n},Yo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Co(t,n,r),Bo(function(){return wo(t,n,r)}),null},Xo=Wo(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[qo],a=[r],o=``;typeof e.className==`string`?o=So(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Lo(a,void 0,K.useContext(Go));o+=t.key+`-`+s.name;var c={};for(var l in e)Ko.call(e,l)&&l!==`css`&&l!==qo&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),K.createElement(K.Fragment,null,K.createElement(Yo,{cache:t,serialized:s,isStringTag:typeof i==`string`}),K.createElement(i,c))});xo();var Zo=function(e,t){var n=arguments;if(t==null||!Ko.call(t,`css`))return K.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Xo,i[1]=Jo(e,t);for(var a=2;a<r;a++)i[a]=n[a];return K.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(Zo||={});var Qo=Wo(function(e,t){var n=e.styles,r=Lo([n],void 0,K.useContext(Go)),i=K.useRef();return Vo(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Vo(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&wo(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function $o(){return Lo([...arguments])}function es(){var e=$o.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_`}}}var ts=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ns=co(function(e){return ts.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),rs=function(e){return e!==`theme`},is=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?ns:rs},as=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},os=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Co(t,n,r),Bo(function(){return wo(t,n,r)}),null},ss=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=as(t,n,r),c=s||is(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Wo(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=K.useContext(Go)}typeof e.className==`string`?a=So(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Lo(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?is(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),K.createElement(K.Fragment,null,K.createElement(os,{cache:t,serialized:m,isStringTag:typeof r==`string`}),K.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return`.`+o}}),h.withComponent=function(t,r){return e(t,Y({},n,r,{shouldForwardProp:as(h,r,!0)})).apply(void 0,d)},h}},cs=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),ls=ss.bind(null);cs.forEach(function(e){ls[e]=ls(e)});function us(e){return e==null||Object.keys(e).length===0}function ds(e){let{styles:t,defaultTheme:n={}}=e;return(0,J.jsx)(Qo,{styles:typeof t==`function`?e=>t(us(e)?n:e):t})}function fs(e,t){return ls(e,t)}function ps(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var ms=[];function hs(e){return ms[0]=e,Lo(ms)}var gs={borderRadius:4};function _s(e=8,t=gi({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function vs(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function ys(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Wr(n),c=_s(i),l=Ir({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...gs,...a}},o);return l=Hr(l),l.applyStyles=vs,l=t.reduce((e,t)=>Ir(e,t),l),l.unstable_sxConfig={...Qi,...o?.unstable_sxConfig},l.unstable_sx=function(e){return ta({sx:e,theme:this})},l.internal_cache={},l}function bs(e){return Object.keys(e).length===0}function xs(e=null){let t=K.useContext(Go);return!t||bs(t)?e:t}var Ss=ys();function Cs(e=Ss){return xs(e)}function ws(e){let t=hs(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ts({styles:e,themeId:t,defaultTheme:n={}}){let r=Cs(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>ws(typeof e==`function`?e(i):e)):ws(a)),(0,J.jsx)(ds,{styles:a})}function Es(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r=`MuiBox-root`,generateClassName:i}=e,a=fs(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(ta);return K.forwardRef(function(e,o){let s=Cs(n),{className:c,component:l=`div`,...u}=e;return(0,J.jsx)(a,{as:l,ref:o,className:q(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var Ds={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function Os(e,t,n=`Mui`){let r=Ds[t];return r?`${n}-${r}`:`${mr.generate(e)}-${t}`}function ks(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=Os(e,t,n)}),r}function As(e){let{variants:t,...n}=e,r={variants:t,style:hs(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=hs(e.style))}),r}var js=ys();function Ms(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function Ns(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ps(e){return e?(t,n)=>n[e]:null}function Fs(e,t,n){e.theme=jr(e.theme)?n:e.theme[t]||e.theme}function Is(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Is(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Ns(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?Ns(hs(i),n):i}return Ls(e,r.variants,[t],n)}return r?.isProcessed?n?Ns(hs(r.style),n):r.style:n?Ns(hs(r),n):r}function Ls(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Ns(hs(o.style(i)),r):o.style(i))):n.push(r?Ns(hs(o.style),r):o.style)}return n}function Rs(e={}){let{themeId:t,defaultTheme:n=js,rootShouldForwardProp:r=Ms,slotShouldForwardProp:i=Ms}=e;function a(e){Fs(e,t,n)}return(e,t={})=>{ps(e,e=>e.filter(e=>e!==ta));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=Ps(Bs(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Ms;o===`Root`||o===`root`?m=r:o?m=i:zs(e)&&(m=void 0);let h=fs(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Is(t,e,t.theme.modularCssLayers?d:void 0)};if(Pr(e)){let t=As(e);return function(e){return t.variants?Is(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Ns(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Is(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Ls(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(ta),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function zs(e){return typeof e==`string`&&e.charCodeAt(0)>96}function Bs(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var Vs=Rs();function Hs(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e,s=i[t],c=o[t];typeof s==`function`||typeof c==`function`?r[a][t]=(...e)=>Hs((typeof s==`function`?s(...e):s)??{},(typeof c==`function`?c(...e):c)??{},n):r[a][t]=Hs(s??{},c??{},n)}}}else a===`className`&&n&&t.className!==void 0?r.className=q(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function Us(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Hs(t.components[n].defaultProps,r)}function Ws(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,a=Cs(r);return i&&(a=a[i]||a),Us({theme:a,name:n,props:t})}var Gs=typeof window<`u`?K.useLayoutEffect:K.useEffect;function Ks(e,t,n,r,i){let[a,o]=K.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Gs(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var qs={...K}.useSyncExternalStore;function Js(e,t,n,r,i){let a=K.useCallback(()=>t,[t]),o=K.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=K.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return qs(c,s,o)}function Ys(e={}){let{themeId:t}=e;return function(e,n={}){let r=xs();r&&t&&(r=r[t]||r);let i=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:a=!1,matchMedia:o,ssrMatchMedia:s=null,noSsr:c=!1}=Us({name:`MuiUseMediaQuery`,props:n,theme:r}),l=K.useMemo(()=>o===void 0?i===null?null:i.bind(window):o,[o,i]),u=typeof e==`function`?e(r):e;return u=u.replace(/^@media( ?)/m,``),u.includes(`print`)&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.",`Using the print media query to modify print styles can lead to unexpected results.`,"Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
5
+ `)),(qs===void 0?Ks:Js)(u,a,l,s,c)}}Ys();function Xs(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Zs(e,t=0,n=1){return Xs(e,t,n)}function Qs(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function $s(e){if(e.type)return e;if(e.charAt(0)===`#`)return $s(Qs(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(hr(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(hr(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var ec=e=>{let t=$s(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},tc=(e,t)=>{try{return ec(e)}catch{return e}};function nc(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function rc(e){e=$s(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),nc({type:s,values:c})}function ic(e){e=$s(e);let t=e.type===`hsl`||e.type===`hsla`?$s(rc(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(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 ac(e,t){let n=ic(e),r=ic(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function oc(e,t){return e=$s(e),t=Zs(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,nc(e)}function sc(e,t,n){try{return oc(e,t)}catch{return e}}function cc(e,t){if(e=$s(e),t=Zs(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return nc(e)}function lc(e,t,n){try{return cc(e,t)}catch{return e}}function uc(e,t){if(e=$s(e),t=Zs(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return nc(e)}function dc(e,t,n){try{return uc(e,t)}catch{return e}}function fc(e,t=.15){return ic(e)>.5?cc(e,t):uc(e,t)}function pc(e,t,n){try{return fc(e,t)}catch{return e}}var mc=K.createContext(null);function hc(){return K.useContext(mc)}var gc=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function _c(e,t){return typeof t==`function`?t(e):{...e,...t}}function vc(e){let{children:t,theme:n}=e,r=hc(),i=K.useMemo(()=>{let e=r===null?{...n}:_c(r,n);return e!=null&&(e[gc]=r!==null),e},[n,r]);return(0,J.jsx)(mc.Provider,{value:i,children:t})}var yc=K.createContext();function bc({value:e,...t}){return(0,J.jsx)(yc.Provider,{value:e??!0,...t})}var xc=()=>K.useContext(yc)??!1,Sc=K.createContext(void 0);function Cc({value:e,children:t}){return(0,J.jsx)(Sc.Provider,{value:e,children:t})}function wc(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?Hs(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Hs(i,r,t.components.mergeClassNameAndStyle):r}function Tc({props:e,name:t}){return wc({props:e,name:t,theme:{components:K.useContext(Sc)}})}var Ec=0;function Dc(e){let[t,n]=K.useState(e),r=e||t;return K.useEffect(()=>{t??(Ec+=1,n(`mui-${Ec}`))},[t]),r}var Oc={...K}.useId;function kc(e){if(Oc!==void 0){let t=Oc();return e??t}return Dc(e)}function Ac(e){let t=xs(),n=kc()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,Gs(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,J.jsx)(Ts,{styles:i}):null}var jc={};function Mc(e,t,n,r=!1){return K.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Nc(e){let{children:t,theme:n,themeId:r}=e,i=xs(jc),a=hc()||jc,o=Mc(r,i,n),s=Mc(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=Ac(o);return(0,J.jsx)(vc,{theme:s,children:(0,J.jsx)(Go.Provider,{value:o,children:(0,J.jsx)(bc,{value:c,children:(0,J.jsxs)(Cc,{value:r?o[r].components:o.components,children:[l,t]})})})})}var Pc={theme:void 0};function Fc(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Pc.theme=r.theme,i=As(e(Pc)),t=i,n=r.theme),i}}var Ic=`mode`,Lc=`color-scheme`,Rc=`data-color-scheme`;({...K}).useSyncExternalStore;function zc(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=Ic,colorSchemeStorageKey:a=Lc,attribute:o=Rc,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
6
+ ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
7
+ ${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
8
+ ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,J.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
9
+ try {
10
+ let colorScheme = '';
11
+ const mode = localStorage.getItem('${i}') || '${t}';
12
+ const dark = localStorage.getItem('${a}-dark') || '${r}';
13
+ const light = localStorage.getItem('${a}-light') || '${n}';
14
+ if (mode === 'system') {
15
+ // handle system mode
16
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
17
+ if (mql.matches) {
18
+ colorScheme = dark
19
+ } else {
20
+ colorScheme = light
21
+ }
22
+ }
23
+ if (mode === 'light') {
24
+ colorScheme = light;
25
+ }
26
+ if (mode === 'dark') {
27
+ colorScheme = dark;
28
+ }
29
+ if (colorScheme) {
30
+ ${l}
31
+ }
32
+ } catch(e){}})();`}},`mui-color-scheme-init`)}function Bc(){}var Vc=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Bc;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Hc(){}function Uc(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Wc(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Gc(e){return Wc(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Kc(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Ic,colorSchemeStorageKey:o=Lc,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Vc,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=K.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=K.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=K.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=K.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Uc(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=K.useState(l||!d);K.useEffect(()=>{v(!0)},[]);let y=Gc(h),b=K.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Uc(r)}})},[f,t]),x=K.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Wc(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=K.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=K.useRef(S);return C.current=S,K.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),K.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||Hc,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||Hc,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||Hc;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var qc=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Jc(e){let{themeId:t,theme:n={},modeStorageKey:r=Ic,colorSchemeStorageKey:i=Lc,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=K.createContext(void 0),u=()=>K.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=K.useRef(!1),E=hc(),D=K.useContext(l),O=!!D&&!b,k=K.useMemo(()=>u||(typeof n==`function`?n():n),[u]),A=k[t],j=A||k,{colorSchemes:M=d,components:N=f,cssVarPrefix:P}=j,F=Object.keys(M).filter(e=>!!M[e]).join(`,`),I=K.useMemo(()=>F.split(`,`),[F]),L=typeof o==`string`?o:o.light,R=typeof o==`string`?o:o.dark,{mode:z,setMode:ee,systemMode:te,lightColorScheme:B,darkColorScheme:V,colorScheme:ne,setColorScheme:re}=Kc({supportedColorSchemes:I,defaultLightColorScheme:L,defaultDarkColorScheme:R,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:M[L]&&M[R]?S:M[j.defaultColorScheme]?.palette?.mode||j.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),ie=z,H=ne;O&&(ie=D.mode,H=D.colorScheme);let U=H||j.defaultColorScheme;j.vars&&!C&&(U=j.defaultColorScheme);let W=K.useMemo(()=>{let e=j.generateThemeVars?.()||j.vars,t={...j,components:N,colorSchemes:M,cssVarPrefix:P,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),U){let e=M[U];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[j,U,N,M,P]),ae=j.colorSchemeSelector;Gs(()=>{if(H&&y&&ae&&ae!==`media`){let e=ae,t=ae;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...I.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,H));else{let e=t.replace(`%s`,H).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||I.forEach(e=>{y.removeAttribute(t.replace(H,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,H)}}},[H,ae,y,I]),K.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(qc)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[H,h,v]),K.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let oe=K.useMemo(()=>({allColorSchemes:I,colorScheme:H,darkColorScheme:V,lightColorScheme:B,mode:ie,setColorScheme:re,setMode:ee,systemMode:te}),[I,H,V,B,ie,re,ee,te,W.colorSchemeSelector]),se=!0;(x||j.cssVariables===!1||O&&E?.cssVarPrefix===P)&&(se=!1);let ce=(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(Nc,{themeId:A?t:void 0,theme:W,children:c}),se&&(0,J.jsx)(ds,{styles:W.generateStyleSheets?.()||[]})]});return O?ce:(0,J.jsx)(l.Provider,{value:oe,children:ce})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>zc({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function Yc(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Xc=new Set([`__proto__`,`constructor`,`prototype`]),Zc=(e,t,n,r=[])=>{let i=e;for(let e=0;e<t.length;e+=1){let a=t[e];if(Xc.has(a))break;e===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i==`object`&&(i[a]=n):i&&typeof i==`object`&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])}},Qc=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},$c=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function el(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Qc(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=$c(e,t);Object.assign(i,{[r]:c}),Zc(a,e,`var(${r})`,s),Zc(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function tl(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=el(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=el(n,t);p=Ir(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=el(h,t);p=Ir(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=Ir(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function nl(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function rl(e,t){return K.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var il=ys(),al=Vs(`div`,{name:`MuiStack`,slot:`Root`});function ol(e){return Ws({props:e,name:`MuiStack`,defaultTheme:il})}function sl(e,t){let n=K.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(K.cloneElement(t,{key:`separator-${i}`})),e),[])}var cl=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],ll=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...Yr({theme:t},ni({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=gi(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>((typeof e.spacing==`object`&&e.spacing[n]!=null||typeof e.direction==`object`&&e.direction[n]!=null)&&(t[n]=!0),t),{}),a=ni({values:e.direction,base:i}),o=ni({values:e.spacing,base:i});typeof a==`object`&&Object.keys(a).forEach((e,t,n)=>{if(!a[e]){let r=t>0?a[n[t-1]]:`column`;a[e]=r}}),n=Ir(n,Yr({theme:t},o,(t,n)=>e.useFlexGap?{gap:_i(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${cl(n?a[n]:e.direction)}`]:_i(r,t)}}))}return n=ei(t.breakpoints,n),n};function ul(e={}){let{createStyledComponent:t=al,useThemeProps:n=ol,componentName:r=`MuiStack`}=e,i=()=>xr({root:[`root`]},e=>Os(r,e),{}),a=t(ll);return K.forwardRef(function(e,t){let{component:r=`div`,direction:o=`column`,spacing:s=0,divider:c,children:l,className:u,useFlexGap:d=!1,...f}=n(e),p={direction:o,spacing:s,useFlexGap:d},m=i();return(0,J.jsx)(a,{as:r,ownerState:p,ref:t,className:q(m.root,u),...f,children:c?sl(l,c):l})})}var dl={black:`#000`,white:`#fff`},fl={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`},pl={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},ml={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},hl={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},gl={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},_l={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},vl={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function yl(){return{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:dl.white,default:dl.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}}}var bl=yl();function xl(){return{text:{primary:dl.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:dl.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}}}var Sl=xl();function Cl(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=uc(e.main,i):t===`dark`&&(e.dark=cc(e.main,a)))}function wl(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function Tl(e=`light`){return e===`dark`?{main:gl[200],light:gl[50],dark:gl[400]}:{main:gl[700],light:gl[400],dark:gl[800]}}function El(e=`light`){return e===`dark`?{main:pl[200],light:pl[50],dark:pl[400]}:{main:pl[500],light:pl[300],dark:pl[700]}}function Dl(e=`light`){return e===`dark`?{main:ml[500],light:ml[300],dark:ml[700]}:{main:ml[700],light:ml[400],dark:ml[800]}}function Ol(e=`light`){return e===`dark`?{main:_l[400],light:_l[300],dark:_l[700]}:{main:_l[700],light:_l[500],dark:_l[900]}}function kl(e=`light`){return e===`dark`?{main:vl[400],light:vl[300],dark:vl[700]}:{main:vl[800],light:vl[500],dark:vl[900]}}function Al(e=`light`){return e===`dark`?{main:hl[400],light:hl[300],dark:hl[700]}:{main:`#ed6c02`,light:hl[500],dark:hl[900]}}function jl(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ml(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Tl(t),s=e.secondary||El(t),c=e.error||Dl(t),l=e.info||Ol(t),u=e.success||kl(t),d=e.warning||Al(t);function f(e){return i?jl(e):ac(e,Sl.text.primary)>=n?Sl.text.primary:bl.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(hr(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(hr(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(wl(i,e,`light`,a,r),wl(i,e,`dark`,o,r)):(Cl(e,`light`,a,r),Cl(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=yl():t===`dark`&&(m=xl()),Ir({common:{...dl},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:fl,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}var Nl=`--_focusVisible-offset`,Pl=`--_focusVisible-behavior`,Fl=`--_focusVisible-shadow`,Il=`var(${Nl}, 1)`,Ll=`var(${Pl}, )`,Rl={[Nl]:1,[Pl]:`initial`};function zl(e){return{[Fl]:e}}function Bl(e){return{[Nl]:-e,[Pl]:`inset`}}function Vl(e,t){return t.reduce((e,t)=>t&&`focusVisible`in t?Ir(e,{focusVisible:t.focusVisible}):e,{focusVisible:e}).focusVisible}function Hl(e){return typeof e==`object`&&!!e&&typeof e.outlineOffset==`string`&&e.outlineOffset.includes(Nl)}function Ul(e,t){return Wl({outlineStyle:`solid`,outlineColor:t,outlineWidth:2,outlineOffset:2,boxShadow:`var(${Fl}, 0 0)`,...e===!0?null:e})}function Wl(e){let t=e.outlineOffset??0;(typeof t!=`string`||!t.includes(Nl))&&(e.outlineOffset=`calc(${Il} * ${typeof t==`number`?`${t}px`:t})`);let n=new Set([`none`,`initial`,`inherit`,`unset`,`revert`,`revert-layer`]);return typeof e.boxShadow==`string`&&!n.has(e.boxShadow.trim().toLowerCase())&&!/\binset\b/.test(e.boxShadow)&&!e.boxShadow.includes(Pl)&&(e.boxShadow=`${Ll} ${e.boxShadow}`),e}function Gl(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function Kl(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function ql(e){return Math.round(e*1e5)/1e5}var Jl={textTransform:`uppercase`},Yl=`"Roboto", "Helvetica", "Arial", sans-serif`;function Xl(e,t){let{fontFamily:n=Yl,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Yl?{letterSpacing:`${ql(i/t)}em`}:{},...a,...l});return Ir({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,Jl),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Jl),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Zl=.2,Ql=.14,$l=.12;function eu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Zl})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ql})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${$l})`].join(`,`)}var tu=[`none`,eu(0,2,1,-1,0,1,1,0,0,1,3,0),eu(0,3,1,-2,0,2,2,0,0,1,5,0),eu(0,3,3,-2,0,3,4,0,0,1,8,0),eu(0,2,4,-1,0,4,5,0,0,1,10,0),eu(0,3,5,-1,0,5,8,0,0,1,14,0),eu(0,3,5,-1,0,6,10,0,0,1,18,0),eu(0,4,5,-2,0,7,10,1,0,2,16,1),eu(0,5,5,-3,0,8,10,1,0,3,14,2),eu(0,5,6,-3,0,9,12,1,0,3,16,2),eu(0,6,6,-3,0,10,14,1,0,4,18,3),eu(0,6,7,-4,0,11,15,1,0,4,20,3),eu(0,7,8,-4,0,12,17,2,0,5,22,4),eu(0,7,8,-4,0,13,19,2,0,5,24,4),eu(0,7,9,-4,0,14,21,2,0,5,26,4),eu(0,8,9,-5,0,15,22,2,0,6,28,5),eu(0,8,10,-5,0,16,24,2,0,6,30,5),eu(0,8,11,-5,0,17,26,2,0,6,32,5),eu(0,9,11,-5,0,18,28,2,0,7,34,6),eu(0,9,12,-6,0,19,29,2,0,7,36,6),eu(0,10,13,-6,0,20,31,3,0,8,38,7),eu(0,10,13,-6,0,21,33,3,0,8,40,7),eu(0,10,14,-6,0,22,35,3,0,8,42,7),eu(0,11,14,-7,0,23,36,3,0,9,44,8),eu(0,11,15,-7,0,24,38,3,0,9,46,8)],nu=[`all`],ru={},iu={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)`},au={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ou(e){return`${Math.round(e)}ms`}function su(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function cu(e){let t={...e};delete t.reducedMotion;let n={...iu,...t.easing},r={...au,...t.duration};return{getAutoHeightDuration:su,create:t.create??((e=nu,t=ru)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:ou(i)} ${a} ${typeof o==`string`?o:ou(o)}`).join(`,`)}),...t,easing:n,duration:r}}var lu={};function uu(e=lu){return{reducedMotion:`never`,...e}}var du={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fu(e){return Pr(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function pu(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!fu(a)||i.startsWith(`unstable_`)||i.startsWith(`internal_`)?delete e[i]:Pr(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
33
+
34
+ const theme = ${JSON.stringify(t,null,2)};
35
+
36
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
37
+ theme.motion = { reducedMotion: 'never', ...theme.motion };
38
+ theme.transitions = createTransitions(theme.transitions || {});
39
+
40
+ export default theme;`}function mu(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var hu=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function gu(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:oc(t,hu(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${mu(n)})`:uc(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${mu(n)})`:cc(t,n)}})}function _u(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},motion:o={},transitions:s={},typography:c={},shape:l,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(hr(22));let f=Ml({...a,colorSpace:u}),p=ys(e),m=Ir(p,{mixins:Kl(p.breakpoints,r),palette:f,shadows:tu.slice(),typography:Xl(f,c),motion:uu(o),transitions:cu(s),zIndex:{...du}});return m=Ir(m,d),m=t.reduce((e,t)=>Ir(e,t),m),delete m.transitions.reducedMotion,m.focusVisible!=null&&m.focusVisible!==!1&&(m.focusVisible=Ul(m.focusVisible,m.palette.primary.main)),m.unstable_sxConfig={...Qi,...d?.unstable_sxConfig},m.unstable_sx=function(e){return ta({sx:e,theme:this})},m.toRuntimeSource=pu,gu(m),m}function vu(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var yu=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=vu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function bu(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function xu(e){return e===`dark`?yu:[]}function Su(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Ml({...t,colorSpace:i});return{palette:o,opacity:{...bu(o.mode),...n},overlays:r||xu(o.mode),...a}}function Cu(e){return e[0]===`motion`||e[0]===`focusVisible`||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var wu=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],Tu=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return wu(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function Eu(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function X(e,t,n){!e[t]&&n&&(e[t]=n)}function Du(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:rc(e)}function Ou(e,t){`${t}Channel`in e||(e[`${t}Channel`]=tc(Du(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
41
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function ku(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Au=e=>{try{return e()}catch{}},ju=(e=`mui`)=>Yc(e);function Mu(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=Su({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=_u({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...bu(a),...n?.opacity},overlays:n?.overlays||xu(a)},s}function Nu(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=Cu,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=ju(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(hr(21,f));let b;o&&(b=`oklch`);let x=Mu(b,v,y,u,f);h&&!v.light&&Mu(b,v,h,void 0,`light`),g&&!v.dark&&Mu(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Gl(x.typography),...x.font},spacing:ku(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(X(t.common,`background`,`#fff`),X(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(X(t.common,`background`,`#000`),X(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===sc&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===lc&&(r=`#000 ${(n*100).toFixed(0)}%`),e===dc&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(Eu(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){X(t.Alert,`errorColor`,r(lc,o?p(`palette-error-light`):t.error.light,.6)),X(t.Alert,`infoColor`,r(lc,o?p(`palette-info-light`):t.info.light,.6)),X(t.Alert,`successColor`,r(lc,o?p(`palette-success-light`):t.success.light,.6)),X(t.Alert,`warningColor`,r(lc,o?p(`palette-warning-light`):t.warning.light,.6)),X(t.Alert,`errorFilledBg`,n(`palette-error-main`)),X(t.Alert,`infoFilledBg`,n(`palette-info-main`)),X(t.Alert,`successFilledBg`,n(`palette-success-main`)),X(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),X(t.Alert,`errorFilledColor`,Au(()=>t.getContrastText(t.error.main))),X(t.Alert,`infoFilledColor`,Au(()=>t.getContrastText(t.info.main))),X(t.Alert,`successFilledColor`,Au(()=>t.getContrastText(t.success.main))),X(t.Alert,`warningFilledColor`,Au(()=>t.getContrastText(t.warning.main))),X(t.Alert,`errorStandardBg`,r(dc,o?p(`palette-error-light`):t.error.light,.9)),X(t.Alert,`infoStandardBg`,r(dc,o?p(`palette-info-light`):t.info.light,.9)),X(t.Alert,`successStandardBg`,r(dc,o?p(`palette-success-light`):t.success.light,.9)),X(t.Alert,`warningStandardBg`,r(dc,o?p(`palette-warning-light`):t.warning.light,.9)),X(t.Alert,`errorIconColor`,n(`palette-error-main`)),X(t.Alert,`infoIconColor`,n(`palette-info-main`)),X(t.Alert,`successIconColor`,n(`palette-success-main`)),X(t.Alert,`warningIconColor`,n(`palette-warning-main`)),X(t.AppBar,`defaultBg`,n(`palette-grey-100`)),X(t.Avatar,`defaultBg`,n(`palette-grey-400`)),X(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),X(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),X(t.Chip,`defaultBorder`,n(`palette-grey-400`)),X(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),X(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),X(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),X(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),X(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),X(t.LinearProgress,`primaryBg`,r(dc,o?p(`palette-primary-main`):t.primary.main,.62)),X(t.LinearProgress,`secondaryBg`,r(dc,o?p(`palette-secondary-main`):t.secondary.main,.62)),X(t.LinearProgress,`errorBg`,r(dc,o?p(`palette-error-main`):t.error.main,.62)),X(t.LinearProgress,`infoBg`,r(dc,o?p(`palette-info-main`):t.info.main,.62)),X(t.LinearProgress,`successBg`,r(dc,o?p(`palette-success-main`):t.success.main,.62)),X(t.LinearProgress,`warningBg`,r(dc,o?p(`palette-warning-light`):t.warning.main,.62)),X(t.Skeleton,`bg`,b?r(sc,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),X(t.Slider,`primaryTrack`,r(dc,o?p(`palette-primary-main`):t.primary.main,.62)),X(t.Slider,`secondaryTrack`,r(dc,o?p(`palette-secondary-main`):t.secondary.main,.62)),X(t.Slider,`errorTrack`,r(dc,o?p(`palette-error-main`):t.error.main,.62)),X(t.Slider,`infoTrack`,r(dc,o?p(`palette-info-main`):t.info.main,.62)),X(t.Slider,`successTrack`,r(dc,o?p(`palette-success-main`):t.success.main,.62)),X(t.Slider,`warningTrack`,r(dc,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(lc,o?p(`palette-background-default`):t.background.default,.6825):pc(t.background.default,.8);X(t.SnackbarContent,`bg`,e),X(t.SnackbarContent,`color`,Au(()=>b?Sl.text.primary:t.getContrastText(e))),X(t.SpeedDialAction,`fabHoverBg`,pc(t.background.paper,.15)),X(t.StepConnector,`border`,n(`palette-grey-400`)),X(t.StepContent,`border`,n(`palette-grey-400`)),X(t.Switch,`defaultColor`,n(`palette-common-white`)),X(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),X(t.Switch,`primaryDisabledColor`,r(dc,o?p(`palette-primary-main`):t.primary.main,.62)),X(t.Switch,`secondaryDisabledColor`,r(dc,o?p(`palette-secondary-main`):t.secondary.main,.62)),X(t.Switch,`errorDisabledColor`,r(dc,o?p(`palette-error-main`):t.error.main,.62)),X(t.Switch,`infoDisabledColor`,r(dc,o?p(`palette-info-main`):t.info.main,.62)),X(t.Switch,`successDisabledColor`,r(dc,o?p(`palette-success-main`):t.success.main,.62)),X(t.Switch,`warningDisabledColor`,r(dc,o?p(`palette-warning-main`):t.warning.main,.62)),X(t.TableCell,`border`,r(dc,sc(o?p(`palette-divider`):t.divider,1),.88)),X(t.Tooltip,`bg`,r(sc,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){X(t.Alert,`errorColor`,r(dc,o?p(`palette-error-light`):t.error.light,.6)),X(t.Alert,`infoColor`,r(dc,o?p(`palette-info-light`):t.info.light,.6)),X(t.Alert,`successColor`,r(dc,o?p(`palette-success-light`):t.success.light,.6)),X(t.Alert,`warningColor`,r(dc,o?p(`palette-warning-light`):t.warning.light,.6)),X(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),X(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),X(t.Alert,`successFilledBg`,n(`palette-success-dark`)),X(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),X(t.Alert,`errorFilledColor`,Au(()=>t.getContrastText(t.error.dark))),X(t.Alert,`infoFilledColor`,Au(()=>t.getContrastText(t.info.dark))),X(t.Alert,`successFilledColor`,Au(()=>t.getContrastText(t.success.dark))),X(t.Alert,`warningFilledColor`,Au(()=>t.getContrastText(t.warning.dark))),X(t.Alert,`errorStandardBg`,r(lc,o?p(`palette-error-light`):t.error.light,.9)),X(t.Alert,`infoStandardBg`,r(lc,o?p(`palette-info-light`):t.info.light,.9)),X(t.Alert,`successStandardBg`,r(lc,o?p(`palette-success-light`):t.success.light,.9)),X(t.Alert,`warningStandardBg`,r(lc,o?p(`palette-warning-light`):t.warning.light,.9)),X(t.Alert,`errorIconColor`,n(`palette-error-main`)),X(t.Alert,`infoIconColor`,n(`palette-info-main`)),X(t.Alert,`successIconColor`,n(`palette-success-main`)),X(t.Alert,`warningIconColor`,n(`palette-warning-main`)),X(t.AppBar,`defaultBg`,n(`palette-grey-900`)),X(t.AppBar,`darkBg`,n(`palette-background-paper`)),X(t.AppBar,`darkColor`,n(`palette-text-primary`)),X(t.Avatar,`defaultBg`,n(`palette-grey-600`)),X(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),X(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),X(t.Chip,`defaultBorder`,n(`palette-grey-700`)),X(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),X(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),X(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),X(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),X(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),X(t.LinearProgress,`primaryBg`,r(lc,o?p(`palette-primary-main`):t.primary.main,.5)),X(t.LinearProgress,`secondaryBg`,r(lc,o?p(`palette-secondary-main`):t.secondary.main,.5)),X(t.LinearProgress,`errorBg`,r(lc,o?p(`palette-error-main`):t.error.main,.5)),X(t.LinearProgress,`infoBg`,r(lc,o?p(`palette-info-main`):t.info.main,.5)),X(t.LinearProgress,`successBg`,r(lc,o?p(`palette-success-main`):t.success.main,.5)),X(t.LinearProgress,`warningBg`,r(lc,o?p(`palette-warning-main`):t.warning.main,.5)),X(t.Skeleton,`bg`,b?r(sc,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),X(t.Slider,`primaryTrack`,r(lc,o?p(`palette-primary-main`):t.primary.main,.5)),X(t.Slider,`secondaryTrack`,r(lc,o?p(`palette-secondary-main`):t.secondary.main,.5)),X(t.Slider,`errorTrack`,r(lc,o?p(`palette-error-main`):t.error.main,.5)),X(t.Slider,`infoTrack`,r(lc,o?p(`palette-info-main`):t.info.main,.5)),X(t.Slider,`successTrack`,r(lc,o?p(`palette-success-main`):t.success.main,.5)),X(t.Slider,`warningTrack`,r(lc,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(dc,o?p(`palette-background-default`):t.background.default,.985):pc(t.background.default,.98);X(t.SnackbarContent,`bg`,e),X(t.SnackbarContent,`color`,Au(()=>b?bl.text.primary:t.getContrastText(e))),X(t.SpeedDialAction,`fabHoverBg`,pc(t.background.paper,.15)),X(t.StepConnector,`border`,n(`palette-grey-600`)),X(t.StepContent,`border`,n(`palette-grey-600`)),X(t.Switch,`defaultColor`,n(`palette-grey-300`)),X(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),X(t.Switch,`primaryDisabledColor`,r(lc,o?p(`palette-primary-main`):t.primary.main,.55)),X(t.Switch,`secondaryDisabledColor`,r(lc,o?p(`palette-secondary-main`):t.secondary.main,.55)),X(t.Switch,`errorDisabledColor`,r(lc,o?p(`palette-error-main`):t.error.main,.55)),X(t.Switch,`infoDisabledColor`,r(lc,o?p(`palette-info-main`):t.info.main,.55)),X(t.Switch,`successDisabledColor`,r(lc,o?p(`palette-success-main`):t.success.main,.55)),X(t.Switch,`warningDisabledColor`,r(lc,o?p(`palette-warning-light`):t.warning.main,.55)),X(t.TableCell,`border`,r(lc,sc(o?p(`palette-divider`):t.divider,1),.68)),X(t.Tooltip,`bg`,r(sc,o?p(`palette-grey-700`):t.grey[700],.92))}o||(Ou(t.background,`default`),Ou(t.background,`paper`),Ou(t.common,`background`),Ou(t.common,`onBackground`),Ou(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&X(t[e],`mainChannel`,tc(Du(n.main))),n.light&&X(t[e],`lightChannel`,tc(Du(n.light))),n.dark&&X(t[e],`darkChannel`,tc(Du(n.dark))),n.contrastText&&X(t[e],`contrastTextChannel`,tc(Du(n.contrastText))),e===`text`&&(Ou(t[e],`primary`),Ou(t[e],`secondary`)),e===`action`&&(n.active&&Ou(t[e],`active`),n.selected&&Ou(t[e],`selected`)))})}),S=t.reduce((e,t)=>Ir(e,t),S);let C=Vl(e.focusVisible,t);C!=null&&C!==!1&&(S.focusVisible=Ul(C,p(`palette-primary-main`)));let w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Tu(S),enableContrastVars:o},{vars:T,generateThemeVars:E,generateStyleSheets:D}=tl(S,w);return S.vars=T,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=E,S.generateStyleSheets=D,S.generateSpacing=function(){return _s(u.spacing,gi(this))},S.getColorSchemeSelector=nl(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Qi,...u?.unstable_sxConfig},S.unstable_sx=function(e){return ta({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=pu,S}function Pu(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ml({...n===!0?{}:n.palette,mode:t})})}function Fu(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return _u(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=_u({...e,palette:r},...t);if(i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Pu(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Pu(i,`light`,l.light)),i.focusVisible!=null&&i.focusVisible!==!1){let n=i.focusVisible,r=Vl(e.focusVisible,t),a=r&&typeof r==`object`?r.outlineColor:void 0;if(!a||Hl(r)&&a===i.palette.primary.main){let{outlineColor:e,...t}=n;n=t}Object.keys(i.colorSchemes).forEach(e=>{let t=i.colorSchemes?.[e]?.palette;t?.primary&&(i.colorSchemes[e].focusVisible=Ul(n,t.primary.main))})}return i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Nu({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var Iu=Fu(),Lu=`$$material`;function Ru(){let e=Cs(Iu);return e.$$material||e}function zu(e){return(0,J.jsx)(Ts,{...e,defaultTheme:Iu,themeId:Lu})}function Bu(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Vu=e=>Bu(e)&&e!==`classes`,Z=Rs({themeId:Lu,defaultTheme:Iu,rootShouldForwardProp:Vu});function Hu(e){return function(t){return(0,J.jsx)(zu,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}var Uu=Fc;function Wu(e){return Tc(e)}function Gu(e){return Os(`MuiSvgIcon`,e)}ks(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Ku={transition:`none`};function qu(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var Ju=e=>e.scrollTop,Yu={},Xu=[`all`],Zu={};function Qu(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function $u(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function ed(e,t){let{timeout:n,easing:r,style:i=Yu}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function td(e,t){let n=t??Ku;return qu(e.motion?.reducedMotion,n)}function nd(e,t=Xu,n=Zu){let r=e.transitions?.create?.(t,n),i=td(e);if(r===void 0)return i??Yu;let a={transition:r};return i?{...a,...i}:a}var rd=e=>{let{color:t,fontSize:n,classes:r}=e;return xr({root:[`root`,t!==`inherit`&&`color${_r(t)}`,`fontSize${_r(n)}`]},Gu,r)},id=Z(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${_r(n.color)}`],t[`fontSize${_r(n.fontSize)}`]]}})(Uu(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,...nd(e,`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),ad=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=K.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=rd(m);return(0,J.jsxs)(id,{as:o,className:q(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,J.jsx)(`title`,{children:u}):null]})});ad.muiName=`SvgIcon`;function od(e,t){function n(t,n){return(0,J.jsx)(ad,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=ad.muiName,K.memo(K.forwardRef(n))}function sd(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var cd=sd,ld=rl;function ud(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var dd=ud;function fd(e){return e&&e.ownerDocument||document}var pd=fd;function md(e){return fd(e).defaultView||window}var hd=md;function gd(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var _d=Gs,vd=kc;function yd(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=K.useRef(t!==void 0),[o,s]=K.useState(n);return[a?t:o,K.useCallback(e=>{a||s(e)},[])]}var bd=yd;function xd(e){let t=K.useRef(e);return Gs(()=>{t.current=e}),K.useRef((...e)=>(0,t.current)(...e)).current}var Sd=xd;function Cd(...e){let t=K.useRef(void 0),n=K.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return K.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var wd=Cd;function Td(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Ed(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Td(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=q(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=q(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Dd(e,t){return od((0,J.jsx)(`g`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,children:e}),t)}function Od(e,t){return od((0,J.jsx)(`g`,{fill:`currentColor`,stroke:`none`,fillRule:`evenodd`,children:e}),t)}var kd=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`rect`,{x:`4`,y:`4`,width:`6.5`,height:`6.5`,rx:`1.5`}),(0,J.jsx)(`rect`,{x:`13.5`,y:`4`,width:`6.5`,height:`6.5`,rx:`1.5`}),(0,J.jsx)(`rect`,{x:`4`,y:`13.5`,width:`6.5`,height:`6.5`,rx:`1.5`}),(0,J.jsx)(`rect`,{x:`13.5`,y:`13.5`,width:`6.5`,height:`6.5`,rx:`1.5`})]}),`GridGlyph`),Ad=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`path`,{d:`M12 4.5 20.5 19h-17z`}),(0,J.jsx)(`path`,{d:`M12 10v4M12 16.6v.01`})]}),`AlertGlyph`),jd=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`circle`,{cx:`12`,cy:`12`,r:`7.5`}),(0,J.jsx)(`path`,{d:`M12 2.5v4M12 17.5v4M2.5 12h4M17.5 12h4`})]}),`TargetGlyph`),Md=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`circle`,{cx:`11`,cy:`11`,r:`6.5`}),(0,J.jsx)(`path`,{d:`m20 20-4.3-4.3`})]}),`SearchGlyph`),Nd=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`rect`,{x:`5`,y:`9`,width:`14`,height:`10`,rx:`2`}),(0,J.jsx)(`path`,{d:`M12 9V5.5M9.5 13.6v.01M14.5 13.6v.01M3 13v2.5M21 13v2.5`}),(0,J.jsx)(`circle`,{cx:`12`,cy:`4.5`,r:`1`})]}),`BotGlyph`),Pd=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`path`,{d:`M7 3h7l4 4v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z`}),(0,J.jsx)(`path`,{d:`M14 3v4h4M9.5 12h5M9.5 16h5`})]}),`DocGlyph`),Fd=Dd((0,J.jsx)(`path`,{d:`M6 4v6M6 14v6M12 4v3M12 11v9M18 4v9M18 17v3M4 12h4M10 9h4M16 15h4`}),`SlidersGlyph`),Id=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`circle`,{cx:`12`,cy:`8`,r:`3.5`}),(0,J.jsx)(`path`,{d:`M5 20c0-3.6 3-6 7-6s7 2.4 7 6`})]}),`UserGlyph`),Ld=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`path`,{d:`M6 16v-5a6 6 0 0 1 12 0v5l1.5 2h-15z`}),(0,J.jsx)(`path`,{d:`M10 20.5a2 2 0 0 0 4 0`})]}),`BellGlyph`),Rd=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8.5`}),(0,J.jsx)(`path`,{d:`M9.6 9.6a2.5 2.5 0 1 1 3.6 2.2c-.8.5-1.2 1-1.2 1.9M12 16.6v.01`})]}),`HelpGlyph`),zd=Dd((0,J.jsx)(`path`,{d:`m12 3 7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V6z`}),`ShieldGlyph`),Bd=Dd((0,J.jsx)(`path`,{d:`m4 11 8-7 8 7M6 10v9.5h12V10M10 19.5v-5h4v5`}),`HomeGlyph`),Vd=Dd((0,J.jsx)(`path`,{d:`M9 3h6M10 3v6l-5 9a2 2 0 0 0 1.8 3h10.4a2 2 0 0 0 1.8-3l-5-9V3M7.6 15h8.8`}),`FlaskGlyph`),Hd=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`rect`,{x:`6`,y:`3`,width:`12`,height:`18`,rx:`1.5`}),(0,J.jsx)(`path`,{d:`M10 8h.01M14 8h.01M10 12h.01M14 12h.01M10 21v-4h4v4`})]}),`BuildingGlyph`),Ud=Dd((0,J.jsx)(`path`,{d:`m12 4 2.4 5 5.6.8-4 3.9.9 5.5-4.9-2.6-4.9 2.6.9-5.5-4-3.9 5.6-.8z`}),`StarGlyph`),Wd=Dd((0,J.jsx)(`path`,{d:`M5 7h14M8 12h8M10.5 17h3`}),`FilterGlyph`),Gd=Dd((0,J.jsx)(`path`,{d:`m12 3 1.9 5.6a2 2 0 0 0 1.5 1.5L21 12l-5.6 1.9a2 2 0 0 0-1.5 1.5L12 21l-1.9-5.6a2 2 0 0 0-1.5-1.5L3 12l5.6-1.9a2 2 0 0 0 1.5-1.5z`}),`SparkleGlyph`),Kd=Dd((0,J.jsx)(`path`,{d:`m6 9 6 6 6-6`}),`ChevronDownGlyph`),qd=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`path`,{d:`M7 10v12`}),(0,J.jsx)(`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`})]}),`ThumbUpGlyph`),Jd=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`path`,{d:`M17 14V2`}),(0,J.jsx)(`path`,{d:`M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z`})]}),`ThumbDownGlyph`),Yd=Dd((0,J.jsx)(`path`,{d:`m7 9 5-5 5 5M7 15l5 5 5-5`}),`ExpandAllGlyph`),Xd=Dd((0,J.jsx)(`path`,{d:`m7 4 5 5 5-5M7 20l5-5 5 5`}),`CollapseAllGlyph`),Zd=Dd((0,J.jsx)(`path`,{d:`m9 6 6 6-6 6`}),`ChevronRightGlyph`),Qd=Dd((0,J.jsx)(`path`,{d:`M19 6v5a3 3 0 0 1-3 3H5m4-4-4 4 4 4`}),`ReturnGlyph`),$d=Dd((0,J.jsx)(`path`,{d:`M12 5v14M5 12h14`}),`PlusGlyph`),ef=Dd((0,J.jsx)(`path`,{d:`m6 6 12 12M18 6 6 18`}),`CloseGlyph`),tf=Dd((0,J.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2.5`}),`StopGlyph`),nf=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`rect`,{x:`9`,y:`3`,width:`6`,height:`11`,rx:`3`}),(0,J.jsx)(`path`,{d:`M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21`})]}),`MicGlyph`),rf=Dd((0,J.jsx)(`path`,{d:`m5 12.5 4.5 4.5L19 7.5`}),`CheckGlyph`),af=Dd((0,J.jsx)(`path`,{d:`m7 7 10 10M17 9v8H9`}),`ArrowDownRightGlyph`),of=Dd((0,J.jsx)(`path`,{d:`M7 17 17 7M9 7h8v8`}),`ArrowUpRightGlyph`),sf=Dd((0,J.jsx)(`path`,{d:`M4 5h16l-6 7.5V19l-4-2v-4.5z`}),`FunnelGlyph`),cf=Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`rect`,{x:`4`,y:`5`,width:`16`,height:`5.5`,rx:`1.5`}),(0,J.jsx)(`rect`,{x:`4`,y:`13.5`,width:`16`,height:`5.5`,rx:`1.5`})]}),`LayersGlyph`),lf=(0,J.jsx)(`rect`,{x:`3.5`,y:`4.5`,width:`17`,height:`15`,rx:`2`}),uf=Dd((0,J.jsxs)(J.Fragment,{children:[lf,(0,J.jsx)(`path`,{d:`M14 4.5h4.5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H14z`,fill:`currentColor`})]}),`SidePeekGlyph`),df=Dd((0,J.jsxs)(J.Fragment,{children:[lf,(0,J.jsx)(`path`,{d:`M10 4.5H5.5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2H10z`,fill:`currentColor`})]}),`SidebarGlyph`),ff={ThumbUpGlyph:qd,ThumbDownGlyph:Jd,ExpandAllGlyph:Yd,CollapseAllGlyph:Xd,GridGlyph:kd,AlertGlyph:Ad,TargetGlyph:jd,SearchGlyph:Md,BotGlyph:Nd,DocGlyph:Pd,SlidersGlyph:Fd,UserGlyph:Id,BellGlyph:Ld,HelpGlyph:Rd,ShieldGlyph:zd,HomeGlyph:Bd,FlaskGlyph:Vd,BuildingGlyph:Hd,StarGlyph:Ud,FilterGlyph:Wd,SparkleGlyph:Gd,ChevronDownGlyph:Kd,ChevronRightGlyph:Zd,ReturnGlyph:Qd,PlusGlyph:$d,CloseGlyph:ef,StopGlyph:tf,MicGlyph:nf,CheckGlyph:rf,ArrowDownRightGlyph:af,ArrowUpRightGlyph:of,FunnelGlyph:sf,LayersGlyph:cf,SidePeekGlyph:uf,SidebarGlyph:df,CenterPeekGlyph:Dd((0,J.jsxs)(J.Fragment,{children:[lf,(0,J.jsx)(`rect`,{x:`8`,y:`8.5`,width:`8`,height:`7`,rx:`1`,fill:`currentColor`})]}),`CenterPeekGlyph`),FullPageGlyph:Dd((0,J.jsxs)(J.Fragment,{children:[lf,(0,J.jsx)(`rect`,{x:`6`,y:`7`,width:`12`,height:`10`,rx:`1`,fill:`currentColor`})]}),`FullPageGlyph`),NewTabGlyph:Dd((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`path`,{d:`M3.5 8.5v-2a2 2 0 0 1 2-2h4.5l1.5 2.5h7a2 2 0 0 1 2 2v8.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z`}),(0,J.jsx)(`path`,{d:`M3.5 9.5h17`})]}),`NewTabGlyph`)},pf=Od((0,J.jsx)(`path`,{d:`M10.19 5.65L10.46 3.54L13.54 3.54L13.81 5.65A6.6 6.6 0 0 1 15.83 6.63L17.66 5.52L19.57 7.92L18.09 9.46A6.6 6.6 0 0 1 18.59 11.64L20.59 12.39L19.91 15.38L17.78 15.18A6.6 6.6 0 0 1 16.39 16.93L17.05 18.96L14.29 20.29L13.12 18.50A6.6 6.6 0 0 1 10.88 18.50L9.71 20.29L6.95 18.96L7.61 16.93A6.6 6.6 0 0 1 6.22 15.18L4.09 15.38L3.41 12.39L5.41 11.64A6.6 6.6 0 0 1 5.91 9.46L4.43 7.92L6.34 5.52L8.17 6.63A6.6 6.6 0 0 1 10.19 5.65ZM15 12a3 3 0 1 0-6 0 3 3 0 1 0 6 0z`}),`CogFilledGlyph`),mf=Od((0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M20 11H7.8l5.6-5.6L12 4l-8 8 8 8 1.4-1.4L7.8 13H20z`}),`BackGlyph`),hf=Od((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M3.9 12a3.1 3.1 0 0 1 3.1-3.1h4V7H7a5 5 0 0 0 0 10h4v-1.9H7A3.1 3.1 0 0 1 3.9 12M8 13h8v-2H8z`}),(0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M17 7h-4v1.9h4a3.1 3.1 0 0 1 0 6.2h-4V17h4a5 5 0 0 0 0-10`})]}),`CopyLinkGlyph`),gf=Od((0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M12 5 21 19H3z`}),`TrendUpGlyph`),_f=Od((0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M12 19 3 5h18z`}),`TrendDownGlyph`),vf=Od((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`circle`,{cx:`12`,cy:`5`,r:`2`}),(0,J.jsx)(`circle`,{cx:`12`,cy:`12`,r:`2`}),(0,J.jsx)(`circle`,{cx:`12`,cy:`19`,r:`2`})]}),`MoreGlyph`),yf=Od((0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M4 14h4v6H4zm6-5h4v11h-4zm6-5h4v16h-4z`}),`BarChartGlyph`),bf=Od((0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M7 4v16l13-8z`}),`PlayGlyph`),xf=Od((0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M6 4h4v16H6zm8 0h4v16h-4z`}),`PauseGlyph`),Sf=Od((0,J.jsx)(`circle`,{cx:`12`,cy:`12`,r:`6`}),`DotGlyph`),Cf=Od((0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.76.35 2.44 1.03l1.13 1 1.51-1.34L9.22 8.2C8.2 7.18 6.84 6.62 5.4 6.62 2.42 6.62 0 9.04 0 12s2.42 5.38 5.4 5.38c1.44 0 2.8-.56 3.77-1.53l2.83-2.5.01.01L13.52 12h-.01l2.69-2.39c.64-.64 1.49-.99 2.4-.99 1.87 0 3.39 1.51 3.39 3.38s-1.52 3.38-3.39 3.38c-.9 0-1.76-.35-2.44-1.03l-1.14-1.01-1.51 1.34 1.27 1.12c1.02 1.01 2.37 1.57 3.82 1.57 2.98 0 5.4-2.41 5.4-5.38s-2.42-5.37-5.4-5.37z`}),`AutoGlyph`),wf=Od((0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z`}),`AskGlyph`),Tf=Od((0,J.jsx)(`path`,{fillRule:`nonzero`,d:`M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z`}),`PlanGlyph`),Ef={CogFilledGlyph:pf,BackGlyph:mf,CopyLinkGlyph:hf,TrendUpGlyph:gf,TrendDownGlyph:_f,MoreGlyph:vf,BarChartGlyph:yf,PlayGlyph:bf,PauseGlyph:xf,DotGlyph:Sf,AutoGlyph:Cf,AskGlyph:wf,PlanGlyph:Tf};function Df(e){return e.replace(/Glyph$/,``).replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}var Of=new Map(Object.entries({...ff,...Ef}).map(([e,t])=>[Df(e),t]));function kf(e){return Of.get(e)}function Af(e){return Os(`MuiAutocomplete`,e)}var jf=ks(`MuiAutocomplete`,`root.expanded.fullWidth.focused.focusVisible.tag.tagSizeSmall.tagSizeMedium.hasPopupIcon.hasClearIcon.inputRoot.input.inputFocused.endAdornment.clearIndicator.popupIndicator.popupIndicatorOpen.popper.popperDisablePortal.paper.listbox.loading.noOptions.status.option.groupLabel.groupUl`.split(`.`));function Mf(e){return Os(`MuiCheckbox`,e)}var Nf=ks(`MuiCheckbox`,[`root`,`checked`,`disabled`,`indeterminate`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`]);function Pf(e){return typeof e==`string`}function Ff(e){return parseInt(e,10)||0}var If={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function Lf(e){for(let t in e)return!1;return!0}function Rf(e){return Lf(e)||e.outerHeightStyle===0&&!e.overflowing}var zf=K.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=K.useRef(o!=null),l=K.useRef(null),u=Cd(t,l),d=K.useRef(null),f=K.useRef(null),p=K.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=md(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
42
+ `&&(n.value+=` `);let o=a.boxSizing,s=Ff(a.paddingBottom)+Ff(a.paddingTop),c=Ff(a.borderBottomWidth)+Ff(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=xd(()=>{let e=l.current,t=p();if(!e||!t||Rf(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=K.useCallback(()=>{let e=l.current,t=p();if(!e||!t||Rf(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=K.useRef(-1);return Gs(()=>{let e=sd(h),t=l?.current;if(!t)return;let n=md(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),Gs(()=>{h()}),(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(`
43
+ `),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,J.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...If.shadow,...a,paddingTop:0,paddingBottom:0}})]})}),Bf=K.createContext(void 0);function Vf(){return K.useContext(Bf)}function Hf({props:e,states:t}){let n=K.useContext(Bf),r={};return t.forEach(t=>{let i=e[t];r[t]=i===void 0&&n?n[t]:i}),[r,n]}function Uf(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Wf(e,t=!1){return e&&(Uf(e.value)&&e.value!==``||t&&Uf(e.defaultValue)&&e.defaultValue!==``)}function Gf(e){return e.startAdornment}function Kf(e){return Os(`MuiInputBase`,e)}var qf=ks(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),Jf,Yf=`mui-auto-fill`,Xf=`mui-auto-fill-cancel`,Zf=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${_r(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Qf=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},$f=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return xr({root:[`root`,`color${_r(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${_r(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,d&&`readOnly`]},Kf,t)},ep=Z(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:Zf})(Uu(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${qf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),tp=Z(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:Qf})(Uu(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},...nd(e,`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${qf.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${qf.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:Xf,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:Yf}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),np=Hu({[`@keyframes ${Yf}`]:{from:{animationName:Yf}},[`@keyframes ${Xf}`]:{from:{animationName:Xf}}}),rp=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiInputBase`}),{"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,className:s,color:c,defaultValue:l,disabled:u,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:m=!1,id:h,inputComponent:g=`input`,inputProps:_={},inputRef:v,margin:y,maxRows:b,minRows:x,multiline:S=!1,name:C,onBlur:w,onChange:T,onClick:E,onFocus:D,onKeyDown:O,onKeyUp:k,placeholder:A,readOnly:j,renderSuffix:M,rows:N,size:P,slotProps:F={},slots:I={},startAdornment:L,type:R=`text`,value:z,...ee}=n,te=_.value==null?z:_.value,{current:B}=K.useRef(te!=null),V=K.useRef(),ne=K.useCallback(e=>{},[]),re=wd(V,v,_.ref,ne),[ie,H]=K.useState(!1),[U,W]=Hf({props:n,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});U.focused=W?W.focused:ie,K.useEffect(()=>{!W&&u&&ie&&(H(!1),w&&w())},[W,u,ie,w]);let ae=W&&W.onFilled,oe=W&&W.onEmpty,se=K.useCallback(e=>{Wf(e)?ae&&ae():oe&&oe()},[ae,oe]);_d(()=>{B&&se({value:te})},[te,se,B]),_d(()=>{if(!o)return;let e=V.current;if(!e)return;let t=pd(e),n=dd(t),r=n==null||n===t.body||n===t.documentElement;e===n?W&&W.onFocus?W.onFocus():H(!0):r&&e.focus()},[o]);let ce=e=>{D&&D(e),_.onFocus&&_.onFocus(e),W&&W.onFocus?W.onFocus(e):H(!0)},G=e=>{w&&w(e),_.onBlur&&_.onBlur(e),W&&W.onBlur?W.onBlur(e):H(!1)},le=(e,...t)=>{if(!B){let t=e.target||V.current;if(t==null)throw Error(hr(1));se({value:t.value})}_.onChange&&_.onChange(e,...t),T&&T(e,...t)};K.useEffect(()=>{se(V.current)},[]);let ue=e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),E&&E(e)},de=g,fe=_;S&&de===`input`&&(fe=N?{type:void 0,minRows:N,maxRows:N,...fe}:{type:void 0,maxRows:b,minRows:x,...fe},de=zf);let pe=e=>{se(e.animationName===Xf?V.current:{value:`x`})};K.useEffect(()=>{W&&W.setAdornedStart(!!L)},[W,L]);let me={...n,color:U.color||`primary`,disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:W,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:L,type:R},he=$f(me),ge=I.root||ep,_e=F.root||{},ve=I.input||tp;return fe={...fe,...F.input},(0,J.jsxs)(K.Fragment,{children:[!d&&typeof np==`function`&&(Jf||=(0,J.jsx)(np,{})),(0,J.jsxs)(ge,{..._e,ref:t,onClick:ue,...ee,...!Pf(ge)&&{ownerState:{...me,..._e.ownerState}},className:q(he.root,_e.className,s,j&&`MuiInputBase-readOnly`),children:[L,(0,J.jsx)(Bf.Provider,{value:null,children:(0,J.jsx)(ve,{"aria-invalid":U.error,"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,defaultValue:l,disabled:U.disabled,id:h,onAnimationStart:pe,name:C,placeholder:A,readOnly:j,required:U.required,rows:N,value:te,onKeyDown:O,onKeyUp:k,type:R,...fe,...!Pf(ve)&&{as:de,ownerState:{...me,...fe.ownerState}},ref:re,className:q(he.input,fe.className,j&&`MuiInputBase-readOnly`),onBlur:G,onChange:le,onFocus:ce})}),f,M?M({...U,startAdornment:L}):null]})]})});function ip(e){return Os(`MuiFilledInput`,e)}var ap={...qf,...ks(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])};function op(e){return Os(`MuiFormControlLabel`,e)}var sp=ks(`MuiFormControlLabel`,[`root`,`labelPlacementStart`,`labelPlacementEnd`,`labelPlacementTop`,`labelPlacementBottom`,`disabled`,`label`,`error`,`required`,`asterisk`]);function cp(e){return Os(`MuiFormHelperText`,e)}var lp=ks(`MuiFormHelperText`,[`root`,`error`,`disabled`,`sizeSmall`,`sizeMedium`,`contained`,`focused`,`filled`,`required`]);function up(e){return Os(`MuiFormLabel`,e)}var dp=ks(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]);function fp(e){return Os(`MuiInput`,e)}var pp={...qf,...ks(`MuiInput`,[`root`,`underline`,`input`])},mp=ks(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]);function hp(e){return Os(`MuiMenuItem`,e)}var gp=ks(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function _p(e){return Os(`MuiNativeSelect`,e)}var vp=ks(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function yp(e){return Os(`MuiOutlinedInput`,e)}var bp={...qf,...ks(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};function xp(e){return Os(`MuiRadio`,e)}var Sp=ks(`MuiRadio`,[`root`,`checked`,`disabled`,`colorPrimary`,`colorSecondary`,`sizeSmall`]);function Cp(e){return Os(`MuiSlider`,e)}var wp=ks(`MuiSlider`,`root.active.colorPrimary.colorSecondary.colorError.colorInfo.colorSuccess.colorWarning.disabled.dragging.focusVisible.mark.markActive.marked.markLabel.markLabelActive.rail.sizeSmall.thumb.track.trackInverted.trackFalse.valueLabel.valueLabelOpen.valueLabelCircle.valueLabelLabel.vertical`.split(`.`));function Tp(e){return String(parseFloat(e)).length===String(e).length}function Ep(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||``}function Dp(e){return parseFloat(e)}function Op(e){return(t,n)=>{let r=Ep(t);if(r===n)return t;let i=Dp(t);r!==`px`&&(r===`em`||r===`rem`)&&(i=Dp(t)*Dp(e));let a=i;if(n!==`px`){if(n===`em`)a=i/Dp(e);else if(n===`rem`)a=i/Dp(e);else return t}return parseFloat(a.toFixed(5))+n}}function kp({size:e,grid:t}){let n=e-e%t,r=n+t;return e-n<r-e?n:r}function Ap({lineHeight:e,pixels:t,htmlFontSize:n}){return t/(e*n)}function jp({cssProperty:e,min:t,max:n,unit:r=`rem`,breakpoints:i=[600,900,1200],transform:a=null}){let o={[e]:`${t}${r}`},s=(n-t)/i[i.length-1];return i.forEach(n=>{let i=t+s*n;a!==null&&(i=a(i)),o[`@media (min-width:${n}px)`]={[e]:`${Math.round(i*1e4)/1e4}${r}`}}),o}function Mp(e,t={}){let{breakpoints:n=[`sm`,`md`,`lg`],disableAlign:r=!1,factor:i=2,variants:a=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`caption`,`button`,`overline`]}=t,o={...e};o.typography={...o.typography};let s=o.typography,c=Op(s.htmlFontSize),l=n.map(e=>o.breakpoints.values[e]);return a.forEach(e=>{let t=s[e];if(!t)return;let n=parseFloat(c(t.fontSize,`rem`));if(n<=1)return;let a=n,o=1+(a-1)/i,{lineHeight:u}=t;if(!Tp(u)&&!r)throw Error(hr(6));Tp(u)||(u=parseFloat(c(u,`rem`))/parseFloat(n));let d=null;r||(d=e=>kp({size:e,grid:Ap({pixels:4,lineHeight:u,htmlFontSize:s.htmlFontSize})}));let f=jp({cssProperty:`fontSize`,min:o,max:a,unit:`rem`,breakpoints:l,transform:d});if(l.length>0){let e=l[l.length-1];f[`@media (min-width:${e}px)`]={fontSize:`${Math.round(a*1e4)/1e4}rem`}}s[e]={...t,...f}}),o}function Np({props:e,name:t}){return Ws({props:e,name:t,defaultTheme:Iu,themeId:Lu})}function Pp({theme:e,...t}){let n=`$$material`in e?e[Lu]:void 0;return(0,J.jsx)(Nc,{...t,themeId:n?Lu:void 0,theme:n||e})}var Fp={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Ip,useColorScheme:Lp,getInitColorSchemeScript:Rp}=Jc({themeId:Lu,theme:()=>Fu({cssVariables:!0}),colorSchemeStorageKey:Fp.colorSchemeStorageKey,modeStorageKey:Fp.modeStorageKey,defaultColorScheme:{light:Fp.defaultLightColorScheme,dark:Fp.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Xl(e.palette,e.typography)};return t.unstable_sx=function(e){return ta({sx:e,theme:this})},t}}),zp=Ip;function Bp({theme:e,...t}){let n=K.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[Lu]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,J.jsx)(Pp,{theme:n,...t}):(0,J.jsx)(zp,{theme:e,...t})}function Vp(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function Hp(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return K.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var Up={};function Wp(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=K.useRef(null),m=l===!0,h=Hp({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=K.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=K.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:K.useCallback((e=Up)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{if(u&&e.stopPropagation(),a){e.preventDefault();return}t?.(e)},s=e=>{if(m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g()))){if(e.key===` `){e.preventDefault();return}e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())}},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var Gp={};function Kp(e,t){let n=K.useRef(Gp);return n.current===Gp&&(n.current=e(t)),n}var qp=class e{static create(){return new e}static use(){let t=Kp(e.create).current,[n,r]=K.useState(!1);return t.shouldMount=n,t.setShouldMount=r,K.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Yp(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function Jp(){return qp.use()}function Yp(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var Xp=[];function Zp(e){K.useEffect(e,Xp)}var Qp=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function $p(){let e=Kp(Qp.create).current;return Zp(e.disposeEffect),e}function em(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=K.useState(!1),f=$p(),p=K.useRef(!1),m=K.useRef(c);m.current=c;let h=c!=null,g=q(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=q(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),K.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,J.jsx)(`span`,{className:g,style:_,children:(0,J.jsx)(`span`,{className:v})})}var tm=ks(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),nm=`(prefers-reduced-motion: reduce)`,rm=0,im=`0ms`,am=()=>{},om=()=>!1,sm=()=>!0,cm=()=>am;function lm(e){let[t,n]=K.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),Gs(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(nm),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var um={...K}.useSyncExternalStore;function dm(e){let t=e?sm:om,[n,r]=K.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[om,cm];let t=window.matchMedia(nm);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return um(r,n,t)}var fm=um===void 0?lm:dm;function pm(e,t){let n=fm(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return K.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:rm,delay:im}:e}}),[r])}var mm=550,hm={},gm=[],_m=()=>{};function vm(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function ym({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var bm=es`
44
+ 0% {
45
+ transform: scale(0);
46
+ opacity: 0.1;
47
+ }
48
+
49
+ 100% {
50
+ transform: scale(1);
51
+ opacity: 0.3;
52
+ }
53
+ `,xm=es`
54
+ 0% {
55
+ opacity: 1;
56
+ }
57
+
58
+ 100% {
59
+ opacity: 0;
60
+ }
61
+ `,Sm=es`
62
+ 0% {
63
+ transform: scale(1);
64
+ }
65
+
66
+ 50% {
67
+ transform: scale(0.92);
68
+ }
69
+
70
+ 100% {
71
+ transform: scale(1);
72
+ }
73
+ `;function Cm(e){if(e.motion.reducedMotion===`always`)return null;let t=$o`
74
+ &.${tm.rippleVisible} {
75
+ animation-name: ${bm};
76
+ animation-duration: ${mm}ms;
77
+ animation-timing-function: ${e.transitions.easing.easeInOut};
78
+ }
79
+
80
+ &.${tm.ripplePulsate} {
81
+ animation-duration: ${e.transitions.duration.shorter}ms;
82
+ }
83
+
84
+ & .${tm.childLeaving} {
85
+ animation-name: ${xm};
86
+ animation-duration: ${mm}ms;
87
+ animation-timing-function: ${e.transitions.easing.easeInOut};
88
+ }
89
+
90
+ & .${tm.childPulsate} {
91
+ animation-name: ${Sm};
92
+ animation-duration: 2500ms;
93
+ animation-timing-function: ${e.transitions.easing.easeInOut};
94
+ animation-iteration-count: infinite;
95
+ animation-delay: 200ms;
96
+ }
97
+ `;return e.motion.reducedMotion===`system`?$o`
98
+ @media (prefers-reduced-motion: no-preference) {
99
+ ${t}
100
+ }
101
+ `:t}var wm=Z(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Tm=Z(em,{name:`MuiTouchRipple`,slot:`Ripple`})`
102
+ opacity: 0;
103
+ position: absolute;
104
+
105
+ &.${tm.rippleVisible} {
106
+ opacity: 0.3;
107
+ transform: scale(1);
108
+ }
109
+
110
+ /*
111
+ * Order matters: 'child', 'childLeaving' and 'childPulsate' apply to the same
112
+ * element with equal specificity, so the later rule wins. 'child' must come
113
+ * before 'childLeaving' so the leaving 'opacity: 0' takes precedence. A focus
114
+ * (pulsate) ripple keeps 'pulsateKeyframe' (no opacity animation) on exit, so
115
+ * it relies on this static 'opacity: 0' to disappear on blur instead of
116
+ * lingering until removal.
117
+ */
118
+ & .${tm.child} {
119
+ opacity: 1;
120
+ display: block;
121
+ width: 100%;
122
+ height: 100%;
123
+ border-radius: 50%;
124
+ background-color: currentColor;
125
+ }
126
+
127
+ & .${tm.childLeaving} {
128
+ opacity: 0;
129
+ }
130
+
131
+ & .${tm.childPulsate} {
132
+ position: absolute;
133
+ /* @noflip */
134
+ left: 0px;
135
+ top: 0;
136
+ }
137
+
138
+ ${({theme:e})=>Cm(e)}
139
+ `,Em=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTouchRipple`}),r=pm(Ru().motion.reducedMotion,!1),{center:i=!1,classes:a=hm,className:o,...s}=n,[c,l]=K.useState({items:gm,order:gm}),u=c.items,d=K.useRef(0),f=K.useRef(null),p=K.useRef(!1);Zp(()=>(p.current=!0,()=>{p.current=!1})),K.useEffect(()=>{f.current&&=(f.current(),null)},[u]);let m=K.useRef(!1),h=$p(),g=K.useRef(null),_=K.useRef(null),v=Sd(e=>{p.current&&l(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:vm(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),y=Sd(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=d.current;d.current+=1,l(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:vm(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=a}),b=Sd((e=hm,t=hm,n=_m)=>{let{pulsate:r=!1,center:a=i||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&m.current){m.current=!1;return}e?.type===`touchstart`&&(m.current=!0);let{rippleX:s,rippleY:c,rippleSize:l}=ym({event:e,element:o?null:_.current,center:a});e?.touches?g.current===null&&(g.current=()=>{y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},h.start(80,()=>{g.current&&=(g.current(),null)})):y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),x=Sd(()=>{b(hm,{pulsate:!0})}),S=Sd((e,t)=>{if(h.clear(),e?.type===`touchend`&&g.current){g.current(),g.current=null,h.start(0,()=>{S(e,t)});return}g.current=null,l(e=>{let t=e.items.findIndex(e=>!e.exiting);if(t===-1)return e;let n=e.items.slice();return n[t]={...n[t],exiting:!0},{items:n,order:vm(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=t});K.useImperativeHandle(t,()=>({pulsate:x,start:b,stop:S}),[x,b,S]);let C=new Map(u.map(e=>[e.key,e])),w=c.order.map(e=>C.get(e)).filter(Boolean);return(0,J.jsx)(wm,{className:q(tm.root,a.root,o),ref:_,...s,children:w.map(e=>(0,J.jsx)(Tm,{classes:{ripple:q(a.ripple,tm.ripple),rippleVisible:q(a.rippleVisible,tm.rippleVisible),ripplePulsate:q(a.ripplePulsate,tm.ripplePulsate),child:q(a.child,tm.child),childLeaving:q(a.childLeaving,tm.childLeaving),childPulsate:q(a.childPulsate,tm.childPulsate)},timeout:r.shouldReduceMotion?0:mm,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>v(e.key)},e.key))})});function Dm(e){return Os(`MuiButtonBase`,e)}var Om=ks(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),km=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=xr({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},Dm,a);return n&&!i&&r&&(o.root+=` ${r}`),o},Am=Z(`button`,{name:`MuiButtonBase`,slot:`Root`})(Uu(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${Om.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`},variants:[{props:{internalDisabledThemeFocusVisible:!1},style:e.focusVisible&&{...Rl,[`&.${Om.focusVisible}`]:e.focusVisible}}]}))),jm=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,focusableWhenDisabled:p,suppressFocusVisible:m=!1,internalNativeButton:h,internalDisabledThemeFocusVisible:g=!1,LinkComponent:_=`a`,nativeButton:v,onBlur:y,onClick:b,onContextMenu:x,onDragLeave:S,onFocus:C,onFocusVisible:w,onKeyDown:T,onKeyUp:E,onMouseDown:D,onMouseLeave:O,onMouseUp:k,onTouchEnd:A,onTouchMove:j,onTouchStart:M,tabIndex:N=0,TouchRippleProps:P,touchRippleRef:F,type:I,...L}=n,R=!!(L.href||L.to),z=!!L.formAction,ee=s;ee===`button`&&R&&(ee=_);let te=typeof ee==`string`?ee===`button`:h??!1,B=v??te,V=Jp(),ne=wd(V.ref,F),[re,ie]=K.useState(!1);(c||m)&&re&&ie(!1);let H=Sd(e=>{d&&!e.repeat&&re&&e.key===` `&&V.stop(e,()=>{V.start(e)})}),U=Sd(e=>{d&&e.key===` `&&re&&!e.defaultPrevented&&V.stop(e,()=>{V.pulsate(e)})}),{getButtonProps:W,rootRef:ae}=Wp({nativeButton:B,nativeButtonProp:v,internalNativeButton:te,allowInferredHostMismatch:R||typeof ee==`string`,disabled:c,type:I,hasFormAction:z,tabIndex:N,onBeforeKeyDown:H,onBeforeKeyUp:U}),{onClick:oe,onKeyDown:se,onKeyUp:ce,...G}=W({onClick:b,onKeyDown:T,onKeyUp:E});K.useImperativeHandle(r,()=>({focusVisible:()=>{ie(!0),ae.current.focus()}}),[ae]);let le=V.shouldMount&&!l&&!c;K.useEffect(()=>{re&&d&&!l&&V.pulsate()},[l,d,re,V]);let ue=Mm(V,`start`,D,u),de=Mm(V,`stop`,x,u),fe=Mm(V,`stop`,S,u),pe=Mm(V,`stop`,k,u),me=Mm(V,`stop`,e=>{re&&e.preventDefault(),O&&O(e)},u),he=Mm(V,`start`,M,u),ge=Mm(V,`stop`,A,u),_e=Mm(V,`stop`,j,u),ve=Mm(V,`stop`,e=>{Vp(e.target)||ie(!1),y&&y(e)},!1),ye=Sd(e=>{ae.current||=e.currentTarget,!m&&Vp(e.target)&&(ie(!0),w&&w(e)),C&&C(e)}),be={};R&&(be.tabIndex=c?-1:N,c&&(be[`aria-disabled`]=c),be.type=I);let xe=wd(t,ae),Se={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,suppressFocusVisible:m,tabIndex:N,focusVisible:re,internalDisabledThemeFocusVisible:g},Ce=km(Se);return(0,J.jsxs)(Am,{as:ee,className:q(Ce.root,o),ownerState:Se,onBlur:ve,onClick:oe,onContextMenu:de,onFocus:ye,onKeyDown:se,onKeyUp:ce,onMouseDown:ue,onMouseLeave:me,onMouseUp:pe,onDragLeave:fe,onTouchEnd:ge,onTouchMove:_e,onTouchStart:he,ref:xe,...R?be:G,...L,children:[a,le?(0,J.jsx)(Em,{ref:ne,center:i,...P}):null]})});function Mm(e,t,n,r=!1){return Sd(i=>(n&&n(i),r||e[t](i),!0))}function Nm(e){return typeof e.main==`string`}function Pm(e,t=[]){if(!Nm(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function Fm(e=[]){return([,t])=>t&&Pm(t,e)}function Im(e){return Os(`MuiCircularProgress`,e)}ks(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var Lm=44,Rm=es`
140
+ 0% {
141
+ transform: rotate(0deg);
142
+ }
143
+
144
+ 100% {
145
+ transform: rotate(360deg);
146
+ }
147
+ `,zm=es`
148
+ 0% {
149
+ stroke-dasharray: 1px, 200px;
150
+ stroke-dashoffset: 0;
151
+ }
152
+
153
+ 50% {
154
+ stroke-dasharray: 100px, 200px;
155
+ stroke-dashoffset: -15px;
156
+ }
157
+
158
+ 100% {
159
+ stroke-dasharray: 1px, 200px;
160
+ stroke-dashoffset: -126px;
161
+ }
162
+ `,Bm=typeof Rm==`string`?null:$o`
163
+ animation: ${Rm} 1.4s linear infinite;
164
+ `,Vm=typeof zm==`string`?null:$o`
165
+ animation: ${zm} 1.4s ease-in-out infinite;
166
+ `,Hm=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return xr({root:[`root`,n,`color${_r(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},Im,t)},Um=Z(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${_r(n.color)}`]]}})(Uu(({theme:e})=>{let t=td(e,{animation:`none`});return{display:`inline-block`,variants:[{props:{variant:`determinate`},style:{...nd(e,`transform`)}},{props:{variant:`indeterminate`},style:Bm||{animation:`${Rm} 1.4s linear infinite`}},...t?[{props:{variant:`indeterminate`},style:t}]:[],...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),Wm=Z(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Gm=Z(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(Uu(({theme:e})=>{let t=td(e,{animation:`none`});return{stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{...nd(e,`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:Vm||{animation:`${zm} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:t}]:[]]}})),Km=Z(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Uu(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),qm=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p=`indeterminate`,...m}=n,h=s??0,g=c??100,_={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:p,enableTrackSlot:o},v=Hm(_),y={},b={},x={};if(p===`determinate`){let e=2*Math.PI*((Lm-d)/2),t=g-h;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,b.transform=`rotate(-90deg)`,x[`aria-valuenow`]=f,x[`aria-valuemin`]=h,x[`aria-valuemax`]=g}return(0,J.jsx)(Um,{className:q(v.root,r),style:{width:l,height:l,...b,...u},ownerState:_,ref:t,role:`progressbar`,...x,...m,children:(0,J.jsxs)(Wm,{className:v.svg,ownerState:_,viewBox:`${Lm/2} ${Lm/2} ${Lm} ${Lm}`,children:[o?(0,J.jsx)(Km,{className:v.track,ownerState:_,cx:Lm,cy:Lm,r:(Lm-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,J.jsx)(Gm,{className:v.circle,style:y,ownerState:_,cx:Lm,cy:Lm,r:(Lm-d)/2,fill:`none`,strokeWidth:d})]})})});function Jm(e){return Os(`MuiButton`,e)}var Ym=ks(`MuiButton`,`root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),Xm=K.createContext({}),Zm=K.createContext(void 0),Qm=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=xr({root:[`root`,o&&`loading`,a,`size${_r(i)}`,`color${_r(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${_r(s)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Jm,c);return{...c,...l}},$m=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],eh=Z(jm,{shouldForwardProp:e=>Vu(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${_r(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Uu(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,...nd(e,[`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${Ym.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ym.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},[`&.${Ym.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${Ym.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${Ym.focusVisible}`]:{boxShadow:e.focusVisible?.boxShadow??`none`},"&:active":{boxShadow:`none`},[`&.${Ym.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{...nd(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${Ym.loading}`]:{color:`transparent`}}}]}})),th=Z(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,alignItems:`center`,marginRight:8,marginLeft:-4,"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`},variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{...nd(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...$m]})),nh=Z(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{...nd(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...$m]})),rh=Z(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),ih=Z(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),ah=K.forwardRef(function(e,t){let n=K.useContext(Xm),r=K.useContext(Zm),i=Wu({props:Hs(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=vd(h),T=_??(0,J.jsx)(qm,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=Qm(E),O=(b||g&&v===`start`)&&(0,J.jsx)(th,{className:D.startIcon,ownerState:E,children:b||(0,J.jsx)(ih,{className:D.loadingIconPlaceholder,ownerState:E})}),k=(f||g&&v===`end`)&&(0,J.jsx)(nh,{className:D.endIcon,ownerState:E,children:f||(0,J.jsx)(ih,{className:D.loadingIconPlaceholder,ownerState:E})}),A=r||``,j=typeof g==`boolean`?(0,J.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,J.jsx)(rh,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:M,...N}=D;return(0,J.jsxs)(eh,{ownerState:E,className:q(n.className,D.root,c,A),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:q(D.focusVisible,p),ref:t,internalNativeButton:!0,type:x,id:g?w:h,...C,classes:N,children:[O,v!==`end`&&j,a,v===`end`&&j,k]})}),oh=ks(`MuiBox`,[`root`]),Q=Es({themeId:Lu,defaultTheme:Fu(),defaultClassName:oh.root,generateClassName:mr.generate});function sh(e){return Os(`PrivateSwitchBase`,e)}ks(`PrivateSwitchBase`,[`root`,`checked`,`disabled`,`input`,`edgeStart`,`edgeEnd`]);function ch(e,t,n){return e===void 0||Pf(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function lh(e,t,n){return typeof e==`function`?e(t,n):e}function uh(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))Td(n,e[n])&&(t[n]=e[n]);return t}function dh(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function fh(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=q(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=uh({...i,...r}),s=dh(r),c=dh(i),l=t(o),u=q(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function ph(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=lh(d[e],i),{props:{component:h,...g},internalRef:_}=fh({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Cd(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,ch(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var mh=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e;return xr({root:[`root`,n&&`checked`,r&&`disabled`,i&&`edge${_r(i)}`],input:[`input`]},sh,t)},hh=Z(jm,{name:`MuiSwitchBase`})({padding:9,borderRadius:`50%`,variants:[{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e===`start`&&t.size!==`small`,style:{marginLeft:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e===`end`&&t.size!==`small`,style:{marginRight:-12}}]}),gh=Z(`input`,{name:`MuiSwitchBase`,shouldForwardProp:Vu})({cursor:`inherit`,position:`absolute`,opacity:0,width:`100%`,height:`100%`,top:0,left:0,margin:0,padding:0,zIndex:1}),_h=K.forwardRef(function(e,t){let{autoFocus:n,checked:r,checkedIcon:i,defaultChecked:a,disabled:o,disableFocusRipple:s=!1,edge:c=!1,icon:l,id:u,name:d,onBlur:f,onChange:p,onFocus:m,readOnly:h,required:g=!1,tabIndex:_,type:v,value:y,slots:b={},slotProps:x={},...S}=e,{nativeButton:C,...w}=S,[T,E]=bd({controlled:r,default:!!a,name:`SwitchBase`,state:`checked`}),D=Vf(),O=e=>{m&&m(e),D&&D.onFocus&&D.onFocus(e)},k=e=>{f&&f(e),D&&D.onBlur&&D.onBlur(e)},A=e=>{if(e.nativeEvent.defaultPrevented||h)return;let t=e.target.checked;E(t),p&&p(e,t)},j=o;D&&j===void 0&&(j=D.disabled);let M=v===`checkbox`||v===`radio`,N={...e,checked:T,disabled:j,disableFocusRipple:s,edge:c},P=mh(N),F={slots:b,slotProps:x},[I,L]=ph(`root`,{ref:t,elementType:hh,className:P.root,shouldForwardComponentProp:!0,externalForwardedProps:{...F,component:`span`,...w},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),O(t)},onBlur:t=>{e.onBlur?.(t),k(t)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!s,role:void 0,tabIndex:null,internalDisabledThemeFocusVisible:!0}}),[R,z]=ph(`input`,{elementType:gh,className:P.input,externalForwardedProps:F,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),A(t)}}),ownerState:N,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:j,id:M?u:void 0,name:d,readOnly:h,required:g,tabIndex:_,type:v,...v===`checkbox`&&y===void 0?{}:{value:y}}});return(0,J.jsxs)(I,{...L,children:[(0,J.jsx)(R,{...z}),T?i:l]})}),vh=od((0,J.jsx)(`path`,{d:`M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z`}),`CheckBoxOutlineBlank`),yh=od((0,J.jsx)(`path`,{d:`M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z`}),`CheckBox`),bh=od((0,J.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z`}),`IndeterminateCheckBox`),xh=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,a=xr({root:[`root`,n&&`indeterminate`,`color${_r(r)}`,`size${_r(i)}`]},Mf,t);return{...t,...a}},Sh=Z(_h,{shouldForwardProp:e=>Vu(e)||e===`classes`,name:`MuiCheckbox`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${_r(n.size)}`],n.color!=="default"&&t[`color${_r(n.color)}`]]}})(Uu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.focusVisible&&{[`&.${Om.focusVisible} svg:first-of-type`]:{...Rl,borderRadius:(e.vars||e).shape.borderRadius,...e.focusVisible}},variants:[{props:{color:`default`,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{[`&.${Nf.checked}, &.${Nf.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Nf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),Ch=(0,J.jsx)(yh,{}),wh=(0,J.jsx)(vh,{}),Th=(0,J.jsx)(bh,{}),Eh=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiCheckbox`}),{checkedIcon:r=Ch,color:i=`primary`,icon:a=wh,indeterminate:o=!1,indeterminateIcon:s=Th,size:c=`medium`,disableRipple:l=!1,className:u,slots:d={},slotProps:f={},...p}=n,m=o?s:a,h=o?s:r,g={...n,disableRipple:l,color:i,indeterminate:o,size:c},_=xh(g),v=f.input,[y,b]=ph(`root`,{ref:t,elementType:Sh,className:q(_.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:d,slotProps:f,...p},ownerState:g,additionalProps:{type:`checkbox`,icon:K.cloneElement(m,{fontSize:m.props.fontSize??c}),checkedIcon:K.cloneElement(h,{fontSize:h.props.fontSize??c}),disableRipple:n.disableRipple,slots:d,slotProps:{input:Ed(typeof v==`function`?v(g):v,{"data-indeterminate":o,"aria-checked":o?`mixed`:void 0})}}});return(0,J.jsx)(y,{...b,classes:_})});function Dh(e){return Os(`MuiSwitch`,e)}var Oh=ks(`MuiSwitch`,[`root`,`edgeStart`,`edgeEnd`,`switchBase`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`,`checked`,`disabled`,`input`,`thumb`,`track`]),kh=e=>{let{classes:t,edge:n,size:r,color:i,checked:a,disabled:o}=e,s=xr({root:[`root`,n&&`edge${_r(n)}`,`size${_r(r)}`],switchBase:[`switchBase`,`color${_r(i)}`,a&&`checked`,o&&`disabled`],thumb:[`thumb`],track:[`track`],input:[`input`]},Dh,t);return{...t,...s}},Ah=Z(`span`,{name:`MuiSwitch`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.edge&&t[`edge${_r(n.edge)}`],t[`size${_r(n.size)}`]]}})({display:`inline-flex`,width:58,height:38,overflow:`hidden`,padding:12,boxSizing:`border-box`,position:`relative`,flexShrink:0,zIndex:0,verticalAlign:`middle`,"@media print":{colorAdjust:`exact`},variants:[{props:{edge:`start`},style:{marginLeft:-8}},{props:{edge:`end`},style:{marginRight:-8}},{props:{size:`small`},style:{width:40,height:24,padding:7,[`& .${Oh.thumb}`]:{width:16,height:16},[`& .${Oh.switchBase}`]:{padding:4,[`&.${Oh.checked}`]:{transform:`translateX(16px)`}}}}]}),jh=Z(_h,{name:`MuiSwitch`,slot:`SwitchBase`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.switchBase,{[`& .${Oh.input}`]:t.input},n.color!=="default"&&t[`color${_r(n.color)}`]]}})(Uu(({theme:e})=>({position:`absolute`,top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode===`light`?e.palette.common.white:e.palette.grey[300]}`,...nd(e,[`left`,`transform`],{duration:e.transitions.duration.shortest}),[`&.${Oh.checked}`]:{transform:`translateX(20px)`},[`&.${Oh.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode===`light`?e.palette.grey[100]:e.palette.grey[600]}`},...e.focusVisible?{[`&.${Om.focusVisible} ~ .${Oh.track}`]:{...Rl,...e.focusVisible},[`&.${Oh.checked} + .${Oh.track}`]:{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${e.palette.mode===`light`?e.palette.common.black:e.palette.common.white}`,.5)},[`&.${Oh.disabled} + .${Oh.track}`]:{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${e.palette.mode===`light`?e.palette.common.black:e.palette.common.white}`,e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode===`light`?.12:.2}`)}}:{[`&.${Oh.checked} + .${Oh.track}`]:{opacity:.5},[`&.${Oh.disabled} + .${Oh.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode===`light`?.12:.2}`}},[`& .${Oh.input}`]:{left:`-100%`,width:`300%`}})),Uu(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},variants:[...Object.entries(e.palette).filter(Fm([`light`])).map(([t])=>({props:{color:t},style:{[`&.${Oh.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${Oh.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode===`light`?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${Oh.checked} + .${Oh.track}`]:{backgroundColor:(e.vars||e).palette[t].main},...e.focusVisible&&{[`&.${Oh.checked} + .${Oh.track}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,.5)},[`&.${Oh.disabled} + .${Oh.track}`]:{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${e.palette.mode===`light`?e.palette.common.black:e.palette.common.white}`,e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode===`light`?.12:.2}`)},[`&.${Oh.checked}.${Oh.disabled} + .${Oh.track}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode===`light`?.12:.2}`)}}}}))]}))),Mh=Z(`span`,{name:`MuiSwitch`,slot:`Track`})(Uu(({theme:e})=>({height:`100%`,width:`100%`,borderRadius:7,zIndex:-1,...nd(e,[`opacity`,`background-color`],{duration:e.transitions.duration.shortest}),"@media (forced-colors: active)":{boxSizing:`border-box`,border:`1px solid ButtonBorder`},...e.focusVisible?{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${e.palette.mode===`light`?e.palette.common.black:e.palette.common.white}`,e.vars?e.vars.opacity.switchTrack:`${e.palette.mode===`light`?.38:.3}`)}:{backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode===`light`?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode===`light`?.38:.3}`}}))),Nh=Z(`span`,{name:`MuiSwitch`,slot:`Thumb`})(Uu(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:`currentColor`,boxSizing:`border-box`,border:`1px solid transparent`,width:20,height:20,borderRadius:`50%`}))),Ph=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiSwitch`}),{className:r,color:i=`primary`,edge:a=!1,size:o=`medium`,sx:s,slots:c={},slotProps:l={},...u}=n,d={...n,color:i,edge:a,size:o},f=kh(d),p=l.input,m={slots:c,slotProps:l},[h,g]=ph(`root`,{className:q(f.root,r),elementType:Ah,externalForwardedProps:m,ownerState:d,additionalProps:{sx:s}}),[_,v]=ph(`thumb`,{className:f.thumb,elementType:Nh,externalForwardedProps:m,ownerState:d}),y=(0,J.jsx)(_,{...v}),[b,x]=ph(`track`,{className:f.track,elementType:Mh,externalForwardedProps:m,ownerState:d});return(0,J.jsxs)(h,{...g,children:[(0,J.jsx)(jh,{type:`checkbox`,icon:y,checkedIcon:y,ref:t,ownerState:d,...u,classes:{...f,root:f.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...l.switchBase&&{root:typeof l.switchBase==`function`?l.switchBase(d):l.switchBase},input:Ed(typeof p==`function`?p(d):p,{role:`switch`})}}),(0,J.jsx)(b,{...x})]})});function Fh(e){return Os(`MuiInputLabel`,e)}var Ih=ks(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),Lh=e=>{let{classes:t,disableUnderline:n}=e,r=xr({root:[`root`,!n&&`underline`],input:[`input`]},fp,t);return{...t,...r}},Rh=Z(ep,{shouldForwardProp:e=>Vu(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...Zf(e,t),!n.disableUnderline&&t.underline]}})(Uu(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{[`label + &, .${Ih.root} + &`]:{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,...nd(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${pp.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${pp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,...nd(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${pp.disabled}, .${pp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${pp.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),zh=Z(tp,{name:`MuiInput`,slot:`Input`,overridesResolver:Qf})({}),Bh=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiInput`}),{disableUnderline:r=!1,fullWidth:i=!1,inputComponent:a=`input`,multiline:o=!1,notched:s,slotProps:c,slots:l={},type:u=`text`,...d}=n,f=Lh(n),p={root:{ownerState:{disableUnderline:r}}},m=c?Ir(c,p):p,h=l.root??Rh,g=l.input??zh;return(0,J.jsx)(rp,{slots:{root:h,input:g},slotProps:m,fullWidth:i,inputComponent:a,multiline:o,ref:t,type:u,...d,classes:f})});Bh.muiName=`Input`;function Vh(e){return Os(`MuiSelect`,e)}var Hh=ks(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`nativeInput`,`error`]),Uh=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=xr({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${_r(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},ip,t);return{...t,...c}},Wh=Z(ep,{shouldForwardProp:e=>Vu(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...Zf(e,t),!n.disableUnderline&&t.underline]}})(Uu(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,...nd(e,`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ap.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ap.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,...nd(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${ap.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${ap.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,...nd(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${ap.disabled}, .${ap.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ap.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`12px`,paddingRight:`var(--_trailingPad)`,[`&.${Hh.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),Gh=Z(tp,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:Qf})(Uu(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`,...e.vars&&e.applyStyles(`dark`,{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`})},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Kh=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,fullWidth:i=!1,hiddenLabel:a,inputComponent:o=`input`,multiline:s=!1,notched:c,slotProps:l,slots:u={},type:d=`text`,...f}=n,p={...n,disableUnderline:r,fullWidth:i,inputComponent:o,multiline:s,type:d},m=Uh(n),h={root:{ownerState:p},input:{ownerState:p}},g=l?Ir(h,l):h,_=u.root??Wh,v=u.input??Gh;return(0,J.jsx)(rp,{slots:{root:_,input:v},slotProps:g,fullWidth:i,inputComponent:o,multiline:s,ref:t,type:d,...f,classes:m})});Kh.muiName=`Input`;var qh,Jh=Z(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:Vu})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),Yh=Z(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:Vu})(Uu(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,...nd(e,`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,...nd(e,`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,...nd(e,`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Xh(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,J.jsx)(Jh,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,J.jsx)(Yh,{ownerState:c,children:s?(0,J.jsx)(`span`,{children:i}):qh||=(0,J.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`})})})}var Zh=e=>{let{classes:t}=e,n=xr({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},yp,t);return{...t,...n}},Qh=Z(ep,{shouldForwardProp:e=>Vu(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:Zf})(Uu(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bp.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bp.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${bp.focused} .${bp.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{[`&.${bp.focused} .${bp.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${bp.error} .${bp.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bp.disabled} .${bp.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`14px`,paddingRight:`var(--_trailingPad)`,[`&.${Hh.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),$h=Z(Xh,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(Uu(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),eg=Z(tp,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:Qf})(Uu(({theme:e})=>({padding:`16.5px 14px`,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderRadius:`inherit`,...e.vars&&e.applyStyles(`dark`,{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`})},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),tg=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiOutlinedInput`}),{fullWidth:r=!1,inputComponent:i=`input`,label:a,multiline:o=!1,notched:s,slots:c={},slotProps:l={},type:u=`text`,...d}=n,f=Zh(n),[p,m]=Hf({props:n,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),h={...n,color:p.color||`primary`,disabled:p.disabled,error:p.error,focused:p.focused,formControl:m,fullWidth:r,hiddenLabel:p.hiddenLabel,multiline:o,size:p.size,type:u},g=c.root??Qh,_=c.input??eg,[v,y]=ph(`notchedOutline`,{elementType:$h,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:h,externalForwardedProps:{slots:c,slotProps:l},additionalProps:{label:a!=null&&a!==``&&p.required?(0,J.jsxs)(K.Fragment,{children:[a,` `,`*`]}):a}});return(0,J.jsx)(rp,{slots:{root:g,input:_},slotProps:l,renderSuffix:e=>(0,J.jsx)(v,{...y,notched:s===void 0?!!(e.startAdornment||e.filled||e.focused):s}),fullWidth:r,inputComponent:i,multiline:o,ref:t,type:u,...d,classes:{...f,notchedOutline:null}})});tg.muiName=`Input`;var ng=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return xr({root:[`root`,`color${_r(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},up,t)},rg=Z(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Uu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{[`&.${dp.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${dp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${dp.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),ig=Z(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Uu(({theme:e})=>({[`&.${dp.error}`]:{color:(e.vars||e).palette.error.main}}))),ag=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,[p]=Hf({props:n,states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=ng(m);return(0,J.jsxs)(rg,{as:o,ownerState:m,className:q(h.root,i),ref:t,...f,children:[r,p.required&&(0,J.jsxs)(ig,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})}),og=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=xr({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${_r(r)}`,o],asterisk:[s&&`asterisk`]},Fh,t);return{...t,...c}},sg=Z(ag,{shouldForwardProp:e=>Vu(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${dp.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Uu(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{...nd(e,[`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),cg=K.forwardRef(function(e,t){let n=Wu({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,[l,u]=Hf({props:n,states:[`size`,`variant`,`required`,`focused`]}),d=a;d===void 0&&u&&(d=u.filled||u.focused||u.adornedStart);let f={...n,disableAnimation:r,formControl:u,shrink:d,size:l.size,variant:l.variant,required:l.required,focused:l.focused},p=og(f);return(0,J.jsx)(sg,{"data-shrink":d,ref:t,className:q(p.root,s),...c,ownerState:f,classes:p})});function lg(e){return Os(`MuiFormControl`,e)}ks(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var ug=e=>{let{classes:t,margin:n,fullWidth:r}=e;return xr({root:[`root`,n!==`none`&&`margin${_r(n)}`,r&&`fullWidth`]},lg,t)},dg=Z(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${_r(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),fg=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=ug(_),[y,b]=K.useState(()=>{let e=!1;return r&&K.Children.forEach(r,t=>{if(!ld(t,[`Input`,`Select`]))return;let n=ld(t,[`Select`])?t.props.input:t;n&&Gf(n.props)&&(e=!0)}),e}),[x,S]=K.useState(()=>{let e=!1;return r&&K.Children.forEach(r,t=>{ld(t,[`Input`,`Select`])&&(Wf(t.props,!0)||Wf(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=K.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C,E;K.useRef(!1);let D=K.useCallback(()=>{S(!0)},[]),O=K.useCallback(()=>{S(!1)},[]),k=K.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:O,onFilled:D,registerEffect:E,required:p,variant:h}),[y,a,s,c,x,T,u,d,E,O,D,p,m,h]);return(0,J.jsx)(Bf.Provider,{value:k,children:(0,J.jsx)(dg,{as:o,ownerState:_,className:q(v.root,i),ref:t,...g,children:r})})}),pg,mg=e=>{let{classes:t,contained:n,size:r,disabled:i,error:a,filled:o,focused:s,required:c}=e;return xr({root:[`root`,i&&`disabled`,a&&`error`,r&&`size${_r(r)}`,n&&`contained`,s&&`focused`,o&&`filled`,c&&`required`]},cp,t)},hg=Z(`p`,{name:`MuiFormHelperText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size&&t[`size${_r(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Uu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:`left`,marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${lp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lp.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:`small`},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),gg=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiFormHelperText`}),{children:r,className:i,component:a=`p`,disabled:o,error:s,filled:c,focused:l,margin:u,required:d,variant:f,...p}=n,[m]=Hf({props:n,states:[`variant`,`size`,`disabled`,`error`,`filled`,`focused`,`required`]}),h={...n,component:a,contained:m.variant===`filled`||m.variant===`outlined`,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete h.ownerState;let g=mg(h);return(0,J.jsx)(hg,{as:a,className:q(g.root,i),ref:t,...p,ownerState:h,children:r===` `?pg||=(0,J.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):r})});function _g(e){return e?.props?.ref||null}function vg(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:lh(n,r),{props:s,internalRef:c}=fh({...a,externalSlotProps:o}),l=Cd(c,o?.ref,e.additionalProps?.ref);return ch(t,{...s,ref:l},r)}var yg=K.createContext(void 0);function bg(){let e=K.useContext(yg);if(e===void 0)throw Error(`MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.`);return e}var xg=Object.is;function Sg(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!xg(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var Cg=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`];function wg(e){let{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:i=!1,isItemFocusable:a=Rg,wrap:o=!0}=e,[s,c]=K.useState(t),[l,u]=K.useState(t),d=s;t!==l&&(u(t),t!==void 0&&t!==s&&(d=t,c(t)));let f=K.useRef(null),p=K.useRef(new Map),[m,h]=K.useState(0),g=K.useMemo(()=>Fg(p.current),[m]),_=Eg(d,g,a,n),v=K.useRef(_);v.current=_;let y=K.useCallback(()=>{let e=Fg(p.current);return Mg(e,Eg(v.current,e,a,n))},[n,a]),b=K.useCallback(()=>p.current,[]),x=xd(e=>{Sg(p.current.get(e.id)??null,e)||(p.current.set(e.id,e),h(e=>e+1))}),S=xd(e=>{p.current.delete(e)&&h(e=>e+1)}),C=xd(e=>{c(e)}),w=K.useCallback(e=>v.current===e,[]),T=K.useCallback((e,t,n,r)=>{let i=Ag(Ig(p.current),e,t,n,r??a);return i?(i.element?.focus(),c(i.id),i):null},[a]),E=K.useCallback((e,t,n)=>({onFocus:e=>{t?.(e);let n=Ig(p.current),r=Pg(n,e.target);r!==-1&&c(n[r].id)},onKeyDown:e=>{if(n?.(e),e.defaultPrevented||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||!Cg.includes(e.key))return;let t=r===`horizontal`?`ArrowLeft`:`ArrowUp`,a=r===`horizontal`?`ArrowRight`:`ArrowDown`;r===`horizontal`&&i&&(t=`ArrowRight`,a=`ArrowLeft`);let s=Ig(p.current),c=ud(fd(f.current)),l=c===f.current,u=kg(s,c,v.current),d=`next`;switch(e.key){case t:d=`previous`,e.preventDefault(),l&&(u=s.length);break;case a:e.preventDefault(),l&&(u=-1);break;case`Home`:e.preventDefault(),u=-1;break;case`End`:e.preventDefault(),d=`previous`,u=s.length;break;default:return}T(u,d,o)},ref:Vg(e,e=>{f.current=e})}),[T,i,r,o]),D=K.useCallback(e=>{let t=Ig(p.current),n=ud(fd(f.current)),r=n===f.current?-1:kg(t,n,v.current);return T(r,`next`,!0,e)?.id??null},[T]);return K.useMemo(()=>({activeItemId:_,focusNext:D,getActiveItem:y,getContainerProps:E,getItemMap:b,isItemActive:w,registerItem:x,setActiveItemId:C,unregisterItem:S}),[_,D,y,E,b,w,x,C,S])}function Tg(e){let{activeItemId:t,registerItem:n,unregisterItem:r}=bg(),i=K.useRef(null),a=K.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),o=K.useRef(a);o.current=a;let s=K.useCallback(t=>{if(i.current=t,t==null){queueMicrotask(()=>{i.current??r(e.id)});return}n({...o.current,element:t})},[e.id,n,r]),c=Cd(e.ref,s);return Gs(()=>{i.current&&n({...a,element:i.current})},[a,n]),Gs(()=>{let t=e.id;return()=>{r(t)}},[e.id,r]),{ref:c,tabIndex:t===e.id?0:-1}}function Eg(e,t,n,r){return e==null?Og(t,n,r):Dg(e,t,n)}function Dg(e,t,n){let r=Ng(t,e);return r===-1?jg(t,n):n(t[r])?t[r].id:Ag(t,r,`next`,!1,n)?.id??null}function Og(e,t,n){let r=n?.(e);if(r!=null){let n=Mg(e,r);if(n&&t(n))return n.id}return jg(e,t)}function kg(e,t,n){if(t){let n=Pg(e,t);if(n!==-1)return n}return Ng(e,n)}function Ag(e,t,n,r,i){let a=e.length-1;if(a===-1)return null;let o=!1,s=Lg(t,a,n,r),c=s;for(;s!==-1;){if(s===c){if(o)return null;o=!0}let t=e[s];if(!t||!i(t))s=Lg(s,a,n,r);else return t}return null}function jg(e,t){return e.find(e=>t(e))?.id??null}function Mg(e,t){return t==null?null:e.find(e=>e.id===t)??null}function Ng(e,t){return t==null?-1:e.findIndex(e=>e.id===t)}function Pg(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function Fg(e){let t=Array.from(e.values());if(t.every(e=>e.element==null))return t;let n=t.filter(zg).sort((e,t)=>Bg(e.element,t.element)),r=t.filter(e=>!zg(e));return[...n,...r]}function Ig(e){return Fg(e).filter(zg)}function Lg(e,t,n,r=!0){return n===`next`?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function Rg(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute(`disabled`)&&e.element.getAttribute(`aria-disabled`)!==`true`&&e.element.hasAttribute(`tabindex`):!1}function zg(e){return e.element!=null&&e.element.isConnected}function Bg(e,t){if(e===t)return 0;let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Vg(...e){return t=>{e.forEach(e=>{gd(e??null,t)})}}function Hg(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var Ug=Hg;function Wg(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}var Gg=Wg;function Kg(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}var qg=K.createContext({});function Jg(e){return Os(`MuiList`,e)}ks(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var Yg=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return xr({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},Jg,t)},Xg=Z(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0,isolation:`isolate`}}]}),Zg=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=K.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=Yg(d);return(0,J.jsx)(qg.Provider,{value:u,children:(0,J.jsxs)(Xg,{as:a,className:q(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})});function Qg(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function $g(e){return e==null||typeof e==`string`&&!e.trim()}function e_(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var t_=K.createContext(null);function n_(){return K.useContext(t_)}var r_=t_.Provider,i_=K.createContext(void 0);function a_(){let e=K.useContext(i_);if(e===void 0)throw Error(`MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.`);return e}function o_(e){let t=e?.element??e;if(!t)return``;if(e?.textValue!==void 0)return e.textValue;let n=t.innerText;return n===void 0&&(n=t.textContent),n??``}function s_(e,t){if(t===void 0)return!0;let n=o_(e);return n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function c_(e,t){return s_(e,t)?Rg(e):!1}function l_(e,t){Kg(e,t)}var u_=K.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=K.useRef(null),p=K.useRef(!1),[m,h]=K.useState(!1),g=n_(),_=K.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),v=wg({activeItemId:void 0,getDefaultActiveItemId:K.useCallback(e=>u===`selectedMenu`?e.find(e=>e.selected&&Rg(e))?.id??e.find(e=>Rg(e))?.id??null:e.find(e=>Rg(e))?.id??null,[u]),orientation:`vertical`,wrap:!c}),{activeItemId:y,focusNext:b,getActiveItem:x,getContainerProps:S,getItemMap:C}=v,w=Sd((e=!1)=>{if(!f.current||!e&&p.current)return null;if(i){let e=x();if(e?.element){let t=Array.from(C().values()).some(e=>e.selected),n=u===`menu`&&t&&!e.selected&&g==null;return h(n),l_(e.element,g),p.current=!0,e.element}return r?(h(!1),f.current.focus(),f.current):null}return r?(h(!1),f.current.focus(),p.current=!0,f.current):(h(!1),null)});_d(()=>{if(!r&&!i){p.current=!1,h(!1);return}w()},[y,i,r,w]),K.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=hd(e),r=Gg(n);if(r>0){let e=`${r}px`,i=t===`rtl`?`paddingLeft`:`paddingRight`,a=parseFloat(n.getComputedStyle(f.current)[i])||0;f.current.style[i]=`${a+r}px`,f.current.style.width=`calc(100% + ${e})`}}return f.current},focusInitialTarget:()=>{if(!f.current)return null;let e=dd(pd(f.current));return e&&Ug(f.current,e)?e:w(!0)}}),[w]);let T=S(void 0,d.onFocus),E=wd(f,T.ref,t),D=K.useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:u}),[s,m,u]),O=Sd(e=>{if(m&&h(!1),(e.ctrlKey||e.metaKey||e.altKey)&&l){l(e);return}if(T.onKeyDown(e),e.key.length===1){let t=_.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);let i=dd(pd(f.current)),a=i&&!t.repeating&&s_(i,t);t.previousKeyMatched&&(a||b(e=>c_(e,t))!=null)?e.preventDefault():t.previousKeyMatched=!1}l&&l(e)});return(0,J.jsx)(Zg,{role:`menu`,ref:E,className:o,onKeyDown:O,tabIndex:-1,...d,onFocus:T.onFocus,children:(0,J.jsx)(i_.Provider,{value:D,children:(0,J.jsx)(yg.Provider,{value:v,children:a})})})});function d_(e){let t=Kp(()=>f_(e)).current;return t.next=e,Gs(t.effect),t}function f_(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var p_=K.createContext(null);function m_(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function h_(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=m_(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function g_(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,children:v,...y}=e,b=K.useContext(p_),x=b&&!b.isMounting?r:n,[S,C]=K.useState(()=>t?x?`exited`:`entered`:a||o?`unmounted`:`exited`),w=K.useRef(S);w.current=S,t&&S===`unmounted`&&(w.current=`exited`,C(`exited`));let T=K.useRef(t&&x),E=K.useRef(!1),D=K.useRef(null),O=K.useRef(S),k=K.useRef(!1),A=K.useRef(l),j=d_({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:d,parentGroup:b}),M=K.useCallback(()=>{D.current!==null&&(D.current.cancel(),D.current=null)},[]),N=K.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,D.current=null,e())};return n.cancel=()=>{t=!1},D.current=n,n},[]),P=K.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=N(()=>{r(),w.current=e,C(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=j.current.nodeRef.current,s=j.current.addEndListener,c=j.current.getAutoTimeout!==void 0,l=j.current.getAutoTimeout?.(),u=h_({currentStatus:t,isAppearing:k.current,timeout:j.current.timeout,autoTimeout:l}),d=A.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};if(!o){p(0);return}if(s){f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i);return}p(d?0:u??0)},[N,j]),F=K.useCallback(e=>{let t=j.current,n=t.parentGroup?t.parentGroup.isMounting:e;if(k.current=n,!e&&!t.enter){w.current=`entered`,C(`entered`);return}A.current=t.reduceMotion,t.onEnter?.(n),w.current=`entering`,C(`entering`)},[j]),I=K.useCallback(()=>{let e=j.current;if(!e.exit){w.current=`exited`,C(`exited`);return}A.current=e.reduceMotion,e.onExit?.(),w.current=`exiting`,C(`exiting`)},[j]),L=K.useCallback((e,t)=>{if(M(),t===`entering`){let t=j.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&Ju(e)}F(e)}else I()},[M,F,I,j]);return Gs(()=>(E.current=!0,T.current&&(T.current=!1,L(!0,`entering`)),()=>{E.current=!1,M()}),[M,L]),Gs(()=>{if(!E.current)return;let e=w.current;t?e!==`entering`&&e!==`entered`&&L(!1,`entering`):e===`entering`||e===`entered`?L(!1,`exiting`):e===`exited`&&o&&(w.current=`unmounted`,C(`unmounted`))},[t,S,o,L]),Gs(()=>{if(S===`unmounted`||O.current===`unmounted`){O.current=S;return}let e=O.current!==S;e&&(O.current=S);let t=j.current;S===`entering`?(e&&t.onEntering?.(k.current),D.current===null&&w.current===S&&P(`entered`,`entering`)):S===`exiting`?(e&&t.onExiting?.(),D.current===null&&w.current===S&&P(`exited`,`exiting`)):S===`entered`&&e?t.onEntered?.(k.current):S===`exited`&&e&&t.onExited?.()},[j,P,S]),S===`unmounted`?null:(0,J.jsx)(p_.Provider,{value:null,children:v(S,y)})}function __(e){return`scale(${e}, ${e**2})`}var v_={entering:{opacity:1,transform:__(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:__(.75)},exited:{opacity:0,transform:__(.75)}},y_={opacity:0,transform:__(.75),visibility:`hidden`},b_=K.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,disablePrefersReducedMotion:a=!1,easing:o,in:s,onEnter:c,onEntered:l,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:h=`auto`,...g}=e,_=K.useRef(null),v=Ru(),y=pm(v.motion.reducedMotion,a),b=K.useRef(null),x=wd(b,_g(i),t),S=Qu(b,u),C=Qu(b,(e,t)=>{y.shouldReduceMotion||Ju(e);let{duration:n,delay:r,easing:i}=ed({style:m,timeout:h,easing:o},{mode:`enter`}),a;h===`auto`&&!y.shouldReduceMotion?(a=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=a):(a=n,_.current=null);let s=y.getTransitionTiming({duration:a,delay:r});e.style.transition=[v.transitions.create(`opacity`,{duration:s.duration,delay:s.delay}),v.transitions.create(`transform`,{duration:typeof s.duration==`string`?s.duration:s.duration*.666,delay:s.delay,easing:i})].join(`,`),c&&c(e,t)}),w=Qu(b,l),T=Qu(b,p),E=Qu(b,e=>{let{duration:t,delay:n,easing:r}=ed({style:m,timeout:h,easing:o},{mode:`exit`}),i;h===`auto`&&!y.shouldReduceMotion?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):(i=t,_.current=null);let a=y.getTransitionTiming({duration:i,delay:n});e.style.transition=[v.transitions.create(`opacity`,{duration:a.duration,delay:a.delay}),v.transitions.create(`transform`,{duration:typeof a.duration==`string`?a.duration:a.duration*.666,delay:a.delay||(typeof a.duration==`string`?a.duration:a.duration*.333),easing:r})].join(`,`),e.style.opacity=0,e.style.transform=__(.75),d&&d(e)}),D=Qu(b,e=>{e.style.transition=``,f&&f(e)});return(0,J.jsx)(g_,{appear:r,in:s,nodeRef:b,onEnter:C,onEntered:w,onEntering:S,onExit:E,onExited:D,onExiting:T,addEndListener:n?e=>{n(b.current,e)}:void 0,getAutoTimeout:h===`auto`?()=>_.current:void 0,reduceMotion:y.shouldReduceMotion,timeout:h===`auto`?null:h,...g,children:(e,{ownerState:t,...n})=>{let r=$u(e,s,v_,y_,m,i.props.style);return K.cloneElement(i,{style:r,ref:x,...n})}})});b_&&(b_.muiSupportAuto=!0);function x_(e){let t=fd(e);return e===t.body||e===t.documentElement?md(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function S_(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function C_(e){return parseFloat(md(e).getComputedStyle(e).paddingRight)||0}function w_(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function T_(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!w_(e);t&&n&&S_(e,i)})}function E_(e,t){let n=[],r=e.container;if(!t.disableScrollLock){let e;if(r.parentNode instanceof DocumentFragment)e=fd(r).body;else{let t=r.parentElement,n=md(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}if(x_(e)){let t=Wg(md(e));n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${C_(e)+t}px`;let i=fd(r).querySelectorAll(`.mui-fixed`);[].forEach.call(i,e=>{n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${C_(e)+t}px`})}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function D_(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var O_=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&S_(e.modalRef,!1);let r=D_(t);T_(t,e.mount,e.modalRef,r,!0);let i=this.containers.findIndex(e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=this.containers.findIndex(t=>t.modals.includes(e)),r=this.containers[n];r.restore||=E_(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=this.containers.findIndex(t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&S_(e.modalRef,t),T_(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&S_(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},k_=`data-mui-focusable`;function A_(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${k_}]`):null}var j_=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function M_(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function N_(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function P_(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||N_(e))}function F_(e){let t=[],n=[];return Array.from(e.querySelectorAll(j_)).forEach((e,r)=>{let i=M_(e);i!==-1&&P_(e)&&(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function I_(){return!0}function L_(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=F_,isEnabled:o=I_,open:s}=e,c=K.useRef(!1),l=K.useRef(null),u=K.useRef(null),d=K.useRef(null),f=K.useRef(null),p=K.useRef(!1),m=K.useRef(null),h=Cd(_g(t),m),g=K.useRef(null);K.useEffect(()=>{s&&m.current&&(p.current=!n)},[n,s]),K.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=dd(fd(m.current)),t=A_(m.current)??m.current;return Ug(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{!i&&d.current&&(c.current=!0,d.current.focus(),d.current=null)}},[s]),K.useEffect(()=>{if(!s||!m.current)return;let e=fd(m.current),t=t=>{if(g.current=t,r||!o()||t.key!==`Tab`)return;let n=m.current,i=dd(e);if(n===null)return;let s=A_(n);if(i===n||i===s){let e=a(n);if(e.length===0)return;t.preventDefault(),t.shiftKey?e[e.length-1].focus():e[0].focus();return}if(Ug(n,i)){let e=a(n),r=e.indexOf(i);if(r===-1||!e.some(e=>M_(e)>0))return;t.preventDefault();let o=0;o=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[o].focus()}},n=()=>{let t=m.current;if(t===null)return;let n=dd(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Ug(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=dd(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),K.cloneElement(t,{ref:h,onFocus:_}),(0,J.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}var R_=s((e=>{var t=Ye();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),z_=s(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=R_()})),B_=l(z_(),1);function V_(e){return typeof e==`function`?e():e}var H_=K.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=K.useState(null),s=Cd(K.isValidElement(n)?_g(n):null,t);if(Gs(()=>{i||o(V_(r)||document.body)},[r,i]),Gs(()=>{if(a&&!i)return gd(t,a),()=>{gd(t,null)}},[t,a,i]),i){if(K.isValidElement(n)){let e={ref:s};return K.cloneElement(n,e)}return n}return a&&B_.createPortal(n,a)}),U_={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},W_={opacity:0,visibility:`hidden`},G_=K.forwardRef(function(e,t){let n=Ru(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,disablePrefersReducedMotion:s=!1,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:g,timeout:_=r,...v}=e,y=pm(n.motion.reducedMotion,s),b=K.useRef(null),x=wd(b,_g(o),t),S=Qu(b,f),C=Qu(b,(e,t)=>{y.shouldReduceMotion||Ju(e);let r=ed({style:g,timeout:_,easing:c},{mode:`enter`}),i=y.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`opacity`,{duration:i.duration,easing:r.easing,delay:i.delay}),u&&u(e,t)}),w=Qu(b,d),T=Qu(b,h),E=Qu(b,e=>{let t=ed({style:g,timeout:_,easing:c},{mode:`exit`}),r=y.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`opacity`,{duration:r.duration,easing:t.easing,delay:r.delay}),p&&p(e)}),D=Qu(b,e=>{e.style.transition=``,m&&m(e)});return(0,J.jsx)(g_,{appear:a,in:l,nodeRef:b,onEnter:C,onEntered:w,onEntering:S,onExit:E,onExited:D,onExiting:T,addEndListener:i?e=>{i(b.current,e)}:void 0,reduceMotion:y.shouldReduceMotion,timeout:_,...v,children:(e,{ownerState:t,...n})=>{let r=$u(e,l,U_,W_,g,o.props.style);return K.cloneElement(o,{style:r,ref:x,...n})}})});function K_(e){return Os(`MuiBackdrop`,e)}ks(`MuiBackdrop`,[`root`,`invisible`]);var q_=e=>{let{classes:t,invisible:n}=e;return xr({root:[`root`,n&&`invisible`]},K_,t)},J_=Z(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Y_=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,slotProps:c={},slots:l={},transitionDuration:u,...d}=n,f={...n,component:a,invisible:o},p=q_(f),m={component:a,slots:l,slotProps:c},[h,g]=ph(`root`,{elementType:J_,externalForwardedProps:m,className:q(p.root,i),ownerState:f}),[_,v]=ph(`transition`,{elementType:G_,externalForwardedProps:m,ownerState:f});return(0,J.jsx)(_,{in:s,timeout:u,...d,...v,children:(0,J.jsx)(h,{...g,ref:t,children:r})})});function X_(e){return typeof e==`function`?e():e}function Z_(e){return e?e.props.hasOwnProperty(`in`):!1}var Q_=()=>{},$_=new O_;function ev(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,u=K.useRef({}),d=K.useRef(null),f=K.useRef(null),p=K.useRef(null),m=Cd(p,l),[h,g]=K.useState(!c),_=Z_(o),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>fd(d.current),b=()=>(u.current.modalRef=p.current,u.current.mount=d.current,u.current),x=()=>{$_.mount(b(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},S=xd(()=>{let e=X_(t)||y().body;$_.add(b(),e),p.current&&x()}),C=()=>$_.isTopModal(b()),w=xd(e=>{d.current=e,e&&(f.current=e,c&&C()?x():p.current&&S_(p.current,v))}),T=K.useCallback(()=>{$_.remove(b(),v)},[v]);K.useEffect(()=>()=>{T()},[T]),K.useEffect(()=>{c?S():(!_||!r)&&T()},[c,T,_,r,S]);let E=e=>t=>{e.onKeyDown?.(t),t.key===`Escape`&&t.which!==229&&C()&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=uh(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:c}},getTransitionProps:()=>({onEnter:vr(()=>{g(!1),i&&i()},o?.props.onEnter??Q_),onExited:vr(()=>{g(!0),a&&a(),r&&T()},o?.props.onExited??Q_)}),rootRef:m,portalRef:w,portalContainer:!c&&_&&!h?f.current??t:t,isTopModal:C,exited:h,hasTransition:_}}function tv(e){return Os(`MuiModal`,e)}ks(`MuiModal`,[`root`,`hidden`,`backdrop`]);var nv=e=>{let{open:t,exited:n,classes:r}=e;return xr({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},tv,r)},rv=Z(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Uu(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),iv=Z(Y_,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),av=K.forwardRef(function(e,t){let n=Wu({name:`MuiModal`,props:e}),{classes:r,className:i,closeAfterTransition:a=!1,children:o,container:s,component:c,disableAutoFocus:l=!1,disableEnforceFocus:u=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:p=!1,hideBackdrop:m=!1,keepMounted:h=!1,onClose:g,onTransitionEnter:_,onTransitionExited:v,open:y,slotProps:b={},slots:x={},theme:S,...C}=n,w={...n,closeAfterTransition:a,disableAutoFocus:l,disableEnforceFocus:u,disablePortal:d,disableRestoreFocus:f,disableScrollLock:p,hideBackdrop:m,keepMounted:h},{getRootProps:T,getBackdropProps:E,getTransitionProps:D,portalRef:O,portalContainer:k,isTopModal:A,exited:j,hasTransition:M}=ev({...w,rootRef:t}),N={...w,exited:j},P=nv(N),F={};if(o.props.tabIndex===void 0&&(F.tabIndex=`-1`),M){let{onEnter:e,onExited:t}=D();F.onEnter=e,F.onExited=t}let I={slots:x,slotProps:b},[L,R]=ph(`root`,{ref:t,elementType:rv,externalForwardedProps:{...I,...C,component:c},getSlotProps:T,ownerState:N,className:q(i,P?.root,!N.open&&N.exited&&P?.hidden)}),[z,ee]=ph(`backdrop`,{elementType:iv,externalForwardedProps:I,shouldForwardComponentProp:!0,getSlotProps:e=>E({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:P?.backdrop,ownerState:N});return!h&&!y&&(!M||j)?null:(0,J.jsx)(H_,{ref:O,container:k,disablePortal:d,children:(0,J.jsxs)(L,{...R,children:[m?null:(0,J.jsx)(z,{...ee}),(0,J.jsx)(L_,{disableEnforceFocus:u,disableAutoFocus:l,disableRestoreFocus:f,isEnabled:A,open:y,children:K.cloneElement(o,F)})]})})});function ov(e){return Os(`MuiPaper`,e)}ks(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var sv=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return xr({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},ov,i)},cv=Z(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(Uu(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...nd(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),lv=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiPaper`}),r=Ru(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=sv(u);return(0,J.jsx)(cv,{as:a,ownerState:u,className:q(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${oc(`#fff`,vu(o))}, ${oc(`#fff`,vu(o))})`}},...l.style}})});function uv(e){return Os(`MuiPopover`,e)}ks(`MuiPopover`,[`root`,`paper`]);function dv(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function fv(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function pv(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function mv(e){return typeof e==`function`?e():e}var hv=e=>{let{classes:t}=e;return xr({root:[`root`],paper:[`paper`]},uv,t)},gv=Z(av,{name:`MuiPopover`,slot:`Root`})({}),_v=Z(lv,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),vv=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,disableAutoFocus:d=!1,elevation:f=8,marginThreshold:p=16,open:m,slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},transitionDuration:v=`auto`,disableScrollLock:y=!1,...b}=n,x=K.useRef(),S={...n,anchorOrigin:a,anchorReference:s,elevation:f,marginThreshold:p,transformOrigin:_,transitionDuration:v},C=hv(S),w=K.useCallback(()=>{if(s===`anchorPosition`)return o;let e=mv(i),t=(e&&e.nodeType===1?e:pd(x.current).body).getBoundingClientRect();return{top:t.top+dv(t,a.vertical),left:t.left+fv(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),T=K.useCallback(e=>({vertical:dv(e,_.vertical),horizontal:fv(e,_.horizontal)}),[_.horizontal,_.vertical]),E=K.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if(s===`none`)return{top:null,left:null,transformOrigin:pv(n)};let r=w(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=hd(mv(i)),d=u.innerHeight-p,f=u.innerWidth-p;if(p!=null&&a<p){let e=a-p;a-=e,n.vertical+=e}else if(p!=null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(p!=null&&o<p){let e=o-p;o-=e,n.horizontal+=e}else if(l>f){let e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:pv(n)}},[i,s,w,T,p]),[D,O]=K.useState(m),k=K.useCallback(()=>{let e=x.current;if(!e)return;let t=E(e);t.top!=null&&e.style.setProperty(`top`,t.top),t.left!=null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,O(!0)},[E]);K.useEffect(()=>(y&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,y,k]);let A=()=>{k()},j=()=>{O(!1)};K.useEffect(()=>{m&&k()}),K.useImperativeHandle(r,()=>m?{updatePosition:()=>{k()}}:null,[m,k]),K.useEffect(()=>{if(!m)return;let e=cd(()=>{k()}),t=hd(mv(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,m,k]);let M=v,N={slots:h,slotProps:g},[P,F]=ph(`transition`,{elementType:b_,externalForwardedProps:N,ownerState:S,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),j()}}),additionalProps:{appear:!0,in:m}});v===`auto`&&!P.muiSupportAuto&&(M=void 0);let I=u||(i?pd(mv(i)).body:void 0),[L,{slots:R,slotProps:z,...ee}]=ph(`root`,{ref:t,elementType:gv,externalForwardedProps:{...N,...b},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Ed(typeof g.backdrop==`function`?g.backdrop(S):g.backdrop,{invisible:!0})},container:I,open:m},ownerState:S,className:q(C.root,l)}),[te,B]=ph(`paper`,{ref:x,className:C.paper,elementType:_v,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:D?void 0:{opacity:0}},ownerState:S});return(0,J.jsx)(L,{...ee,...!Pf(L)&&{slots:R,slotProps:z,disableAutoFocus:d,disableScrollLock:y},children:(0,J.jsx)(P,{...F,timeout:M,children:(0,J.jsx)(te,{...B,children:c})})})});function yv(e){return Os(`MuiMenu`,e)}ks(`MuiMenu`,[`root`,`paper`,`list`]);var bv={vertical:`top`,horizontal:`right`},xv={vertical:`top`,horizontal:`left`},Sv=e=>{let{classes:t}=e;return xr({root:[`root`],paper:[`paper`],list:[`list`]},yv,t)},Cv=Z(vv,{shouldForwardProp:e=>Vu(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),wv=Z(_v,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),Tv=Z(u_,{name:`MuiMenu`,slot:`List`})({outline:0}),Ev=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,onClose:s,open:c,PopoverClasses:l,transitionDuration:u=`auto`,variant:d=`selectedMenu`,slots:f={},slotProps:p={},...m}=n,h=xc(),g={...n,autoFocus:r,disableAutoFocusItem:o,transitionDuration:u,variant:d},_=Sv(g),v=r&&c,y=v&&!o,b=K.useRef(null),x=(e,t)=>{b.current&&(b.current.adjustStyleForScrollbar(e,{direction:h?`rtl`:`ltr`}),v&&b.current.focusInitialTarget?.())},S=e=>{e.key===`Tab`&&(e.preventDefault(),s&&s(e,`tabKeyDown`))},C={slots:f,slotProps:p},w=vg({elementType:f.root,externalSlotProps:p.root,ownerState:g,className:[_.root,a]}),[T,E]=ph(`paper`,{className:_.paper,elementType:wv,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:g}),[D,O]=ph(`list`,{className:_.list,elementType:Tv,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:e=>({...e,onKeyDown:t=>{S(t),e.onKeyDown?.(t)}}),ownerState:g}),k=typeof p.transition==`function`?p.transition(g):p.transition;return(0,J.jsx)(Cv,{disableAutoFocus:r,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:h?`right`:`left`},transformOrigin:h?bv:xv,slots:{root:f.root,paper:T,backdrop:f.backdrop,transition:f.transition},slotProps:{root:w,paper:E,backdrop:typeof p.backdrop==`function`?p.backdrop(g):p.backdrop,transition:{...k,onEntering:(...e)=>{x(...e),k?.onEntering?.(...e)}}},open:c,ref:t,transitionDuration:u,ownerState:g,...m,classes:l,children:(0,J.jsx)(D,{actions:b,autoFocus:v,autoFocusItem:y,variant:d,...O,children:i})})});function Dv(e){return Os(`MuiInputAdornment`,e)}var Ov=ks(`MuiInputAdornment`,[`root`,`filled`,`standard`,`outlined`,`positionStart`,`positionEnd`,`disablePointerEvents`,`hiddenLabel`,`sizeSmall`]),kv=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return xr({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${_r(n)}`,a&&`iconOpen`,r&&`disabled`]},_p,t)},Av=Z(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${vp.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},[`& ~ .${Ov.root}`]:{position:`absolute`,top:`50%`,transform:`translateY(-50%)`,right:`calc(var(--_caret, 24px) + (var(--_endAdornment, 28px) - 1.5rem)/2)`},[`.${qf.root}:has(> &)`]:{"--_endAdornment":`0px`},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{[`.${qf.root}:has(> &)`]:{"--_caret":`24px`},[`.${qf.root}:has(> & ~ .${Ov.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 24px) + var(--_endAdornment, 0px))`,minWidth:16}}},{props:{variant:`filled`},style:{[`.${qf.root}:has(> &)`]:{"--_caret":`32px`},[`.${qf.root}:has(> & ~ .${Ov.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}},{props:{variant:`outlined`},style:{[`.${qf.root}:has(> &)`]:{"--_caret":`32px`},[`.${qf.root}:has(> & ~ .${Ov.root})`]:{"--_endAdornment":`28px`},borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}}]})),jv=Z(Av,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:Vu,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${vp.multiple}`]:t.multiple}]}})({}),Mv=Z(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${vp.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),Nv=Z(Mv,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${_r(n.variant)}`],n.open&&t.iconOpen]}})({}),Pv=K.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=kv(l);return(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(jv,{ownerState:l,className:q(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,J.jsx)(Nv,{as:a,ownerState:l,className:u.icon})]})});function Fv(e){return Object.prototype.hasOwnProperty.call(e.props,`value`)}function Iv(e){if(typeof e==`string`||typeof e==`number`)return String(e);let t=``;return K.Children.forEach(e,e=>{typeof e==`string`||typeof e==`number`?t+=String(e):K.isValidElement(e)&&(t+=Iv(e.props.children))}),t}function Lv(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length;for(let n=0;n<e.length;n+=1){let i=(r+n)%e.length;if(e[i].label.startsWith(t))return i}return-1}function Rv(e,t){return!e.some(e=>e.label[0]===t&&e.label[1]===t)}function zv(e,t){let n=[],r=-1;for(let i=0;i<e.length;i+=1){let a=e[i];if(!K.isValidElement(a)||!Fv(a)||a.props.disabled)continue;let o=Iv(a.props.children).trim().toLowerCase();o!==``&&(r===-1&&e_(t,a.props.value)&&(r=n.length),n.push({child:a,label:o,value:a.props.value}))}return{options:n,selectedIndex:r}}var Bv,Vv=2,Hv=400,Uv=200,Wv=750,Gv=` `,Kv=`ArrowUp`,qv=`ArrowDown`,Jv=`Enter`;function Yv(e,t){if(!t)return!1;if(e.composedPath().includes(t)||e.target?.nodeType&&t.contains(e.target))return!0;let n=t.getBoundingClientRect();return n.width===0&&n.height===0?!1:e.clientX>=n.left-Vv&&e.clientX<=n.right+Vv&&e.clientY>=n.top-Vv&&e.clientY<=n.bottom+Vv}var Xv=Z(Av,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${Hh.select}`]:t.select},{[`&.${Hh.select}`]:t[n.variant]},{[`&.${Hh.error}`]:t.error},{[`&.${Hh.multiple}`]:t.multiple}]}})({[`&.${Hh.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),Zv=Z(Mv,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.open&&t.iconOpen]}})({}),Qv=Z(`input`,{shouldForwardProp:e=>Bu(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),$v=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return xr({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},Vh,t)},ey=K.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:b,onClose:x,onFocus:S,onKeyDown:C,onMouseDown:w,onOpen:T,open:E,readOnly:D,renderValue:O,required:k,SelectDisplayProps:A={},tabIndex:j,type:M,value:N,variant:P=`standard`,...F}=e,[I,L]=bd({controlled:N,default:l,name:`Select`}),[R,z]=bd({controlled:E,default:c,name:`Select`}),ee=K.useRef(null),te=K.useRef(null),B=K.useRef(null),V=K.useRef(!1),ne=K.useRef(!1),re=K.useRef(null),ie=K.useRef(!1),H=K.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),U=K.useRef({buffer:``,previousSearchIndex:null,matchedIndex:null}),W=$p(),ae=$p(),oe=$p(),[se,ce]=K.useState(null),{current:G}=K.useRef(E!=null),[le,ue]=K.useState(),[de,fe]=K.useState(null),pe=wd(t,m),me=K.useCallback(e=>{te.current=e,e&&ce(e)},[]),he=se?.parentNode;K.useImperativeHandle(pe,()=>({focus:()=>{te.current.focus()},node:ee.current,value:I}),[I]);let ge=se!==null&&R,_e=K.useCallback(()=>{oe.clear(),U.current.buffer=``,U.current.previousSearchIndex=null,U.current.matchedIndex=null},[oe]);_d(()=>{V.current=ge,ge&&_e()},[ge,_e]);let ve=K.useCallback(()=>{W.clear(),ae.clear()},[W,ae]),ye=K.useCallback(()=>{ve(),ie.current=!1,H.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},[ve]),be=K.useCallback(()=>{re.current&&=(re.current(),null)},[]);K.useEffect(()=>{ge||(ye(),be())},[ge,ye,be]),K.useEffect(()=>()=>{ye(),be(),_e()},[ye,be,_e]),K.useEffect(()=>{if(!ge||!he||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{ue(he.clientWidth)});return e.observe(he),()=>{e.disconnect()}},[ge,he,a]),K.useEffect(()=>{c&&R&&se&&!G&&(ue(a?null:he.clientWidth),te.current.focus())},[se,a]),K.useEffect(()=>{i&&te.current.focus()},[i]),K.useEffect(()=>{if(!h)return;let e=pd(te.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&te.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let xe=Sd((e,t)=>{e||(ye(),be()),e?(_e(),fe(Qg(t)),T&&T(t)):(fe(null),x&&x(t)),G||(V.current=e,ue(a?null:he.clientWidth),z(e))}),Se=()=>{ye(),ne.current?ae.start(Uv,()=>{H.current.allowUnselectedMouseUp=!0,W.start(Uv,()=>{H.current.allowSelectedMouseUp=!0})}):W.start(Hv,()=>{H.current.allowSelectedMouseUp=!0,H.current.allowUnselectedMouseUp=!0})},Ce=e=>{if(w?.(e),e.button!==0||(e.preventDefault(),!te.current))return;te.current.focus();let t=pd(e.currentTarget);Se(),be();let n=e=>{re.current=null,te.current&&(Yv(e,te.current)||Yv(e,B.current)||(V.current||!G)&&xe(!1,e))};t.addEventListener(`mouseup`,n,{capture:!0,once:!0}),re.current=()=>{t.removeEventListener(`mouseup`,n,!0)},xe(!0,e)},we=e=>{xe(!1,e)},Te=K.Children.toArray(o),Ee=e=>{let t=Te.find(t=>t.props.value===e.target.value);t!==void 0&&(L(t.props.value),b&&b(e,t))},De=(e,t,n)=>{if(L(n),b){let r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),b(i,t)}},Oe=e=>t=>{ie.current=!1;let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(I)?I.slice():[];let t=I.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),I!==n&&De(t,e,n),_||xe(!1,t)}},ke=(e,t)=>n=>{if(e.props.onMouseUp?.(n),ie.current){ie.current=!1;return}let r=!H.current.allowSelectedMouseUp&&t,i=!H.current.allowUnselectedMouseUp&&!t;r||i||n.currentTarget.click()},Ae=e=>{let t=U.current,n=t.buffer!==``;if(ge||_||u||e.defaultPrevented||e.nativeEvent?.isComposing||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey||e.key===Gv&&!n)return!1;e.key===Gv&&e.preventDefault();let r=t.buffer===``,{options:i,selectedIndex:a}=zv(Te,I);if(i.length===0)return e.key!==Gv&&_e(),!0;r&&(t.previousSearchIndex=a);let o=e.key.toLowerCase();t.buffer===o&&Rv(i,o)&&(t.buffer=``,t.previousSearchIndex=t.matchedIndex),t.buffer+=o,oe.start(Wv,_e);let s=Lv(i,t.buffer,(t.previousSearchIndex??-1)+1);if(s!==-1){let n=i[s];return t.matchedIndex=s,e_(I,n.value)||De(e,n.child,n.value),!0}return e.key!==Gv&&_e(),!0},je=e=>{if(!D){let t=Ae(e),n=e.key===Gv||e.key===Kv||e.key===qv||e.key===Jv;!t&&n&&(e.preventDefault(),xe(!0,e)),C?.(e)}},Me=e=>{_e(),!ge&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:I,name:v}}),y(e))},Ne=e=>t=>{e?.props?.onKeyDown?.(t),t.key===Gv&&t.target===t.currentTarget&&!t.defaultPrevented&&(t.preventDefault(),t.repeat||t.currentTarget.click())};delete F[`aria-invalid`];let Pe,Fe,Ie=[],Le=!1,Re=!1;(Wf({value:I})||d)&&(O?Pe=O(I):Le=!0);let ze=Te.map(e=>{if(!K.isValidElement(e))return null;let t;if(_){if(!Array.isArray(I))throw Error(hr(2));t=I.some(t=>e_(t,e.props.value)),t&&Le&&Ie.push(e.props.children)}else t=e_(I,e.props.value),t&&Le&&(Fe=e.props.children);return t&&(Re=!0),K.cloneElement(e,{"aria-selected":t?`true`:`false`,onMouseDown:t=>{ie.current=!0,e.props.onMouseDown?.(t)},onPointerDown:t=>{ie.current=!0,e.props.onPointerDown?.(t)},onClick:Oe(e),onMouseUp:ke(e,t),onKeyUp:t=>{t.key===Gv&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},onKeyDown:Ne(e),role:`option`,selected:t,value:void 0,"data-value":e.props.value})});_d(()=>{ne.current=Re,!ge&&!_&&!Re&&_e()},[Re,_,ge,_e]),Le&&(Pe=_?Ie.length===0?null:Ie.reduce((e,t,n)=>(e.push(t),n<Ie.length-1&&e.push(`, `),e),[]):Fe);let Be=le;!a&&G&&se&&(Be=he.clientWidth);let Ve;Ve=j===void 0?u?null:0:j;let He=A.id||(v?`mui-component-select-${v}`:void 0),Ue={...e,variant:P,value:I,open:ge,error:f},We=$v(Ue),Ge=typeof g.slotProps?.paper==`function`?g.slotProps.paper(Ue):g.slotProps?.paper,Ke=wd(Ge?.ref,B),qe=typeof g.slotProps?.list==`function`?g.slotProps.list(Ue):g.slotProps?.list,Je=kc(),Ye=kc();return(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(Xv,{as:`div`,ref:me,tabIndex:Ve,role:`combobox`,"aria-controls":ge?Je:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":ge?`true`:`false`,"aria-haspopup":`listbox`,"aria-readonly":D?`true`:void 0,"aria-label":r,"aria-labelledby":h,"aria-describedby":n,"aria-required":k?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:je,onMouseDown:u||D?null:Ce,onBlur:Me,onFocus:S,...A,ownerState:Ue,className:q(A.className,We.select,s),id:He,children:$g(Pe)?Bv||=(0,J.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):Pe}),(0,J.jsx)(Qv,{"aria-invalid":f,value:Array.isArray(I)?I.join(`,`):I,name:v,ref:ee,"aria-hidden":!0,onChange:Ee,tabIndex:-1,disabled:u,readOnly:D,className:We.nativeInput,autoFocus:i,required:k,...F,id:F.id??Ye,ownerState:Ue}),(0,J.jsx)(Zv,{as:p,className:We.icon,ownerState:Ue}),(0,J.jsx)(r_,{value:de,children:(0,J.jsx)(Ev,{id:`menu-${v||``}`,anchorEl:he,open:ge,onClose:we,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":_?`true`:void 0,disableListWrap:!0,id:Je,...qe},paper:{...Ge,ref:Ke,style:{minWidth:Be,...Ge?.style}}},children:ze})})]})}),ty=od((0,J.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`),ny=e=>{let{classes:t}=e,n=xr({root:[`root`]},Vh,t);return{...t,...n}},ry={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>Vu(e)&&e!==`variant`},iy=Z(Bh,ry)(``),ay=Z(tg,ry)(``),oy=Z(Kh,ry)(``),sy=K.forwardRef(function(e,t){let n=Wu({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=ty,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:S,variant:C=`outlined`,...w}=n,T=_?Pv:ey,[E]=Hf({props:n,states:[`variant`,`error`]}),D=E.variant||C,O={...n,variant:D,classes:a},k=ny(O),{root:A,...j}=k,M=d||{standard:(0,J.jsx)(iy,{ownerState:O}),outlined:(0,J.jsx)(ay,{label:p,ownerState:O}),filled:(0,J.jsx)(oy,{ownerState:O})}[D],N=wd(t,_g(M));return(0,J.jsx)(K.Fragment,{children:K.cloneElement(M,{inputComponent:T,inputProps:{children:i,error:E.error,IconComponent:l,variant:D,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:{id:u,...S}},...f,classes:f?Ir(j,f.classes):j,...d?d.props.inputProps:{}},...(g&&_||c)&&D===`outlined`?{notched:!0}:{},ref:N,className:q(M.props.className,o,k.root),...!d&&{variant:D},...w})})});sy.muiName=`Select`;function cy(e){return Os(`MuiTextField`,e)}ks(`MuiTextField`,[`root`]);var ly={standard:Bh,filled:Kh,outlined:tg},uy=e=>{let{classes:t}=e;return xr({root:[`root`]},cy,t)},dy=Z(fg,{name:`MuiTextField`,slot:`Root`})({}),fy=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTextField`}),{autoComplete:r,autoFocus:i=!1,children:a,className:o,color:s=`primary`,defaultValue:c,disabled:l=!1,error:u=!1,fullWidth:d=!1,helperText:f,id:p,inputRef:m,label:h,maxRows:g,minRows:_,multiline:v=!1,name:y,onBlur:b,onChange:x,onFocus:S,placeholder:C,required:w=!1,rows:T,select:E=!1,slots:D={},slotProps:O={},type:k,value:A,variant:j=`outlined`,...M}=n,N={...n,autoFocus:i,color:s,disabled:l,error:u,fullWidth:d,multiline:v,required:w,select:E,variant:j},P=uy(N),F=kc(p),I=f&&F?`${F}-helper-text`:void 0,L=h&&F?`${F}-label`:void 0,R=ly[j],z={slots:D,slotProps:O},[ee,te]=ph(`select`,{elementType:sy,externalForwardedProps:z,ownerState:N}),B=E&&te.native,V={},ne=z.slotProps.inputLabel;j===`outlined`&&(ne&&ne.shrink!==void 0&&(V.notched=ne.shrink),V.label=h),E&&(B||(V.id=void 0),V[`aria-describedby`]=void 0);let[re,ie]=ph(`root`,{elementType:dy,shouldForwardComponentProp:!0,externalForwardedProps:{...z,...M},ownerState:N,className:q(P.root,o),ref:t,additionalProps:{disabled:l,error:u,fullWidth:d,required:w,color:s,variant:j}}),[H,U]=ph(`input`,{elementType:R,externalForwardedProps:z,additionalProps:V,ownerState:N}),[W,ae]=ph(`inputLabel`,{elementType:cg,externalForwardedProps:z,ownerState:N}),[oe,se]=ph(`htmlInput`,{elementType:`input`,externalForwardedProps:z,ownerState:N}),[ce,G]=ph(`formHelperText`,{elementType:gg,externalForwardedProps:z,ownerState:N}),le=(0,J.jsx)(H,{"aria-describedby":I,autoComplete:r,autoFocus:i,defaultValue:c,fullWidth:d,multiline:v,name:y,rows:T,maxRows:g,minRows:_,type:k,value:A,id:F,inputRef:m,onBlur:b,onChange:x,onFocus:S,placeholder:C,inputProps:se,slots:{input:D.htmlInput?oe:void 0},...U});return(0,J.jsxs)(re,{...ie,children:[h!=null&&h!==``&&(0,J.jsx)(W,{htmlFor:E&&!B?void 0:F,id:L,...E&&!B&&{component:`div`},...ae,children:h}),E?(0,J.jsx)(ee,{"aria-describedby":I,id:F,labelId:L,value:A,input:le,...te,children:a}):le,f&&(0,J.jsx)(ce,{id:I,...G,children:f})]})});function py(e){return Os(`MuiDivider`,e)}var my=ks(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`vertical`,`withChildren`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),hy=e=>{let{absolute:t,children:n,classes:r,flexItem:i,orientation:a,textAlign:o,variant:s}=e;return xr({root:[`root`,t&&`absolute`,s,a===`vertical`&&`vertical`,i&&`flexItem`,n&&`withChildren`,o===`right`&&a!==`vertical`&&`textAlignRight`,o===`left`&&a!==`vertical`&&`textAlignLeft`],wrapper:[`wrapper`,a===`vertical`&&`wrapperVertical`]},py,r)},gy=Z(`div`,{name:`MuiDivider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.orientation===`vertical`&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.textAlign===`right`&&n.orientation!==`vertical`&&t.textAlignRight,n.textAlign===`left`&&n.orientation!==`vertical`&&t.textAlignLeft]}})(Uu(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:`solid`,borderColor:(e.vars||e).palette.divider,borderBottomWidth:`thin`,variants:[{props:{absolute:!0},style:{position:`absolute`,bottom:0,left:0,width:`100%`}},{props:{variant:`inset`},style:{marginLeft:72}},{props:{variant:`middle`,orientation:`horizontal`},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:`middle`,orientation:`vertical`},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:`vertical`},style:{height:`100%`,borderBottomWidth:0,borderRightWidth:`thin`}},{props:{flexItem:!0},style:{alignSelf:`stretch`,height:`auto`}},{props:({ownerState:e})=>!!e.children,style:{display:`flex`,textAlign:`center`,border:0,borderTopStyle:`solid`,borderLeftStyle:`solid`,"&::before, &::after":{content:`""`,alignSelf:`center`}}},{props:({ownerState:e})=>e.children&&e.orientation!==`vertical`,style:{"&::before, &::after":{width:`100%`,borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:`inherit`}}},{props:({ownerState:e})=>e.orientation===`vertical`&&e.children,style:{flexDirection:`column`,"&::before, &::after":{height:`100%`,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:`inherit`}}},{props:({ownerState:e})=>e.textAlign===`right`&&e.orientation!==`vertical`,style:{"&::before":{width:`90%`},"&::after":{width:`10%`}}},{props:({ownerState:e})=>e.textAlign===`left`&&e.orientation!==`vertical`,style:{"&::before":{width:`10%`},"&::after":{width:`90%`}}}]}))),_y=Z(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(Uu(({theme:e})=>({display:`inline-block`,paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:`nowrap`,variants:[{props:{orientation:`vertical`},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),vy=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiDivider`}),{absolute:r=!1,children:i,className:a,orientation:o=`horizontal`,component:s=i||o===`vertical`?`div`:`hr`,flexItem:c=!1,role:l=s===`hr`?void 0:`separator`,textAlign:u=`center`,variant:d=`fullWidth`,...f}=n,p={...n,absolute:r,component:s,flexItem:c,orientation:o,role:l,textAlign:u,variant:d},m=hy(p);return(0,J.jsx)(gy,{as:s,className:q(m.root,a),role:l,ref:t,ownerState:p,"aria-orientation":l===`separator`&&(s!==`hr`||o===`vertical`)?o:void 0,...f,children:i?(0,J.jsx)(_y,{className:m.wrapper,ownerState:p,children:i}):null})});function yy(e){return Os(`MuiListItemIcon`,e)}var by=ks(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),xy=e=>{let{alignItems:t,classes:n}=e;return xr({root:[`root`,t===`flex-start`&&`alignItemsFlexStart`]},yy,n)},Sy=Z(`div`,{name:`MuiListItemIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.alignItems===`flex-start`&&t.alignItemsFlexStart]}})(Uu(({theme:e})=>({minWidth:e.spacing(4.5),color:(e.vars||e).palette.action.active,flexShrink:0,display:`inline-flex`,variants:[{props:{alignItems:`flex-start`},style:{marginTop:8}}]}))),Cy=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiListItemIcon`}),{className:r,...i}=n,a=K.useContext(qg),o={...n,alignItems:a.alignItems},s=xy(o);return(0,J.jsx)(Sy,{className:q(s.root,r),ownerState:o,ref:t,...i})});function wy(e){return Os(`MuiTypography`,e)}var Ty=ks(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]),Ey=e=>{let{align:t,gutterBottom:n,noWrap:r,variant:i,classes:a}=e;return xr({root:[`root`,i,e.align!==`inherit`&&`align${_r(t)}`,n&&`gutterBottom`,r&&`noWrap`]},wy,a)},Dy=Z(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${_r(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(Uu(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${_r(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}}]}))),Oy={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},ky=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTypography`}),{color:r,align:i=`inherit`,className:a,component:o,gutterBottom:s=!1,noWrap:c=!1,variant:l=`body1`,variantMapping:u=Oy,...d}=n,f={...n,align:i,color:r,className:a,component:o,gutterBottom:s,noWrap:c,variant:l,variantMapping:u},p=o||u[l]||Oy[l]||`span`,m=Ey(f);return(0,J.jsx)(Dy,{as:p,ref:t,className:q(m.root,a),...d,ownerState:f,style:{...i!==`inherit`&&{"--Typography-textAlign":i},...d.style}})});function Ay(e){return Os(`MuiListItemText`,e)}var jy=ks(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),My=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return xr({root:[`root`,n&&`inset`,a&&`dense`,r&&i&&`multiline`],primary:[`primary`],secondary:[`secondary`]},Ay,t)},Ny=Z(`div`,{name:`MuiListItemText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${jy.primary}`]:t.primary},{[`& .${jy.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:`1 1 auto`,minWidth:0,marginTop:4,marginBottom:4,[`.${Ty.root}:where(& .${jy.primary})`]:{display:`block`},[`.${Ty.root}:where(& .${jy.secondary})`]:{display:`block`},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Py=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiListItemText`}),{children:r,className:i,disableTypography:a=!1,inset:o=!1,primary:s,secondary:c,slots:l={},slotProps:u={},...d}=n,{dense:f}=K.useContext(qg),p=s??r,m=c,h={...n,disableTypography:a,inset:o,primary:!!p,secondary:!!m,dense:f},g=My(h),_={slots:l,slotProps:u},[v,y]=ph(`root`,{className:q(g.root,i),elementType:Ny,externalForwardedProps:{..._,...d},ownerState:h,ref:t}),[b,x]=ph(`primary`,{className:g.primary,elementType:ky,externalForwardedProps:_,ownerState:h}),[S,C]=ph(`secondary`,{className:g.secondary,elementType:ky,externalForwardedProps:_,ownerState:h});return p!=null&&p.type!==ky&&!a&&(p=(0,J.jsx)(b,{variant:f?`body2`:`body1`,component:x?.variant?void 0:`span`,...x,children:p})),m!=null&&m.type!==ky&&!a&&(m=(0,J.jsx)(S,{variant:`body2`,color:`textSecondary`,...C,children:m})),(0,J.jsxs)(v,{...y,children:[p,m]})}),Fy=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Iy=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=xr({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},hp,o);return{...o,...s}},Ly=Z(jm,{shouldForwardProp:e=>Vu(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:Fy})(Uu(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${gp.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),...!e.focusVisible&&{[`&.${gp.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},[`&.${gp.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},...e.focusVisible?Bl(1):{[`&.${gp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${gp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${my.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${my.inset}`]:{marginLeft:52},[`& .${jy.root}`]:{marginTop:0,marginBottom:0},[`& .${jy.inset}`]:{paddingLeft:36},[`& .${by.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${by.root} svg`]:{fontSize:`1.25rem`}}}]}))),Ry=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=l===`menuitemcheckbox`||l===`menuitemradio`?!!n.selected:void 0,m=n_(),h=K.useContext(qg),g=K.useMemo(()=>({dense:a||h.dense||!1,disableGutters:s}),[h.dense,a,s]),_=a_(),v=vd(),y=_.suppressInitialFocusVisible,b=_.itemsFocusableWhenDisabled,x=K.useRef(null);_d(()=>{r&&x.current&&Kg(x.current,m)},[r]);let S={...n,dense:g.dense,divider:o,disableGutters:s},C=Iy(n),{root:w,...T}=C,E=Tg({id:v,ref:t,disabled:n.disabled,focusableWhenDisabled:b,selected:n.selected}),D=wd(x,E.ref),O;return u===void 0?_.variant===`selectedMenu`?O=E.tabIndex:(!n.disabled||b)&&(O=-1):O=u,(0,J.jsx)(qg.Provider,{value:g,children:(0,J.jsx)(Ly,{ref:D,role:l,"aria-checked":p,tabIndex:O,component:i,internalNativeButton:!1,focusableWhenDisabled:b,suppressFocusVisible:y,focusVisibleClassName:q(C.focusVisible,c),className:q(C.root,d),...f,ownerState:S,classes:T})})}),zy={border:0,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,whiteSpace:`nowrap`,width:`1px`};function By(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}var Vy=2,Hy=[],Uy={};function Wy(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function Gy(e,t){return e-t}function Ky(e,t,n=-1){let{index:r}=e.reduce((e,n,r)=>{let i=Math.abs(t-n);return e==null||i<=e.distance?{distance:i,index:r}:e},null)??Uy;return r==null?r:n>=0&&e[n]===e[r]?n:r}function qy(e,t){if(t.current!=null&&e.changedTouches){let n=e;for(let e=0;e<n.changedTouches.length;e+=1){let r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Jy(e,t,n){return(e-t)*100/(n-t)}function Yy(e,t,n){return(n-t)*e+t}function Xy(e){if(Math.abs(e)<1){let t=e.toExponential().split(`e-`),n=t[0].split(`.`)[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(`.`)[1];return t?t.length:0}function Zy(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Xy(t)))}function Qy(e,t,n){let r=e.slice();return r[n]=t,r.sort(Gy)}function $y(e,t,n,r){let i=dd(fd(e.current));if(!Ug(e.current,i)||Number(i?.getAttribute(`data-index`))!==t){let n=e.current?.querySelector(`[type="range"][data-index="${t}"]`);n!=null&&(r==null?n.focus({preventScroll:!0}):n.focus({preventScroll:!0,focusVisible:r}))}n&&n(t)}function eb(e,t){return typeof e==`number`&&typeof t==`number`?e===t:typeof e==`object`&&typeof t==`object`&&By(e,t)}var tb={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},nb=e=>e;function rb(e){let{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:c=0,name:l,onChange:u,onChangeCommitted:d,orientation:f=`horizontal`,rootRef:p,scale:m=nb,step:h=1,shiftStep:g=10,tabIndex:_,value:v}=e,y=K.useRef(void 0),b=K.useRef(null),[x,S]=K.useState(-1),[C,w]=K.useState(-1),[T,E]=K.useState(!1),D=K.useRef(0),O=K.useRef(-1),k=K.useRef(!1),A=K.useRef(-1),j=xd(()=>{b.current!=null&&(cancelAnimationFrame(b.current),b.current=null)}),M=K.useRef(null),[N,P]=yd({controlled:v,default:n??c,name:`Slider`}),F=xd((e,t,n)=>{let r=`nativeEvent`in e?e.nativeEvent:e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:l}}),M.current=t,u?.(i,t,n)}),I=Array.isArray(N),L=K.useMemo(()=>{if(typeof N==`number`)return[Xs(N,c,s)];if(N==null)return[c];let e=N.slice().sort(Gy);for(let t=0;t<e.length;t+=1){let n=e[t];e[t]=n==null?c:Xs(n,c,s)}return e},[N,c,s]),R=K.useMemo(()=>{if(o===!0&&h!=null){let e=Array(Math.floor((s-c)/h)+1);for(let t=0;t<e.length;t+=1)e[t]={value:c+h*t};return e}return Array.isArray(o)?o:Hy},[o,h,c,s]),z=K.useMemo(()=>{let e=Array(R.length);for(let t=0;t<R.length;t+=1)e[t]=R[t].value;return e},[R]),[ee,te]=K.useState(-1),B=K.useRef(null),V=Cd(p,B),ne=e=>t=>{let n=Number(t.currentTarget.getAttribute(`data-index`));Vp(t.target)&&te(n),w(n),e?.onFocus?.(t)},re=e=>t=>{Vp(t.target)||te(-1),w(-1),e?.onBlur?.(t)},ie=(e,t)=>{let n=Number(e.currentTarget.getAttribute(`data-index`)),r=L[n],a=z.indexOf(r),o=t;if(R&&h==null){let e=z[z.length-1];o=o>=e?e:o<=z[0]?z[0]:o<r?z[a-1]:z[a+1]}if(o=Xs(o,c,s),I){i&&(o=Xs(o,L[n-1]||-1/0,L[n+1]||1/0));let e=o;o=Qy(L,o,n);let t=n;i||(t=o.indexOf(e)),$y(B,t)}P(o),te(n),u&&!eb(o,N)&&F(e,o,n),d&&d(e,M.current??o)},H=e=>t=>{if([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`].includes(t.key)){t.preventDefault();let e=Number(t.currentTarget.getAttribute(`data-index`)),n=L[e],r=null;if(h!=null){let e=t.shiftKey?g:h;switch(t.key){case`ArrowUp`:r=Wy(n,e,1,c,s);break;case`ArrowRight`:r=Wy(n,e,a?-1:1,c,s);break;case`ArrowDown`:r=Wy(n,e,-1,c,s);break;case`ArrowLeft`:r=Wy(n,e,a?1:-1,c,s);break;case`PageUp`:r=Wy(n,g,1,c,s);break;case`PageDown`:r=Wy(n,g,-1,c,s);break;case`Home`:r=c;break;case`End`:r=s}}else if(R){let e=z[z.length-1],i=z.indexOf(n),o=[a?`ArrowRight`:`ArrowLeft`,`ArrowDown`,`PageDown`,`Home`],s=[a?`ArrowLeft`:`ArrowRight`,`ArrowUp`,`PageUp`,`End`];o.includes(t.key)?r=i===0?z[0]:z[i-1]:s.includes(t.key)&&(r=i===z.length-1?e:z[i+1])}r!=null&&ie(t,r)}e?.onKeyDown?.(t)};Gs(()=>{let e=dd(fd(B.current));r&&Ug(B.current,e)&&e!=null&&`blur`in e&&e.blur()},[r]),r&&x!==-1&&S(-1),r&&ee!==-1&&te(-1);let U=e=>t=>{e.onChange?.(t),ie(t,t.currentTarget.valueAsNumber)},W=K.useRef(void 0),ae=f;a&&f===`horizontal`&&(ae+=`-reverse`);let oe=e=>{let{current:t}=B;if(!t)return null;let{width:n,height:r,bottom:a,left:o}=t.getBoundingClientRect(),l;l=ae.startsWith(`vertical`)?(a-e.y)/r:(e.x-o)/n,ae.includes(`-reverse`)&&(l=1-l);let u;if(u=Yy(l,c,s),h)u=Zy(u,h,c);else{let e=Ky(z,u);u=z[e]}u=Xs(u,c,s);let d=0;if(I){let e=W.current!==-1;d=e?W.current:Ky(L,u,O.current),i&&(u=Xs(u,L[d-1]||-1/0,L[d+1]||1/0));let t=u;u=Qy(L,u,d),i&&e||(d=u.indexOf(t),W.current=d)}return{newValue:u,activeIndex:d}},se=xd(e=>{if(`pointerId`in e&&e.pointerId!==A.current)return;let t=qy(e,y);if(!t)return;if(D.current+=1,e.type===`pointermove`&&e.buttons===0){ce(e);return}let n=oe(t);n&&($y(B,n.activeIndex,S,!1),O.current=n.activeIndex,P(n.newValue),!T&&D.current>Vy&&E(!0),u&&!eb(n.newValue,N)&&F(e,n.newValue,n.activeIndex))}),ce=xd(e=>{if(`pointerId`in e&&e.pointerId!==A.current)return;let t=qy(e,y);if(E(!1),!t)return;let n=oe(t);S(-1),e.type===`touchend`&&w(-1),n&&d&&d(e,M.current??n.newValue),`pointerType`in e&&B.current?.hasPointerCapture(e.pointerId)&&B.current.releasePointerCapture(e.pointerId),y.current=void 0,A.current=-1,le()}),G=xd(e=>{if(r)return;if(k.current){k.current=!1;let t=e.changedTouches[0];t!=null&&(y.current=t.identifier);return}let t=e.changedTouches[0];t!=null&&(y.current=t.identifier);let n=qy(e,y);if(n!==!1){W.current=-1;let t=oe(n);t&&($y(B,t.activeIndex,S,!1),O.current=t.activeIndex,P(t.newValue),u&&!eb(t.newValue,N)&&F(e,t.newValue,t.activeIndex))}D.current=0;let i=fd(B.current);i.addEventListener(`touchmove`,se,{passive:!0}),i.addEventListener(`touchend`,ce,{passive:!0})}),le=K.useCallback(()=>{let e=fd(B.current);e.removeEventListener(`pointermove`,se),e.removeEventListener(`pointerup`,ce),e.removeEventListener(`touchmove`,se),e.removeEventListener(`touchend`,ce)},[ce,se]);K.useEffect(()=>{let e=B.current;if(e)return e.addEventListener(`touchstart`,G,{passive:!0}),()=>{e.removeEventListener(`touchstart`,G),j(),le()}},[le,G,j]),K.useEffect(()=>{r&&(le(),j())},[r,le,j]);let ue=e=>t=>{if(e.onPointerDown?.(t),t.pointerType===`touch`&&(k.current=!0),r||t.defaultPrevented||t.button!==0)return;let n=qy(t,y);if(n!==!1){W.current=-1;let e=oe(n);if(e){let n=B.current?.querySelector(`input[type="range"][data-index="${e.activeIndex}"]`),r=fd(B.current),i=n!=null&&n===dd(r);S(e.activeIndex),O.current=e.activeIndex,i?t.preventDefault():(j(),b.current=requestAnimationFrame(()=>{b.current=null,$y(B,e.activeIndex,void 0,!1)})),P(e.newValue),u&&!eb(e.newValue,N)&&F(t,e.newValue,e.activeIndex)}}D.current=0,A.current=t.pointerId;let i=fd(B.current);try{t.currentTarget.setPointerCapture(t.pointerId)}catch{}i.addEventListener(`pointermove`,se,{passive:!0}),i.addEventListener(`pointerup`,ce)},de=Jy(I?L[0]:c,c,s),fe=Jy(L[L.length-1],c,s)-de,pe=(e=Uy)=>{let t=uh(e),n={onPointerDown:ue(t)},r={...t,...n};return{...e,ref:V,...r}},me=e=>t=>{e.onMouseOver?.(t);let n=Number(t.currentTarget.getAttribute(`data-index`));w(n)},he=e=>t=>{e.onMouseLeave?.(t),w(-1)},ge=(e=Uy)=>{let t=uh(e),n={onMouseOver:me(t),onMouseLeave:he(t)};return{...e,...t,...n}},_e=e=>{let t;return I?x===e?t=2:O.current===e&&(t=1):x===e&&(t=1),{pointerEvents:x!==-1&&x!==e?`none`:void 0,zIndex:t}},ve;return f===`vertical`&&(ve=a?`vertical-rl`:`vertical-lr`),{active:x,axis:ae,axisProps:tb,dragging:T,focusedThumbIndex:ee,getHiddenInputProps:(n=Uy)=>{let i=uh(n),o={onChange:U(i),onFocus:ne(i),onBlur:re(i),onKeyDown:H(i)},u={...i,...o};return{tabIndex:_,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(c),name:l,type:`range`,min:e.min,max:e.max,step:e.step===null&&e.marks?`any`:e.step??void 0,disabled:r,...n,...u,style:{...zy,direction:a?`rtl`:`ltr`,width:`100%`,height:`100%`,writingMode:ve}}},getRootProps:pe,getThumbProps:ge,marks:R,open:C,range:I,rootRef:V,trackLeap:fe,trackOffset:de,values:L,getThumbStyle:_e}}var ib=e=>{let{open:t}=e;return{offset:q(t&&wp.valueLabelOpen),circle:wp.valueLabelCircle,label:wp.valueLabelLabel}};function ab(e){let{children:t,className:n,value:r}=e,i=ib(e);return t?K.cloneElement(t,{className:t.props.className},(0,J.jsxs)(K.Fragment,{children:[t.props.children,(0,J.jsx)(`span`,{className:q(i.offset,n),"aria-hidden":!0,children:(0,J.jsx)(`span`,{className:i.circle,children:(0,J.jsx)(`span`,{className:i.label,children:r})})})]})):null}function ob(e){return e}var sb=Z(`span`,{name:`MuiSlider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${_r(n.color)}`],n.size!==`medium`&&t[`size${_r(n.size)}`],n.marked&&t.marked,n.orientation===`vertical`&&t.vertical,n.track===`inverted`&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Uu(({theme:e})=>({borderRadius:12,boxSizing:`content-box`,display:`inline-block`,position:`relative`,cursor:`pointer`,touchAction:`none`,WebkitTapHighlightColor:`transparent`,"@media print":{colorAdjust:`exact`},[`&.${wp.disabled}`]:{pointerEvents:`none`,cursor:`default`,color:(e.vars||e).palette.grey[400]},[`&.${wp.dragging}`]:{[`& .${wp.thumb}, & .${wp.track}`]:{transition:`none`}},variants:[...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:`horizontal`},style:{height:4,width:`100%`,padding:`13px 0`,"@media (pointer: coarse)":{padding:`20px 0`}}},{props:{orientation:`horizontal`,size:`small`},style:{height:2}},{props:{orientation:`horizontal`,marked:!0},style:{marginBottom:20}},{props:{orientation:`vertical`},style:{height:`100%`,width:4,padding:`0 13px`,"@media (pointer: coarse)":{padding:`0 20px`}}},{props:{orientation:`vertical`,size:`small`},style:{width:2}},{props:{orientation:`vertical`,marked:!0},style:{marginRight:44}}]}))),cb=Z(`span`,{name:`MuiSlider`,slot:`Rail`})({display:`block`,position:`absolute`,borderRadius:`inherit`,backgroundColor:`currentColor`,opacity:.38,"@media (forced-colors: active)":{border:`1px solid transparent`,boxSizing:`border-box`},variants:[{props:{orientation:`horizontal`},style:{width:`100%`,height:`inherit`,top:`50%`,transform:`translateY(-50%)`}},{props:{orientation:`vertical`},style:{height:`100%`,width:`inherit`,left:`50%`,transform:`translateX(-50%)`}},{props:{track:`inverted`},style:{opacity:1}}]}),lb=Z(`span`,{name:`MuiSlider`,slot:`Track`})(Uu(({theme:e})=>({display:`block`,position:`absolute`,borderRadius:`inherit`,border:`1px solid currentColor`,backgroundColor:`currentColor`,...nd(e,[`left`,`width`,`bottom`,`height`],{duration:e.transitions.duration.shortest}),variants:[{props:{size:`small`},style:{"@media (forced-colors: none)":{border:`none`}}},{props:{orientation:`horizontal`},style:{height:`inherit`,top:`50%`,transform:`translateY(-50%)`}},{props:{orientation:`vertical`},style:{width:`inherit`,left:`50%`,transform:`translateX(-50%)`}},{props:{track:!1},style:{display:`none`}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t,track:`inverted`},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles(`dark`,{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles(`dark`,{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),ub=Z(`span`,{name:`MuiSlider`,slot:`Thumb`})(Uu(({theme:e})=>({position:`absolute`,width:20,height:20,boxSizing:`border-box`,borderRadius:`50%`,outline:0,backgroundColor:`currentColor`,display:`flex`,alignItems:`center`,justifyContent:`center`,...nd(e,[`box-shadow`,`left`,`bottom`],{duration:e.transitions.duration.shortest}),"@media (forced-colors: active)":{border:`1px solid ButtonBorder`},"&::before":{position:`absolute`,content:`""`,borderRadius:`inherit`,width:`100%`,height:`100%`,boxShadow:(e.vars||e).shadows[2]},"&::after":{position:`absolute`,content:`""`,borderRadius:`50%`,width:42,height:42,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`},[`&.${wp.disabled}`]:{"&:hover":{boxShadow:`none`}},...e.focusVisible&&{[`&.${wp.focusVisible}`]:{...Rl,...e.focusVisible}},variants:[{props:{size:`small`},style:{width:12,height:12,"&::before":{boxShadow:`none`}}},{props:{orientation:`horizontal`},style:{top:`50%`,transform:`translate(-50%, -50%)`}},{props:{orientation:`vertical`},style:{left:`50%`,transform:`translate(-50%, 50%)`}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{"&:hover":{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:`none`}},...!e.focusVisible&&{[`&.${wp.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:`none`}}},[`&.${wp.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),db=Z(ab,{name:`MuiSlider`,slot:`ValueLabel`})(Uu(({theme:e})=>({zIndex:1,whiteSpace:`nowrap`,...e.typography.body2,fontWeight:500,...nd(e,[`transform`],{duration:e.transitions.duration.shortest}),position:`absolute`,backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`0.25rem 0.75rem`,variants:[{props:{orientation:`horizontal`},style:{transform:`translateY(-100%) scale(0)`,top:`-10px`,transformOrigin:`bottom center`,"&::before":{position:`absolute`,content:`""`,width:8,height:8,transform:`translate(-50%, 50%) rotate(45deg)`,backgroundColor:`inherit`,bottom:0,left:`50%`},[`&.${wp.valueLabelOpen}`]:{transform:`translateY(-100%) scale(1)`}}},{props:{orientation:`vertical`},style:{transform:`translateY(-50%) scale(0)`,right:`30px`,top:`50%`,transformOrigin:`right center`,"&::before":{position:`absolute`,content:`""`,width:8,height:8,transform:`translate(-50%, -50%) rotate(45deg)`,backgroundColor:`inherit`,right:-8,top:`50%`},[`&.${wp.valueLabelOpen}`]:{transform:`translateY(-50%) scale(1)`}}},{props:{size:`small`},style:{fontSize:e.typography.pxToRem(12),padding:`0.25rem 0.5rem`}},{props:{orientation:`vertical`,size:`small`},style:{right:`20px`}}]}))),fb=Z(`span`,{name:`MuiSlider`,slot:`Mark`,shouldForwardProp:e=>Bu(e)&&e!==`markActive`,overridesResolver:(e,t)=>{let{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Uu(({theme:e})=>({position:`absolute`,width:2,height:2,borderRadius:1,backgroundColor:`currentColor`,variants:[{props:{orientation:`horizontal`},style:{top:`50%`,transform:`translate(-1px, -50%)`}},{props:{orientation:`vertical`},style:{left:`50%`,transform:`translate(-50%, 1px)`}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),pb=Z(`span`,{name:`MuiSlider`,slot:`MarkLabel`,shouldForwardProp:e=>Bu(e)&&e!==`markLabelActive`})(Uu(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:`absolute`,whiteSpace:`nowrap`,variants:[{props:{orientation:`horizontal`},style:{top:30,transform:`translateX(-50%)`,"@media (pointer: coarse)":{top:40}}},{props:{orientation:`vertical`},style:{left:36,transform:`translateY(50%)`,"@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),mb=e=>{let{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:o,color:s,size:c}=e;return xr({root:[`root`,t&&`disabled`,n&&`dragging`,r&&`marked`,i===`vertical`&&`vertical`,a===`inverted`&&`trackInverted`,a===!1&&`trackFalse`,s&&`color${_r(s)}`,c&&`size${_r(c)}`],rail:[`rail`],track:[`track`],mark:[`mark`],markActive:[`markActive`],markLabel:[`markLabel`],markLabelActive:[`markLabelActive`],valueLabel:[`valueLabel`],thumb:[`thumb`,t&&`disabled`],active:[`active`],disabled:[`disabled`],focusVisible:[`focusVisible`]},Cp,o)},hb=({children:e})=>e,gb=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiSlider`}),r=xc(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":o,color:s=`primary`,classes:c,className:l,disableSwap:u=!1,disabled:d=!1,getAriaLabel:f,getAriaValueText:p,marks:m=!1,max:h=100,min:g=0,name:_,onChange:v,onChangeCommitted:y,orientation:b=`horizontal`,shiftStep:x=10,size:S=`medium`,step:C=1,scale:w=ob,slotProps:T={},slots:E={},tabIndex:D,track:O=`normal`,value:k,valueLabelDisplay:A=`off`,valueLabelFormat:j=ob,...M}=n,N={...n,isRtl:r,max:h,min:g,classes:c,disabled:d,disableSwap:u,orientation:b,marks:m,color:s,size:S,step:C,shiftStep:x,scale:w,track:O,valueLabelDisplay:A,valueLabelFormat:j},{axisProps:P,getRootProps:F,getHiddenInputProps:I,getThumbProps:L,open:R,active:z,axis:ee,focusedThumbIndex:te,range:B,dragging:V,marks:ne,values:re,trackOffset:ie,trackLeap:H,getThumbStyle:U}=rb({...N,rootRef:t});N.marked=ne.length>0&&ne.some(e=>e.label),N.dragging=V,N.focusedThumbIndex=te;let W=mb(N),ae={slots:E,slotProps:T},[oe,se]=ph(`root`,{elementType:sb,getSlotProps:F,externalForwardedProps:{...ae,...M},ownerState:N,className:[W.root,l]}),[ce,G]=ph(`rail`,{elementType:cb,externalForwardedProps:ae,ownerState:N,className:W.rail}),[le,ue]=ph(`track`,{elementType:lb,externalForwardedProps:ae,additionalProps:{style:{...P[ee].offset(ie),...P[ee].leap(H)}},ownerState:N,className:W.track}),[de,fe]=ph(`thumb`,{elementType:ub,getSlotProps:L,externalForwardedProps:ae,ownerState:N,className:W.thumb}),[pe,me]=ph(`valueLabel`,{elementType:db,externalForwardedProps:ae,ownerState:N,className:W.valueLabel}),[he,ge]=ph(`mark`,{elementType:fb,externalForwardedProps:ae,ownerState:N,className:W.mark}),[_e,ve]=ph(`markLabel`,{elementType:pb,externalForwardedProps:ae,ownerState:N,className:W.markLabel}),[ye,be]=ph(`input`,{elementType:`input`,getSlotProps:I,externalForwardedProps:ae,ownerState:N});return(0,J.jsxs)(oe,{...se,children:[(0,J.jsx)(ce,{...G}),(0,J.jsx)(le,{...ue}),ne.filter(e=>e.value>=g&&e.value<=h).map((e,t)=>{let n=Jy(e.value,g,h),r=P[ee].offset(n),i;return i=O===!1?re.includes(e.value):O===`normal`&&(B?e.value>=re[0]&&e.value<=re[re.length-1]:e.value<=re[0])||O===`inverted`&&(B?e.value<=re[0]||e.value>=re[re.length-1]:e.value>=re[0]),(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(he,{"data-index":t,...ge,...!Pf(he)&&{markActive:i},style:{...r,...ge.style},className:q(ge.className,i&&W.markActive)}),e.label==null?null:(0,J.jsx)(_e,{"aria-hidden":!0,"data-index":t,...ve,...!Pf(_e)&&{markLabelActive:i},style:{...r,...ve.style},className:q(W.markLabel,ve.className,i&&W.markLabelActive),children:e.label})]},t)}),re.map((e,t)=>{let n=Jy(e,g,h),r=P[ee].offset(n),s=A===`off`?hb:pe;return(0,J.jsx)(s,{...!Pf(s)&&{valueLabelFormat:j,valueLabelDisplay:A,value:typeof j==`function`?j(w(e),t):j,index:t,open:R===t||z===t||A===`on`,disabled:d},...me,children:(0,J.jsx)(de,{"data-index":t,...fe,className:q(W.thumb,fe.className,z===t&&W.active,te===t&&W.focusVisible),style:{...r,...U(t),...fe.style},children:(0,J.jsx)(ye,{"data-index":t,"aria-label":f?f(t):i,"aria-valuenow":w(e),"aria-labelledby":o,"aria-valuetext":p?p(w(e),t):a,value:re[t],...be})})},t)})]})});function _b(e){return Os(`MuiIconButton`,e)}var vb=ks(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),yb=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return xr({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${_r(r)}`,i&&`edge${_r(i)}`,`size${_r(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},_b,t)},bb=Z(jm,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${_r(n.color)}`],n.edge&&t[`edge${_r(n.edge)}`],t[`size${_r(n.size)}`]]}})(Uu(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,...nd(e,`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),Uu(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${vb.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${vb.loading}`]:{color:`transparent`}}))),xb=Z(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),Sb=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=vd(u),h=f??(0,J.jsx)(qm,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=yb(g);return(0,J.jsxs)(bb,{id:d?m:u,className:q(_.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,J.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,J.jsx)(xb,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),Cb=ul({createStyledComponent:Z(`div`,{name:`MuiStack`,slot:`Root`}),useThemeProps:e=>Wu({props:e,name:`MuiStack`})}),wb=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e;return xr({root:[`root`,n&&`disabled`,`labelPlacement${_r(r)}`,i&&`error`,a&&`required`],label:[`label`,n&&`disabled`],asterisk:[`asterisk`,i&&`error`]},op,t)},Tb=Z(`label`,{name:`MuiFormControlLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${sp.label}`]:t.label},t.root,t[`labelPlacement${_r(n.labelPlacement)}`]]}})(Uu(({theme:e})=>({display:`inline-flex`,alignItems:`center`,cursor:`pointer`,verticalAlign:`middle`,WebkitTapHighlightColor:`transparent`,marginLeft:-11,marginRight:16,[`&.${sp.disabled}`]:{cursor:`default`},[`& .${sp.label}`]:{[`&.${sp.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:`start`},style:{flexDirection:`row-reverse`,marginRight:-11}},{props:{labelPlacement:`top`},style:{flexDirection:`column-reverse`}},{props:{labelPlacement:`bottom`},style:{flexDirection:`column`}},{props:({labelPlacement:e})=>e===`start`||e===`top`||e===`bottom`,style:{marginLeft:16}}]}))),Eb=Z(`span`,{name:`MuiFormControlLabel`,slot:`Asterisk`})(Uu(({theme:e})=>({[`&.${sp.error}`]:{color:(e.vars||e).palette.error.main}}))),Db=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiFormControlLabel`}),{checked:r,className:i,control:a,disabled:o,disableTypography:s,inputRef:c,label:l,labelPlacement:u=`end`,name:d,onChange:f,required:p,slots:m={},slotProps:h={},value:g,..._}=n,[v,y]=Hf({props:n,states:[`error`]}),b=o??a.props.disabled??y?.disabled,x=p??a.props.required,S={disabled:b,required:x};[`checked`,`name`,`onChange`,`value`,`inputRef`].forEach(e=>{a.props[e]===void 0&&n[e]!==void 0&&(S[e]=n[e])});let C={...n,disabled:b,labelPlacement:u,required:x,error:v.error},w=wb(C),[T,E]=ph(`typography`,{elementType:ky,externalForwardedProps:{slots:m,slotProps:h},ownerState:C}),D=l;return D!=null&&D.type!==ky&&!s&&(D=(0,J.jsx)(T,{component:`span`,...E,className:q(w.label,E?.className),children:D})),(0,J.jsxs)(Tb,{className:q(w.root,i),ownerState:C,ref:t,..._,children:[K.cloneElement(a,S),x?(0,J.jsxs)(`div`,{children:[D,(0,J.jsxs)(Eb,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[` `,`*`]})]}):D]})}),Ob,kb=(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${_r(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Ab=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:o}=e;return xr({root:[`root`,n&&`disablePointerEvents`,i&&`position${_r(i)}`,o,r&&`hiddenLabel`,a&&`size${_r(a)}`]},Dv,t)},jb=Z(`div`,{name:`MuiInputAdornment`,slot:`Root`,overridesResolver:kb})(Uu(({theme:e})=>({display:`flex`,maxHeight:`2em`,alignItems:`center`,whiteSpace:`nowrap`,color:(e.vars||e).palette.action.active,variants:[{props:{variant:`filled`},style:{[`&.${Ov.positionStart}&:not(.${Ov.hiddenLabel})`]:{marginTop:16}}},{props:{position:`start`},style:{marginRight:8}},{props:{position:`end`},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:`none`}}]}))),Mb=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiInputAdornment`}),{children:r,className:i,component:a=`div`,disablePointerEvents:o=!1,disableTypography:s=!1,position:c,variant:l,...u}=n,d=Vf()||{},f=l;l&&d.variant,d&&!f&&(f=d.variant);let p={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:o,position:c,variant:f},m=Ab(p);return(0,J.jsx)(Bf.Provider,{value:null,children:(0,J.jsx)(jb,{as:a,ownerState:p,className:q(m.root,i),ref:t,...u,children:typeof r==`string`&&!s?(0,J.jsx)(ky,{color:`textSecondary`,children:r}):(0,J.jsxs)(K.Fragment,{children:[c===`start`?Ob||=(0,J.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):null,r]})})})}),Nb=od((0,J.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`),Pb=od((0,J.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`);function Fb(e){return e.substring(2).toLowerCase()}function Ib(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Lb(e){let{children:t,disableReactTree:n=!1,mouseEvent:r=`onClick`,onClickAway:i,touchEvent:a=`onTouchEnd`}=e,o=K.useRef(!1),s=K.useRef(null),c=K.useRef(!1),l=K.useRef(!1);K.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let u=Cd(_g(t),s),d=xd(e=>{let t=l.current;l.current=!1;let r=fd(s.current);if(!c.current||!s.current||`clientX`in e&&Ib(e,r))return;if(o.current){o.current=!1;return}let a;a=e.composedPath?e.composedPath().includes(s.current):!Hg(r.documentElement,e.target)||Hg(s.current,e.target),!a&&(n||!t)&&i(e)}),f=e=>n=>{l.current=!0;let r=t.props[e];r&&r(n)},p={ref:u};return a!==!1&&(p[a]=f(a)),K.useEffect(()=>{if(a!==!1){let e=Fb(a),t=fd(s.current),n=()=>{o.current=!0};return t.addEventListener(e,d),t.addEventListener(`touchmove`,n),()=>{t.removeEventListener(e,d),t.removeEventListener(`touchmove`,n)}}},[d,a]),r!==!1&&(p[r]=f(r)),K.useEffect(()=>{if(r!==!1){let e=Fb(r),t=fd(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),K.cloneElement(t,p)}function Rb(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function zb(e,t,n,r={},i=()=>{}){let{ease:a=Rb,duration:o=300}=r,s=null,c=t[e],l=!1,u=()=>{l=!0},d=r=>{if(l){i(Error(`Animation cancelled`));return}s===null&&(s=r);let u=Math.min(1,(r-s)/o);if(t[e]=a(u)*(n-c)+c,u>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return c===n?(i(Error(`Element already at target position`)),u):(requestAnimationFrame(d),u)}var Bb={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`,pointerEvents:`none`};function Vb(e){let{onChange:t,...n}=e,r=K.useRef(),i=K.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return _d(()=>{let e=cd(()=>{let e=r.current;a(),e!==r.current&&t(r.current)}),n=hd(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),K.useEffect(()=>{a(),t(r.current)},[t]),(0,J.jsx)(`div`,{style:Bb,...n,ref:i})}var Hb=od((0,J.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),Ub=od((0,J.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function Wb(e){return Os(`MuiTabScrollButton`,e)}var Gb=ks(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]),Kb=e=>{let{classes:t,orientation:n,disabled:r}=e;return xr({root:[`root`,n,r&&`disabled`]},Wb,t)},qb=Z(jm,{name:`MuiTabScrollButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Gb.disabled}`]:{opacity:0},variants:[{props:{orientation:`vertical`},style:{width:`100%`,height:40,"& svg":{transform:`var(--TabScrollButton-svgRotate)`}}}]}),Jb=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTabScrollButton`}),{className:r,slots:i={},slotProps:a={},direction:o,orientation:s,disabled:c,...l}=n,{nativeButton:u,...d}=l,f=xc(),p={isRtl:f,...n},m=Kb(p),h=i.StartScrollButtonIcon??Hb,g=i.EndScrollButtonIcon??Ub,_=vg({elementType:h,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p}),v=vg({elementType:g,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p});return(0,J.jsx)(qb,{component:`div`,className:q(m.root,r),ref:t,role:null,ownerState:p,tabIndex:null,...d,style:{...d.style,...s===`vertical`&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:o===`left`?(0,J.jsx)(h,{..._}):(0,J.jsx)(g,{...v})})});function Yb(e){return Os(`MuiTabs`,e)}var Xb=ks(`MuiTabs`,[`root`,`vertical`,`list`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]),Zb=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return xr({root:[`root`,t&&`vertical`],scroller:[`scroller`,n&&`fixed`,r&&`hideScrollbar`,i&&`scrollableX`,a&&`scrollableY`],list:[`list`,t&&`vertical`,o&&`centered`],indicator:[`indicator`],scrollButtons:[`scrollButtons`,s&&`scrollButtonsHideMobile`],scrollableX:[i&&`scrollableX`],hideScrollbar:[r&&`hideScrollbar`]},Yb,c)},Qb=Z(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Xb.scrollButtons}`]:t.scrollButtons},{[`& .${Xb.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Uu(({theme:e})=>({overflow:`hidden`,minHeight:48,WebkitOverflowScrolling:`touch`,display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${Xb.scrollButtons}`]:{[e.breakpoints.down(`sm`)]:{display:`none`}}}}]}))),$b=Z(`div`,{name:`MuiTabs`,slot:`Scroller`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:`relative`,display:`inline-block`,flex:`1 1 auto`,whiteSpace:`nowrap`,variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:`hidden`,width:`100%`}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:`auto`,overflowY:`hidden`}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:`auto`,overflowX:`hidden`}}]}),ex=Z(`div`,{name:`MuiTabs`,slot:`List`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.list,n.centered&&t.centered]}})({display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.centered,style:{justifyContent:`center`}}]}),tx=Z(`span`,{name:`MuiTabs`,slot:`Indicator`})(Uu(({theme:e})=>({position:`absolute`,height:2,bottom:0,width:`100%`,...nd(e),variants:[{props:{indicatorColor:`primary`},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:`secondary`},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:`100%`,width:2,right:0}}]}))),nx=Z(Vb)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),rx={},ix=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTabs`}),r=Ru(),i=xc(),a=pm(r.motion.reducedMotion,!1),{"aria-label":o,"aria-labelledby":s,action:c,centered:l=!1,children:u,className:d,component:f=`div`,allowScrollButtonsMobile:p=!1,indicatorColor:m=`primary`,onChange:h,orientation:g=`horizontal`,scrollButtons:_=`auto`,selectionFollowsFocus:v,slots:y={},slotProps:b={},textColor:x=`primary`,value:S,variant:C=`standard`,visibleScrollbar:w=!1,...T}=n,E=C===`scrollable`,D=g===`vertical`,O=D?`scrollTop`:`scrollLeft`,k=D?`top`:`left`,A=D?`bottom`:`right`,j=D?`clientHeight`:`clientWidth`,M=D?`height`:`width`,N={...n,component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:g,vertical:D,scrollButtons:_,textColor:x,variant:C,visibleScrollbar:w,fixed:!E,hideScrollbar:E&&!w,scrollableX:E&&!D,scrollableY:E&&D,centered:l&&!E,scrollButtonsHideMobile:!p},P=Zb(N),F=vg({elementType:y.startScrollButtonIcon,externalSlotProps:b.startScrollButtonIcon,ownerState:N}),I=vg({elementType:y.endScrollButtonIcon,externalSlotProps:b.endScrollButtonIcon,ownerState:N}),[L,R]=K.useState(!1),[z,ee]=K.useState(rx),[te,B]=K.useState(!1),[V,ne]=K.useState(!1),[re,ie]=K.useState(!1),H=S===!1?null:S,[U,W]=K.useState(!1),[ae,oe]=K.useState({overflow:`hidden`,scrollbarWidth:0}),se=new Map,ce=K.useRef(null),G=K.useRef(null),le={slots:y,slotProps:b},ue=()=>{let e=ce.current,t;if(e){let n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}let n;if(e&&S!==!1){let e=G.current.children;if(e.length>0){let t=e[se.get(S)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},de=Sd(()=>{let{tabsMeta:e,tabMeta:t}=ue(),n=0,r;D?(r=`top`,t&&e&&(n=t.top-e.top+e.scrollTop)):(r=i?`right`:`left`,t&&e&&(n=(i?-1:1)*(t[r]-e[r]+e.scrollLeft)));let a={[r]:n,[M]:t?t[M]:0};if(typeof z[r]!=`number`||typeof z[M]!=`number`)ee(a);else{let e=Math.abs(z[r]-a[r]),t=Math.abs(z[M]-a[M]);(e>=1||t>=1)&&ee(a)}}),fe=(e,{animation:t=!0}={})=>{t&&!a.shouldReduceMotion?zb(O,ce.current,e,{duration:r.transitions.duration.standard}):ce.current[O]=e},pe=e=>{let t=ce.current[O];t+=D?e:e*(i?-1:1),fe(t)},me=()=>{let e=ce.current[j],t=0,n=Array.from(G.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[j]>e){r===0&&(t=e);break}t+=i[j]}return t},he=()=>{pe(-1*me())},ge=()=>{pe(me())},[_e,{onChange:ve,...ye}]=ph(`scrollbar`,{className:q(P.scrollableX,P.hideScrollbar),elementType:nx,shouldForwardComponentProp:!0,externalForwardedProps:le,ownerState:N}),be=K.useCallback(e=>{ve?.(e),oe({overflow:null,scrollbarWidth:e})},[ve]),[xe,Se]=ph(`scrollButtons`,{className:P.scrollButtons,elementType:Jb,externalForwardedProps:le,ownerState:N,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:y.startScrollButtonIcon,EndScrollButtonIcon:y.endScrollButtonIcon},slotProps:{startScrollButtonIcon:F,endScrollButtonIcon:I}}}),Ce=()=>{let e={};e.scrollbarSizeListener=E?(0,J.jsx)(_e,{...ye,onChange:be}):null;let t=E&&(_===`auto`&&(te||V)||_===!0);return e.scrollButtonStart=t?(0,J.jsx)(xe,{direction:i?`right`:`left`,onClick:he,disabled:!te,...Se}):null,e.scrollButtonEnd=t?(0,J.jsx)(xe,{direction:i?`left`:`right`,onClick:ge,disabled:!V,...Se}):null,e},we=Sd(e=>{let{tabsMeta:t,tabMeta:n}=ue();if(n&&t){if(n[k]<t[k]){let r=t[O]+(n[k]-t[k]);fe(r,{animation:e})}else if(n[A]>t[A]){let r=t[O]+(n[A]-t[A]);fe(r,{animation:e})}}}),Te=Sd(()=>{E&&_!==!1&&ie(!re)});K.useEffect(()=>{let e=cd(()=>{ce.current&&de()}),t,n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),Te()},r=hd(ce.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(G.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(G.current,{childList:!0})),()=>{e.clear(),r.removeEventListener(`resize`,e),i?.disconnect(),t?.disconnect()}},[de,Te]),K.useEffect(()=>{let e=Array.from(G.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&E&&_!==!1){let n=e[0],r=e[t-1],i={root:ce.current,threshold:.99},a=new IntersectionObserver(e=>{B(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{ne(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[E,_,re,u?.length]),K.useEffect(()=>{R(!0)},[]),K.useEffect(()=>{de()}),K.useEffect(()=>{we(rx!==z)},[we,z]),K.useImperativeHandle(c,()=>({updateIndicator:de,updateScrollButtons:Te}),[de,Te]);let[Ee,De]=ph(`indicator`,{className:P.indicator,elementType:tx,externalForwardedProps:le,ownerState:N,additionalProps:{style:z}}),Oe=(0,J.jsx)(Ee,{...De}),ke=wg({activeItemId:U?void 0:H,orientation:g,isRtl:i}),Ae=ke.getContainerProps(),je=K.Children.toArray(u).filter(K.isValidElement).map((e,t)=>{let n=e.props.value===void 0?t:e.props.value;return se.set(n,t),{child:e,index:t,childValue:n}}).map(({child:e,childValue:t})=>{let n=t===S;return K.cloneElement(e,{fullWidth:C===`fullWidth`,indicator:n&&!L&&Oe,selected:n,selectionFollowsFocus:v,onChange:h,textColor:x,value:t})}),Me=Ce(),[Ne,Pe]=ph(`root`,{ref:t,className:q(P.root,d),elementType:Qb,externalForwardedProps:{...le,...T,component:f},ownerState:N}),[Fe,Ie]=ph(`scroller`,{ref:ce,className:P.scroller,elementType:$b,externalForwardedProps:le,ownerState:N,additionalProps:{style:{overflow:ae.overflow,[D?`margin${i?`Left`:`Right`}`:`marginBottom`]:w?void 0:-ae.scrollbarWidth}}}),Le=wd(Ae.ref,G),Re=e=>{let t=G.current;dd(pd(t))?.getAttribute(`role`)===`tab`&&Ae.onKeyDown(e)},[ze,Be]=ph(`list`,{ref:Le,className:P.list,elementType:ex,externalForwardedProps:le,ownerState:N,getSlotProps:e=>({...e,onBlur:t=>{Ug(t.currentTarget,t.relatedTarget)||W(!1),e.onBlur?.(t)},onKeyDown:t=>{Re(t),e.onKeyDown?.(t)},onFocus:t=>{W(!0),Ae.onFocus(t),e.onFocus?.(t)}})});return(0,J.jsxs)(Ne,{...Pe,children:[Me.scrollButtonStart,Me.scrollbarSizeListener,(0,J.jsxs)(Fe,{...Ie,children:[(0,J.jsx)(ze,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g===`vertical`?`vertical`:null,role:`tablist`,...Be,children:(0,J.jsx)(yg.Provider,{value:ke,children:je})}),L&&Oe]}),Me.scrollButtonEnd]})});function ax(e){return Os(`MuiTab`,e)}var ox=ks(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`icon`]),sx=e=>{let{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:c}=e;return xr({root:[`root`,a&&o&&`labelIcon`,`textColor${_r(n)}`,r&&`fullWidth`,i&&`wrapped`,s&&`selected`,c&&`disabled`],icon:[`icon`]},ax,t)},cx=Z(jm,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${_r(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${ox.icon}`]:t.icon}]}})(Uu(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:`relative`,minHeight:48,flexShrink:0,padding:`12px 16px`,overflow:`hidden`,whiteSpace:`normal`,textAlign:`center`,lineHeight:1.25,...e.focusVisible&&Bl(3),variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition===`top`||e.iconPosition===`bottom`),style:{flexDirection:`column`}},{props:({ownerState:e})=>e.label&&e.iconPosition!==`top`&&e.iconPosition!==`bottom`,style:{flexDirection:`row`}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`top`,style:{[`& > .${ox.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`bottom`,style:{[`& > .${ox.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`start`,style:{[`& > .${ox.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`end`,style:{[`& > .${ox.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:`inherit`},style:{color:`inherit`,opacity:.6,[`&.${ox.selected}`]:{opacity:1},...e.focusVisible&&{[`&.${Om.focusVisible}`]:{opacity:1}},[`&.${ox.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:`primary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${ox.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ox.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:`secondary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${ox.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ox.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:`none`}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),lx=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTab`}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:o,icon:s,iconPosition:c=`top`,indicator:l,label:u,onChange:d,onClick:f,onFocus:p,selected:m,selectionFollowsFocus:h,textColor:g=`inherit`,value:_,wrapped:v=!1,...y}=n,b=bg(),x=Tg({id:_,ref:t,disabled:i,selected:m}),S=b.getItemMap().size===0&&m?0:x.tabIndex,C={...n,disabled:i,disableFocusRipple:a,selected:m,icon:!!s,iconPosition:c,label:!!u,fullWidth:o,textColor:g,wrapped:v},w=sx(C),T=s&&u&&K.isValidElement(s)?K.cloneElement(s,{className:q(w.icon,s.props.className)}):s;return(0,J.jsxs)(cx,{internalNativeButton:!0,focusRipple:!a,className:q(w.root,r),ref:x.ref,role:`tab`,"aria-selected":m,disabled:i,onClick:e=>{!m&&d&&d(e,_),f&&f(e)},onFocus:e=>{h&&!m&&d&&d(e,_),p&&p(e)},tabIndex:S,ownerState:C,...y,children:[c===`top`||c===`start`?(0,J.jsxs)(K.Fragment,{children:[T,u]}):(0,J.jsxs)(K.Fragment,{children:[u,T]}),l]})});function ux(e){return Os(`MuiDialog`,e)}var dx=ks(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]),fx=K.createContext({}),px=Z(Y_,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),mx=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e;return xr({root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${_r(n)}`],paper:[`paper`,`paperWidth${_r(String(r))}`,i&&`paperFullWidth`,a&&`paperFullScreen`]},ux,t)},hx=Z(av,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),gx=Z(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${_r(n.scroll)}`]]}})({height:`100%`,"@media print":{height:`auto`},outline:0,variants:[{props:{scroll:`paper`},style:{display:`flex`,justifyContent:`center`,alignItems:`center`}},{props:{scroll:`body`},style:{overflowY:`auto`,overflowX:`hidden`,textAlign:`center`,"&::after":{content:`""`,display:`inline-block`,verticalAlign:`middle`,height:`100%`,width:`0`}}}]}),_x=Z(lv,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperWidth${_r(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Uu(({theme:e})=>({margin:32,position:`relative`,overflowY:`auto`,outline:0,"@media print":{overflowY:`visible`,boxShadow:`none`},variants:[{props:{scroll:`paper`},style:{display:`flex`,flexDirection:`column`,maxHeight:`calc(100% - 64px)`}},{props:{scroll:`body`},style:{display:`inline-block`,verticalAlign:`middle`,textAlign:`initial`}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:`calc(100% - 64px)`}},{props:{maxWidth:`xs`},style:{maxWidth:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:`xs`,scroll:`body`},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t,scroll:`body`},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:`calc(100% - 64px)`}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:`calc(100% - 64px)`}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:`100%`,maxWidth:`100%`,height:`100%`,maxHeight:`none`,borderRadius:0}},{props:({ownerState:e})=>e.fullScreen&&e.scroll===`body`,style:{margin:0,maxWidth:`100%`}}]}))),vx=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiDialog`}),r=Ru(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,"aria-modal":s=!0,children:c,className:l,fullScreen:u=!1,fullWidth:d=!1,maxWidth:f=`sm`,onClick:p,onClose:m,open:h,PaperComponent:g=lv,role:_=`dialog`,scroll:v=`paper`,slots:y={},slotProps:b={},transitionDuration:x=i,...S}=n,C={...n,fullScreen:u,fullWidth:d,maxWidth:f,scroll:v},w=mx(C),T=K.useRef(),E=e=>{T.current=e.target===e.currentTarget},D=e=>{p&&p(e),T.current&&(T.current=null,m&&m(e,`backdropClick`))},O=kc(o),k=K.useMemo(()=>({titleId:O}),[O]),A={slots:y,slotProps:b},[j,M]=ph(`root`,{elementType:hx,shouldForwardComponentProp:!0,externalForwardedProps:A,ownerState:C,className:q(w.root,l),ref:t}),[N,P]=ph(`backdrop`,{elementType:px,shouldForwardComponentProp:!0,externalForwardedProps:A,ownerState:C,className:w.backdrop}),[F,I]=ph(`paper`,{elementType:_x,shouldForwardComponentProp:!0,externalForwardedProps:A,ownerState:C,className:w.paper,additionalProps:{elevation:24,role:_,"aria-describedby":a,"aria-labelledby":O,"aria-modal":s,tabIndex:-1,[k_]:``}}),[L,R]=ph(`container`,{elementType:gx,externalForwardedProps:A,ownerState:C,className:w.container}),[z,ee]=ph(`transition`,{elementType:G_,externalForwardedProps:A,ownerState:C,additionalProps:{appear:!0,in:h,timeout:x,role:`presentation`}});return(0,J.jsx)(j,{closeAfterTransition:!0,slots:{backdrop:N},slotProps:{backdrop:{transitionDuration:x,...P}},onClose:m,open:h,onClick:D,...M,...S,children:(0,J.jsx)(z,{...ee,children:(0,J.jsx)(L,{onMouseDown:E,...R,children:(0,J.jsx)(F,{as:g,...I,children:(0,J.jsx)(fx.Provider,{value:k,children:c})})})})})});function yx(e){return Os(`MuiDialogActions`,e)}ks(`MuiDialogActions`,[`root`,`spacing`]);var bx=e=>{let{classes:t,disableSpacing:n}=e;return xr({root:[`root`,!n&&`spacing`]},yx,t)},xx=Z(`div`,{name:`MuiDialogActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,justifyContent:`flex-end`,flex:`0 0 auto`,variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Sx=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiDialogActions`}),{className:r,disableSpacing:i=!1,...a}=n,o={...n,disableSpacing:i},s=bx(o);return(0,J.jsx)(xx,{className:q(s.root,r),ownerState:o,ref:t,...a})});function Cx(e){return Os(`MuiDialogTitle`,e)}var wx=ks(`MuiDialogTitle`,[`root`]),Tx=e=>{let{classes:t}=e;return xr({root:[`root`]},Cx,t)},Ex=Z(ky,{name:`MuiDialogTitle`,slot:`Root`})({padding:`16px 24px`,flex:`0 0 auto`}),Dx=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiDialogTitle`}),{className:r,id:i,...a}=n,o=n,s=Tx(o),{titleId:c=i}=K.useContext(fx);return(0,J.jsx)(Ex,{component:`h2`,className:q(s.root,r),ownerState:o,ref:t,variant:`h6`,id:i??c,...a})});function Ox(e){return Os(`MuiDialogContent`,e)}ks(`MuiDialogContent`,[`root`,`dividers`]);var kx=e=>{let{classes:t,dividers:n}=e;return xr({root:[`root`,n&&`dividers`]},Ox,t)},Ax=Z(`div`,{name:`MuiDialogContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Uu(({theme:e})=>({flex:`1 1 auto`,WebkitOverflowScrolling:`touch`,overflowY:`auto`,padding:`20px 24px`,variants:[{props:({ownerState:e})=>e.dividers,style:{padding:`16px 24px`,borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${wx.root} + &`]:{paddingTop:0}}}]}))),jx=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiDialogContent`}),{className:r,dividers:i=!1,...a}=n,o={...n,dividers:i},s=kx(o);return(0,J.jsx)(Ax,{className:q(s.root,r),ownerState:o,ref:t,...a})});function Mx(e){return Os(`MuiDialogContentText`,e)}ks(`MuiDialogContentText`,[`root`]);var Nx=e=>{let{classes:t}=e,n=xr({root:[`root`]},Mx,t);return{...t,...n}},Px=Z(ky,{shouldForwardProp:e=>Vu(e)||e===`classes`,name:`MuiDialogContentText`,slot:`Root`})({}),Fx=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiDialogContentText`}),{children:r,className:i,...a}=n,o=Nx(a);return(0,J.jsx)(Px,{component:`p`,variant:`body1`,color:`textSecondary`,ref:t,ownerState:a,className:q(o.root,i),...n,classes:o})}),Ix={none:0,xxs:2,xs:4,sm:8,md:16,lg:24,xl:32,xxl:48,xxxl:64};Ix.none,Ix.xxs,Ix.xs,Ix.sm,Ix.md,Ix.lg,Ix.xl,Ix.xxl,Ix.xxxl;function Lx(e){return{fontSize:Ue.base,fontWeight:500,lineHeight:Ge.normal,color:e.palette.text.secondary}}var Rx={fontFamily:R(`fontUi`,ze.ui),fontWeightLight:Be.regular,fontWeightRegular:Be.regular,fontWeightMedium:Be.medium,fontWeightBold:Be.bold,htmlFontSize:16,fontSize:Ue.base,h1:{fontSize:Ue[`5xl`],fontWeight:Be.bold,lineHeight:Ge.tight},h2:{fontSize:Ue[`4xl`],fontWeight:Be.bold,lineHeight:Ge.tight},h3:{fontSize:Ue[`3xl`],fontWeight:Be.medium,lineHeight:1.1},h4:{fontSize:Ue.xl,fontWeight:Be.medium,lineHeight:1.1},h5:{fontSize:Ue.title,fontWeight:Be.medium,lineHeight:Ge.tight},h6:{fontSize:Ue.lg,fontWeight:Be.semibold,lineHeight:Ge.tight},subtitle1:{fontSize:Ue.md,fontWeight:Be.semibold,lineHeight:1.3},subtitle2:{fontSize:Ue.base,fontWeight:Be.semibold,lineHeight:1.3},body1:{fontSize:Ue.base,fontWeight:Be.regular,lineHeight:1.45},body2:{fontSize:Ue.sm,fontWeight:Be.regular,lineHeight:1.4},button:{fontSize:Ue.base,fontWeight:Be.semibold,textTransform:`none`,letterSpacing:0},caption:{fontSize:Ue.xs,fontWeight:Be.regular,lineHeight:1.3},overline:{fontFamily:ze.mono,fontSize:Ue[`2xs`],fontWeight:Be.medium,lineHeight:Ge.normal,textTransform:`uppercase`,letterSpacing:Ke.tracked}},zx=Ix.xs+Ix.xxs,Bx=Math.round(Number(Rx.overline?.fontSize)*Number(Rx.overline?.lineHeight));Bx+2*zx;function Vx(){return{...Rx.overline,color:`var(--ds-text-quiet)`,whiteSpace:`nowrap`,verticalAlign:`middle`,backgroundColor:`transparent`,paddingTop:`${zx}px`,paddingBottom:`${zx}px`}}var Hx=e=>`var(--ds-${e})`,Ux=(e,t)=>`color-mix(in srgb, ${e} ${typeof t==`number`?`${t}%`:t}, transparent)`,Wx=[`neutral`,`info`,`success`,`warning`,`error`,`critical`,`high`,`medium`,`low`,`primary`];Object.fromEntries(Wx.map(e=>[e,Hx(`chip-${e}`)]));var Gx=new Set([`primary`,`info`,`success`,`warning`,`error`]),Kx=Wx.filter(e=>!Gx.has(e)),qx=Wx.map(e=>{let t=Hx(`chip-${e}`),n=Hx(`chip-${e}-text`),r=Hx(`chip-${e}-tint`);return{props:{variant:`subtle`,color:e},style:{backgroundColor:Ux(t,`calc(${r} * 100%)`),color:n,border:`1px solid ${Ux(t,25)}`,"&:hover":{backgroundColor:Ux(t,`calc((${r} + 0.06) * 100%)`)},"& .MuiChip-deleteIcon":{color:Ux(n,60),"&:hover":{color:n}}}}}),Jx=[{props:{variant:`subtle`,color:`neutral`},style:({theme:e})=>{let t=Hx(`text-secondary`),n=Hx(`chip-neutral-tint`);return{backgroundColor:Ux(t,`calc(${n} * 100%)`),color:t,border:`1px solid ${Ux(t,25)}`,"&:hover":{backgroundColor:Ux(t,`calc((${n} + 0.06) * 100%)`)},"& .MuiChip-deleteIcon":{color:Ux(t,60),"&:hover":{color:t}},...e.applyStyles(`light`,{backgroundColor:Ux(Hx(`text`),`calc(${n} * 100%)`),"&:hover":{backgroundColor:Ux(Hx(`text`),`calc((${n} + 0.06) * 100%)`)}})}}}],Yx=[{props:{variant:`field`},style:{backgroundColor:Hx(`field`),color:Hx(`text-secondary`),border:`1px solid ${Hx(`field-border`)}`,"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundImage:`linear-gradient(${Hx(`hover`)}, ${Hx(`hover`)})`},"& .MuiChip-deleteIcon":{color:Ux(Hx(`text-secondary`),60),"&:hover":{color:Hx(`text`)}}}}],Xx=Wx.map(e=>({props:{variant:`dot`,color:e},style:{backgroundColor:`transparent`,color:Hx(`text-secondary`),border:`none`,paddingLeft:`4px`,"&::before":{content:`""`,display:`inline-block`,width:8,height:8,borderRadius:`50%`,backgroundColor:Hx(`chip-${e}`),marginRight:6,marginLeft:4,flexShrink:0},"& .MuiChip-label":{paddingLeft:0},"&:hover":{backgroundColor:`transparent`}}})),Zx=Kx.map(e=>{let t=Hx(`chip-${e}-fill`),n=Hx(`chip-${e}-on`);return{props:{variant:`filled`,color:e},style:{backgroundColor:t,color:n,"&:hover":{backgroundColor:`color-mix(in oklab, ${t}, #fff 10%)`},"& .MuiChip-deleteIcon":{color:Ux(n,60),"&:hover":{color:n}}}}}),Qx=Kx.map(e=>{let t=Hx(`chip-${e}`),n=Hx(`chip-${e}-text`);return{props:{variant:`outlined`,color:e},style:{backgroundColor:`transparent`,color:n,border:`1px solid ${Ux(t,50)}`,fontWeight:500,"&::before":{content:`""`,width:6,height:6,borderRadius:`50%`,backgroundColor:t,marginLeft:8,flexShrink:0},"& .MuiChip-label":{paddingLeft:6},"&:hover":{backgroundColor:Ux(t,8)},"& .MuiChip-deleteIcon":{color:Ux(n,60),"&:hover":{color:n}}}}}),$x=[{props:{variant:`outlined`,color:`neutral`},style:{backgroundColor:`transparent`,color:Hx(`text-secondary`),border:`1px solid ${Hx(`text-secondary`)}`,"&:hover":{backgroundColor:Ux(Hx(`text-secondary`),8)},"& .MuiChip-deleteIcon":{color:Ux(Hx(`text-secondary`),60),"&:hover":{color:Hx(`text-secondary`)}}}}],eS=[{props:{variant:`outlined`,color:`primary`},style:{backgroundColor:`transparent`,color:Hx(`chip-primary-text`),border:`1px solid ${Hx(`chip-primary-text`)}`}}],tS={boxShadow:`none`,backgroundImage:`none`,backgroundColor:Ux(Hx(`ink-disabled`),24),color:Hx(`ink-disabled`)},nS=[{props:{variant:`primary`},style:{backgroundColor:Hx(`button-bottom`),backgroundImage:`linear-gradient(180deg, ${Hx(`button-top`)}, ${Hx(`button-bottom`)})`,color:Hx(`button-ink`),border:`none`,boxShadow:`${xe.small}, inset 0px 1px 0px 0px ${Ux(`#fff`,16)}`,"&:hover":{backgroundColor:Hx(`button-hover-bottom`),backgroundImage:`linear-gradient(180deg, ${Hx(`button-hover-top`)}, ${Hx(`button-hover-bottom`)})`,boxShadow:`${xe.medium}, inset 0px 1px 0px 0px ${Ux(`#fff`,16)}`},"&.Mui-disabled":tS}},{props:{variant:`secondary`},style:{backgroundColor:Hx(`child`),color:Hx(`text`),border:`none`,boxShadow:xe.small,transition:$n([`background-color`,`box-shadow`],`base`),"&:hover":{backgroundColor:Hx(`child`),backgroundImage:`linear-gradient(${Hx(`hover`)}, ${Hx(`hover`)})`,boxShadow:xe.medium},"&.Mui-disabled":tS}},{props:{variant:`ghost`},style:{backgroundColor:`transparent`,color:Hx(`text`),border:`none`,"&:hover":{backgroundColor:Hx(`hover`)},"&.Mui-disabled":{backgroundColor:`transparent`,color:Hx(`ink-disabled`)}}},{props:{variant:`destructive`},style:{backgroundColor:Hx(`severity-critical`),color:Hx(`severity-critical-ink`),border:`none`,"&:hover":{backgroundColor:`color-mix(in oklab, ${Hx(`severity-critical`)}, #fff 12%)`},"&.Mui-disabled":tS}},{props:{variant:`agent`},style:{backgroundColor:Hx(`agent-bg`),color:Hx(`agent-text`),border:`none`,boxShadow:Hx(`elevation-agent`),"& .MuiButton-startIcon":{color:Hx(`accent-ai`)},"&:hover":{backgroundColor:Hx(`agent-child`)},"&.Mui-disabled":tS}},{props:{variant:`agentSoft`},style:({theme:e})=>({backgroundColor:Hx(`agent-bg`),color:Hx(`agent-text`),border:`none`,boxShadow:Hx(`elevation-agent`),"& .MuiButton-startIcon":{color:Hx(`accent-ai`)},"&:hover":{backgroundColor:Hx(`agent-child`)},...e.applyStyles(`light`,{backgroundColor:Ux(Hx(`accent`),10),color:Hx(`accent`),boxShadow:`none`,"& .MuiButton-startIcon":{color:Hx(`accent`)},"&:hover":{backgroundColor:Ux(Hx(`accent`),16),boxShadow:`none`}}),"&.Mui-disabled":tS})}],rS={small:{minHeight:cr.small,fontSize:Ue.base,padding:`${Ix.xxs}px ${Ix.sm+Ix.xs}px`},medium:{minHeight:cr.medium,fontSize:Ue.base,padding:`${Ix.xs}px ${Ix.md}px`},large:{minHeight:cr.large,fontSize:Ue.md,padding:`${Ix.sm}px ${Ix.lg}px`}},iS={small:{minHeight:cr.small,fontSize:Ue.base,padding:`${Ix.xxs}px ${Ix.sm+Ix.xs}px`,lineHeight:Ge.normal},medium:{minHeight:cr.medium,fontSize:Ue.base,padding:`${Ix.xs}px ${Ix.md}px`,lineHeight:Ge.normal},large:{minHeight:cr.large,fontSize:Ue.md,padding:`${Ix.sm}px ${Ix.lg}px`,lineHeight:Ge.normal}},aS=Object.keys(rS),oS=nS.flatMap(({props:{variant:e}})=>aS.map(t=>({props:{variant:e,size:t},style:{...rS[t],lineHeight:Ge.normal}}))),sS=[{props:{size:`large`},style:{height:lr.large,fontSize:Ue.md}},{props:{size:`extraLarge`},style:{height:lr.extraLarge,fontSize:Ue.lg}}],cS={small:`caption`,medium:`body2`,large:`body1`},lS={small:or.sm,medium:or.md,large:or.lg},uS=Object.keys(cS).map(e=>({props:{size:e},style:({theme:t})=>({...t.typography[cS[e]],width:ur[e],height:ur[e],"& .MuiSvgIcon-root":{fontSize:lS[e]}})})),dS=e=>`var(--ds-${e})`;function fS(e){return{borderRadius:ve(_[e]),border:`1px solid ${dS(`border`)}`,backgroundColor:dS(`bg`),backgroundImage:`none`,boxShadow:dS(`elevation-raised`)}}function pS(e,t,n){return`calc(${String(e-2*t)}px + 2 * ${R(n,`${String(t)}px`)})`}var mS={MuiCssBaseline:{styleOverrides:{...er,body:{scrollbarColor:`${dS(`scrollbar`)} transparent`,"&::-webkit-scrollbar-thumb":{backgroundColor:dS(`scrollbar`),borderRadius:_.pill}}}},MuiButtonBase:{defaultProps:{disableRipple:!0}},MuiButton:{defaultProps:{disableElevation:!0,variant:`secondary`},styleOverrides:{root:{borderRadius:ve(_.sm),textTransform:`none`,fontWeight:600,"& .MuiButton-endIcon":{marginLeft:Ix.sm,marginRight:-Ix.xs},"& .MuiButton-endIcon > kbd":{fontSize:Ue.xs},"& .MuiButton-startIcon > .MuiSvgIcon-root, & .MuiButton-endIcon > .MuiSvgIcon-root":{fontSize:or.md}}},variants:[...nS,...oS]},MuiIconButton:{styleOverrides:{root:{borderRadius:ve(_.sm),'&[aria-pressed="true"], &[aria-pressed="true"]:hover':{backgroundColor:dS(`selected`),color:dS(`accent`)}},sizeSmall:{"& .MuiSvgIcon-root":{fontSize:or.md}},sizeMedium:{"& .MuiSvgIcon-root":{fontSize:or.lg}},sizeLarge:{"& .MuiSvgIcon-root":{fontSize:or.lg}}}},MuiToggleButton:{styleOverrides:{root:{...iS.medium,"& .MuiSvgIcon-root":{fontSize:We}},sizeSmall:iS.small,sizeLarge:iS.large}},MuiPaper:{styleOverrides:{root:({ownerState:e})=>{let t=Number(e.elevation??1),n=dS(t===0?`bg`:t<=3?`child`:`raised`),r=t===0?`none`:dS(`elevation-raised`);return e.variant===`glass`?{backgroundImage:`none`,...Pe,boxShadow:t>1?dS(`elevation-raised`):`none`}:{backgroundImage:`none`,backgroundColor:n,boxShadow:r}},rounded:{borderRadius:ve(_.md)}}},MuiCard:{defaultProps:{elevation:1},styleOverrides:{root:{borderRadius:ve(_.md),border:`none`}}},MuiAccordion:{defaultProps:{elevation:1,disableGutters:!0},styleOverrides:{root:{borderRadius:ve(_.md),border:`none`,"&::before":{display:`none`},"&:first-of-type, &:last-of-type":{borderRadius:ve(_.md)}}}},MuiAvatar:{defaultProps:{size:`medium`,slotProps:{root:{size:void 0}}},variants:uS,styleOverrides:{root:{backgroundColor:dS(`control`),color:dS(`text`),"& .MuiSvgIcon-root":{color:`inherit`},"&:has(> img)":{boxShadow:dS(`avatar-hairline`)}}}},MuiAvatarGroup:{styleOverrides:{avatar:{borderWidth:2,borderStyle:`solid`,borderColor:dS(`bg`)}}},MuiBadge:{styleOverrides:{badge:{boxShadow:`0 0 0 2px ${dS(`bg`)}`}}},MuiDivider:{styleOverrides:{root:{borderColor:dS(`border`)}}},MuiChip:{styleOverrides:{root:{borderRadius:R(`chipRadius`,`${String(_.pill)}px`),fontWeight:500,letterSpacing:`0.02em`,fontSize:Ue.base,height:pS(lr.medium,U.medium,`chipPadY`)},sizeSmall:{height:pS(lr.small,U.small,`chipPadYSmall`),fontSize:Ue.xs,"& .MuiChip-label":{paddingLeft:R(`chipPadXSmall`,H.small),paddingRight:R(`chipPadXSmall`,H.small)},"& .MuiChip-deleteIcon":{padding:3,marginLeft:-7,marginRight:1}},icon:{fontSize:We},label:{paddingLeft:R(`chipPadX`,H.medium),paddingRight:R(`chipPadX`,H.medium)},deleteIcon:{fontSize:We,boxSizing:`content-box`,padding:4,marginLeft:-10,marginRight:1}},variants:[...sS,...qx,...Jx,...Yx,...Xx,...Zx,...Qx,...$x,...eS]},MuiTextField:{defaultProps:{variant:`outlined`,size:`medium`,fullWidth:!0}},MuiLink:{styleOverrides:{root:{color:dS(`link`)}}},MuiOutlinedInput:{styleOverrides:{root:({theme:e,ownerState:t})=>{let n=t.size===`small`,r=n?cr.small:cr.medium,i=n?`${Ix.xxs}px 12px`:`${Ix.xs}px 14px`;return{borderRadius:ve(_.sm),...rr(e),boxShadow:dS(`shadow-inset`),color:dS(`text`),...!t.multiline&&{height:r,minHeight:r},...t.multiline&&{padding:i},"&:hover:not(.Mui-disabled):not(.Mui-error):not(.Mui-focused) .MuiOutlinedInput-notchedOutline":{borderColor:dS(`field-border`)},"@media (hover: none)":{"&:hover:not(.Mui-error):not(.Mui-focused) .MuiOutlinedInput-notchedOutline":{borderColor:`transparent`}},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{borderColor:dS(`focus-ring`),borderWidth:1.5},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:dS(`input-error`)}}},input:({ownerState:e})=>{let t=e.size===`small`,n=t?`${Ix.xxs}px 12px`:`${Ix.xs}px 14px`,r=dS(`text-quiet`);return{fontSize:Ue.base,lineHeight:Ge.normal,padding:e.multiline?0:n,...e.startAdornment&&{paddingLeft:0},...e.endAdornment&&{paddingRight:0},boxSizing:`border-box`,...!e.multiline&&{height:t?cr.small:cr.medium},"&::placeholder":{color:r,opacity:1},"&::-webkit-search-cancel-button, &::-webkit-search-decoration":{WebkitAppearance:`none`,appearance:`none`}}},notchedOutline:({theme:e})=>({borderColor:ir(dS(`input-border`)),top:0,"& legend":{display:`none`},...e.applyStyles(`dark`,{borderColor:`transparent`})})}},MuiInputLabel:{defaultProps:{shrink:!0,disableAnimation:!0},styleOverrides:{root:({theme:e})=>({...Lx(e),position:`relative`,transform:`none`,maxWidth:`none`,whiteSpace:`normal`,overflow:`visible`,marginBottom:Ix.xs,"&.Mui-focused:not(.Mui-error)":{color:Lx(e).color}}),outlined:{transform:`none`,"&.MuiInputLabel-shrink":{transform:`none`}}}},MuiFormLabel:{styleOverrides:{root:({theme:e})=>({"&.Mui-focused:not(.Mui-error)":{color:Lx(e).color}})}},MuiFormControlLabel:{styleOverrides:{label:({theme:e})=>e.typography.body1}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{tooltip:({theme:e})=>({...e.typography.body1,backgroundColor:dS(`tooltip-bg`),color:dS(`tooltip-ink`),borderRadius:ve(_.sm),border:`1px solid ${dS(`tooltip-edge`)}`,boxShadow:dS(`shadow-raised`)}),arrow:{color:dS(`tooltip-bg`)}}},MuiDialogTitle:{defaultProps:{variant:`subtitle1`,component:`h2`}},MuiDialogContentText:{defaultProps:{variant:`body1`}},MuiAlert:{styleOverrides:{message:({theme:e})=>e.typography.body1}},MuiAlertTitle:{defaultProps:{variant:`subtitle2`}},MuiCardHeader:{defaultProps:{slotProps:{title:{variant:`subtitle1`},subheader:{variant:`body1`}}}},MuiBreadcrumbs:{styleOverrides:{li:({theme:e})=>e.typography.body1}},MuiFormHelperText:{styleOverrides:{root:({theme:e})=>e.typography.caption}},MuiDialog:{styleOverrides:{paper:{borderRadius:ve(_.lg),border:`1px solid ${dS(`border`)}`,backgroundColor:dS(`bg`),backgroundImage:`none`,boxShadow:dS(`shadow-agent`)}}},MuiDialogActions:{styleOverrides:{root:({ownerState:e})=>({padding:`${Ix.sm}px ${Ix.lg}px ${Ix.md}px`,gap:e.disableSpacing?0:Ix.sm,"& > :not(style) ~ :not(style)":{marginLeft:0}})}},MuiDrawer:{defaultProps:{slotProps:{backdrop:{sx:{backgroundColor:dS(`scrim-drawer`)}}}},styleOverrides:{paper:{backgroundColor:dS(`bg`),borderColor:dS(`border`),backgroundImage:`none`}}},MuiAppBar:{defaultProps:{elevation:0,color:`default`},styleOverrides:{root:{backgroundColor:`transparent`,borderBottom:`none`,backgroundImage:`none`,boxShadow:`none`}}},MuiTable:{styleOverrides:{root:{backgroundColor:dS(`bg`)}}},MuiTableCell:{styleOverrides:{root:{borderBottom:`1px solid ${dS(`separator`)}`,padding:`${R(`rowPad`,te)} ${Ix.md}px`,fontSize:Ue.base,lineHeight:1.3,color:dS(`text`)},head:{...Vx(),paddingLeft:`${Ix.md}px`,paddingRight:`${Ix.md}px`},sizeSmall:{padding:`${Ix.sm}px ${Ix.md}px`}}},MuiTableRow:{styleOverrides:{root:{transition:$n(`background-color`,`fast`),"&:last-of-type > .MuiTableCell-root":{borderBottom:`none`},"&.MuiTableRow-hover:hover":{backgroundColor:dS(`hover`)}},head:{"&.MuiTableRow-hover:hover":{backgroundColor:`transparent`}}}},MuiMenu:{styleOverrides:{paper:fS(`md`)}},MuiPopover:{styleOverrides:{paper:fS(`md`)}},MuiSnackbarContent:{styleOverrides:{root:({theme:e})=>({...e.typography.body1,backgroundColor:dS(`bg`),color:dS(`text`),borderRadius:ve(_.md),border:`1px solid ${dS(`border`)}`,boxShadow:dS(`shadow-agent`),backgroundImage:`none`})}},MuiBackdrop:{styleOverrides:{root:{backgroundColor:dS(`scrim-dialog`)},invisible:{backgroundColor:`transparent`}}},MuiTabs:{styleOverrides:{root:()=>({display:`inline-flex`,minHeight:0,padding:3,borderRadius:ve(_.sm),backgroundColor:`var(--ds-field-fill-scoped, var(--ds-field))`,boxShadow:dS(`shadow-inset`)}),indicator:{display:`none`}}},MuiTab:{styleOverrides:{root:{textTransform:`none`,fontWeight:500,fontSize:Ue.base,lineHeight:Ge.normal,minHeight:28,minWidth:0,padding:`${Ix.xs}px ${Ix.sm+Ix.xs}px`,borderRadius:ve(_.xs),color:dS(`text-quiet`),"&.Mui-selected":{color:dS(`text`),backgroundColor:dS(`child`),boxShadow:dS(`elevation-surface`)}}}}},hS=e=>`var(--ds-${e})`,gS=(e,t,n=e,r=e)=>({main:e,light:n,dark:r,contrastText:t}),_S=e=>({main:hS(`severity-${e}`),contrastText:hS(`severity-${e}-ink`)});function vS(e){return{mode:e,primary:gS(hS(`accent`),hS(`on-accent`),hS(`accent-light`),hS(`button-bottom`)),secondary:gS(hS(`accent`),hS(`on-accent`),hS(`accent-light`),hS(`button-bottom`)),error:gS(hS(`status-failure`),hS(`status-failure-ink`)),warning:gS(hS(`status-warning`),hS(`status-warning-ink`)),info:gS(hS(`status-info`),hS(`status-info-ink`)),success:gS(hS(`status-success`),hS(`status-success-ink`)),background:{default:hS(`body`),paper:hS(`paper`)},text:{primary:hS(`text`),secondary:hS(`text-secondary`),quiet:hS(`text-quiet`),disabled:hS(`ink-disabled`)},divider:hS(`border`),severity:{critical:_S(`critical`),high:_S(`high`),medium:_S(`medium`),low:_S(`low`),info:_S(`info`),untriaged:_S(`untriaged`)},action:{hover:hS(`hover`),selected:hS(`accent-wash`),disabled:hS(`ink-disabled`),disabledBackground:`color-mix(in srgb, ${hS(`ink-disabled`)} 24%, transparent)`,focus:`color-mix(in srgb, ${hS(`focus-ring`)} 24%, transparent)`,active:hS(`text-secondary`)}}}var yS=Mp(Fu({cssVariables:{nativeColor:!0,colorSchemeSelector:`data-ds-mode`,cssVarPrefix:`mui`},colorSchemes:{light:{palette:vS(`light`)},dark:{palette:vS(`dark`)}},defaultColorScheme:`dark`,spacing:8,shape:{borderRadius:y},typography:Rx,components:mS})),bS=e=>`var(--ds-${e})`;function xS(e){return`color-mix(in srgb, ${bS(`chip-${e}`)} calc(${bS(`chip-${e}-tint`)} * 100%), transparent)`}function SS(e){return`color-mix(in srgb, ${bS(`chip-${e}`)} 25%, transparent)`}function CS(e){return Yn(),(0,K.createElement)(Bp,{colorSchemeNode:null,storageManager:null,...e})}var wS=[`--ds-accent`,`--ds-accent-light`,`--ds-button-bottom`,`--ds-on-accent`,`--ds-status-failure`,`--ds-status-failure-ink`,`--ds-status-warning`,`--ds-status-warning-ink`,`--ds-status-info`,`--ds-status-info-ink`,`--ds-status-success`,`--ds-status-success-ink`,`--ds-body`,`--ds-paper`,`--ds-text`,`--ds-text-secondary`,`--ds-ink-disabled`,`--ds-border`];function TS(e,t){let n=zn(xt(yt[t],t)),r=Object.fromEntries(wS.map(t=>[t,e(t)||n.globals[t]||n.scopes.primary[t]||``])),i=(e,t)=>({main:e,contrastText:t});return Mp(Fu({spacing:8,shape:{borderRadius:y},typography:Rx,components:mS,palette:{mode:t,primary:{main:r[`--ds-accent`],light:r[`--ds-accent-light`],dark:r[`--ds-button-bottom`],contrastText:r[`--ds-on-accent`]},secondary:{main:r[`--ds-accent`],light:r[`--ds-accent-light`],dark:r[`--ds-button-bottom`],contrastText:r[`--ds-on-accent`]},error:i(r[`--ds-status-failure`],r[`--ds-status-failure-ink`]),warning:i(r[`--ds-status-warning`],r[`--ds-status-warning-ink`]),info:i(r[`--ds-status-info`],r[`--ds-status-info-ink`]),success:i(r[`--ds-status-success`],r[`--ds-status-success-ink`]),background:{default:r[`--ds-body`],paper:r[`--ds-paper`]},text:{primary:r[`--ds-text`],secondary:r[`--ds-text-secondary`],disabled:r[`--ds-ink-disabled`]},divider:r[`--ds-border`]}}))}function ES(){let e=globalThis.document?.documentElement??null,t=Xn(e,wS);return TS(e=>t[e]??``,e?.dataset.dsMode===`light`?`light`:`dark`)}function DS(){return(0,K.useMemo)(()=>ES(),[Zn()])}function OS({children:e}){return(0,J.jsx)(CS,{theme:DS(),children:e})}function kS({children:e,tone:t=`default`,...n}){let r=t===`onAccent`;return(0,J.jsx)(Q,{component:`kbd`,...n,sx:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,boxSizing:`border-box`,minWidth:18,height:18,px:`4px`,fontFamily:ze.mono,fontSize:Ue.xs,fontWeight:500,lineHeight:1,fontVariantNumeric:`tabular-nums`,whiteSpace:`nowrap`,borderRadius:ve(v.kbd),color:r?`inherit`:h(`textQuiet`),backgroundColor:r?`var(--ds-on-accent-inset)`:h(`field`),border:r?`none`:`1px solid ${h(`separator`)}`},children:e})}var AS={"⌘":`Meta`,cmd:`Meta`,command:`Meta`,meta:`Meta`,"⌥":`Alt`,opt:`Alt`,option:`Alt`,alt:`Alt`,"⇧":`Shift`,shift:`Shift`,"⌃":`Control`,ctrl:`Control`,control:`Control`,"⏎":`Enter`,"↵":`Enter`,"↩":`Enter`,enter:`Enter`,return:`Enter`,"⎋":`Escape`,esc:`Escape`,escape:`Escape`,"⌫":`Backspace`,"⌦":`Delete`,"⇥":`Tab`,tab:`Tab`,"␣":`Space`,space:`Space`,"↑":`ArrowUp`,"↓":`ArrowDown`,"←":`ArrowLeft`,"→":`ArrowRight`},jS=new Set([`⌘`,`⌥`,`⇧`,`⌃`]);function MS(e){return(AS[e]??AS[e.toLowerCase()])||([...e].length===1?e.toUpperCase():e)}function NS(e){let t=e.trim();if(!t)return``;if(t.length>1&&t.includes(`+`))return t.split(`+`).map(e=>e.trim()).filter(Boolean).map(MS).join(`+`);let n=[...t],r=[];for(;n.length>1&&jS.has(n[0]);)r.push(MS(n.shift()));return r.push(MS(n.join(``))),r.join(`+`)}function PS(e,t){return e===`primary`||e===`contained`&&(t===void 0||t===`primary`)}var FS=(0,K.forwardRef)(function({shortcut:e,ariaKeyShortcuts:t,endIcon:n,...r},i){return e?(0,J.jsx)(ah,{ref:i,"aria-keyshortcuts":t??NS(e),endIcon:(0,J.jsx)(kS,{"aria-hidden":!0,tone:PS(r.variant,r.color)?`onAccent`:`default`,children:e}),...r}):(0,J.jsx)(ah,{ref:i,endIcon:n,"aria-keyshortcuts":t,...r})}),IS=(0,K.createContext)(null),LS={depth:0,rung:`page`};function RS(){return(0,K.useContext)(IS)??LS}function zS(){return p(RS().rung)}function BS({rung:e,sx:t,style:n,children:r,...i}){let a=(0,K.useContext)(IS),o=a?a.depth+1:0,s=o>3,c=e||(a?s?a.rung:d(a.rung):`page`);(0,K.useRef)(!1),(0,K.useEffect)(()=>{},[o,s,c]);let l=(0,K.useMemo)(()=>({depth:o,rung:c}),[o,c]);return(0,J.jsx)(IS.Provider,{value:l,children:(0,J.jsx)(Q,{"data-surface":c,"data-surface-depth":o,style:n,sx:[{backgroundColor:`var(--ds-bg)`,color:`var(--ds-text)`},...Array.isArray(t)?t:[t]],...i,children:r})})}function VS({children:e,component:t=`span`,...n}){return(0,J.jsx)(ky,{variant:`overline`,color:`textQuiet`,component:t,...n,children:e})}or.md;function HS({scrim:e=`dim`,sx:t,...n}){return(0,J.jsx)(vx,{...n,sx:[ae(e),...Array.isArray(t)?t:[t]]})}var US={start:`flex-start`,center:`center`,end:`flex-end`,stretch:`flex-end`};function WS({align:e=`end`,dense:t=!1,sx:n,...r}){return(0,J.jsx)(Sx,{...r,sx:[{justifyContent:US[e],...e===`stretch`?{"& > *":{flexGrow:1}}:null,...t?{padding:`${Ix.sm}px ${Ix.md}px ${Ix.md}px`}:null},...Array.isArray(n)?n:[n]]})}var GS=od((0,J.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z`}),`Cancel`);function KS(e){return Os(`MuiChip`,e)}var qS=ks(`MuiChip`,[`root`,`sizeSmall`,`sizeMedium`,`colorDefault`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`disabled`,`clickable`,`deletable`,`outlined`,`filled`,`avatar`,`icon`,`label`,`deleteIcon`,`focusVisible`]),JS=e=>{let{classes:t,disabled:n,size:r,color:i,onDelete:a,clickable:o,variant:s}=e;return xr({root:[`root`,s,n&&`disabled`,`size${_r(r)}`,`color${_r(i)}`,o&&`clickable`,a&&`deletable`],label:[`label`],avatar:[`avatar`],icon:[`icon`],deleteIcon:[`deleteIcon`]},KS,t)},YS=Z(`div`,{name:`MuiChip`,slot:`Root`,shouldForwardProp:e=>Vu(e)&&e!==`focusableWhenDisabled`&&e!==`skipFocusWhenDisabled`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{color:r,clickable:i,onDelete:a,size:o,variant:s}=n;return[{[`& .${qS.avatar}`]:t.avatar},{[`& .${qS.icon}`]:t.icon},{[`& .${qS.deleteIcon}`]:t.deleteIcon},t.root,t[`size${_r(o)}`],t[`color${_r(r)}`],i&&t.clickable,a&&t.deletable,t[s]]}})(Uu(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:`100%`,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:`nowrap`,...nd(e,[`background-color`,`box-shadow`]),cursor:`unset`,outline:0,textDecoration:`none`,border:0,padding:0,verticalAlign:`middle`,boxSizing:`border-box`,[`&.${qS.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`& .${qS.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${qS.icon}`]:{marginLeft:5,marginRight:-6},[`& .${qS.deleteIcon}`]:{WebkitTapHighlightColor:`transparent`,color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:`pointer`,margin:`0 5px 0 -6px`,"&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:`primary`},style:{[`& .${qS.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:`secondary`},style:{[`& .${qS.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:`small`},style:{height:24,[`& .${qS.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${qS.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${qS.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Fm([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${qS.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${qS.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${qS.icon}`]:{color:`inherit`}}},{props:{onDelete:!0},style:!e.focusVisible&&{[`&.${qS.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Fm([`dark`])).map(([t])=>({props:{color:t,onDelete:!0},style:!e.focusVisible&&{[`&.${qS.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:`none`,WebkitTapHighlightColor:`transparent`,cursor:`pointer`,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},...!e.focusVisible&&{[`&.${qS.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Fm([`dark`])).map(([t])=>({props:{color:t,clickable:!0},style:{"&:hover":{backgroundColor:(e.vars||e).palette[t].dark},...!e.focusVisible&&{[`&.${qS.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}})),{props:{variant:`outlined`},style:{backgroundColor:`transparent`,border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${qS.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},...!e.focusVisible&&{[`&.${qS.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`& .${qS.avatar}`]:{marginLeft:4},[`& .${qS.icon}`]:{marginLeft:4},[`& .${qS.deleteIcon}`]:{marginRight:5}}},{props:{size:`small`,variant:`outlined`},style:{[`& .${qS.avatar}`]:{marginLeft:2},[`& .${qS.icon}`]:{marginLeft:2},[`& .${qS.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{variant:`outlined`,color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${qS.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},...!e.focusVisible&&{[`&.${qS.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)}},[`& .${qS.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),XS=Z(`span`,{name:`MuiChip`,slot:`Label`})({overflow:`hidden`,textOverflow:`ellipsis`,paddingLeft:12,paddingRight:12,whiteSpace:`nowrap`,variants:[{props:{variant:`outlined`},style:{paddingLeft:11,paddingRight:11}},{props:{size:`small`},style:{paddingLeft:8,paddingRight:8}},{props:{size:`small`,variant:`outlined`},style:{paddingLeft:7,paddingRight:7}}]});function ZS(e){return e.key===`Backspace`||e.key===`Delete`}var QS=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiChip`}),{avatar:r,className:i,clickable:a,color:o=`default`,component:s,deleteIcon:c,disabled:l=!1,icon:u,label:d,onClick:f,onDelete:p,onKeyDown:m,onKeyUp:h,size:g=`medium`,variant:_=`filled`,tabIndex:v,skipFocusWhenDisabled:y=!1,slots:b={},slotProps:x={},...S}=n,{nativeButton:C,...w}=S,T=wd(K.useRef(null),t),E=e=>{e.stopPropagation(),p(e)},D=e=>{e.currentTarget===e.target&&ZS(e)&&e.preventDefault(),m&&m(e)},O=e=>{e.currentTarget===e.target&&p&&ZS(e)&&p(e),h&&h(e)},k=a!==!1&&f?!0:a,A=k||p?jm:s||`div`,j={...n,component:A,disabled:l,size:g,color:o,iconColor:K.isValidElement(u)&&u.props.color||o,onDelete:!!p,clickable:k,variant:_},M=JS(j),N=A===jm?{component:s||`div`,internalNativeButton:!1,focusVisibleClassName:M.focusVisible,...p&&{disableRipple:!0},...C!==void 0&&{nativeButton:C}}:{},P=null;p&&(P=c&&K.isValidElement(c)?K.cloneElement(c,{className:q(c.props.className,M.deleteIcon),onClick:E}):(0,J.jsx)(GS,{className:M.deleteIcon,onClick:E}));let F=null;r&&K.isValidElement(r)&&(F=K.cloneElement(r,{className:q(M.avatar,r.props.className)}));let I=null;u&&K.isValidElement(u)&&(I=K.cloneElement(u,{className:q(M.icon,u.props.className)}));let L={slots:b,slotProps:x},[R,z]=ph(`root`,{elementType:YS,externalForwardedProps:{...L,...w},ownerState:j,shouldForwardComponentProp:!0,ref:T,className:q(M.root,i),additionalProps:{disabled:k&&l?!0:void 0,tabIndex:y&&l?-1:v,...N},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),f?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),D(t)},onKeyUp:t=>{e.onKeyUp?.(t),O(t)}})}),[ee,te]=ph(`label`,{elementType:XS,externalForwardedProps:L,ownerState:j,className:M.label});return(0,J.jsxs)(R,{as:A,...z,children:[F||I,(0,J.jsx)(ee,{...te,children:d}),P]})}),$S=`bottom`,eC=`right`,tC=`left`,nC=`auto`,rC=[`top`,$S,eC,tC],iC=`start`,aC=`clippingParents`,oC=`viewport`,sC=`popper`,cC=`reference`,lC=rC.reduce(function(e,t){return e.concat([t+`-`+iC,t+`-end`])},[]),uC=[].concat(rC,[nC]).reduce(function(e,t){return e.concat([t,t+`-`+iC,t+`-end`])},[]),dC=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function fC(e){return e?(e.nodeName||``).toLowerCase():null}function pC(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mC(e){return e instanceof pC(e).Element||e instanceof Element}function hC(e){return e instanceof pC(e).HTMLElement||e instanceof HTMLElement}function gC(e){return typeof ShadowRoot>`u`?!1:e instanceof pC(e).ShadowRoot||e instanceof ShadowRoot}function _C(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];hC(i)&&fC(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function vC(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});hC(r)&&fC(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var yC={name:`applyStyles`,enabled:!0,phase:`write`,fn:_C,effect:vC,requires:[`computeStyles`]};function bC(e){return e.split(`-`)[0]}var xC=Math.max,SC=Math.min,CC=Math.round;function wC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function TC(){return!/^((?!chrome|android).)*safari/i.test(wC())}function EC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&hC(e)&&(i=e.offsetWidth>0&&CC(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&CC(r.height)/e.offsetHeight||1);var o=(mC(e)?pC(e):window).visualViewport,s=!TC()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function DC(e){var t=EC(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function OC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kC(e){return pC(e).getComputedStyle(e)}function AC(e){return[`table`,`td`,`th`].indexOf(fC(e))>=0}function jC(e){return((mC(e)?e.ownerDocument:e.document)||window.document).documentElement}function MC(e){return fC(e)===`html`?e:e.assignedSlot||e.parentNode||(gC(e)?e.host:null)||jC(e)}function NC(e){return!hC(e)||kC(e).position===`fixed`?null:e.offsetParent}function PC(e){var t=/firefox/i.test(wC());if(/Trident/i.test(wC())&&hC(e)&&kC(e).position===`fixed`)return null;var n=MC(e);for(gC(n)&&(n=n.host);hC(n)&&[`html`,`body`].indexOf(fC(n))<0;){var r=kC(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function FC(e){for(var t=pC(e),n=NC(e);n&&AC(n)&&kC(n).position===`static`;)n=NC(n);return n&&(fC(n)===`html`||fC(n)===`body`&&kC(n).position===`static`)?t:n||PC(e)||t}function IC(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function LC(e,t,n){return xC(e,SC(t,n))}function RC(e,t,n){var r=LC(e,t,n);return r>n?n:r}function zC(){return{top:0,right:0,bottom:0,left:0}}function BC(e){return Object.assign({},zC(),e)}function VC(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var HC=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,BC(typeof e==`number`?VC(e,rC):e)};function UC(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=bC(n.placement),c=IC(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=HC(i.padding,n),d=DC(a),f=c===`y`?`top`:tC,p=c===`y`?$S:eC,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=FC(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=LC(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function WC(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||OC(t.elements.popper,r)&&(t.elements.arrow=r))}var GC={name:`arrow`,enabled:!0,phase:`main`,fn:UC,effect:WC,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function KC(e){return e.split(`-`)[1]}var qC={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function JC(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:CC(n*i)/i||0,y:CC(r*i)/i||0}}function YC(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=tC,b=`top`,x=window;if(l){var S=FC(n),C=`clientHeight`,w=`clientWidth`;if(S===pC(n)&&(S=jC(n),kC(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=$S;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=eC;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&qC),O=u===!0?JC({x:p,y:h},pC(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function XC(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:bC(t.placement),variation:KC(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,YC(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,YC(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ZC={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:XC,data:{}},QC={passive:!0};function $C(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=pC(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,QC)}),s&&c.addEventListener(`resize`,n.update,QC),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,QC)}),s&&c.removeEventListener(`resize`,n.update,QC)}}var ew={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:$C,data:{}},tw={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function nw(e){return e.replace(/left|right|bottom|top/g,function(e){return tw[e]})}var rw={start:`end`,end:`start`};function iw(e){return e.replace(/start|end/g,function(e){return rw[e]})}function aw(e){var t=pC(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ow(e){return EC(jC(e)).left+aw(e).scrollLeft}function sw(e,t){var n=pC(e),r=jC(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=TC();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+ow(e),y:c}}function cw(e){var t=jC(e),n=aw(e),r=e.ownerDocument?.body,i=xC(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=xC(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+ow(e),s=-n.scrollTop;return kC(r||t).direction===`rtl`&&(o+=xC(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function lw(e){var t=kC(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function uw(e){return[`html`,`body`,`#document`].indexOf(fC(e))>=0?e.ownerDocument.body:hC(e)&&lw(e)?e:uw(MC(e))}function dw(e,t){t===void 0&&(t=[]);var n=uw(e),r=n===e.ownerDocument?.body,i=pC(n),a=r?[i].concat(i.visualViewport||[],lw(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(dw(MC(a)))}function fw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pw(e,t){var n=EC(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function mw(e,t,n){return t===`viewport`?fw(sw(e,n)):mC(t)?pw(t,n):fw(cw(jC(e)))}function hw(e){var t=dw(MC(e)),n=[`absolute`,`fixed`].indexOf(kC(e).position)>=0&&hC(e)?FC(e):e;return mC(n)?t.filter(function(e){return mC(e)&&OC(e,n)&&fC(e)!==`body`}):[]}function gw(e,t,n,r){var i=t===`clippingParents`?hw(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=mw(e,n,r);return t.top=xC(i.top,t.top),t.right=SC(i.right,t.right),t.bottom=SC(i.bottom,t.bottom),t.left=xC(i.left,t.left),t},mw(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function _w(e){var t=e.reference,n=e.element,r=e.placement,i=r?bC(r):null,a=r?KC(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case $S:c={x:o,y:t.y+t.height};break;case eC:c={x:t.x+t.width,y:s};break;case tC:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?IC(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case iC:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function vw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?aC:s,l=n.rootBoundary,u=l===void 0?oC:l,d=n.elementContext,f=d===void 0?sC:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=BC(typeof g==`number`?VC(g,rC):g),v=f===`popper`?cC:sC,y=e.rects.popper,b=e.elements[m?v:f],x=gw(mC(b)?b:b.contextElement||jC(e.elements.popper),c,u,o),S=EC(e.elements.reference),C=_w({reference:S,element:y,strategy:`absolute`,placement:i}),w=fw(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function yw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?uC:c,u=KC(r),d=u?s?lC:lC.filter(function(e){return KC(e)===u}):rC,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=vw(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[bC(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function bw(e){if(bC(e)===`auto`)return[];var t=nw(e);return[iw(e),t,iw(t)]}function xw(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=bC(g)===g,v=c||(_||!m?[nw(g)]:bw(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(bC(n)===`auto`?yw(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=bC(E),O=KC(E)===iC,k=[`top`,$S].indexOf(D)>=0,A=k?`width`:`height`,j=vw(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?eC:tC:O?$S:`top`;b[A]>x[A]&&(M=nw(M));var N=nw(M),P=[];if(a&&P.push(j[D]<=0),s&&P.push(j[M]<=0,j[N]<=0),P.every(function(e){return e})){w=E,C=!1;break}S.set(E,P)}if(C)for(var F=m?3:1,I=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},L=F;L>0&&I(L)!==`break`;L--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Sw={name:`flip`,enabled:!0,phase:`main`,fn:xw,requiresIfExists:[`offset`],data:{_skip:!1}};function Cw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ww(e){return[`top`,eC,$S,tC].some(function(t){return e[t]>=0})}function Tw(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=vw(t,{elementContext:`reference`}),s=vw(t,{altBoundary:!0}),c=Cw(o,r),l=Cw(s,i,a),u=ww(c),d=ww(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Ew={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:Tw};function Dw(e,t,n){var r=bC(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Ow(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=uC.reduce(function(e,n){return e[n]=Dw(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var kw={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Ow};function Aw(e){var t=e.state,n=e.name;t.modifiersData[n]=_w({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var jw={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Aw,data:{}};function Mw(e){return e===`x`?`y`:`x`}function Nw(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=vw(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=bC(t.placement),v=KC(t.placement),y=!v,b=IC(_),x=Mw(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:tC,A=b===`y`?$S:eC,j=b===`y`?`height`:`width`,M=S[b],N=M+g[k],P=M-g[A],F=p?-w[j]/2:0,I=v===`start`?C[j]:w[j],L=v===`start`?-w[j]:-C[j],R=t.elements.arrow,z=p&&R?DC(R):{width:0,height:0},ee=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:zC(),te=ee[k],B=ee[A],V=LC(0,C[j],z[j]),ne=y?C[j]/2-F-V-te-E.mainAxis:I-V-te-E.mainAxis,re=y?-C[j]/2+F+V+B+E.mainAxis:L+V+B+E.mainAxis,ie=t.elements.arrow&&FC(t.elements.arrow),H=ie?b===`y`?ie.clientTop||0:ie.clientLeft||0:0,U=D?.[b]??0,W=M+ne-U-H,ae=M+re-U,oe=LC(p?SC(N,W):N,M,p?xC(P,ae):P);S[b]=oe,O[b]=oe-M}if(s){var se=b===`x`?`top`:tC,ce=b===`x`?$S:eC,G=S[x],le=x===`y`?`height`:`width`,ue=G+g[se],de=G-g[ce],fe=[`top`,tC].indexOf(_)!==-1,pe=D?.[x]??0,me=fe?ue:G-C[le]-w[le]-pe+E.altAxis,he=fe?G+C[le]+w[le]-pe-E.altAxis:de,ge=p&&fe?RC(me,G,he):LC(p?me:ue,G,p?he:de);S[x]=ge,O[x]=ge-G}t.modifiersData[r]=O}}var Pw={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Nw,requiresIfExists:[`offset`]};function Fw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Iw(e){return e===pC(e)||!hC(e)?aw(e):Fw(e)}function Lw(e){var t=e.getBoundingClientRect(),n=CC(t.width)/e.offsetWidth||1,r=CC(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Rw(e,t,n){n===void 0&&(n=!1);var r=hC(t),i=hC(t)&&Lw(t),a=jC(t),o=EC(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((fC(t)!==`body`||lw(a))&&(s=Iw(t)),hC(t)?(c=EC(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=ow(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function zw(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Bw(e){var t=zw(e);return dC.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Vw(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Hw(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Uw={placement:`bottom`,modifiers:[],strategy:`absolute`};function Ww(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Gw(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Uw:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Uw,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:mC(e)?dw(e):e.contextElement?dw(e.contextElement):[],popper:dw(t)};var s=Bw(Hw([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Ww(t,n)){i.rects={reference:Rw(t,FC(n),i.options.strategy===`fixed`),popper:DC(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Vw(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Ww(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Kw=Gw({defaultModifiers:[ew,jw,ZC,yC,kw,Sw,Pw,GC,Ew]});function qw(e){return Os(`MuiPopper`,e)}ks(`MuiPopper`,[`root`]);function Jw(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function Yw(e){return typeof e==`function`?e():e}function Xw(e){return e.nodeType!==void 0}var Zw=e=>{let{classes:t}=e;return xr({root:[`root`]},qw,t)},Qw={},$w=K.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=K.useRef(null),_=Cd(g,t),v=K.useRef(null),y=Cd(v,u),b=K.useRef(y);Gs(()=>{b.current=y},[y]),K.useImperativeHandle(u,()=>v.current,[]);let x=Jw(c,i),[S,C]=K.useState(x),w=K.useMemo(()=>Yw(n),[n]);K.useEffect(()=>{v.current&&v.current.forceUpdate()}),Gs(()=>{if(!w||!s)return;let e=e=>{C(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=Kw(w,g.current,{placement:x,...l,modifiers:t});b.current(n);let r=g.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();b.current(null)}},[w,a,o,s,l,x]);let T={placement:S};p!==null&&(T.TransitionProps=p);let E=Zw(e),D=f.root??`div`,O=vg({elementType:D,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:E.root});return(0,J.jsx)(D,{...O,children:typeof r==`function`?r(T):r})}),eT=Z(K.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=Qw,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=K.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=Yw(n);S=e&&Xw(e)?fd(e).body:fd(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,J.jsx)(H_,{disablePortal:o,container:S,children:(0,J.jsx)($w,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:C,...p},TransitionProps:w,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),tT=K.forwardRef(function(e,t){let n=xc(),{anchorEl:r,component:i,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,slots:m,slotProps:h,...g}=Wu({props:e,name:`MuiPopper`}),_={anchorEl:r,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,...g};return(0,J.jsx)(eT,{as:i,direction:n?`rtl`:`ltr`,slots:m,slotProps:h,..._,ref:t})});function nT(e){return Os(`MuiTooltip`,e)}var rT=ks(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function iT(e){return Math.round(e*1e5)/1e5}var aT=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return xr({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${_r(a.split(`-`)[0])}`],arrow:[`arrow`]},nT,t)},oT=Z(tT,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Uu(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e,open:t})=>t&&!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${rT.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${rT.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${rT.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineStart:0,marginInlineStart:`-0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${rT.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineEnd:0,marginInlineEnd:`-0.71em`,"&::before":{transformOrigin:`0 0`}}}}]}))),sT=Z(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${_r(n.placement.split(`-`)[0])}`]]}})(Uu(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${rT.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`,marginInlineEnd:`14px`},[`.${rT.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`,marginInlineStart:`14px`},[`.${rT.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${rT.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,marginBlock:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${iT(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>e.touch,style:{[`.${rT.popper}[data-popper-placement*="left"] &`]:{marginInlineEnd:`24px`},[`.${rT.popper}[data-popper-placement*="right"] &`]:{marginInlineStart:`24px`},[`.${rT.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`},[`.${rT.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),cT=Z(`span`,{name:`MuiTooltip`,slot:`Arrow`})(Uu(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),lT=!1,uT=new Qp,dT={x:0,y:0};function fT(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var pT=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,describeChild:o=!1,disableFocusListener:s=!1,disableHoverListener:c=!1,disableInteractive:l=!1,disableTouchListener:u=!1,enterDelay:d=100,enterNextDelay:f=0,enterTouchDelay:p=700,followCursor:m=!1,id:h,leaveDelay:g=0,leaveTouchDelay:_=1500,onClose:v,onOpen:y,open:b,placement:x=`bottom`,slotProps:S={},slots:C={},title:w,...T}=n,E=K.isValidElement(i)?i:(0,J.jsx)(`span`,{children:i}),D=Ru(),[O,k]=K.useState(),[A,j]=K.useState(null),M=K.useRef(!1),N=K.useRef(!1),P=l||m,F=$p(),I=$p(),L=$p(),R=$p(),[z,ee]=bd({controlled:b,default:!1,name:`Tooltip`,state:`open`}),te=z,{current:B}=K.useRef(b!==void 0),V=vd(h),ne=K.useRef(),re=Sd(()=>{ne.current!==void 0&&(document.body.style.WebkitUserSelect=ne.current,ne.current=void 0),R.clear()});K.useEffect(()=>re,[re]);let ie=e=>{uT.clear(),lT=!0,ee(!0),y&&!te&&y(e)},H=Sd(e=>{N.current=!1,uT.start(800+g,()=>{lT=!1}),ee(!1),v&&te&&v(e),F.start(D.transitions.duration.shortest,()=>{M.current=!1})}),U=e=>{M.current&&e.type!==`touchstart`||(O&&O.removeAttribute(`title`),I.clear(),L.clear(),d||lT&&f?I.start(lT?f:d,()=>{ie(e)}):ie(e))},W=e=>{if(O?.disabled&&!B){if(te&&!N.current)return;N.current=!0}else N.current=!1;U(e)},ae=e=>{(!O?.disabled||B||N.current)&&U(e)},oe=e=>{I.clear(),L.start(g,()=>{H(e)})},[,se]=K.useState(!1),ce=e=>{let t=e?.target??O;if(!t||t.disabled||!Vp(t)){se(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),oe(n)}},G=e=>{if(O||k(e.currentTarget),N.current=!1,Vp(e.target)){let t=e=>{e.target.disabled&&ce(e),e.target.removeEventListener(`blur`,t)};e.target.addEventListener(`blur`,t),se(!0),U(e)}},le=e=>{M.current=!0;let t=E.props;t.onTouchStart&&t.onTouchStart(e)},ue=e=>{le(e),L.clear(),F.clear(),re(),ne.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,R.start(p,()=>{document.body.style.WebkitUserSelect=ne.current,W(e)})},de=e=>{E.props.onTouchEnd&&E.props.onTouchEnd(e),re(),L.start(_,()=>{H(e)})};K.useEffect(()=>{if(!te)return;function e(e){e.key===`Escape`&&H(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[H,te]);let fe=wd(_g(E),k,t);!w&&w!==0&&(te=!1);let pe=K.useRef(),me=e=>{let t=E.props;t.onMouseMove&&t.onMouseMove(e),dT={x:e.clientX,y:e.clientY},pe.current&&pe.current.update()},he={},ge=typeof w==`string`;o?(he.title=!te&&ge&&!c?w:null,he[`aria-describedby`]=te?V:null):(he[`aria-label`]=ge?w:null,he[`aria-labelledby`]=te&&!ge?V:null);let _e={...he,...T,...E.props,className:q(T.className,E.props.className),onTouchStart:le,ref:fe,...m?{onMouseMove:me}:{}},ve={};u||(_e.onTouchStart=ue,_e.onTouchEnd=de),c||(_e.onMouseOver=fT(W,_e.onMouseOver),_e.onMouseLeave=fT(oe,_e.onMouseLeave),P||(ve.onMouseOver=ae,ve.onMouseLeave=oe)),s||(_e.onFocus=fT(G,_e.onFocus),_e.onBlur=fT(ce,_e.onBlur),P||(ve.onFocus=G,ve.onBlur=ce));let ye={...n,arrow:r,disableInteractive:P,placement:x,touch:M.current},be=typeof S.popper==`function`?S.popper(ye):S.popper,xe=K.useMemo(()=>{let e=[{name:`arrow`,enabled:!!A,options:{element:A,padding:4}}];return be?.popperOptions?.modifiers&&(e=e.concat(be.popperOptions.modifiers)),{...be?.popperOptions,modifiers:e}},[A,be?.popperOptions]),Se=aT(ye),Ce={slots:C,slotProps:{arrow:S.arrow,popper:be,tooltip:S.tooltip,transition:S.transition}},[we,Te]=ph(`popper`,{elementType:oT,externalForwardedProps:Ce,ownerState:ye,className:Se.popper}),[Ee,De]=ph(`transition`,{elementType:b_,externalForwardedProps:Ce,ownerState:ye}),[Oe,ke]=ph(`tooltip`,{elementType:sT,className:Se.tooltip,externalForwardedProps:Ce,ownerState:ye}),[Ae,je]=ph(`arrow`,{elementType:cT,className:Se.arrow,externalForwardedProps:Ce,ownerState:ye,ref:j});return(0,J.jsxs)(K.Fragment,{children:[K.cloneElement(E,_e),(0,J.jsx)(we,{as:tT,placement:x,anchorEl:m?{getBoundingClientRect:()=>({top:dT.y,left:dT.x,right:dT.x,bottom:dT.y,width:0,height:0})}:O,popperRef:pe,open:O?te:!1,id:V,transition:!0,...ve,...Te,popperOptions:xe,children:({TransitionProps:e})=>(0,J.jsx)(Ee,{timeout:D.transitions.duration.shorter,...e,...De,children:(0,J.jsxs)(Oe,{...ke,children:[w,r?(0,J.jsx)(Ae,{...je}):null]})})})]})}),mT=od((0,J.jsx)(`path`,{d:`M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z`}),`ContentCopy`),hT={fill:{backgroundColor:`color-mix(in srgb, currentColor 12%, transparent)`,boxShadow:`none`,px:`5px`,minWidth:18,fontWeight:600,opacity:1},outline:{backgroundColor:`transparent`,boxShadow:`inset 0 0 0 1px color-mix(in srgb, currentColor 40%, transparent)`,px:`5px`,minWidth:18,fontWeight:600,opacity:1},plain:{backgroundColor:`transparent`,boxShadow:`none`,px:0,minWidth:0,fontWeight:500,opacity:.8}},gT={...hT[le],...Object.fromEntries(Object.keys(hT).map(e=>[`html[${F.countStyle}="${e}"] &`,hT[e]]))};function _T({children:e,...t}){return(0,J.jsx)(Q,{component:`span`,...t,sx:{display:`inline-flex`,alignItems:`center`,verticalAlign:`top`,height:`1lh`,ml:.5},children:(0,J.jsx)(Q,{component:`span`,sx:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,flex:`none`,boxSizing:`border-box`,height:18,fontSize:Ue.xs,lineHeight:1,fontVariantNumeric:`tabular-nums`,whiteSpace:`nowrap`,borderRadius:`calc(${R(`radiusScale`,String(z))} * ${R(`countRadius`,String(v.kbd))} * 1px)`,color:`inherit`,...gT},children:e})})}function vT({expanded:e,kind:t=`toggle`,sx:n,...r}){let i=t===`section`?Zd:Kd,a=t===`section`?`rotate(90deg)`:`rotate(180deg)`;return(0,J.jsx)(i,{"aria-hidden":!0,"data-expanded":e,...r,sx:[{flexShrink:0,transition:$n(`transform`,`base`),transform:e?a:`none`},...Array.isArray(n)?n:[n]]})}var yT={ip:`IP address`,domain:`Domain`,url:`URL`,email:`Email address`,hash:`File hash`,file:`File`,process:`Process`,host:`Host`,user:`User`,account:`Account`,cve:`CVE`,technique:`Technique`,rule:`Rule`},bT=5;function xT(e){if(e.length<=bT)return e.join(`, `);let t=e.length-bT;return`${e.slice(0,bT).join(`, `)} and ${t} more`}function ST(e,t,n=`value`){if(t.length===0)return{field:e,overflow:0,accessibleName:`${e}, none selected`};let r=`${e}, ${t.length} selected: ${xT(t)}`;return n===`count`?{field:e,detail:String(t.length),overflow:0,accessibleName:r}:{field:e,detail:t[0],overflow:t.length-1,accessibleName:r}}var CT={critical:`Critical`,high:`High`,medium:`Medium`,low:`Low`,info:`Info`,untriaged:`Untriaged`},wT={critical:`critical`,high:`high`,medium:`medium`,low:`low`,info:`info`,untriaged:`neutral`},TT={active:`success`,success:`success`,warning:`warning`,error:`error`,info:`info`,neutral:`neutral`},ET={new:`New`,beta:`Beta`,alpha:`Alpha`,preview:`Preview`,deprecated:`Deprecated`},DT={malicious:`error`,suspicious:`warning`,benign:`success`,unknown:`neutral`},OT={height:`auto`,fontFamily:ze.mono,fontSize:`0.875em`,letterSpacing:`normal`,verticalAlign:`baseline`,"& .MuiChip-label":{px:.75,py:0,lineHeight:`inherit`}},kT={display:`inline-flex`,alignItems:`center`,gap:.5},AT={color:`text.secondary`},jT={color:`text.primary`,fontWeight:500},MT={display:`inline-flex`,alignItems:`center`,borderRadius:999,border:`1px solid`,borderColor:`var(--ds-chip-primary-text)`,color:`var(--ds-chip-primary-text)`,fontSize:`0.75rem`,fontWeight:500,lineHeight:1,px:.625,py:`3px`,flexShrink:0},NT={fontSize:We,color:`text.secondary`,flexShrink:0},PT=new Set([`purpose`,`level`,`tone`,`stage`,`label`,`field`,`onRemove`,`selected`,`onToggle`,`value`,`display`,`verdict`,`kind`,`onOpen`,`count`,`onDisclose`,`expanded`,`values`,`summary`,`panelId`]);function FT(e){let t={};for(let n of Object.keys(e))PT.has(n)||(t[n]=e[n]);return t}function IT(e){let t=FT(e);switch(e.purpose){case`severity`:return(0,J.jsx)(QS,{...t,variant:`outlined`,color:wT[e.level],label:e.label??CT[e.level]});case`status`:return(0,J.jsx)(QS,{...t,variant:`dot`,color:TT[e.tone],label:e.label});case`category`:case`metric`:return(0,J.jsx)(QS,{...t,variant:`field`,label:e.label});case`lifecycle`:return(0,J.jsx)(QS,{...t,variant:`outlined`,color:`primary`,label:e.label??ET[e.stage]});case`filter`:{let n=e.field?`${e.field}: ${e.label}`:e.label;return(0,J.jsx)(QS,{...t,variant:`field`,label:e.field?(0,J.jsxs)(Q,{component:`span`,sx:kT,children:[(0,J.jsx)(Q,{component:`span`,sx:AT,children:`${e.field}:`}),(0,J.jsx)(Q,{component:`span`,sx:jT,children:e.label})]}):(0,J.jsx)(Q,{component:`span`,sx:jT,children:e.label}),onDelete:e.onRemove,"aria-label":`${n} filter`})}case`select`:{let{selected:n,onToggle:r}=e;return(0,J.jsx)(QS,{...t,variant:n?`filled`:`subtle`,color:n?`primary`:`neutral`,label:e.count===void 0?e.label:(0,J.jsxs)(`span`,{children:[e.label,` `,(0,J.jsx)(_T,{children:e.count})]}),onClick:()=>r(!n),"aria-pressed":n})}case`entity`:{let{value:n,display:r,verdict:i,kind:a,onOpen:o}=e,{sx:s,...c}=t,l=`${yT[a]} ${n}`;return(0,J.jsx)(QS,{...c,component:`span`,size:`small`,variant:`subtle`,color:i?DT[i]:`neutral`,label:r??n,onClick:o,"aria-haspopup":o?`menu`:void 0,"aria-label":i?`${l}, ${i}`:l,sx:[OT,...Array.isArray(s)?s:[s]]})}case`overflow`:return(0,J.jsx)(QS,{...t,variant:`field`,label:`+${e.count} more`,onClick:e.onDisclose,"aria-expanded":e.expanded??!1});case`picker`:{let{field:n,values:r,expanded:i,onOpen:a,onRemove:o,summary:s,panelId:c}=e,{detail:l,overflow:u,accessibleName:d}=ST(n,r,s);return(0,J.jsx)(QS,{...t,variant:`field`,onClick:a,onDelete:o,"aria-haspopup":`dialog`,"aria-expanded":i,"aria-controls":i?c:void 0,"aria-label":d,label:(0,J.jsxs)(Q,{component:`span`,sx:kT,children:[(0,J.jsx)(Q,{component:`span`,sx:AT,children:l===void 0?n:`${n}:`}),l!==void 0&&(0,J.jsx)(Q,{component:`span`,sx:jT,children:l}),u>0&&(0,J.jsx)(Q,{component:`span`,sx:MT,children:`+${u}`}),(0,J.jsx)(vT,{expanded:i,sx:NT})]})})}default:return(e.variant||e.color)&&(e.variant,e.color),(0,J.jsx)(QS,{...e})}}var LT={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,border:`0`},RT={default:`default`,primary:`primary`,danger:`error`},zT={small:16,medium:20,large:24},BT=(0,K.forwardRef)(function({icon:e,label:t,variant:n=`default`,tooltip:r,tooltipPlacement:i,loading:a=!1,disabled:o,size:s=`medium`,...c},l){let u=(0,J.jsx)(Sb,{ref:l,"aria-label":t,"aria-busy":a||void 0,color:RT[n],size:s,disabled:o||a,...c,children:a?(0,J.jsx)(qm,{size:zT[s],color:`inherit`,thickness:5}):e});return r?(0,J.jsx)(pT,{title:r,placement:i,children:(0,J.jsx)(`span`,{style:{display:`inline-flex`},children:u})}):u}),VT=(0,K.forwardRef)(function(e,t){return(0,J.jsx)(`span`,{ref:t,...e,style:LT})});function HT(e){return Os(`MuiSkeleton`,e)}ks(`MuiSkeleton`,[`root`,`text`,`rectangular`,`rounded`,`circular`,`pulse`,`wave`,`withChildren`,`fitContent`,`heightAuto`]);var UT=e=>{let{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:o}=e;return xr({root:[`root`,n,r,i&&`withChildren`,i&&!a&&`fitContent`,i&&!o&&`heightAuto`]},HT,t)},WT=es`
167
+ 0% {
168
+ opacity: 1;
169
+ }
170
+
171
+ 50% {
172
+ opacity: 0.4;
173
+ }
174
+
175
+ 100% {
176
+ opacity: 1;
177
+ }
178
+ `,GT=es`
179
+ 0% {
180
+ transform: translateX(-100%);
181
+ }
182
+
183
+ 50% {
184
+ /* +0.5s of delay between each loop */
185
+ transform: translateX(100%);
186
+ }
187
+
188
+ 100% {
189
+ transform: translateX(100%);
190
+ }
191
+ `,KT=typeof WT==`string`?null:$o`
192
+ animation: ${WT} 2s ease-in-out 0.5s infinite;
193
+ `,qT=typeof GT==`string`?null:$o`
194
+ &::after {
195
+ animation: ${GT} 2s linear 0.5s infinite;
196
+ }
197
+ `,JT=Z(`span`,{name:`MuiSkeleton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(Uu(({theme:e})=>{let t=Ep(e.shape.borderRadius)||`px`,n=Dp(e.shape.borderRadius),r=td(e,{animation:`none`}),i=td(e,{"&::after":{animation:`none`,display:`none`}});return{display:`block`,backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode===`light`?.11:.13),height:`1.2em`,variants:[{props:{variant:`text`},style:{marginTop:0,marginBottom:0,height:`auto`,transformOrigin:`0 55%`,transform:`scale(1, 0.60)`,borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:`"\\00a0"`}}},{props:{variant:`circular`},style:{borderRadius:`50%`}},{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:`hidden`}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:`fit-content`}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:`auto`}},{props:{animation:`pulse`},style:KT||{animation:`${WT} 2s ease-in-out 0.5s infinite`}},...r?[{props:{animation:`pulse`},style:r}]:[],{props:{animation:`wave`},style:{position:`relative`,overflow:`hidden`,WebkitMaskImage:`-webkit-radial-gradient(white, black)`,"&::after":{background:`linear-gradient(
198
+ 90deg,
199
+ transparent,
200
+ ${(e.vars||e).palette.action.hover},
201
+ transparent
202
+ )`,content:`""`,position:`absolute`,transform:`translateX(-100%)`,bottom:0,left:0,right:0,top:0}}},{props:{animation:`wave`},style:qT||{"&::after":{animation:`${GT} 2s linear 0.5s infinite`}}},...i?[{props:{animation:`wave`},style:i}]:[]]}})),YT=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiSkeleton`}),{animation:r=`pulse`,className:i,component:a=`span`,height:o,style:s,variant:c=`text`,width:l,...u}=n,d={...n,animation:r,component:a,variant:c,hasChildren:!!u.children},f=UT(d);return(0,J.jsx)(JT,{as:a,ref:t,className:q(f.root,i),ownerState:d,...u,style:{width:l,height:o,...s}})}),XT={pending:`Not started`,running:`Running`,awaiting:`Needs approval`,done:`Done`,warning:`Non-blocking error`,failed:`Failed`,declined:`Declined`},ZT=es`to { transform: rotate(360deg); }`,QT=`var(--ds-text-quiet)`,$T=`var(--ds-icon-actionActive)`;function eE({status:e}){return(0,J.jsxs)(ad,{viewBox:`0 0 24 24`,sx:{fontSize:`inherit`,display:`block`},children:[(0,J.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8`,fill:`none`,strokeWidth:`1.8`,stroke:e===`awaiting`?$T:QT,opacity:e===`running`?.45:1}),e===`running`?(0,J.jsx)(Q,{component:`path`,d:`M12 4a8 8 0 0 1 8 8`,fill:`none`,stroke:$T,strokeWidth:`2.2`,strokeLinecap:`round`,sx:{transformOrigin:`12px 12px`,animation:`${ZT} 1s linear infinite`}}):null,e===`awaiting`?(0,J.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`,fill:$T}):null]})}var tE={done:rf,warning:Ad,failed:ef,declined:ef},nE={done:`var(--ds-icon-success)`,warning:`var(--ds-icon-warning)`,failed:`var(--ds-icon-failure)`,declined:QT};function rE({status:e,size:t=`md`,label:n=XT[e]}){return(0,J.jsx)(Q,{component:`span`,role:`img`,"aria-label":n,"data-status":e,sx:{display:`inline-flex`,flexShrink:0,width:or[t],height:or[t],fontSize:or[t]},children:e===`pending`||e===`running`||e===`awaiting`?(0,J.jsx)(eE,{status:e}):(()=>{let t=tE[e];return(0,J.jsx)(t,{"aria-hidden":!0,sx:{fontSize:`inherit`,color:nE[e]}})})()})}function iE({title:e,description:t,icon:n,action:r,dense:i=!1,loading:a=!1}){return(0,J.jsxs)(Q,{role:`status`,"aria-busy":a||void 0,"data-loading":a||void 0,sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,textAlign:`center`,gap:1.5,py:i?4:8,px:3,color:`text.secondary`},children:[a?(0,J.jsx)(Q,{sx:{display:`flex`,lineHeight:0},children:(0,J.jsx)(rE,{status:`running`,size:`lg`,label:`Loading`})}):n?(0,J.jsx)(Q,{sx:{fontSize:i?40:56,lineHeight:0,color:`text.disabled`},children:n}):null,(0,J.jsx)(ky,{variant:i?`subtitle1`:`h6`,color:`textPrimary`,children:e}),t?(0,J.jsx)(ky,{variant:`body1`,sx:{maxWidth:420},children:t}):null,r?(0,J.jsx)(Q,{sx:{mt:1},children:r}):null]})}var aE=od((0,J.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`RadioButtonUnchecked`),oE=od((0,J.jsx)(`path`,{d:`M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z`}),`RadioButtonChecked`),sE=Z(`span`,{name:`MuiRadioButtonIcon`,shouldForwardProp:Vu})({position:`relative`,display:`flex`}),cE=Z(aE,{name:`MuiRadioButtonIcon`})({transform:`scale(1)`}),lE=Z(oE,{name:`MuiRadioButtonIcon`})(Uu(({theme:e})=>({left:0,position:`absolute`,transform:`scale(0)`,...nd(e,`transform`,{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:`scale(1)`,...nd(e,`transform`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function uE(e){let{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return(0,J.jsxs)(sE,{className:n.root,ownerState:i,children:[(0,J.jsx)(cE,{fontSize:r,className:n.background,ownerState:i}),(0,J.jsx)(lE,{fontSize:r,className:n.dot,ownerState:i})]})}var dE=K.createContext(void 0);function fE(){return K.useContext(dE)}var pE=e=>{let{classes:t,color:n,size:r}=e,i={root:[`root`,`color${_r(n)}`,r!==`medium`&&`size${_r(r)}`]};return{...t,...xr(i,xp,t)}},mE=Z(_h,{shouldForwardProp:e=>Vu(e)||e===`classes`,name:`MuiRadio`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size!==`medium`&&t[`size${_r(n.size)}`],t[`color${_r(n.color)}`]]}})(Uu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.focusVisible&&{[`&.${Om.focusVisible} svg:first-of-type`]:{...Rl,borderRadius:99,...e.focusVisible}},[`&.${Sp.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:`default`,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Sp.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]})));function hE(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var gE=(0,J.jsx)(uE,{checked:!0}),_E=(0,J.jsx)(uE,{}),vE=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiRadio`}),{checked:r,checkedIcon:i=gE,color:a=`primary`,icon:o=_E,name:s,onChange:c,size:l=`medium`,className:u,disabled:d,disableRipple:f=!1,slots:p={},slotProps:m={},...h}=n,g=Vf(),_=d;g&&_===void 0&&(_=g.disabled),_??=!1;let v={...n,disabled:_,disableRipple:f,color:a,size:l},y=pE(v),b=fE(),x=r,S=yr(c,b&&b.onChange),C=s;b&&(x===void 0&&(x=hE(b.value,n.value)),C===void 0&&(C=b.name));let w=m.input,[T,E]=ph(`root`,{ref:t,elementType:mE,className:q(y.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:m,...h},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),S(t,...n)}}),ownerState:v,additionalProps:{type:`radio`,icon:K.cloneElement(o,{fontSize:o.props.fontSize??l}),checkedIcon:K.cloneElement(i,{fontSize:i.props.fontSize??l}),disabled:_,name:C,checked:x,disableRipple:n.disableRipple,slots:p,slotProps:{input:typeof w==`function`?w(v):w}}});return(0,J.jsx)(T,{...E,classes:y})});function yE(e){let t=K.useRef({});return K.useEffect(()=>{t.current=e}),t.current}function bE(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=yE({badgeContent:t,max:r}),o=n;n===!1&&t===0&&!i&&(o=!0);let{badgeContent:s,max:c=r}=o?a:e,l=s&&Number(s)>c?`${c}+`:s;return{badgeContent:s,invisible:o,max:c,displayValue:l}}function xE(e){return Os(`MuiBadge`,e)}var SE=ks(`MuiBadge`,[`root`,`badge`,`dot`,`standard`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`,`invisible`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`overlapRectangular`,`overlapCircular`,`anchorOriginTopLeftCircular`,`anchorOriginTopLeftRectangular`,`anchorOriginTopRightCircular`,`anchorOriginTopRightRectangular`,`anchorOriginBottomLeftCircular`,`anchorOriginBottomLeftRectangular`,`anchorOriginBottomRightCircular`,`anchorOriginBottomRightRectangular`]),CE=10,wE=4,TE=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return xr({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${_r(n.vertical)}${_r(n.horizontal)}`,`anchorOrigin${_r(n.vertical)}${_r(n.horizontal)}${_r(i)}`,`overlap${_r(i)}`,t!=="default"&&`color${_r(t)}`]},xE,o)},EE=Z(`span`,{name:`MuiBadge`,slot:`Root`})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),DE=Z(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${_r(n.anchorOrigin.vertical)}${_r(n.anchorOrigin.horizontal)}${_r(n.overlap)}`],n.color!=="default"&&t[`color${_r(n.color)}`],n.invisible&&t.invisible]}})(Uu(({theme:e})=>({display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,position:`absolute`,boxSizing:`border-box`,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:`0 6px`,height:20,borderRadius:CE,zIndex:1,"@media (forced-colors: active)":{border:`1px solid ButtonBorder`},...nd(e,`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Fm([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:`dot`},style:{borderRadius:wE,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{...nd(e,`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:{inset:`var(--Badge-inset)`,transform:`scale(1) translate(var(--Badge-translate))`,transformOrigin:`var(--Badge-origin)`,[`&.${SE.invisible}`]:{transform:`scale(0) translate(var(--Badge-translate))`}}}]})));function OE(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var kE=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiBadge`}),{anchorOrigin:r,className:i,classes:a,component:o,children:s,overlap:c=`rectangular`,color:l=`default`,invisible:u=!1,max:d=99,badgeContent:f,slots:p,slotProps:m,showZero:h=!1,variant:g=`standard`,..._}=n,{badgeContent:v,invisible:y,max:b,displayValue:x}=bE({max:d,invisible:u,badgeContent:f,showZero:h}),S=yE({anchorOrigin:OE(r),color:l,overlap:c,variant:g,badgeContent:f}),C=y||v==null&&g!==`dot`,{color:w=l,overlap:T=c,anchorOrigin:E,variant:D=g}=C?S:n,O=OE(E),k=D===`dot`?void 0:x,A={...n,badgeContent:v,invisible:C,max:b,displayValue:k,showZero:h,anchorOrigin:O,color:w,overlap:T,variant:D},j=TE(A),M={slots:p,slotProps:m},[N,P]=ph(`root`,{elementType:EE,externalForwardedProps:{...M,..._},ownerState:A,className:q(j.root,i),ref:t,additionalProps:{as:o}}),{vertical:F,horizontal:I}=O,L=T===`circular`?`14%`:`0`,R=F===`top`?L:`auto`,z=F===`bottom`?L:`auto`,ee=I===`right`?L:`auto`,te=I===`left`?L:`auto`,[B,V]=ph(`badge`,{elementType:DE,externalForwardedProps:M,ownerState:A,className:j.badge,additionalProps:{"aria-hidden":!0,style:{"--Badge-translate":`${I===`right`?`50%`:`-50%`}, ${F===`top`?`-50%`:`50%`}`,"--Badge-inset":`${R} ${ee} ${z} ${te}`,"--Badge-origin":`${I===`right`?`100%`:`0%`} ${F===`top`?`0%`:`100%`}`}}});return(0,J.jsxs)(N,{...P,children:[s,(0,J.jsx)(B,{...V,children:k})]})});function AE(){let[,e]=K.useState({});return K.useCallback(()=>{e({})},[])}function jE({array1:e,array2:t,parser:n=e=>e}){return e&&t&&e.length===t.length&&e.every((e,r)=>n(e)===n(t[r]))}function ME(e){return e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``)}function NE(e={}){let{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i=`any`,stringify:a,trim:o=!1}=e;return(e,{inputValue:s,getOptionLabel:c})=>{let l=o?s.trim():s;n&&(l=l.toLowerCase()),t&&(l=ME(l));let u=l?e.filter(e=>{let r=(a||c)(e);return n&&(r=r.toLowerCase()),t&&(r=ME(r)),i===`start`?r.startsWith(l):r.includes(l)}):e;return typeof r==`number`?u.slice(0,r):u}}var PE=NE(),FE=5,IE=e=>e.current!==null&&Hg(e.current.parentElement,document.activeElement),LE=(e,t)=>e===t,RE=[];function zE(e,t,n,r){if(t||e==null||r)return``;let i=n(e);return typeof i==`string`?i:``}function BE(e){let{unstable_isActiveElementInListbox:t=IE,unstable_classNamePrefix:n=`Mui`,autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:o=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:l=`useAutocomplete`,defaultValue:u=e.multiple?RE:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:p,disabledItemsFocusable:m=!1,disableListWrap:h=!1,filterOptions:g=PE,filterSelectedOptions:_=!1,freeSolo:v=!1,getOptionDisabled:y,getOptionKey:b,getOptionLabel:x=e=>e.label??e,groupBy:S,handleHomeEndKeys:C=!e.freeSolo,id:w,includeInputInList:T=!1,inputValue:E,isOptionEqualToValue:D=LE,multiple:O=!1,onChange:k,onClose:A,onHighlightChange:j,onInputChange:M,onOpen:N,open:P,openOnFocus:F=!1,options:I,readOnly:L=!1,renderValue:R,resetHighlightOnMouseLeave:z=!1,selectOnFocus:ee=!e.freeSolo,value:te}=e,B=kc(w),V=x;V=e=>{let t=x(e);return typeof t==`string`?t:String(t)};let ne=K.useRef(!1),re=K.useRef(!0),ie=K.useRef(null),H=K.useRef(null),U=K.useRef(!1),W=K.useRef(!1),[ae,oe]=K.useState(null),[se,ce]=K.useState(-1),G=i?0:-1,le=K.useRef(G),ue=K.useRef(null),de=K.useRef(!1),fe=K.useRef(!1),pe=K.useRef(zE(u??te,O,V)).current,[me,he]=yd({controlled:te,default:u,name:l}),[ge,_e]=yd({controlled:E,default:pe,name:l,state:`inputValue`}),[ve,ye]=K.useState(!1),be=K.useCallback((e,t,n)=>{if(!(O?me.length<t.length:t!==null)&&!s&&(n!==`reset`||!v||O||t!==null))return;let r=zE(t,O,V,R);ge!==r&&(_e(r),M&&M(e,r,n))},[V,ge,O,M,_e,s,v,me,R]),[xe,Se]=yd({controlled:P,default:!1,name:l,state:`open`}),[Ce,we]=K.useState(!0),Te=!O&&me!=null&&ge===V(me),Ee=xe&&!L,De=K.useMemo(()=>O?me:me==null?[]:[me],[O,me]),Oe=K.useMemo(()=>D!==LE||De.length===0?null:new Set(De),[D,De]),ke=K.useCallback(e=>Oe?Oe.has(e):De.some(t=>t!=null&&D(e,t)),[D,De,Oe]),Ae=Ee?g(I.filter(e=>!(_&&ke(e))),{inputValue:Te&&Ce?``:ge,getOptionLabel:V}):[],je=yE({filteredOptions:Ae,value:me,inputValue:ge});K.useEffect(()=>{let e=me!==je.value;(!ve||e)&&(!v||e&&(me!=null||je.value!==void 0))&&be(null,me,`reset`)},[me,be,ve,je.value,v]);let Me=xe&&Ae.length>0&&!L,Ne=xd(e=>{e===-1?ie.current.focus():ae.querySelector(`[data-item-index="${e}"]`).focus()});K.useEffect(()=>{O&&se>me.length-1&&(ce(-1),Ne(-1))},[me,O,se,Ne]);function Pe(e,t){if(!H.current||e<0||e>=Ae.length)return-1;let n=e;for(;;){let r=H.current.querySelector(`[data-option-index="${n}"]`),i=m?!1:!r||r.disabled||r.getAttribute(`aria-disabled`)===`true`;if(r&&r.hasAttribute(`tabindex`)&&!i)return n;if(n=t===`next`?(n+1)%Ae.length:(n-1+Ae.length)%Ae.length,n===e)return-1}}let Fe=xd(({index:e,reason:t,preserveScroll:r=!1})=>{if(ie.current==null&&H.current==null||(e===-1?ie.current.removeAttribute(`aria-activedescendant`):ie.current.setAttribute(`aria-activedescendant`,`${B}-option-${e}`),!H.current))return;let i=H.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let a=H.current;if(H.current.getAttribute(`role`)!==`listbox`&&(a=H.current.parentElement.querySelector(`[role="listbox"]`)),!a)return;if(e===-1){r||(a.scrollTop=0);return}let o=H.current.querySelector(`[data-option-index="${e}"]`);if(o&&(o.classList.add(`${n}-focused`),t===`keyboard`&&o.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&t!==`mouse`&&t!==`touch`)){let e=o,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(S?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(S?1.3:0))}}),Ie=xd(({event:e,index:t,reason:n,preserveScroll:r=!1})=>{le.current=t,ue.current=n??null,j&&[`mouse`,`keyboard`,`touch`].includes(n)&&j(e,t===-1?null:Ae[t],n),Fe({index:t,reason:n,preserveScroll:r})}),Le=xd(({index:e})=>{le.current=e,Fe({index:e,reason:ue.current})}),Re=xd(({event:e,diff:t,direction:n=`next`,reason:i,preserveScroll:a})=>{if(!Ee)return;i===`keyboard`&&(de.current=!1,fe.current=!1);let o=Pe((()=>{let e=Ae.length-1;if(t===`reset`)return G;if(t===`start`)return 0;if(t===`end`)return e;let n=le.current+t;return n<0?n===-1&&T?-1:h&&le.current!==-1||Math.abs(t)>1?0:e:n>e?n===e+1&&T?-1:h||Math.abs(t)>1?e:0:n})(),n);if(Ie({index:o,reason:i,event:e,preserveScroll:a}),r&&t!==`reset`){if(o===-1)ie.current.value=ge;else{let e=V(Ae[o]);ie.current.value=e,e.toLowerCase().indexOf(ge.toLowerCase())===0&&ge.length>0&&ie.current.setSelectionRange(ge.length,e.length)}}}),ze=!jE({array1:je.filteredOptions,array2:Ae,parser:V}),Be=()=>{if(le.current!==-1&&!jE({array1:je.filteredOptions,array2:Ae,parser:V})&&je.inputValue===ge&&(O?me.length===je.value.length&&je.value.every((e,t)=>V(me[t])===V(e)):((e,t)=>(e?V(e):``)===(t?V(t):``))(je.value,me))){let e=je.filteredOptions[le.current];if(e)return Ae.findIndex(t=>V(t)===V(e))}return-1},Ve=K.useCallback(()=>{if(!Ee)return;let e=Be();if(e!==-1){Le({index:e});return}let t=O?me[0]:me;if(Ae.length===0||t==null){let e=ze&&je.inputValue===ge&&je.filteredOptions?.length>0&&Ae.length>je.filteredOptions.length&&je.filteredOptions.every((e,t)=>V(e)===V(Ae[t]));Re({diff:`reset`,preserveScroll:e});return}if(H.current){if(t!=null){let e=Ae[le.current];if(O&&e&&me.findIndex(t=>D(e,t))!==-1&&je.filteredOptions?.length>0){Le({index:le.current});return}let n=Ae.findIndex(e=>D(e,t));n===-1?Re({diff:`reset`}):Ie({index:n});return}if(le.current>=Ae.length-1){Ie({index:Ae.length-1});return}Ie({index:le.current})}},[Ae.length,!O&&me,Re,Ie,Le,Ee,ge,O]),He=xd(e=>{gd(H,e),e&&Ve()});K.useEffect(()=>{(ze||Ee&&!f)&&Ve()},[Ve,ze,Ee,f]),K.useEffect(()=>{if(typeof window>`u`)return;let e=()=>{W.current=!0};return window.addEventListener(`blur`,e),()=>{window.removeEventListener(`blur`,e)}},[]);let Ue=e=>{xe||(Se(!0),we(!0),fe.current=!1,N&&N(e))},We=(e,t)=>{xe&&(Se(!1),de.current=!1,ue.current=null,A&&A(e,t))},Ge=(e,t,n,r)=>{if(O){if(me.length===t.length&&me.every((e,n)=>e===t[n]))return}else if(me===t)return;k&&k(e,t,n,r),he(t)},Ke=(e,t,n=`selectOption`,r=`options`)=>{let i=n,a=t;if(O){a=Array.isArray(me)?me.slice():[];let e=a.findIndex(e=>D(t,e));e===-1?a.push(t):r!==`freeSolo`&&(a.splice(e,1),i=`removeOption`)}be(e,a,i),Ge(e,a,i,{option:t}),!f&&(!e||!e.ctrlKey&&!e.metaKey)&&We(e,i),(o===!0||o===`touch`&&fe.current||o===`mouse`&&!fe.current)&&ie.current.blur()};function qe(e,t){if(e===-1)return-1;let n=e;for(;;){if(t===`next`&&n===me.length||t===`previous`&&n===-1)return-1;let e=ae.querySelector(`[data-item-index="${n}"]`);if(!e||!e.hasAttribute(`tabindex`)||e.disabled||e.getAttribute(`aria-disabled`)===`true`)n+=t===`next`?1:-1;else return n}}let Je=(e,t)=>{if(!O)return;ge===``&&We(e,`toggleInput`);let n=se;se===-1&&t===`previous`?(n=me.length-1,v&&ge!==``&&(_e(``),M&&M(e,``,`reset`))):(n+=t===`next`?1:-1,n<0&&(n=0),n===me.length&&(n=-1)),n=qe(n,t),ce(n),Ne(n)},Ye=e=>{_e(``),M&&M(e,``,`clear`),Ge(e,O?[]:null,`clear`)},Xe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(se!==-1&&![`ArrowLeft`,`ArrowRight`].includes(t.key)&&(ce(-1),Ne(-1)),t.which!==229))switch(t.key){case`Home`:Ee&&C&&(t.preventDefault(),Re({diff:`start`,direction:`next`,reason:`keyboard`,event:t}));break;case`End`:Ee&&C&&(t.preventDefault(),Re({diff:`end`,direction:`previous`,reason:`keyboard`,event:t}));break;case`PageUp`:t.preventDefault(),Re({diff:-5,direction:`previous`,reason:`keyboard`,event:t}),Ue(t);break;case`PageDown`:t.preventDefault(),Re({diff:FE,direction:`next`,reason:`keyboard`,event:t}),Ue(t);break;case`ArrowDown`:t.preventDefault(),Re({diff:1,direction:`next`,reason:`keyboard`,event:t}),Ue(t);break;case`ArrowUp`:t.preventDefault(),Re({diff:-1,direction:`previous`,reason:`keyboard`,event:t}),Ue(t);break;case`ArrowLeft`:{let e=ie.current;if(!(e&&e.selectionStart===0&&e.selectionEnd===0))return;!O&&R&&me!=null?(v&&ge!==``&&(_e(``),M&&M(t,``,`reset`)),ce(0),Ne(0)):Je(t,`previous`);break}case`ArrowRight`:!O&&R?(ce(-1),Ne(-1)):Je(t,`next`);break;case`Enter`:{let e=Ee&&le.current!==-1&&ue.current===null,n=v&&!Ce&&e,i=!v||Ce||!e,a=n&&!de.current;if(le.current!==-1&&Ee&&i&&!de.current){let e=Ae[le.current],n=y?y(e):!1;if(t.preventDefault(),n)return;Ke(t,e,`selectOption`),r&&ie.current.setSelectionRange(ie.current.value.length,ie.current.value.length)}else v&&ge!==``&&Te===!1?((O||a)&&t.preventDefault(),Ke(t,ge,`createOption`,`freeSolo`)):Ee&&de.current&&(t.preventDefault(),We(t,`escape`));break}case`Escape`:Ee?(t.preventDefault(),t.stopPropagation(),We(t,`escape`)):c&&(ge!==``||O&&me.length>0||R)&&(t.preventDefault(),t.stopPropagation(),Ye(t));break;case`Backspace`:if(U.current){U.current=!1;break}if(O&&!L&&ge===``&&me.length>0){let e=se===-1?me.length-1:se,n=me.slice();n.splice(e,1),Ge(t,n,`removeOption`,{option:me[e]}),se!==-1&&(U.current=!0,setTimeout(()=>{U.current&&=!1},0))}!O&&R&&!L&&ge===``&&Ge(t,null,`removeOption`,{option:me});break;case`Delete`:if(O&&!L&&ge===``&&me.length>0&&se!==-1){let e=se,n=me.slice();n.splice(e,1),Ge(t,n,`removeOption`,{option:me[e]})}!O&&R&&!L&&ge===``&&Ge(t,null,`removeOption`,{option:me})}},Ze=e=>{if(ye(!0),se!==-1&&(ce(-1),Ne(-1)),W.current){W.current=!1;return}F&&!ne.current&&Ue(e)},Qe=e=>{if(t(H)){ie.current.focus();return}ye(!1),re.current=!0,ne.current=!1,a&&le.current!==-1&&Ee&&ue.current!==`mouse`&&ue.current!==`touch`?Ke(e,Ae[le.current],`blur`):a&&v&&ge!==``?Ke(e,ge,`blur`,`freeSolo`):s&&be(e,me,`blur`),We(e,`blur`)},$e=e=>{let t=e.target.value,n=ge!==t;n&&(_e(t),de.current=!1,M&&M(e,t,`input`)),t===``?!d&&!O&&!R&&Ge(e,null,`clear`):Ue(e),n&&we(!1)},et=e=>{let t=Number(e.currentTarget.getAttribute(`data-option-index`));le.current===t?ue.current=`mouse`:Ie({event:e,index:t,reason:`mouse`}),fe.current||(de.current=!1)},tt=e=>{z&&le.current!==-1&&ue.current===`mouse`&&!fe.current&&Ie({event:e,index:-1,reason:`mouse`,preserveScroll:!0})},nt=e=>{de.current=!1,Ie({event:e,index:Number(e.currentTarget.getAttribute(`data-option-index`)),reason:`touch`}),fe.current=!0},rt=e=>{let t=Number(e.currentTarget.getAttribute(`data-option-index`));Ke(e,Ae[t],`selectOption`),fe.current=!1},it=e=>t=>{let n=me.slice();n.splice(e,1),Ge(t,n,`removeOption`,{option:me[e]})},at=e=>{Ge(e,null,`removeOption`,{option:me})},ot=e=>{xe?We(e,`toggleInput`):Ue(e)},st=e=>{Hg(e.currentTarget,e.target)&&(!ae||Hg(ae,e.target))&&e.target.getAttribute(`id`)!==B&&e.preventDefault()},ct=e=>{Hg(e.currentTarget,e.target)&&(!ae||Hg(ae,e.target))&&(ie.current.focus(),ee&&re.current&&ie.current.selectionEnd-ie.current.selectionStart===0&&ie.current.select(),re.current=!1)},lt=e=>{!p&&(ge===``||!xe)&&e.button===0&&ot(e)},ut=v&&ge.length>0;ut||=O?me.length>0:me!==null;let dt=Ae;return S&&(dt=Ae.reduce((e,t,n)=>{let r=S(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),p&&ve&&Qe(),{getRootProps:(e={})=>({...e,onKeyDown:Xe(e),onMouseDown:st,onClick:ct}),getInputLabelProps:()=>({id:`${B}-label`,htmlFor:B}),getInputProps:()=>({id:B,value:ge,onBlur:Qe,onFocus:Ze,onChange:$e,onMouseDown:lt,"aria-activedescendant":Ee?``:null,"aria-autocomplete":r?`both`:`list`,"aria-controls":Me?`${B}-listbox`:void 0,"aria-expanded":Me,autoComplete:`off`,ref:ie,autoCapitalize:`none`,spellCheck:`false`,role:`combobox`,disabled:p}),getClearProps:()=>({tabIndex:-1,type:`button`,onClick:e=>{ne.current=!0,Ye(e)}}),getItemProps:({index:e=0}={})=>({...O&&{key:e},"data-item-index":e,tabIndex:-1,onFocus:()=>{se!==e&&ce(e)},...!L&&{onDelete:O?it(e):at}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:`button`,onClick:ot}),getListboxProps:(e={})=>({...e,role:`listbox`,id:`${B}-listbox`,"aria-labelledby":`${B}-label`,"aria-multiselectable":O||void 0,ref:He,onMouseDown:t=>{e.onMouseDown?.(t),!t.defaultMuiPrevented&&t.preventDefault()},onScroll:t=>{e.onScroll?.(t),!t.defaultMuiPrevented&&fe.current&&(de.current=!0)},onMouseLeave:t=>{e.onMouseLeave?.(t),!t.defaultMuiPrevented&&tt(t)}}),getOptionProps:({index:e,option:t})=>{let n=ke(t),r=y?y(t):!1;return{key:b?.(t)??V(t),tabIndex:-1,role:`option`,id:`${B}-option-${e}`,onMouseMove:et,onClick:rt,onTouchStart:nt,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:B,inputValue:ge,value:me,dirty:ut,expanded:Ee&&ae,popupOpen:Ee,focused:ve||se!==-1,anchorEl:ae,setAnchorEl:oe,focusedItem:se,groupedOptions:dt}}function VE(e){return Os(`MuiListSubheader`,e)}ks(`MuiListSubheader`,[`root`,`colorPrimary`,`colorInherit`,`gutters`,`inset`,`sticky`]);var HE=e=>{let{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e;return xr({root:[`root`,n!=="default"&&`color${_r(n)}`,!r&&`gutters`,i&&`inset`,!a&&`sticky`]},VE,t)},UE=Z(`li`,{name:`MuiListSubheader`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${_r(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Uu(({theme:e})=>({boxSizing:`border-box`,lineHeight:`48px`,listStyle:`none`,color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:`primary`},style:{color:(e.vars||e).palette.primary.main}},{props:{color:`inherit`},style:{color:`inherit`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:`sticky`,top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),WE=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiListSubheader`}),{className:r,color:i=`default`,component:a=`li`,disableGutters:o=!1,disableSticky:s=!1,inset:c=!1,...l}=n,u={...n,color:i,component:a,disableGutters:o,disableSticky:s,inset:c},d=HE(u);return(0,J.jsx)(UE,{as:a,className:q(d.root,r),ref:t,ownerState:u,...l})}),GE=od((0,J.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),KE,qE,JE=e=>{let{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:o,hasPopupIcon:s,inputFocused:c,popupOpen:l,size:u}=e;return xr({root:[`root`,r&&`expanded`,i&&`focused`,a&&`fullWidth`,o&&`hasClearIcon`,s&&`hasPopupIcon`],inputRoot:[`inputRoot`],input:[`input`,c&&`inputFocused`],tag:[`tag`,`tagSize${_r(u)}`],endAdornment:[`endAdornment`],clearIndicator:[`clearIndicator`],popupIndicator:[`popupIndicator`,l&&`popupIndicatorOpen`],popper:[`popper`,n&&`popperDisablePortal`],paper:[`paper`],listbox:[`listbox`],loading:[`loading`],noOptions:[`noOptions`],status:[`status`],option:[`option`],groupLabel:[`groupLabel`],groupUl:[`groupUl`]},Af,t)},YE=Z(`div`,{name:`MuiAutocomplete`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:o,size:s}=n;return[{[`& .${jf.tag}`]:t.tag},{[`& .${jf.tag}`]:t[`tagSize${_r(s)}`]},{[`& .${jf.inputRoot}`]:t.inputRoot},{[`& .${jf.input}`]:t.input},{[`& .${jf.input}`]:o&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${jf.focused} .${jf.clearIndicator}`]:{visibility:`visible`},"@media (pointer: fine)":{[`&:hover .${jf.clearIndicator}`]:{visibility:`visible`}},[`& .${jf.tag}`]:{margin:3,maxWidth:`calc(100% - 6px)`},[`& .${jf.inputRoot}`]:{[`.${jf.hasPopupIcon}&, .${jf.hasClearIcon}&`]:{paddingRight:30},[`.${jf.hasPopupIcon}.${jf.hasClearIcon}&`]:{paddingRight:56},[`& .${jf.input}`]:{width:0,minWidth:30}},[`& .${pp.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:`4px 4px 4px 0px`}},[`& .${pp.root}.${qf.sizeSmall}`]:{[`& .${pp.input}`]:{padding:`2px 4px 3px 0`}},[`& .${bp.root}`]:{padding:9,[`.${jf.hasPopupIcon}&, .${jf.hasClearIcon}&`]:{paddingRight:39},[`.${jf.hasPopupIcon}.${jf.hasClearIcon}&`]:{paddingRight:65},[`& .${jf.input}`]:{padding:`7.5px 4px 7.5px 5px`},[`& .${jf.endAdornment}`]:{right:9}},[`& .${bp.root}.${qf.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${jf.input}`]:{padding:`2.5px 4px 2.5px 8px`}},[`& .${ap.root}`]:{paddingTop:19,paddingLeft:8,[`.${jf.hasPopupIcon}&, .${jf.hasClearIcon}&`]:{paddingRight:39},[`.${jf.hasPopupIcon}.${jf.hasClearIcon}&`]:{paddingRight:65},[`& .${ap.input}`]:{padding:`7px 4px`},[`& .${jf.endAdornment}`]:{right:9}},[`& .${ap.root}.${qf.sizeSmall}`]:{paddingBottom:1,[`& .${ap.input}`]:{padding:`2.5px 4px`}},[`& .${qf.hiddenLabel}`]:{paddingTop:8},[`& .${ap.root}.${qf.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${jf.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ap.root}.${qf.hiddenLabel}.${qf.sizeSmall}`]:{[`& .${jf.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${jf.input}`]:{flexGrow:1,textOverflow:`ellipsis`,opacity:0},variants:[{props:{fullWidth:!0},style:{width:`100%`}},{props:{size:`small`},style:{[`& .${jf.tag}`]:{margin:2,maxWidth:`calc(100% - 4px)`}}},{props:{inputFocused:!0},style:{[`& .${jf.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${jf.inputRoot}`]:{flexWrap:`wrap`}}}]}),XE=Z(`div`,{name:`MuiAutocomplete`,slot:`EndAdornment`})({position:`absolute`,right:0,top:`50%`,transform:`translate(0, -50%)`}),ZE=Z(Sb,{name:`MuiAutocomplete`,slot:`ClearIndicator`})({marginRight:-2,padding:4,visibility:`hidden`}),QE=Z(Sb,{name:`MuiAutocomplete`,slot:`PopupIndicator`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:`rotate(180deg)`}}]}),$E=Z(tT,{name:`MuiAutocomplete`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${jf.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Uu(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:`absolute`}}]}))),eD=Z(lv,{name:`MuiAutocomplete`,slot:`Paper`})(Uu(({theme:e})=>({...e.typography.body1,overflow:`auto`}))),tD=Z(`div`,{name:`MuiAutocomplete`,slot:`Loading`})(Uu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:`14px 16px`}))),nD=Z(`div`,{name:`MuiAutocomplete`,slot:`Status`})({}),rD=Z(`div`,{name:`MuiAutocomplete`,slot:`NoOptions`})(Uu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:`14px 16px`}))),iD=Z(`ul`,{name:`MuiAutocomplete`,slot:`Listbox`})(Uu(({theme:e})=>({listStyle:`none`,margin:0,padding:`8px 0`,maxHeight:`40vh`,overflow:`auto`,isolation:`isolate`,position:`relative`,[`& .${jf.option}`]:{minHeight:48,display:`flex`,overflow:`hidden`,justifyContent:`flex-start`,alignItems:`center`,cursor:`pointer`,paddingTop:6,boxSizing:`border-box`,outline:`0`,WebkitTapHighlightColor:`transparent`,paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up(`sm`)]:{minHeight:`auto`},[`&.${jf.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`&.${jf.focusVisible}`]:e.focusVisible?{...Bl(1),...e.focusVisible}:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${jf.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},...!e.focusVisible&&{[`&.${jf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}}))),aD=Z(WE,{name:`MuiAutocomplete`,slot:`GroupLabel`})(Uu(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),oD=Z(`ul`,{name:`MuiAutocomplete`,slot:`GroupUl`})({padding:0,[`& .${jf.option}`]:{paddingLeft:24}}),sD=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiAutocomplete`}),{autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:o=!1,className:s,clearIcon:c=KE||=(0,J.jsx)(GE,{fontSize:`small`}),clearOnBlur:l=!n.freeSolo,clearOnEscape:u=!1,clearText:d=`Clear`,closeText:f=`Close`,defaultValue:p=n.multiple?[]:null,disableClearable:m=!1,disableCloseOnSelect:h=!1,disabled:g=!1,disabledItemsFocusable:_=!1,disableListWrap:v=!1,disablePortal:y=!1,filterOptions:b,filterSelectedOptions:x=!1,forcePopupIcon:S=`auto`,freeSolo:C=!1,fullWidth:w=!1,getLimitTagsText:T=e=>`+${e}`,getOptionDisabled:E,getOptionKey:D,getOptionLabel:O,isOptionEqualToValue:k,groupBy:A,handleHomeEndKeys:j=!n.freeSolo,id:M,includeInputInList:N=!1,inputValue:P,limitTags:F=-1,loading:I=!1,loadingText:L=`Loading…`,multiple:R=!1,noOptionsText:z=`No options`,onChange:ee,onClose:te,onHighlightChange:B,onInputChange:V,onOpen:ne,open:re,openOnFocus:ie=!1,openText:H=`Open`,options:U,popupIcon:W=qE||=(0,J.jsx)(ty,{}),readOnly:ae=!1,renderGroup:oe,renderInput:se,renderOption:ce,renderValue:G,resetHighlightOnMouseLeave:le=!1,selectOnFocus:ue=!n.freeSolo,size:de=`medium`,slots:fe={},slotProps:pe={},value:me,...he}=n,{getRootProps:ge,getInputProps:_e,getInputLabelProps:ve,getPopupIndicatorProps:ye,getClearProps:be,getItemProps:xe,getListboxProps:Se,getOptionProps:Ce,value:we,dirty:Te,expanded:Ee,id:De,popupOpen:Oe,focused:ke,focusedItem:Ae,anchorEl:je,setAnchorEl:Me,inputValue:Ne,groupedOptions:Pe}=BE({...n,componentName:`Autocomplete`}),Fe=AE();K.useEffect(()=>{if(!Oe||!je||typeof ResizeObserver>`u`)return;let e=je.clientWidth,t=new ResizeObserver(()=>{let t=je.clientWidth;e!==t&&(e=t,Fe())});return t.observe(je),()=>{t.disconnect()}},[Oe,je,Fe]);let Ie=K.useRef([]),Le=K.useRef(!1),Re=Oe?Pe:Ie.current;Gs(()=>{Oe&&!Le.current&&(Ie.current=[]),Le.current=Oe,Oe&&Pe.length>0&&(Ie.current=Pe)},[Oe,Pe]);let ze=!m&&!g&&Te&&!ae,Be=(!C||S===!0)&&S!==!1,{onMouseDown:Ve}=_e(),He=O||(e=>e.label??e),Ue={...n,disablePortal:y,expanded:Ee,focused:ke,fullWidth:w,getOptionLabel:He,hasClearIcon:ze,hasPopupIcon:Be,inputFocused:Ae===-1,popupOpen:Oe,size:de},We=JE(Ue),Ge={slots:fe,slotProps:pe},[Ke,qe]=ph(`root`,{ref:t,className:[We.root,s],elementType:YE,externalForwardedProps:{...Ge,...he},getSlotProps:ge,ownerState:Ue}),[Je,Ye]=ph(`listbox`,{elementType:iD,externalForwardedProps:Ge,ownerState:Ue,className:We.listbox,getSlotProps:Se}),[Xe,Ze]=ph(`paper`,{elementType:lv,externalForwardedProps:Ge,ownerState:Ue,className:We.paper}),[Qe,$e]=ph(`status`,{elementType:nD,externalForwardedProps:Ge,ownerState:Ue,className:We.status,additionalProps:{role:`status`,"aria-live":`polite`,"aria-atomic":`true`}}),[et,tt]=ph(`popper`,{elementType:tT,externalForwardedProps:Ge,ownerState:Ue,className:We.popper,additionalProps:{disablePortal:y,style:{width:je?je.clientWidth:null,pointerEvents:Oe?void 0:`none`},role:`presentation`,anchorEl:je,open:Oe}}),nt=Re.length>0||I||!C||tt.keepMounted===!0,[rt,it]=ph(`clearIndicator`,{elementType:ZE,externalForwardedProps:Ge,ownerState:Ue,className:We.clearIndicator,shouldForwardComponentProp:!0,additionalProps:{...be(),"aria-label":d,title:d}}),[at,ot]=ph(`popupIndicator`,{elementType:QE,externalForwardedProps:Ge,ownerState:Ue,className:We.popupIndicator,shouldForwardComponentProp:!0,additionalProps:{...ye(),disabled:g,"aria-label":Oe?f:H,title:Oe?f:H}}),st,ct=e=>({className:We.tag,disabled:g,...xe(e)});if(R?we.length>0&&(st=G?G(we,ct,Ue):we.map((e,t)=>{let{key:n,...r}=ct({index:t});return(0,J.jsx)(QS,{label:He(e),size:de,...r,...Ge.slotProps.chip},n)})):G&&we!=null&&(st=G(we,ct,Ue)),F>-1&&Array.isArray(st)){let e=st.length-F;!ke&&e>0&&(st=st.splice(0,F),st.push((0,J.jsx)(`span`,{className:We.tag,children:T(e)},st.length)))}let lt=oe||(e=>(0,J.jsxs)(`li`,{children:[(0,J.jsx)(aD,{className:We.groupLabel,ownerState:Ue,component:`div`,children:e.group}),(0,J.jsx)(oD,{className:We.groupUl,ownerState:Ue,children:e.children})]},e.key)),ut=ce||((e,t)=>{let{key:n,...r}=e;return(0,J.jsx)(`li`,{...r,children:He(t)},n)}),dt=(e,t)=>{let n=Ce({option:e,index:t});return ut({...n,className:We.option},e,{selected:n[`aria-selected`],index:t,inputValue:Ne},Ue)};return(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(Ke,{...qe,children:se({id:De,disabled:g,fullWidth:n.fullWidth??!0,size:de===`small`?`small`:void 0,slotProps:{inputLabel:ve(),input:{ref:Me,className:We.inputRoot,startAdornment:st,onMouseDown:e=>{e.target===e.currentTarget&&Ve(e)},...(ze||Be)&&{endAdornment:(0,J.jsxs)(XE,{className:We.endAdornment,ownerState:Ue,children:[ze?(0,J.jsx)(rt,{...it,children:c}):null,Be?(0,J.jsx)(at,{...ot,children:W}):null]})}},htmlInput:{className:We.input,disabled:g,readOnly:ae,..._e()}}})}),je&&nt?(0,J.jsx)($E,{as:et,...tt,children:(0,J.jsxs)(eD,{as:Xe,...Ze,children:[(0,J.jsxs)(Qe,{...$e,children:[I&&Re.length===0?(0,J.jsx)(tD,{className:We.loading,ownerState:Ue,children:L}):null,Re.length===0&&!C&&!I?(0,J.jsx)(rD,{className:We.noOptions,ownerState:Ue,onMouseDown:e=>{e.preventDefault()},children:z}):null]}),Re.length>0?(0,J.jsx)(Je,{...Ye,children:Re.map((e,t)=>A?lt({key:e.key,group:e.group,children:e.options.map((t,n)=>dt(t,e.index+n))}):dt(e,t))}):null]})}):null]})});function cD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var lD=Ys({themeId:Lu});function uD(e,...t){let n=new URL(`https://mui.com/x/production-error`);return n.searchParams.set(`code`,e.toString()),t.forEach(e=>n.searchParams.append(`args[]`,e)),`MUI X error #${e}; visit ${n} for the full message.`}var dD=(e,t)=>e.length===t.length&&t.every(t=>e.includes(t)),fD=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{let i=n??r,a;if(e!=null)a=e;else if(i.includes(t))a=t;else if(i.length>0)a=i[0];else throw Error(uD(153));return{views:i,openTo:a}},pD=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},mD=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:a,adapter:o,timezone:s})=>{let c=pD(o,o.date(void 0,s),e);n&&o.isBefore(i,c)&&(i=c),t&&o.isAfter(r,c)&&(r=c);let l=e,u=e;for(o.isBefore(e,i)&&(l=i,u=null),o.isAfter(e,r)&&(u&&=r,l=null);l||u;){if(l&&o.isAfter(l,r)&&(l=null),u&&o.isBefore(u,i)&&(u=null),l){if(!a(l))return l;l=o.addDays(l,1)}if(u){if(!a(u))return u;u=o.addDays(u,-1)}}return null},hD=(e,t)=>e.isValid(t)?t:null,gD=(e,t,n)=>t==null||!e.isValid(t)?n:t,_D=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null||e.isEqual(t,n),vD=(e,t)=>{let n=[e.startOfYear(t)];for(;n.length<12;){let t=n[n.length-1];n.push(e.addMonths(t,1))}return n},yD=(e,t,n)=>n===`date`?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),bD=(e,t)=>{let n=e.setHours(e.date(),t===`am`?2:14);return e.format(n,`meridiem`)},xD=[`year`,`month`,`day`],SD=e=>xD.includes(e),CD=(e,{format:t,views:n},r)=>{if(t!=null)return t;let i=e.formats;return dD(n,[`year`])?i.year:dD(n,[`month`])?i.month:dD(n,[`day`])?i.dayOfMonth:dD(n,[`month`,`year`])?`${i.month} ${i.year}`:dD(n,[`day`,`month`])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},wD=(e,t)=>{let n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(t=>e.addDays(n,t))},TD=[`hours`,`minutes`,`seconds`],ED=[`hours`,`minutes`,`seconds`,`meridiem`],DD=e=>TD.includes(e),OD=e=>ED.includes(e),kD=(e,t)=>e?t.getHours(e)>=12?`pm`:`am`:null,AD=(e,t,n)=>n&&(e>=12?`pm`:`am`)!==t?t===`am`?e-12:e+12:e,jD=(e,t,n,r)=>{let i=AD(r.getHours(e),t,n);return r.setHours(e,i)},MD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),ND=(e,t)=>(n,r)=>e?t.isAfter(n,r):MD(n,t)>MD(r,t),PD=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;let i=e.formats;return dD(n,[`hours`])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:dD(n,[`minutes`])?i.minutes:dD(n,[`seconds`])?i.seconds:dD(n,[`minutes`,`seconds`])?`${i.minutes}:${i.seconds}`:dD(n,[`hours`,`minutes`,`seconds`])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},FD={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},ID=e=>Math.max(...e.map(e=>FD[e.type]??1)),LD=(e,t,n)=>{if(t===FD.year)return e.startOfYear(n);if(t===FD.month)return e.startOfMonth(n);if(t===FD.day)return e.startOfDay(n);let r=n;return t<FD.minutes&&(r=e.setMinutes(r,0)),t<FD.seconds&&(r=e.setSeconds(r,0)),t<FD.milliseconds&&(r=e.setMilliseconds(r,0)),r},RD=({props:e,adapter:t,granularity:n,timezone:r,getTodayDate:i})=>{let a=i?i():LD(t,n,yD(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=LD(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=LD(t,n,e.maxDate));let o=ND(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&o(e.minTime,a)&&(a=LD(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:pD(t,a,e.minTime))),e.maxTime!=null&&o(a,e.maxTime)&&(a=LD(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:pD(t,a,e.maxTime))),a},zD=(e,t)=>{let n=e.formatTokenMap[t];if(n==null)throw Error(uD(157,t));return typeof n==`string`?{type:n,contentType:n===`meridiem`?`letter`:`digit`,maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},BD=(e,t)=>{let n=[],r=e.date(void 0,`default`),i=e.startOfWeek(r),a=e.endOfWeek(r),o=i;for(;e.isBefore(o,a);)n.push(o),o=e.addDays(o,1);return n.map(n=>e.formatByString(n,t))},VD=(e,t,n,r)=>{switch(n){case`month`:return vD(e,e.date(void 0,t)).map(t=>e.formatByString(t,r));case`weekDay`:return BD(e,r);case`meridiem`:{let n=e.date(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map(t=>e.formatByString(t,r))}default:return[]}},HD=`s`,UD=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],WD=e=>{let t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),HD)===`0`?UD:Array.from({length:10}).map((n,r)=>e.formatByString(e.setSeconds(t,r),HD))},GD=(e,t)=>{if(t[0]===`0`)return e;let n=[],r=``;for(let i=0;i<e.length;i+=1){r+=e[i];let a=t.indexOf(r);a>-1&&(n.push(a.toString()),r=``)}return n.join(``)},KD=(e,t)=>t[0]===`0`?e:e.split(``).map(e=>t[Number(e)]).join(``),qD=(e,t)=>{let n=GD(e,t);return n!==` `&&!Number.isNaN(Number(n))},JD=(e,t)=>Number(e).toString().padStart(t,`0`),YD=(e,t,n,r,i)=>{if(i.type===`day`&&i.contentType===`digit-with-letter`){let r=e.setDate(n.longestMonth,t);return e.formatByString(r,i.format)}let a=t.toString();return i.hasLeadingZerosInInput&&(a=JD(a,i.maxLength)),KD(a,r)},XD=(e,t,n)=>{let r=e.value||e.placeholder,i=t===`non-input`?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t===`non-input`&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(GD(r,n)).toString()),[`input-rtl`,`input-ltr`].includes(t)&&e.contentType===`digit`&&!i&&r.length===1&&(r=`${r}\u200e`),t===`input-rtl`&&(r=`\u2068${r}\u2069`),r},ZD=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),QD=(e,t)=>e.formatByString(e.date(void 0,`system`),t).length===4,$D=(e,t,n,r)=>{if(t!==`digit`)return!1;let i=e.date(void 0,`default`);switch(n){case`year`:return e.lib===`dayjs`&&r===`YY`||e.formatByString(e.setYear(i,1),r).startsWith(`0`);case`month`:return e.formatByString(e.startOfYear(i),r).length>1;case`day`:return e.formatByString(e.startOfMonth(i),r).length>1;case`weekDay`:return e.formatByString(e.startOfWeek(i),r).length>1;case`hours`:return e.formatByString(e.setHours(i,1),r).length>1;case`minutes`:return e.formatByString(e.setMinutes(i,1),r).length>1;case`seconds`:return e.formatByString(e.setSeconds(i,1),r).length>1;default:throw Error(uD(158))}},eO=(e,t,n)=>{let r=t.some(e=>e.type===`day`),i=[],a=[];for(let e=0;e<t.length;e+=1){let o=t[e];r&&o.type===`weekDay`||(i.push(o.format),a.push(XD(o,`non-input`,n)))}let o=i.join(` `),s=a.join(` `);return e.parse(s,o)},tO=e=>e.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(``),nO=(e,t,n)=>{let r=e.date(void 0,n),i=e.endOfYear(r),a=e.endOfDay(r),{maxDaysInMonth:o,longestMonth:s}=vD(e,r).reduce((t,n)=>{let r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t},{maxDaysInMonth:0,longestMonth:null});return{year:({format:t})=>({minimum:0,maximum:QD(e,t)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(i)+1}),day:({currentDate:t})=>({minimum:1,maximum:e.isValid(t)?e.getDaysInMonth(t):o,longestMonth:s}),weekDay:({format:t,contentType:n})=>{if(n===`digit`){let n=BD(e,t).map(Number);return{minimum:Math.min(...n),maximum:Math.max(...n)}}return{minimum:1,maximum:7}},hours:({format:n})=>{let i=e.getHours(a),o=Number(GD(e.formatByString(e.startOfDay(r),n),t)),s=Number(GD(e.formatByString(e.endOfDay(r),n),t));return s===i?o>i?{minimum:1,maximum:o}:{minimum:0,maximum:i}:o===0?{minimum:0,maximum:s}:{minimum:1,maximum:o}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},rO=(e,t,n,r)=>{switch(t.type){case`year`:return e.setYear(r,e.getYear(n));case`month`:return e.setMonth(r,e.getMonth(n));case`weekDay`:{let r=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(r=JD(r,t.maxLength));let i=BD(e,t.format),a=i.indexOf(r),o=i.indexOf(t.value)-a;return e.addDays(n,o)}case`day`:return e.setDate(r,e.getDate(n));case`meridiem`:return jD(r,e.getHours(n)<12?`am`:`pm`,!0,e);case`hours`:return e.setHours(r,e.getHours(n));case`minutes`:return e.setMinutes(r,e.getMinutes(n));case`seconds`:return e.setSeconds(r,e.getSeconds(n));default:return r}},iO={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},aO=(e,t,n,r,i)=>[...n].sort((e,t)=>iO[e.type]-iO[t.type]).reduce((n,r)=>!i||r.modified?rO(e,r,t,n):n,r),oO=e=>{let t={};return e.forEach((n,r)=>{let i=r===0?null:r-1,a=r===e.length-1?null:r+1;t[r]={leftIndex:i,rightIndex:a}}),{neighbors:t,startIndex:0,endIndex:e.length-1}},sO=(e,t)=>{if(e==null)return null;if(e===`all`)return`all`;if(typeof e==`string`){let n=t.findIndex(t=>t.type===e);return n===-1?null:n}return e},cO=[`value`,`referenceDate`],lO={emptyValue:null,getTodayValue:yD,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=cD(e,cO);return r.adapter.isValid(t)?t:n??RD(r)},cleanValue:hD,areValuesEqual:_D,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},uO={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getHiddenInputValueFromSections:tO,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(e=>Y({},e,{value:``}))};function dO(e){return Os(`MuiPickersToolbar`,e)}var fO=ks(`MuiPickersToolbar`,[`root`,`title`,`content`]),pO=[`localeText`],mO=K.createContext(null),hO=function(e){let{localeText:t}=e,n=cD(e,pO),{adapter:r,localeText:i}=K.useContext(mO)??{adapter:void 0,localeText:void 0},{children:a,dateAdapter:o,dateFormats:s,dateLibInstance:c,adapterLocale:l,localeText:u}=Np({props:n,name:`MuiLocalizationProvider`}),d=K.useMemo(()=>Y({},u,i,t),[u,i,t]),f=K.useMemo(()=>{if(!o)return r||null;let e=new o({locale:l,formats:s,instance:c});if(!e.isMUIAdapter)throw Error(uD(143));return e},[o,l,s,c,r]),p=K.useMemo(()=>f?{minDate:f.date(`1900-01-01T00:00:00.000`),maxDate:f.date(`2099-12-31T00:00:00.000`)}:null,[f]),m=K.useMemo(()=>({adapter:f,defaultDates:p,localeText:d}),[p,f,d]);return(0,J.jsx)(mO.Provider,{value:m,children:a})},gO=K.createContext(()=>!0);function _O(){return K.useContext(gO)}var vO=K.createContext(null);function yO(){return K.useContext(vO)}var bO=K.createContext(null),xO=()=>{let e=K.useContext(bO);if(e==null)throw Error(uD(151));return e},SO=K.createContext(null),CO=K.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:`desktop`,pickerOrientation:`portrait`},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>`UI`,triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});function wO(e){let{contextValue:t,actionsContextValue:n,privateContextValue:r,fieldPrivateContextValue:i,isValidContextValue:a,localeText:o,children:s}=e;return(0,J.jsx)(bO.Provider,{value:t,children:(0,J.jsx)(SO.Provider,{value:n,children:(0,J.jsx)(CO.Provider,{value:r,children:(0,J.jsx)(vO.Provider,{value:i,children:(0,J.jsx)(gO.Provider,{value:a,children:(0,J.jsx)(hO,{localeText:o,children:s})})})})})})}var TO=()=>K.useContext(CO);function EO(){let{ownerState:e}=TO(),t=xc();return K.useMemo(()=>Y({},e,{toolbarDirection:t?`rtl`:`ltr`}),[e,t])}var DO=[`children`,`className`,`classes`,`toolbarTitle`,`hidden`,`titleId`,`classes`,`landscapeDirection`],OO=e=>xr({root:[`root`],title:[`title`],content:[`content`]},dO,e),kO=Z(`div`,{name:`MuiPickersToolbar`,slot:`Root`})(({theme:e})=>({display:`flex`,flexDirection:`column`,alignItems:`flex-start`,justifyContent:`space-between`,padding:e.spacing(2,3),variants:[{props:{pickerOrientation:`landscape`},style:{height:`auto`,maxWidth:160,padding:16,justifyContent:`flex-start`,flexWrap:`wrap`}}]})),AO=Z(`div`,{name:`MuiPickersToolbar`,slot:`Content`,shouldForwardProp:e=>Ms(e)&&e!==`landscapeDirection`})({display:`flex`,flexWrap:`wrap`,width:`100%`,flex:1,justifyContent:`space-between`,alignItems:`center`,flexDirection:`row`,variants:[{props:{pickerOrientation:`landscape`},style:{justifyContent:`flex-start`,alignItems:`flex-start`,flexDirection:`column`}},{props:{pickerOrientation:`landscape`,landscapeDirection:`row`},style:{flexDirection:`row`}}]}),jO=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickersToolbar`}),{children:r,className:i,classes:a,toolbarTitle:o,hidden:s,titleId:c,landscapeDirection:l}=n,u=cD(n,DO),d=EO(),f=OO(a);return s?null:(0,J.jsxs)(kO,Y({ref:t,className:q(f.root,i),ownerState:d},u,{children:[(0,J.jsx)(ky,{variant:`overline`,id:c,className:f.title,sx:{color:`text.secondary`},children:o}),(0,J.jsx)(AO,{className:f.content,ownerState:d,landscapeDirection:l,children:r})]}))}),MO=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Y({},e)}}}}),NO={previousMonth:`Previous month`,nextMonth:`Next month`,openPreviousView:`Open previous view`,openNextView:`Open next view`,calendarViewSwitchingButtonAriaLabel:e=>e===`year`?`year view is open, switch to calendar view`:`calendar view is open, switch to year view`,start:`Start`,end:`End`,startDate:`Start date`,startTime:`Start time`,endDate:`End date`,endTime:`End time`,cancelButtonLabel:`Cancel`,clearButtonLabel:`Clear`,okButtonLabel:`OK`,todayButtonLabel:`Today`,nextStepButtonLabel:`Next`,datePickerToolbarTitle:`Select date`,dateTimePickerToolbarTitle:`Select date & time`,timePickerToolbarTitle:`Select time`,dateRangePickerToolbarTitle:`Select date range`,timeRangePickerToolbarTitle:`Select time range`,clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:`No time selected`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:`Week number`,calendarWeekNumberHeaderText:`#`,calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:`Choose date`,openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:`Choose time`,openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:`Choose range`,fieldClearLabel:`Clear`,timeTableLabel:`pick time`,dateTableLabel:`pick date`,fieldYearPlaceholder:e=>`Y`.repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType===`letter`?`MMMM`:`MM`,fieldDayPlaceholder:()=>`DD`,fieldWeekDayPlaceholder:e=>e.contentType===`letter`?`EEEE`:`EE`,fieldHoursPlaceholder:()=>`hh`,fieldMinutesPlaceholder:()=>`mm`,fieldSecondsPlaceholder:()=>`ss`,fieldMeridiemPlaceholder:()=>`aa`,year:`Year`,month:`Month`,day:`Day`,weekDay:`Week day`,hours:`Hours`,minutes:`Minutes`,seconds:`Seconds`,meridiem:`Meridiem`,empty:`Empty`},PO=NO;MO(NO);var FO=()=>{let e=K.useContext(mO);if(e===null)throw Error(uD(149));if(e.adapter===null)throw Error(uD(150));let t=K.useMemo(()=>Y({},PO,e.localeText),[e.localeText]);return K.useMemo(()=>Y({},e,{localeText:t}),[e,t])},IO=()=>FO().adapter,LO=()=>FO().localeText,RO=[`disablePast`,`disableFuture`,`minDate`,`maxDate`,`shouldDisableDate`,`shouldDisableMonth`,`shouldDisableYear`],zO=[`disablePast`,`disableFuture`,`minTime`,`maxTime`,`shouldDisableTime`,`minutesStep`,`ampm`,`disableIgnoringDatePartForTimeValidation`],BO=[`minDateTime`,`maxDateTime`],VO=[...RO,...zO,...BO],HO=e=>VO.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),UO=[`value`,`defaultValue`,`referenceDate`,`format`,`formatDensity`,`onChange`,`timezone`,`onError`,`shouldRespectLeadingZeros`,`selectedSections`,`onSelectedSectionsChange`,`fieldRef`,`startFieldRef`,`endFieldRef`,`disabled`,`readOnly`,`dateSeparator`,`autoFocus`,`focused`],WO=(e,t)=>K.useMemo(()=>{let n=Y({},e),r={},i=e=>{n.hasOwnProperty(e)&&(r[e]=n[e],delete n[e])};return UO.forEach(i),t===`date`?RO.forEach(i):t===`time`?zO.forEach(i):t===`date-time`&&(RO.forEach(i),zO.forEach(i),BO.forEach(i)),{forwardedProps:n,internalProps:r}},[e,t]),GO=({adapter:e,format:t})=>{let n=10,r=t,i=e.expandFormat(t);for(;i!==r;)if(r=i,i=e.expandFormat(r),--n,n<0)throw Error(uD(154));return i},KO=({adapter:e,expandedFormat:t})=>{let n=[],{start:r,end:i}=e.escapedCharacters,a=RegExp(`(\\${r}[^\\${i}]*\\${i})+`,`g`),o=null;for(;o=a.exec(t);)n.push({start:o.index,end:a.lastIndex-1});return n},qO=(e,t,n,r)=>{switch(n.type){case`year`:return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,`default`),r).length,format:r});case`month`:return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case`day`:return t.fieldDayPlaceholder({format:r});case`weekDay`:return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case`hours`:return t.fieldHoursPlaceholder({format:r});case`minutes`:return t.fieldMinutesPlaceholder({format:r});case`seconds`:return t.fieldSecondsPlaceholder({format:r});case`meridiem`:return t.fieldMeridiemPlaceholder({format:r});default:return r}},JO=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:i,now:a,token:o,startSeparator:s})=>{if(o===``)throw Error(uD(155));let c=zD(e,o),l=$D(e,c.contentType,c.type,o),u=n?l:c.contentType===`digit`,d=e.isValid(t),f=d?e.formatByString(t,o):``,p=null;if(u){if(l)p=f===``?e.formatByString(a,o).length:f.length;else{if(c.maxLength==null)throw Error(uD(156,o));p=c.maxLength,d&&(f=KD(JD(GD(f,i),p),i))}}return Y({},c,{format:o,maxLength:p,value:f,placeholder:qO(e,r,c,o),hasLeadingZerosInFormat:l,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:``,modified:!1})},YO=e=>{let{adapter:t,expandedFormat:n,escapedParts:r}=e,i=t.date(void 0),a=[],o=``,s=Object.keys(t.formatTokenMap).sort((e,t)=>t.length-e.length),c=/^([a-zA-Z]+)/,l=RegExp(`^(${s.join(`|`)})*$`),u=RegExp(`^(${s.join(`|`)})`),d=e=>r.find(t=>t.start<=e&&t.end>=e),f=0;for(;f<n.length;){let t=d(f),r=t!=null,s=c.exec(n.slice(f))?.[1];if(!r&&s!=null&&l.test(s)){let t=s;for(;t.length>0;){let n=u.exec(t)[1];t=t.slice(n.length),a.push(JO(Y({},e,{now:i,token:n,startSeparator:o}))),o=``}f+=s.length}else{let e=n[f];r&&t?.start===f||t?.end===f||(a.length===0?o+=e:(a[a.length-1].endSeparator+=e,a[a.length-1].isEndFormatSeparator=!0)),f+=1}}return a.length===0&&o.length>0&&a.push({type:`empty`,contentType:`letter`,maxLength:null,format:``,value:``,placeholder:``,hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:o,endSeparator:``,modified:!1}),a},XO=({isRtl:e,formatDensity:t,sections:n})=>n.map(n=>{let r=n=>{let r=n;return e&&r!==null&&r.includes(` `)&&(r=`\u2069${r}\u2066`),t===`spacious`&&[`/`,`.`,`-`].includes(r)&&(r=` ${r} `),r};return n.startSeparator=r(n.startSeparator),n.endSeparator=r(n.endSeparator),n}),ZO=e=>{let t=GO(e);e.isRtl&&(t=t.split(` `).reverse().join(` `));let n=KO(Y({},e,{expandedFormat:t})),r=YO(Y({},e,{expandedFormat:t,escapedParts:n}));return XO(Y({},e,{sections:r}))},QO=()=>K.useContext(bO),$O=()=>{let e=K.useContext(SO);if(e==null)throw Error(uD(148));return e};function ek(e){return Os(`MuiDatePickerToolbar`,e)}ks(`MuiDatePickerToolbar`,[`root`,`title`]);var tk=[`toolbarFormat`,`toolbarPlaceholder`,`className`,`classes`],nk=e=>xr({root:[`root`],title:[`title`]},ek,e),rk=Z(jO,{name:`MuiDatePickerToolbar`,slot:`Root`})({}),ik=Z(ky,{name:`MuiDatePickerToolbar`,slot:`Title`})({variants:[{props:{pickerOrientation:`landscape`},style:{margin:`auto 16px auto auto`}}]}),ak=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiDatePickerToolbar`}),{toolbarFormat:r,toolbarPlaceholder:i=`––`,className:a,classes:o}=n,s=cD(n,tk),c=IO(),{value:l,views:u,orientation:d}=xO(),f=LO(),p=EO(),m=nk(o),h=K.useMemo(()=>{if(!c.isValid(l))return i;let e=CD(c,{format:r,views:u},!0);return c.formatByString(l,e)},[l,r,i,c,u]);return(0,J.jsx)(rk,Y({ref:t,toolbarTitle:f.datePickerToolbarTitle,className:q(m.root,a)},s,{children:(0,J.jsx)(ik,{variant:`h4`,align:d===`landscape`?`left`:`center`,ownerState:p,className:m.title,children:h})}))}),ok=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;let{shouldDisableDate:i,shouldDisableMonth:a,shouldDisableYear:o,disablePast:s,disableFuture:c,minDate:l,maxDate:u}=e,d=r.date(void 0,n);switch(!0){case!r.isValid(t):return`invalidDate`;case!!(i&&i(t)):return`shouldDisableDate`;case!!(a&&a(t)):return`shouldDisableMonth`;case!!(o&&o(t)):return`shouldDisableYear`;case!!(c&&r.isAfterDay(t,d)):return`disableFuture`;case!!(s&&r.isBeforeDay(t,d)):return`disablePast`;case!!(l&&r.isBeforeDay(t,l)):return`minDate`;case!!(u&&r.isAfterDay(t,u)):return`maxDate`;default:return null}};ok.valueManager=lO;var sk=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;let{minTime:i,maxTime:a,minutesStep:o,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:l,disableFuture:u}=r,d=e.date(void 0,n),f=ND(c,e);switch(!0){case!e.isValid(t):return`invalidDate`;case!!(i&&f(i,t)):return`minTime`;case!!(a&&f(t,a)):return`maxTime`;case!!(u&&e.isAfter(t,d)):return`disableFuture`;case!!(l&&e.isBefore(t,d)):return`disablePast`;case!!(s&&s(t,`hours`)):return`shouldDisableTime-hours`;case!!(s&&s(t,`minutes`)):return`shouldDisableTime-minutes`;case!!(s&&s(t,`seconds`)):return`shouldDisableTime-seconds`;case!!(o&&e.getMinutes(t)%o!==0):return`minutesStep`;default:return null}};sk.valueManager=lO;var ck=({adapter:e,value:t,timezone:n,props:r})=>{let i=ok({adapter:e,value:t,timezone:n,props:r});return i===null?sk({adapter:e,value:t,timezone:n,props:r}):i};ck.valueManager=lO;function lk(e){let{props:t,validator:n,value:r,timezone:i,onError:a}=e,o=IO(),s=K.useRef(n.valueManager.defaultErrorState),c=n({adapter:o,value:r,timezone:i,props:t}),l=n.valueManager.hasError(c);return K.useEffect(()=>{a&&!n.valueManager.isSameError(c,s.current)&&a(c,r),s.current=c},[n,a,c,r]),{validationError:c,hasValidationError:l,getValidationErrorForNewValue:xd(e=>n({adapter:o,value:e,timezone:i,props:t}))}}var uk=()=>FO().defaultDates,dk=e=>{let t=IO(),n=K.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function fk(){return K.useMemo(()=>({valueType:`date`,validator:ok,internal_valueManager:lO,internal_fieldValueManager:uO,internal_useApplyDefaultValuesToFieldInternalProps:mk,internal_useOpenPickerButtonAriaLabel:pk}),[])}function pk(e){let t=IO(),n=LO();return K.useMemo(()=>{let r=t.isValid(e)?t.format(e,`fullDate`):null;return n.openDatePickerDialogue(r)},[e,n,t])}function mk(e){let t=IO(),n=hk(e);return K.useMemo(()=>Y({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function hk(e){let t=IO(),n=uk();return K.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:gD(t,e.minDate,n.minDate),maxDate:gD(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function gk(e,t){let n=Np({props:e,name:t}),r=hk(n),i=K.useMemo(()=>n.localeText?.toolbarTitle==null?n.localeText:Y({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]);return Y({},n,r,{localeText:i},fD({views:n.views,openTo:n.openTo,defaultViews:[`year`,`day`],defaultOpenTo:`day`}),{slots:Y({toolbar:ak},n.slots)})}var _k=e=>e.type===`hidden`;function vk(e){let{nodeName:t}=e;return!!([`BUTTON`,`DETAILS`,`EMBED`,`IFRAME`,`KEYGEN`,`LABEL`,`SELECT`,`TEXTAREA`].includes(t)||t===`A`&&e.hasAttribute(`href`)||e instanceof HTMLInputElement&&!_k(e)||[`AUDIO`,`VIDEO`].includes(t)&&e.hasAttribute(`controls`)||[`IMG`,`OBJECT`].includes(t)&&e.hasAttribute(`usemap`)||e.hasAttribute(`tabindex`)&&e.tabIndex>-1)}function yk(e){return Os(`MuiPickerPopper`,e)}ks(`MuiPickerPopper`,[`root`,`paper`]);function bk(e,t){return Array.isArray(t)?t.every(t=>e.indexOf(t)!==-1):e.indexOf(t)!==-1}var xk=e=>{setTimeout(e,0)},Sk=(e=document)=>{let t=e.activeElement;return t?t.shadowRoot?Sk(t.shadowRoot):t:null},Ck=e=>Sk(fd(e)),wk=e=>Array.from(e.children).indexOf(Ck(e)),Tk=`@media (pointer: fine)`;function Ek(e){let t={};for(let n of Object.keys(e))(n.startsWith(`data-`)||n.startsWith(`aria-`))&&(t[n]=e[n]);return t}function Dk(...e){return e.reduce((e,t)=>(Array.isArray(t)?e.push(...t):t!=null&&e.push(t),e),[])}var Ok=[`PaperComponent`,`ownerState`,`children`,`paperSlotProps`,`paperClasses`,`onPaperClick`,`onPaperTouchStart`],kk=e=>xr({root:[`root`],paper:[`paper`]},yk,e),Ak=Z(tT,{name:`MuiPickerPopper`,slot:`Root`})(({theme:e})=>({zIndex:e.zIndex.modal})),jk=Z(lv,{name:`MuiPickerPopper`,slot:`Paper`})({outline:0,transformOrigin:`top center`,variants:[{props:({popperPlacement:e})=>new Set([`top`,`top-start`,`top-end`]).has(e),style:{transformOrigin:`bottom center`}}]});function Mk(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Nk(e,t){let n=K.useRef(!1),r=K.useRef(!1),i=K.useRef(null),a=K.useRef(!1);K.useEffect(()=>{if(!e)return;function t(){a.current=!0}return document.addEventListener(`mousedown`,t,!0),document.addEventListener(`touchstart`,t,!0),()=>{document.removeEventListener(`mousedown`,t,!0),document.removeEventListener(`touchstart`,t,!0),a.current=!1}},[e]);let o=xd(e=>{if(!a.current){r.current=!1;return}let o=r.current;r.current=!1;let s=fd(i.current);if(!i.current||`clientX`in e&&Mk(e,s))return;if(n.current){n.current=!1;return}let c;c=e.composedPath?e.composedPath().indexOf(i.current)>-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),!c&&!o&&t(e)}),s=e=>{e.defaultMuiPrevented||(r.current=!0)};return K.useEffect(()=>{if(e){let e=fd(i.current),t=()=>{n.current=!0};return e.addEventListener(`touchstart`,o),e.addEventListener(`touchmove`,t),()=>{e.removeEventListener(`touchstart`,o),e.removeEventListener(`touchmove`,t)}}},[e,o]),K.useEffect(()=>{if(e){let e=fd(i.current);return e.addEventListener(`click`,o),()=>{e.removeEventListener(`click`,o),r.current=!1}}},[e,o]),[i,s,s]}var Pk=K.forwardRef((e,t)=>{let{PaperComponent:n,ownerState:r,children:i,paperSlotProps:a,paperClasses:o,onPaperClick:s,onPaperTouchStart:c}=e,l=cD(e,Ok),u=vg({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:o,ownerState:r});return(0,J.jsx)(n,Y({},l,u,{onClick:e=>{s(e),u.onClick?.(e)},onTouchStart:e=>{c(e),u.onTouchStart?.(e)},ownerState:r,children:i}))}),Fk=e=>{let t=e instanceof HTMLElement?e:null;return t?vk(t):!1};function Ik(e){let{children:t,placement:n=`bottom-start`,slots:r,slotProps:i,classes:a}=Np({props:e,name:`MuiPickerPopper`}),{open:o,popupRef:s,reduceAnimations:c,keepOpenDuringFieldFocus:l}=xO(),{ownerState:u,rootRefObject:d}=TO(),{dismissViews:f,getCurrentViewMode:p,onPopperExited:m,triggerElement:h,viewContainerRole:g}=TO();K.useEffect(()=>{function e(e){o&&e.key===`Escape`&&f()}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[f,o]);let _=K.useRef(null);K.useEffect(()=>{g!==`tooltip`&&p()!==`field`&&(o?_.current=Ck(d.current):_.current&&_.current instanceof HTMLElement&&setTimeout(()=>{_.current instanceof HTMLElement&&_.current.focus()}))},[o,g,p,d]);let v=kk(a),[y,b,x]=Nk(o,xd(e=>{l&&h&&e&&`target`in e&&h.contains(e.target)||(g===`tooltip`?xk(()=>{d.current?.contains(Ck(d.current))||s.current?.contains(Ck(s.current))||f()}):(e.composedPath().some(Fk)&&(_.current=null),f()))})),S=Cd(Cd(K.useRef(null),s),y),C=e=>{e.key===`Escape`&&(e.stopPropagation(),f())},w=r?.desktopTransition??c?G_:b_,T=r?.desktopTrapFocus??L_,E=r?.desktopPaper??jk,D=r?.popper??Ak,O=vg({elementType:D,externalSlotProps:i?.popper,additionalProps:{transition:!0,role:g??void 0,open:o,placement:n,anchorEl:h,onKeyDown:C},className:v.root,ownerState:u}),k=K.useMemo(()=>Y({},u,{popperPlacement:O.placement}),[u,O.placement]);return(0,J.jsx)(D,Y({},O,{children:({TransitionProps:e})=>(0,J.jsx)(T,Y({open:o,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g===`tooltip`},i?.desktopTrapFocus,{children:(0,J.jsx)(w,Y({},e,i?.desktopTransition,{onExited:t=>{m?.(),i?.desktopTransition?.onExited?.(t),e?.onExited?.()},children:(0,J.jsx)(Pk,{PaperComponent:E,ownerState:k,ref:S,onPaperClick:b,onPaperTouchStart:x,paperClasses:v.paper,paperSlotProps:i?.desktopPaper,children:t})}))}))}))}var Lk=`@media (prefers-reduced-motion: reduce)`,Rk=typeof navigator<`u`&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),zk=Rk&&Rk[1]?parseInt(Rk[1],10):null,Bk=Rk&&Rk[2]?parseInt(Rk[2],10):null,Vk=zk&&zk<10||Bk&&Bk<13||!1;function Hk(e){let t=lD(Lk,{defaultMatches:!1});return e??(t||Vk)}var Uk={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function Wk(e){let{steps:t,isViewMatchingStep:n,onStepChange:r}=e;return e=>{if(t==null)return Uk;let i=t.findIndex(t=>n(e.view,t)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&r(Y({},e,{step:a}))},areViewsInSameStep:(e,r)=>t.find(t=>n(e,t))===t.find(e=>n(r,e))}}}function Gk({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:a,focusedView:o,onFocusedViewChange:s,getStepNavigation:c}){let l=K.useRef(n),u=K.useRef(i),d=K.useRef(i.includes(n)?n:i[0]),[f,p]=yd({name:`useViews`,state:`view`,controlled:r,default:d.current}),[m,h]=yd({name:`useViews`,state:`focusedView`,controlled:o,default:K.useRef(a?f:null).current}),g=c?c({setView:p,view:f,defaultView:d.current,views:i}):Uk;K.useEffect(()=>{(l.current&&l.current!==n||u.current&&u.current.some(e=>!i.includes(e)))&&(p(i.includes(n)?n:i[0]),u.current=i,l.current=n)},[n,p,f,i]);let _=i.indexOf(f),v=i[_-1]??null,y=i[_+1]??null,b=xd((e,t)=>{h(t?e:t=>e===t?null:t),s?.(e,t)}),x=xd(e=>{b(e,!0),e!==f&&(p(e),t&&t(e))}),S=xd(()=>{y&&x(y)}),C=xd((t,n,r)=>{let a=n===`finish`,o=r?i.indexOf(r)<i.length-1:!!y;e(t,a&&o?`partial`:n,r);let s=null;if(r!=null&&r!==f?s=r:a&&(s=f),s==null)return;let c=i[i.indexOf(s)+1];c!=null&&g.areViewsInSameStep(s,c)&&x(c)});return Y({},g,{view:f,setView:x,focusedView:m,setFocusedView:b,nextView:y,previousView:v,defaultView:i.includes(n)?n:i[0],goToNextView:S,setValueAndGoToNextView:C})}function Kk(){return typeof window>`u`?`portrait`:window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?`landscape`:`portrait`:window.orientation&&Math.abs(Number(window.orientation))===90?`landscape`:`portrait`}function qk(e,t){let[n,r]=K.useState(Kk);return Gs(()=>{let e=()=>{r(Kk())};return window.addEventListener(`orientationchange`,e),()=>{window.removeEventListener(`orientationchange`,e)}},[]),bk(e,[`hours`,`minutes`,`seconds`])?`portrait`:t??n}var Jk=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:i,onChange:a,valueManager:o})=>{let s=IO(),[c,l]=yd({name:e,state:`value`,controlled:n,default:r??o.emptyValue}),u=K.useMemo(()=>o.getTimezone(s,c),[s,o,c]),d=xd(e=>u==null?e:o.setTimezone(s,u,e)),f=K.useMemo(()=>t||u||(i?s.getTimezone(Array.isArray(i)?i[0]:i):`default`),[t,u,i,s]);return{value:K.useMemo(()=>o.setTimezone(s,f,c),[o,s,f,c]),handleValueChange:xd((e,...t)=>{let n=d(e);l(n),a?.(n,...t)}),timezone:f}};function Yk(e){let{props:t,valueManager:n,validator:r}=e,{value:i,defaultValue:a,onChange:o,referenceDate:s,timezone:c,onAccept:l,closeOnSelect:u,open:d,onOpen:f,onClose:p}=t,{current:m}=K.useRef(a),{current:h}=K.useRef(i!==void 0),{current:g}=K.useRef(d!==void 0),_=IO(),{timezone:v,value:y,handleValueChange:b}=Jk({name:`a picker component`,timezone:c,value:i,defaultValue:m,referenceDate:s,onChange:o,valueManager:n}),[x,S]=K.useState(()=>({open:!1,lastExternalValue:y,clockShallowValue:void 0,lastCommittedValue:y,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:C}=lk({props:t,validator:r,timezone:v,value:y,onError:t.onError}),w=xd(e=>{let t=typeof e==`function`?e(x.open):e;g||S(e=>Y({},e,{open:t})),t&&f&&f(),t||p?.()}),T=xd((e,t)=>{let{changeImportance:r=`accept`,skipPublicationIfPristine:i=!1,validationError:a,shortcut:o,source:s,shouldClose:c=r===`accept`}=t??{},u,d;!i&&!h&&!x.hasBeenModifiedSinceMount?(u=!0,d=r===`accept`):(u=!n.areValuesEqual(_,e,y),d=r===`accept`&&!n.areValuesEqual(_,e,x.lastCommittedValue)),S(t=>Y({},t,{clockShallowValue:u?void 0:t.clockShallowValue,lastCommittedValue:d?e:t.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let f=null,p=()=>{if(!f){let t;t=s||(o?`view`:`unknown`),f={validationError:a??C(e),source:t},o&&(f.shortcut=o)}return f};u&&b(e,p()),d&&l&&l(e,p()),c&&w(!1)});y!==x.lastExternalValue&&S(e=>Y({},e,{lastExternalValue:y,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));let E=xd((e,t=`partial`)=>{if(t===`shallow`){S(t=>Y({},t,{clockShallowValue:e,hasBeenModifiedSinceMount:!0}));return}T(e,{changeImportance:t===`finish`&&u?`accept`:`set`,source:`view`})});return K.useEffect(()=>{if(g){if(d===void 0)throw Error(uD(160));S(e=>Y({},e,{open:d}))}},[g,d]),{timezone:v,state:x,setValue:T,setValueFromView:E,setOpen:w,value:y,viewValue:K.useMemo(()=>n.cleanValue(_,x.clockShallowValue===void 0?y:x.clockShallowValue),[_,n,x.clockShallowValue,y])}}var Xk=[`className`,`sx`],Zk=({ref:e,props:t,valueManager:n,valueType:r,variant:i,validator:a,onPopperExited:o,autoFocusView:s,rendererInterceptor:c,localeText:l,viewContainerRole:u,getStepNavigation:d})=>{let{views:f,view:p,openTo:m,onViewChange:h,viewRenderers:g,reduceAnimations:_,orientation:v,disableOpenPicker:y,closeOnSelect:b,disabled:x,readOnly:S,formatDensity:C,selectedSections:w,onSelectedSectionsChange:T,format:E,label:D,autoFocus:O,name:k,keepOpenDuringFieldFocus:A}=t,{className:j,sx:M}=t,N=cD(t,Xk),P=kc(),F=IO(),I=Hk(_),L=qk(f,v),{current:R}=K.useRef(m??null),[z,ee]=K.useState(null),te=K.useRef(null),B=K.useRef(null),V=K.useRef(null),ne=Cd(e,V),{timezone:re,state:ie,setOpen:H,setValue:U,setValueFromView:W,value:ae,viewValue:oe}=Yk({props:t,valueManager:n,validator:a}),{view:se,setView:ce,defaultView:G,focusedView:le,setFocusedView:ue,setValueAndGoToNextView:de,goToNextStep:fe,hasNextStep:pe,hasSeveralSteps:me}=Gk({view:p,views:f,openTo:m,onChange:W,onViewChange:h,autoFocus:s,getStepNavigation:d}),he=xd(()=>{ae===null&&B.current?.clearValue&&B.current.clearValue(),U(n.emptyValue,{source:`view`})}),ge=xd(()=>U(n.getTodayValue(F,re,r),{source:`view`})),_e=xd(()=>U(ae,{source:`view`})),ve=xd(()=>U(ie.lastCommittedValue,{skipPublicationIfPristine:!0,source:`view`})),ye=xd(()=>{U(ae,{skipPublicationIfPristine:!0,source:`view`})}),{hasUIView:be,viewModeLookup:xe,timeViewsCount:Se}=K.useMemo(()=>f.reduce((e,t)=>{let n=g[t]==null?`field`:`UI`;return e.viewModeLookup[t]=n,n===`UI`&&(e.hasUIView=!0,DD(t)&&(e.timeViewsCount+=1)),e},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[g,f]),Ce=xe[se],we=xd(()=>Ce),[Te,Ee]=K.useState(Ce===`UI`?se:null);Te!==se&&xe[se]===`UI`&&Ee(se),Gs(()=>{Ce===`field`&&ie.open&&(H(!1),setTimeout(()=>{B?.current?.setSelectedSections(se),B?.current?.focusField(se)}))},[se]),Gs(()=>{if(!ie.open)return;let e=se;Ce===`field`&&Te!=null&&(e=Te),e!==G&&xe[e]===`UI`&&xe[G]===`UI`&&(e=G),e!==se&&ce(e),ue(e,!0)},[ie.open]);let De=K.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(F,ae,n.emptyValue),isPickerOpen:ie.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:L,pickerVariant:i}),[F,n,ae,ie.open,L,i,t.disabled,t.readOnly]),Oe=K.useMemo(()=>y||!be?`hidden`:x||S?`disabled`:`enabled`,[y,be,x,S]),ke=xd(fe),Ae=K.useMemo(()=>b&&!me?[]:[`cancel`,`nextOrAccept`],[b,me]),je=K.useMemo(()=>({setValue:U,setOpen:H,clearValue:he,setValueToToday:ge,acceptValueChanges:_e,cancelValueChanges:ve,setView:ce,goToNextStep:ke}),[U,H,he,ge,_e,ve,ce,ke]);return{providerProps:{localeText:l,contextValue:K.useMemo(()=>Y({},je,{value:ae,timezone:re,open:ie.open,views:f,view:Te,initialView:R,disabled:x??!1,readOnly:S??!1,autoFocus:O??!1,variant:i,orientation:L,popupRef:te,reduceAnimations:I,triggerRef:ee,triggerStatus:Oe,keepOpenDuringFieldFocus:!!A,hasNextStep:pe,fieldFormat:E??``,name:k,label:D,rootSx:M,rootRef:ne,rootClassName:j}),[je,ae,ne,i,L,I,x,S,E,j,k,D,M,Oe,A,pe,re,ie.open,Te,f,R,O]),privateContextValue:K.useMemo(()=>({dismissViews:ye,ownerState:De,hasUIView:be,getCurrentViewMode:we,rootRefObject:V,labelId:P,triggerElement:z,viewContainerRole:u,defaultActionBarActions:Ae,onPopperExited:o}),[ye,De,be,we,P,z,u,Ae,o]),actionsContextValue:je,fieldPrivateContextValue:K.useMemo(()=>({formatDensity:C,selectedSections:w,onSelectedSectionsChange:T,internalFieldRef:B}),[C,w,T,B]),isValidContextValue:e=>{let r=a({adapter:F,value:e,timezone:re,props:t});return!n.hasError(r)}},renderCurrentView:()=>{if(Te==null)return null;let e=g[Te];if(e==null)return null;let t=Y({},N,{views:f,timezone:re,value:oe,onChange:de,view:Te,onViewChange:ce,showViewSwitcher:Se>1,timeViewsCount:Se},u===`tooltip`?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:le,onFocusedViewChange:ue});return c?(0,J.jsx)(c,{viewRenderers:g,popperView:Te,rendererProps:t}):e(t)},ownerState:De}};function Qk(e){return Os(`MuiPickersLayout`,e)}var $k=ks(`MuiPickersLayout`,[`root`,`landscape`,`contentWrapper`,`toolbar`,`actionBar`,`tabs`,`shortcuts`]),eA=[`actions`],tA=Z(Sx,{name:`MuiPickersLayout`,slot:`ActionBar`})({});function nA(e){let{actions:t}=e,n=cD(e,eA),r=LO(),{clearValue:i,setValueToToday:a,acceptValueChanges:o,cancelValueChanges:s,goToNextStep:c,hasNextStep:l}=xO();if(t==null||t.length===0)return null;let u=t?.map(e=>{switch(e){case`clear`:return(0,J.jsx)(ah,{onClick:i,children:r.clearButtonLabel},e);case`cancel`:return(0,J.jsx)(ah,{onClick:s,children:r.cancelButtonLabel},e);case`accept`:return(0,J.jsx)(ah,{onClick:o,children:r.okButtonLabel},e);case`today`:return(0,J.jsx)(ah,{onClick:a,children:r.todayButtonLabel},e);case`next`:return(0,J.jsx)(ah,{onClick:c,children:r.nextStepButtonLabel},e);case`nextOrAccept`:return l?(0,J.jsx)(ah,{onClick:c,children:r.nextStepButtonLabel},e):(0,J.jsx)(ah,{onClick:o,children:r.okButtonLabel},e);default:return null}});return(0,J.jsx)(tA,Y({},n,{children:u}))}var rA=K.memo(nA);function iA(e){return Os(`MuiListItem`,e)}ks(`MuiListItem`,[`root`,`dense`,`alignItemsFlexStart`,`divider`,`gutters`,`padding`,`secondaryAction`]);function aA(e){return Os(`MuiListItemSecondaryAction`,e)}ks(`MuiListItemSecondaryAction`,[`root`,`disableGutters`]);var oA=e=>{let{disableGutters:t,classes:n}=e;return xr({root:[`root`,t&&`disableGutters`]},aA,n)},sA=Z(`div`,{name:`MuiListItemSecondaryAction`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:`absolute`,right:16,top:`50%`,transform:`translateY(-50%)`,variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),cA=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiListItemSecondaryAction`}),{className:r,component:i,...a}=n,o=K.useContext(qg),s={...n,disableGutters:o.disableGutters},c=oA(s);return(0,J.jsx)(sA,{as:i,className:q(c.root,r),ownerState:s,ref:t,...a})});cA.muiName=`ListItemSecondaryAction`;var lA=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding]},uA=e=>{let{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:o}=e;return xr({root:[`root`,r&&`dense`,!i&&`gutters`,!a&&`padding`,o&&`divider`,t===`flex-start`&&`alignItemsFlexStart`],secondaryAction:[`secondaryAction`]},iA,n)},dA=Z(`div`,{name:`MuiListItem`,slot:`Root`,overridesResolver:lA})(Uu(({theme:e})=>({display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,width:`100%`,boxSizing:`border-box`,textAlign:`left`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${mp.root}`]:{paddingRight:48}}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>e.button,style:{...nd(e,`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),fA=Z(cA,{name:`MuiListItem`,slot:`secondaryAction`})({}),pA=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiListItem`}),{alignItems:r=`center`,children:i,className:a,component:o=`li`,dense:s=!1,disableGutters:c=!1,disablePadding:l=!1,divider:u=!1,secondaryAction:d,slotProps:f={},slots:p={},...m}=n,h=K.useContext(qg),g=K.useMemo(()=>({dense:s||h.dense||!1,alignItems:r,disableGutters:c}),[r,h.dense,s,c]),_={...n,alignItems:r,dense:g.dense,disableGutters:c,disablePadding:l,divider:u,secondaryAction:d},v=uA(_),y={slots:p,slotProps:f},[b,x]=ph(`root`,{ref:t,elementType:dA,externalForwardedProps:{component:o,...y,...m},ownerState:_,className:q(v.root,a)}),[S,C]=ph(`secondaryAction`,{elementType:fA,shouldForwardComponentProp:!0,externalForwardedProps:y,ownerState:_,className:v.secondaryAction});return(0,J.jsx)(qg.Provider,{value:g,children:(0,J.jsxs)(b,{...x,children:[i,d&&(0,J.jsx)(S,{...C,children:d})]})})}),mA=[`items`,`changeImportance`],hA=[`getValue`],gA=Z(Zg,{name:`MuiPickersLayout`,slot:`Shortcuts`})({});function _A(e){let{items:t,changeImportance:n=`accept`}=e,r=cD(e,mA),{setValue:i}=$O(),a=_O();if(t==null||t.length===0)return null;let o=t.map(e=>{let{getValue:t}=e,r=cD(e,hA),o=t({isValid:a});return Y({},r,{label:r.label,onClick:()=>{i(o,{changeImportance:n,shortcut:r,source:`view`})},disabled:!a(o)})});return(0,J.jsx)(gA,Y({dense:!0,sx:[{maxHeight:336,maxWidth:200,overflow:`auto`},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:o.map(e=>(0,J.jsx)(pA,{children:(0,J.jsx)(QS,Y({},e))},e.id??e.label))}))}var vA=[`ownerState`];function yA(e){return e.view!==null}var bA=(e,t)=>{let{pickerOrientation:n}=t;return xr({root:[`root`,n===`landscape`&&`landscape`],contentWrapper:[`contentWrapper`],toolbar:[`toolbar`],actionBar:[`actionBar`],tabs:[`tabs`],landscape:[`landscape`],shortcuts:[`shortcuts`]},Qk,e)},xA=e=>{let{ownerState:t,defaultActionBarActions:n}=TO(),{view:r}=xO(),i=xc(),{children:a,slots:o,slotProps:s,classes:c}=e,l=K.useMemo(()=>Y({},t,{layoutDirection:i?`rtl`:`ltr`,hasShortcuts:!1}),[t,i]),u=bA(c,l),d=o?.actionBar??rA,f=cD(vg({elementType:d,externalSlotProps:s?.actionBar,additionalProps:{actions:n},className:u.actionBar,ownerState:l}),vA),p=(0,J.jsx)(d,Y({},f)),m=o?.toolbar,h=vg({elementType:m,externalSlotProps:s?.toolbar,className:u.toolbar,ownerState:l}),g=yA(h)&&m?(0,J.jsx)(m,Y({},h)):null,_=a,v=o?.tabs,y=r&&v?(0,J.jsx)(v,Y({className:u.tabs},s?.tabs)):null,b=o?.shortcuts??_A,x=vg({elementType:b,externalSlotProps:s?.shortcuts,className:u.shortcuts,ownerState:l}),S=Array.isArray(x?.items)&&x.items.length>0;return{toolbar:g,content:_,tabs:y,actionBar:p,shortcuts:r&&b?(0,J.jsx)(b,Y({},x)):null,ownerState:Y({},l,{hasShortcuts:S})}},SA=[`sx`,`className`,`classes`,`children`,`slots`,`slotProps`],CA=(e,t)=>{let{pickerOrientation:n}=t;return xr({root:[`root`,n===`landscape`&&`landscape`],contentWrapper:[`contentWrapper`]},Qk,e)},wA=Z(`div`,{name:`MuiPickersLayout`,slot:`Root`})({display:`grid`,gridAutoColumns:`max-content auto max-content`,gridAutoRows:`max-content auto max-content`,[`& .${$k.actionBar}`]:{gridColumn:`1 / 4`,gridRow:3},variants:[{props:{pickerOrientation:`landscape`,hasShortcuts:!1},style:{[`& .${$k.toolbar}`]:{gridColumn:1,gridRow:`1 / 3`}}},{props:{pickerOrientation:`landscape`,hasShortcuts:!0},style:{[`& .${$k.toolbar}`]:{gridColumn:`2 / 4`,gridRow:1,maxWidth:`max-content`},[`& .${$k.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:`portrait`},style:{[`& .${$k.toolbar}`]:{gridColumn:`2 / 4`,gridRow:1},[`& .${$k.shortcuts}`]:{gridColumn:1,gridRow:`2 / 3`}}},{props:{hasShortcuts:!0,layoutDirection:`rtl`},style:{[`& .${$k.shortcuts}`]:{gridColumn:4}}}]}),TA=Z(`div`,{name:`MuiPickersLayout`,slot:`ContentWrapper`})({gridColumn:`2 / 4`,gridRow:2,display:`flex`,flexDirection:`column`}),EA=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickersLayout`}),{toolbar:r,content:i,tabs:a,actionBar:o,shortcuts:s,ownerState:c}=xA(n),{orientation:l,variant:u}=xO(),{sx:d,className:f,classes:p}=n,m=cD(n,SA),h=CA(p,c);return(0,J.jsxs)(wA,Y({ref:t,sx:d,className:q(h.root,f),ownerState:c},m,{children:[l===`landscape`?s:r,l===`landscape`?r:s,(0,J.jsx)(TA,{className:h.contentWrapper,ownerState:c,children:u===`desktop`?(0,J.jsxs)(K.Fragment,{children:[i,a]}):(0,J.jsxs)(K.Fragment,{children:[a,i]})}),o]}))});function DA(e){let{steps:t}=e;return Wk({steps:t,isViewMatchingStep:(e,t)=>t.views==null||t.views.includes(e),onStepChange:({step:e,defaultView:t,setView:n,view:r,views:i})=>{let a=e.views==null?t:e.views.find(e=>i.includes(e));a!==r&&n(a)}})}var OA=[`props`,`steps`],kA=[`ownerState`],AA=e=>{let{props:t,steps:n}=e,r=cD(e,OA),{slots:i,slotProps:a,label:o,inputRef:s,localeText:c}=t,l=DA({steps:n}),{providerProps:u,renderCurrentView:d,ownerState:f}=Zk(Y({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:`dialog`,variant:`desktop`,getStepNavigation:l})),p=u.privateContextValue.labelId,m=a?.toolbar?.hidden??!1,h=i.field,g=cD(vg({elementType:h,externalSlotProps:a?.field,externalForwardedProps:Ek(t),additionalProps:Y({},m&&{id:p}),ownerState:f}),kA),_=i.layout??EA,v=p;m&&(v=o?`${p}-label`:void 0);let y=Y({},a,{toolbar:Y({},a?.toolbar,{titleId:p}),popper:Y({"aria-labelledby":v},a?.popper)});return{renderPicker:()=>(0,J.jsxs)(wO,Y({},u,{children:[(0,J.jsx)(h,Y({},g,{slots:Y({},i,g.slots),slotProps:Y({},y,g.slotProps),inputRef:s})),(0,J.jsx)(Ik,{slots:i,slotProps:y,children:(0,J.jsx)(_,Y({},y?.layout,{slots:i,slotProps:y,children:d()}))})]}))}},jA=e=>e.saveQuery!=null,MA=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:r,setCharacterQuery:i,setTempAndroidValueStr:a,updateSectionValue:o}})=>{let s=IO(),c=({keyPressed:e,sectionIndex:t},r,a)=>{let o=e.toLowerCase(),s=n.sections[t];if(n.characterQuery!=null&&(!a||a(n.characterQuery.value))&&n.characterQuery.sectionIndex===t){let e=`${n.characterQuery.value}${o}`,a=r(e,s);if(!jA(a))return i({sectionIndex:t,value:e,sectionType:s.type}),a}let c=r(o,s);return jA(c)&&!c.saveQuery?(i(null),null):(i({sectionIndex:t,value:o,sectionType:s.type}),jA(c)?null:c)},l=e=>{let t=(e,t,n)=>{let r=t.filter(e=>e.toLowerCase().startsWith(n));return r.length===0?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:r.length===1}},n=(e,n,i,a)=>{let o=e=>VD(s,r,n.type,e);if(n.contentType===`letter`)return t(n.format,o(n.format),e);if(i&&a!=null&&zD(s,i).contentType===`letter`){let n=o(i),r=t(i,n,e);return jA(r)?{saveQuery:!1}:Y({},r,{sectionValue:a(r.sectionValue,n)})}return{saveQuery:!1}};return c(e,(e,t)=>{switch(t.type){case`month`:return n(e,t,s.formats.month,e=>ZD(s,e,s.formats.month,t.format));case`weekDay`:return n(e,t,s.formats.weekday,(e,t)=>t.indexOf(e).toString());case`meridiem`:return n(e,t);default:return{saveQuery:!1}}})},u=n=>{let r=({queryValue:n,skipIfBelowMinimum:r,section:i})=>{let a=GD(n,e),o=Number(a),c=t[i.type]({currentDate:null,format:i.format,contentType:i.contentType});if(o>c.maximum)return{saveQuery:!1};if(r&&o<c.minimum)return{saveQuery:!0};let l=o*10>c.maximum||a.length===c.maximum.toString().length;return{sectionValue:YD(s,o,c,e,i),shouldGoToNextSection:l}};return c(n,(e,t)=>{if(t.contentType===`digit`||t.contentType===`digit-with-letter`)return r({queryValue:e,skipIfBelowMinimum:!1,section:t});if(t.type===`month`){let n=$D(s,`digit`,`month`,`MM`),i=r({queryValue:e,skipIfBelowMinimum:!0,section:{type:t.type,format:`MM`,hasLeadingZerosInFormat:n,hasLeadingZerosInInput:!0,contentType:`digit`,maxLength:2}});if(jA(i))return i;let a=ZD(s,i.sectionValue,`MM`,t.format);return Y({},i,{sectionValue:a})}if(t.type===`weekDay`){let n=r({queryValue:e,skipIfBelowMinimum:!0,section:t});if(jA(n))return n;let i=BD(s,t.format)[Number(n.sectionValue)-1];return Y({},n,{sectionValue:i})}return{saveQuery:!1}},t=>qD(t,e))};return xd(t=>{let r=n.sections[t.sectionIndex],i=qD(t.keyPressed,e)?u(Y({},t,{keyPressed:KD(t.keyPressed,e)})):l(t);if(i==null){a(null);return}o({section:r,newSectionValue:i.sectionValue,shouldGoToNextSection:i.shouldGoToNextSection})})},NA=5e3,PA=e=>{let t=IO(),n=LO(),r=xc(),{manager:{validator:i,valueType:a,internal_valueManager:o,internal_fieldValueManager:s},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:l,defaultValue:u,referenceDate:d,onChange:f,format:p,formatDensity:m=`dense`,selectedSections:h,onSelectedSectionsChange:g,shouldRespectLeadingZeros:_=!1,timezone:v},forwardedProps:{error:y}}=e,{value:b,handleValueChange:x,timezone:S}=Jk({name:`a field component`,timezone:v,value:l,defaultValue:u,referenceDate:d,onChange:f,valueManager:o}),C=K.useRef(b);K.useEffect(()=>{C.current=b},[b]);let{hasValidationError:w}=lk({props:c,validator:i,timezone:S,value:b,onError:c.onError}),T=K.useMemo(()=>WD(t),[t]),E=K.useMemo(()=>nO(t,T,S),[t,T,S]),D=K.useCallback(e=>s.getSectionsFromValue(e,e=>ZO({adapter:t,localeText:n,localizedDigits:T,format:p,date:e,formatDensity:m,shouldRespectLeadingZeros:_,isRtl:r})),[s,p,n,T,r,_,t,m]),[O,k]=K.useState(()=>{let e=D(b),n={sections:e,lastExternalValue:b,lastSectionsDependencies:{format:p,isRtl:r,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},i=ID(e),a=o.getInitialReferenceValue({referenceDate:d,value:b,adapter:t,props:c,granularity:i,timezone:S});return Y({},n,{referenceValue:a})}),[A,j]=yd({controlled:h,default:null,name:`useField`,state:`selectedSections`}),M=e=>{j(e),g?.(e)},N=K.useMemo(()=>sO(A,O.sections),[A,O.sections]),P=N===`all`?0:N,F=K.useMemo(()=>oO(O.sections),[O.sections]),I=K.useMemo(()=>O.sections.every(e=>e.value===``),[O.sections]),L=K.useMemo(()=>{if(P!=null)return!1;let e=O.sections.filter(e=>e.value!==``);return e.length>0&&O.sections.length-e.length>0},[O.sections,P]),R=K.useMemo(()=>y===void 0?w||L:y,[w,L,y]),z=e=>{let n={validationError:i({adapter:t,value:e,timezone:S,props:c})};x(e,n)},ee=(e,t)=>{let n=[...O.sections];return n[e]=Y({},n[e],{value:t,modified:!0}),n},te=K.useRef(null),B=$p(),V=e=>{P!=null&&(te.current={sectionIndex:P,value:e},B.start(0,()=>{te.current=null}))},ne=()=>{o.areValuesEqual(t,b,o.emptyValue)?k(e=>Y({},e,{sections:e.sections.map(e=>Y({},e,{value:``})),tempValueStrAndroid:null,characterQuery:null})):(k(e=>Y({},e,{characterQuery:null})),z(o.emptyValue))},re=()=>{if(P==null)return;let e=O.sections[P];e.value!==``&&(V(``),s.getDateFromSection(b,e)===null?k(e=>Y({},e,{sections:ee(P,``),tempValueStrAndroid:null,characterQuery:null})):(k(e=>Y({},e,{characterQuery:null})),z(s.updateDateInValue(b,e,null))))},ie=e=>{let i=s.parseValueStr(e,O.referenceValue,(e,i)=>{let a=t.parse(e,p);if(!t.isValid(a))return null;let o=ZO({adapter:t,localeText:n,localizedDigits:T,format:p,date:a,formatDensity:m,shouldRespectLeadingZeros:_,isRtl:r});return aO(t,a,o,i,!1)});z(i)},H=$p(),U=({section:e,newSectionValue:n,shouldGoToNextSection:r})=>{B.clear(),H.clear();let i=s.getDateFromSection(b,e);r&&P<O.sections.length-1&&M(P+1);let a=ee(P,n),o=s.getDateSectionsFromValue(a,e),c=eO(t,o,T);if(t.isValid(c)){let n=aO(t,c,o,s.getDateFromSection(O.referenceValue,e),!0);return i??H.start(0,()=>{C.current===b&&k(t=>Y({},t,{sections:s.clearDateSections(O.sections,e),tempValueStrAndroid:null}))}),z(s.updateDateInValue(b,e,n))}return o.every(e=>e.value!==``)&&(i==null||t.isValid(i))?(V(n),z(s.updateDateInValue(b,e,c))):(i!=null&&(V(n),z(s.updateDateInValue(b,e,c))),k(e=>Y({},e,{sections:a,tempValueStrAndroid:null})))},W=e=>k(t=>Y({},t,{tempValueStrAndroid:e})),ae=xd(e=>{k(t=>Y({},t,{characterQuery:e}))});if(b!==O.lastExternalValue){let e=te.current!=null&&!t.isValid(s.getDateFromSection(b,O.sections[te.current.sectionIndex])),n;n=e?ee(te.current.sectionIndex,te.current.value):D(b),k(i=>Y({},i,{lastExternalValue:b,sections:n,sectionsDependencies:{format:p,isRtl:r,locale:t.locale},referenceValue:e?i.referenceValue:s.updateReferenceValue(t,b,i.referenceValue),tempValueStrAndroid:null}))}if(r!==O.lastSectionsDependencies.isRtl||p!==O.lastSectionsDependencies.format||t.locale!==O.lastSectionsDependencies.locale){let e=D(b);k(n=>Y({},n,{lastSectionsDependencies:{format:p,isRtl:r,locale:t.locale},sections:e,tempValueStrAndroid:null,characterQuery:null}))}O.characterQuery!=null&&!R&&P==null&&ae(null),O.characterQuery!=null&&O.sections[O.characterQuery.sectionIndex]?.type!==O.characterQuery.sectionType&&ae(null),K.useEffect(()=>{te.current!=null&&(te.current=null)});let oe=$p();return K.useEffect(()=>(O.characterQuery!=null&&oe.start(NA,()=>ae(null)),()=>{}),[O.characterQuery,ae,oe]),K.useEffect(()=>{O.tempValueStrAndroid!=null&&P!=null&&re()},[O.sections]),{activeSectionIndex:P,areAllSectionsEmpty:I,error:R,localizedDigits:T,parsedSelectedSections:N,sectionOrder:F,sectionsValueBoundaries:E,state:O,timezone:S,value:b,clearValue:ne,clearActiveSection:re,setCharacterQuery:ae,setSelectedSections:M,setTempAndroidValueStr:W,updateSectionValue:U,updateValueFromValueStr:ie,getSectionsFromValue:D}};function FA(e){let{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:r}=e,i=QO(),a=yO(),o=Cd(n.fieldRef,r?null:a?.internalFieldRef,r?null:a?.fieldRef),s=i?.setValue,c=K.useCallback((e,t)=>s?.(e,{validationError:t.validationError,shouldClose:!1}),[s]);return t(K.useMemo(()=>a!=null&&i!=null?Y({value:i.value,onChange:c,timezone:i.timezone,disabled:i.disabled,readOnly:i.readOnly,autoFocus:i.autoFocus&&!i.open,focused:i.open?!0:void 0,format:i.fieldFormat,formatDensity:a.formatDensity,selectedSections:a.selectedSections,onSelectedSectionsChange:a.onSelectedSectionsChange,fieldRef:o},n):n,[i,a,n,c,o]))}function IA(e){let{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:r,state:i}}=e;if(!n.isReady())return;let a=fd(n.getRoot()).getSelection();if(!a)return;if(r==null){a.rangeCount>0&&a.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(a.getRangeAt(0).startContainer)&&a.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(Ck(n.getRoot())))return;let o=new window.Range,s;s=r===`all`?n.getRoot():i.sections[r].type===`empty`?n.getSectionContainer(r):n.getSectionContent(r),o.selectNodeContents(s),s.focus(),a.removeAllRanges(),a.addRange(o)}function LA(e){let{manager:{internal_fieldValueManager:t},focused:n,setFocused:r,domGetters:i,stateResponse:a,applyCharacterEditing:o,internalPropsWithDefaults:s,stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:l,sectionOrder:u,state:d,value:f,activeSectionIndex:p,localizedDigits:m,timezone:h,clearValue:g,clearActiveSection:_,setCharacterQuery:v,setSelectedSections:y,updateValueFromValueStr:b,updateSectionValue:x},internalPropsWithDefaults:{disabled:S=!1,readOnly:C=!1,minutesStep:w}}=e,T=IO(),E=xd(e=>{if(!S)switch(!0){case(e.ctrlKey||e.metaKey)&&(e.key?.toUpperCase()===`A`||String.fromCharCode(e.keyCode)===`A`)&&!e.shiftKey&&!e.altKey:e.preventDefault(),y(`all`);break;case e.key===`ArrowRight`:if(e.preventDefault(),c==null)y(u.startIndex);else if(c===`all`)y(u.endIndex);else{let e=u.neighbors[c].rightIndex;e!==null&&y(e)}break;case e.key===`ArrowLeft`:if(e.preventDefault(),c==null)y(u.endIndex);else if(c===`all`)y(u.startIndex);else{let e=u.neighbors[c].leftIndex;e!==null&&y(e)}break;case e.key===`Delete`:if(e.preventDefault(),C)break;c==null||c===`all`?g():_();break;case[`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`].includes(e.key):{if(e.preventDefault(),C||p==null)break;c===`all`&&y(p);let n=d.sections[p],r=HA(T,h,n,e.key,l,m,t.getDateFromSection(f,n),{minutesStep:w});x({section:n,newSectionValue:r,shouldGoToNextSection:!1});break}}}),D=$p(),O=xd(()=>{if(!S&&i.isReady()){if(c===`all`){r(!0),D.start(0,()=>{let e=document.getSelection();if(!e||e.rangeCount===0){y(u.startIndex);return}let t=e.getRangeAt(0).startOffset;if(t===0){y(u.startIndex);return}let n=0,r=0;for(;r<t&&n<d.sections.length;){let e=d.sections[n];n+=1,r+=`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`.length}y(n-1)});return}n||(r(!0),c??y(u.startIndex))}}),k=xd(e=>{if(S||!i.isReady()||c===`all`||e.button!==0)return;let t=e.target,a=i.getRoot(),o=a.contains(t);if(!o&&t!==e.currentTarget)return;let s=o?t.closest(`[data-sectionindex]`):null;if(s==null&&(!o||zA(a,e.clientX))){e.preventDefault(),n||(r(!0),y(u.startIndex));return}let l=s?Number(s.dataset.sectionindex):BA(a,e.clientX);l!=null&&Number.isInteger(l)&&(e.preventDefault(),r(!0),y(l))}),A=xd(e=>{if(!i.isReady()||c!==`all`)return;let t=e.target.textContent??``;i.getRoot().innerHTML=d.sections.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(``),IA({focused:n,domGetters:i,stateResponse:a}),t.length===0||t.charCodeAt(0)===10?(g(),y(`all`)):t.length>1?b(t):(c===`all`&&y(0),o({keyPressed:t,sectionIndex:0}))}),j=xd(e=>{if(C||c!==`all`){e.preventDefault();return}let t=e.clipboardData.getData(`text`);e.preventDefault(),v(null),b(t)}),M=xd(()=>{if(n||S||!i.isReady())return;let e=Ck(i.getRoot());r(!0),i.getSectionIndexFromDOMElement(e)??y(u.startIndex)});return{onKeyDown:E,onBlur:xd(()=>{setTimeout(()=>{if(!i.isReady())return;let e=Ck(i.getRoot());i.getRoot().contains(e)||(r(!1),y(null))})}),onFocus:M,onClick:O,onMouseDown:k,onPaste:j,onInput:A,contentEditable:c===`all`,tabIndex:s.disabled||c===0?-1:0}}var RA=4;function zA(e,t){let n=e.querySelectorAll(`[data-sectionindex]`);if(n.length===0)return!1;let r=1/0,i=-1/0;for(let e=0;e<n.length;e+=1){let t=n[e].getBoundingClientRect();r=Math.min(r,t.left),i=Math.max(i,t.right)}return t<r-RA||t>i+RA}function BA(e,t){let n=e.querySelectorAll(`[role="spinbutton"]`);if(n.length===0)return null;let r=0,i=1/0;for(let e=0;e<n.length;e+=1){let a=n[e].getBoundingClientRect(),o=(a.left+a.right)/2,s=Math.abs(t-o);s<i&&(i=s,r=e)}return r}function VA(e){switch(e){case`ArrowUp`:return 1;case`ArrowDown`:return-1;case`PageUp`:return 5;case`PageDown`:return-5;default:return 0}}function HA(e,t,n,r,i,a,o,s){let c=VA(r),l=r===`Home`,u=r===`End`,d=n.value===``||l||u;return n.contentType===`digit`||n.contentType===`digit-with-letter`?(()=>{let r=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),f=t=>YD(e,t,r,a,n),p=n.type===`minutes`&&s?.minutesStep?s.minutesStep:1,m;if(d){if(n.type===`year`&&!u&&!l)return e.formatByString(e.date(void 0,t),n.format);m=c>0||l?r.minimum:r.maximum}else m=parseInt(GD(n.value,a),10)+c*p;return m%p!==0&&((c<0||l)&&(m+=p-(p+m)%p),(c>0||u)&&(m-=m%p)),m>r.maximum?f(r.minimum+(m-r.maximum-1)%(r.maximum-r.minimum+1)):m<r.minimum?f(r.maximum-(r.minimum-m-1)%(r.maximum-r.minimum+1)):f(m)})():(()=>{let r=VD(e,t,n.type,n.format);return r.length===0?n.value:d?c>0||l?r[0]:r[r.length-1]:r[((r.indexOf(n.value)+c)%r.length+r.length)%r.length]})()}function UA(e){let{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:r,updateValueFromValueStr:i}}=e,a=xd(e=>{i(e.target.value)});return{value:K.useMemo(()=>n?``:t.getHiddenInputValueFromSections(r.sections),[n,r.sections,t]),onChange:a}}function WA(e){let{stateResponse:{parsedSelectedSections:t,setSelectedSections:n},internalPropsWithDefaults:{disabled:r=!1}}=e,i=xd(e=>{if(r||e.isDefaultPrevented())return;let i=Number(e.currentTarget.dataset.sectionindex);Number.isInteger(i)&&t!==i&&n(i)});return K.useCallback(e=>({"data-sectionindex":e,onClick:i}),[i])}function GA(e){let t=IO(),n=LO(),{focused:r,domGetters:i,stateResponse:a,applyCharacterEditing:o,manager:{internal_fieldValueManager:s},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:l,state:u,value:d,localizedDigits:f,clearActiveSection:p,setCharacterQuery:m,setSelectedSections:h,updateSectionValue:g,updateValueFromValueStr:_},internalPropsWithDefaults:{disabled:v=!1,readOnly:y=!1}}=e,b=c===`all`,x=!b&&!v&&!y,S=xd(e=>{if(!i.isReady())return;let t=u.sections[e];i.getSectionContent(e).innerHTML=t.value||t.placeholder,IA({focused:r,domGetters:i,stateResponse:a})}),C=xd(e=>{if(!i.isReady())return;let t=e.target,n=t.textContent??``,r=i.getSectionIndexFromDOMElement(t),a=u.sections[r];if(y){S(r);return}if(n.length===0){if(a.value===``){S(r);return}let t=e.nativeEvent.inputType;if(t===`insertParagraph`||t===`insertLineBreak`){S(r);return}S(r),p();return}o({keyPressed:n,sectionIndex:r}),S(r)}),w=xd(e=>{e.preventDefault()}),T=xd(e=>{if(e.preventDefault(),y||v||typeof c!=`number`)return;let t=u.sections[c],n=e.clipboardData.getData(`text`),r=/^[a-zA-Z]+$/.test(n),i=/^[0-9]+$/.test(n),a=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(n);t.contentType===`letter`&&r||t.contentType===`digit`&&i||t.contentType===`digit-with-letter`&&a?(m(null),g({section:t,newSectionValue:n,shouldGoToNextSection:!0})):!r&&!i&&(m(null),_(n))}),E=xd(e=>{e.preventDefault(),e.dataTransfer.dropEffect=`none`}),D=K.useCallback(e=>()=>{v||h(e)},[v,h]);return K.useCallback((e,r)=>{let i=l[e.type]({currentDate:s.getDateFromSection(d,e),contentType:e.contentType,format:e.format});return{onInput:C,onPaste:T,onMouseUp:w,onDragOver:E,onFocus:D(r),"aria-readonly":y,"aria-valuenow":qA(e,t,f),"aria-valuemin":i.minimum,"aria-valuemax":i.maximum,"aria-valuetext":e.value?KA(e,t,f):n.empty,"aria-label":n[e.type],"aria-disabled":v,tabIndex:!x||b||r>0?-1:0,contentEditable:!b&&!v&&!y,role:`spinbutton`,"data-range-position":e.dateName||void 0,spellCheck:!x&&void 0,autoCapitalize:x?`none`:void 0,autoCorrect:x?`off`:void 0,children:e.value||e.placeholder,inputMode:e.contentType===`letter`?`text`:`numeric`}},[l,b,v,y,x,n,t,f,C,T,w,E,D,s,d])}function KA(e,t,n){if(e.value)switch(e.type){case`month`:{if(e.contentType===`digit`){let r=t.setMonth(t.date(),Number(GD(e.value,n))-1);return t.isValid(r)?t.format(r,`month`):``}let r=t.parse(e.value,e.format);return r&&t.isValid(r)?t.format(r,`month`):void 0}case`day`:if(e.contentType===`digit`){let r=t.setDate(t.startOfYear(t.date()),Number(GD(e.value,n)));return t.isValid(r)?t.format(r,`dayOfMonth`):``}return e.value;case`weekDay`:return;default:return}}function qA(e,t,n){if(!e.value)return;let r=GD(e.value,n);switch(e.type){case`weekDay`:return e.contentType===`letter`?void 0:Number(r);case`meridiem`:{let n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?+(t.getHours(n)>=12):void 0}case`day`:return e.contentType===`digit-with-letter`?parseInt(r,10):Number(r);case`month`:{if(e.contentType===`digit`)return Number(r);let n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType===`letter`?void 0:Number(r)}}var JA=e=>{let{props:t,manager:n,skipContextFieldRefAssignment:r,manager:{valueType:i,internal_useOpenPickerButtonAriaLabel:a}}=e,{internalProps:o,forwardedProps:s}=WO(t,i),c=FA({manager:n,internalProps:o,skipContextFieldRefAssignment:r}),{sectionListRef:l,onBlur:u,onClick:d,onMouseDown:f,onFocus:p,onInput:m,onPaste:h,onKeyDown:g,onClear:_,clearable:v}=s,{disabled:y=!1,readOnly:b=!1,autoFocus:x=!1,focused:S,fieldRef:C}=c,w=K.useRef(null),T=Cd(l,w),E=K.useMemo(()=>({isReady:()=>w.current!=null,getRoot:()=>w.current.getRoot(),getSectionContainer:e=>w.current.getSectionContainer(e),getSectionContent:e=>w.current.getSectionContent(e),getSectionIndexFromDOMElement:e=>w.current.getSectionIndexFromDOMElement(e)}),[w]),D=PA({manager:n,internalPropsWithDefaults:c,forwardedProps:s}),{areAllSectionsEmpty:O,error:k,parsedSelectedSections:A,sectionOrder:j,state:M,value:N,clearValue:P,setSelectedSections:F}=D,I=MA({stateResponse:D}),L=a(N),[R,z]=K.useState(!1);function ee(e=0){if(y||!w.current||YA(w)!=null)return;let t=sO(e,M.sections);z(!0),w.current.getSectionContent(t).focus()}let te=LA({manager:n,internalPropsWithDefaults:c,stateResponse:D,applyCharacterEditing:I,focused:R,setFocused:z,domGetters:E}),B=UA({manager:n,stateResponse:D}),V=WA({stateResponse:D,internalPropsWithDefaults:c}),ne=GA({manager:n,stateResponse:D,applyCharacterEditing:I,internalPropsWithDefaults:c,domGetters:E,focused:R}),re=xd(e=>{g?.(e),te.onKeyDown(e)}),ie=xd(e=>{te.onBlur(e);let t=e.relatedTarget;E.isReady()&&t instanceof Node&&E.getRoot().contains(t)||u?.(e)}),H=xd(e=>{te.onFocus(e);let t=e.relatedTarget;E.isReady()&&t instanceof Node&&E.getRoot().contains(t)||p?.(e)}),U=xd(e=>{e.isDefaultPrevented()||(d?.(e),te.onClick(e))}),W=xd(e=>{e.isDefaultPrevented()||(f?.(e),te.onMouseDown(e))}),ae=xd(e=>{h?.(e),te.onPaste(e)}),oe=xd(e=>{m?.(e),te.onInput(e)}),se=xd((e,...t)=>{e.preventDefault(),_?.(e,...t),P(),XA(w)?F(j.startIndex):ee(0)}),ce=K.useMemo(()=>M.sections.map((e,t)=>{let n=ne(e,t);return{container:V(t),content:n,before:{children:e.startSeparator},after:{children:e.endSeparator,"data-range-position":e.isEndFormatSeparator?n[`data-range-position`]:void 0}}}),[M.sections,V,ne]);return K.useEffect(()=>{if(w.current==null)throw Error(uD(249));x&&!y&&w.current.getSectionContent(j.startIndex).focus()},[]),Gs(()=>{if(R&&w.current){if(A===`all`)w.current.getRoot().focus();else if(typeof A==`number`){let e=w.current.getSectionContent(A);e&&e.focus()}}},[A,R]),Gs(()=>{IA({focused:R,domGetters:E,stateResponse:D})}),K.useImperativeHandle(C,()=>({getSections:()=>M.sections,getActiveSectionIndex:()=>YA(w),setSelectedSections:e=>{if(y||!w.current)return;let t=sO(e,M.sections);z((t===`all`?0:t)!==null),F(e)},focusField:ee,isFieldFocused:()=>XA(w),clearValue:P})),Y({},s,te,{onBlur:ie,onClick:U,onMouseDown:W,onFocus:H,onInput:oe,onPaste:ae,onKeyDown:re,onClear:se},B,{error:k,clearable:!(!v||O||b||y),focused:S??R,sectionListRef:T,elements:ce,areAllSectionsEmpty:O,disabled:y,readOnly:b,autoFocus:x,openPickerAriaLabel:L})};function YA(e){let t=Ck(e.current?.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function XA(e){let t=Ck(e.current?.getRoot());return!!e.current&&e.current.getRoot().contains(t)}function ZA(e={}){let{ampm:t}=e;return K.useMemo(()=>({valueType:`time`,validator:sk,internal_valueManager:lO,internal_fieldValueManager:uO,internal_useApplyDefaultValuesToFieldInternalProps:$A,internal_useOpenPickerButtonAriaLabel:QA(t)}),[t])}function QA(e){return function(t){let n=IO(),r=LO();return K.useMemo(()=>{let i=e??n.is12HourCycleInCurrentLocale()?`fullTime12h`:`fullTime24h`,a=n.isValid(t)?n.format(t,i):null;return r.openTimePickerDialogue(a)},[t,r,n])}}function $A(e){let t=IO(),n=ej(e),r=K.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return K.useMemo(()=>Y({},e,n,{format:e.format??(r?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,r,t])}function ej(e){return K.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}function tj(){return K.useMemo(()=>({valueType:`date-time`,validator:ck,internal_valueManager:lO,internal_fieldValueManager:uO,internal_useApplyDefaultValuesToFieldInternalProps:rj,internal_useOpenPickerButtonAriaLabel:nj}),[])}function nj(e){let t=IO(),n=LO();return K.useMemo(()=>{let r=t.isValid(e)?t.format(e,`fullDate`):null;return n.openDatePickerDialogue(r)},[e,n,t])}function rj(e){let t=IO(),n=ij(e),r=K.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return K.useMemo(()=>Y({},e,n,{format:e.format??(r?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,n,r,t])}function ij(e){let t=IO(),n=uk();return K.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:gD(t,e.minDateTime??e.minDate,n.minDate),maxDate:gD(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}var aj=e=>JA({manager:fk(),props:e});function oj(e){let{ownerState:t}=TO(),n=xc();return K.useMemo(()=>Y({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?`rtl`:`ltr`}),[t,e.disabled,e.readOnly,e.required,n])}var sj=od((0,J.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`),cj=od((0,J.jsx)(`path`,{d:`M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z`}),`ArrowLeft`),lj=od((0,J.jsx)(`path`,{d:`M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z`}),`ArrowRight`),uj=od((0,J.jsx)(`path`,{d:`M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z`}),`Calendar`),dj=od((0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(`path`,{d:`M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),(0,J.jsx)(`path`,{d:`M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z`})]}),`Clock`),fj=od((0,J.jsx)(`path`,{d:`M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z`}),`DateRange`),pj=od((0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(`path`,{d:`M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),(0,J.jsx)(`path`,{d:`M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z`})]}),`Time`),mj=od((0,J.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`}),`Clear`);function hj(e){return Os(`MuiPickersTextField`,e)}ks(`MuiPickersTextField`,[`root`,`focused`,`disabled`,`error`,`required`]);function gj(e){return Os(`MuiPickersInputBase`,e)}var _j=ks(`MuiPickersInputBase`,[`root`,`focused`,`disabled`,`readOnly`,`error`,`notchedOutline`,`sectionsContainer`,`sectionContent`,`sectionBefore`,`sectionAfter`,`adornedStart`,`adornedEnd`,`input`,`inputSizeSmall`,`activeBar`]);function vj(e){return Os(`MuiPickersSectionList`,e)}var yj=ks(`MuiPickersSectionList`,[`root`,`section`,`sectionContent`]),bj=[`slots`,`slotProps`,`elements`,`sectionListRef`,`classes`],xj=Z(`div`,{name:`MuiPickersSectionList`,slot:`Root`})({direction:`ltr /*! @noflip */`,outline:`none`}),Sj=Z(`span`,{name:`MuiPickersSectionList`,slot:`Section`})({}),Cj=Z(`span`,{name:`MuiPickersSectionList`,slot:`SectionSeparator`})({whiteSpace:`pre`}),wj=Z(`span`,{name:`MuiPickersSectionList`,slot:`SectionContent`})({outline:`none`}),Tj=e=>xr({root:[`root`],section:[`section`],sectionContent:[`sectionContent`]},vj,e);function Ej(e){let{slots:t,slotProps:n,element:r,classes:i}=e,{ownerState:a}=TO(),o=t?.section??Sj,s=vg({elementType:o,externalSlotProps:n?.section,externalForwardedProps:r.container,className:i.section,ownerState:a}),c=t?.sectionContent??wj,l=vg({elementType:c,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:i.sectionContent,ownerState:a}),u=t?.sectionSeparator??Cj,d=vg({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:Y({},a,{separatorPosition:`before`})}),f=vg({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:Y({},a,{separatorPosition:`after`})}),p=K.useRef(null),m=Cd(l.ref,p);return(0,J.jsxs)(o,Y({},s,{children:[(0,J.jsx)(u,Y({},d)),(0,J.jsx)(c,Y({},l,{ref:m,onBlur:e=>{let t=e.relatedTarget,n=e.currentTarget.closest(`.${yj.root}`);if(n&&t instanceof Node&&n.contains(t)){e.stopPropagation();return}}})),(0,J.jsx)(u,Y({},f))]}))}var Dj=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickersSectionList`}),{slots:r,slotProps:i,elements:a,sectionListRef:o,classes:s}=n,c=cD(n,bj),l=Tj(s),{ownerState:u}=TO(),d=K.useRef(null),f=Cd(t,d),p=e=>{if(!d.current)throw Error(uD(145,e));return d.current};K.useImperativeHandle(o,()=>({getRoot(){return p(`getRoot`)},getSectionContainer(e){return p(`getSectionContainer`).querySelector(`.${yj.section}[data-sectionindex="${e}"]`)},getSectionContent(e){return p(`getSectionContent`).querySelector(`.${yj.section}[data-sectionindex="${e}"] .${yj.sectionContent}`)},getSectionIndexFromDOMElement(e){let t=p(`getSectionIndexFromDOMElement`);if(e==null||!t.contains(e))return null;let n=null;return e.classList.contains(yj.section)?n=e:e.classList.contains(yj.sectionContent)&&(n=e.parentElement),n==null?null:Number(n.dataset.sectionindex)}}));let m=r?.root??xj,h=vg({elementType:m,externalSlotProps:i?.root,externalForwardedProps:c,additionalProps:{ref:f,suppressContentEditableWarning:!0},className:l.root,ownerState:u});return(0,J.jsx)(m,Y({},h,{children:h.contentEditable?a.map(({content:e,before:t,after:n})=>`${t.children}${e.children}${n.children}`).join(``):(0,J.jsx)(K.Fragment,{children:a.map((e,t)=>(0,J.jsx)(Ej,{slots:r,slotProps:i,element:e,classes:l},t))})}))}),Oj=K.createContext(null),kj=()=>{let e=K.useContext(Oj);if(e==null)throw Error(uD(146));return e},Aj=`elements.areAllSectionsEmpty.defaultValue.label.value.onChange.id.autoFocus.endAdornment.startAdornment.renderSuffix.slots.slotProps.contentEditable.tabIndex.onInput.onPaste.onKeyDown.fullWidth.name.readOnly.inputRef.sectionListRef.onFocus.onBlur.classes.ownerState`.split(`.`),jj=[`ref`];function Mj(e,t){return n=>{let r=lh(e,n)??{};return Y({},r,{className:q(t,r.className)})}}var Nj=e=>Math.round(e*1e5)/1e5,Pj=Z(`div`,{name:`MuiPickersInputBase`,slot:`Root`})(({theme:e})=>Y({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:`text`,padding:0,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,boxSizing:`border-box`,letterSpacing:`${Nj(.15/16)}em`,[`&.${_j.disabled}`]:{color:(e.vars||e).palette.action.disabled,cursor:`default`},variants:[{props:{isInputInFullWidth:!0},style:{width:`100%`}}]})),Fj=Z(xj,{name:`MuiPickersInputBase`,slot:`SectionsContainer`})(({theme:e})=>({padding:`4px 0 5px`,fontFamily:e.typography.fontFamily,fontSize:`inherit`,lineHeight:`1.4375em`,flexGrow:1,outline:`none`,display:`flex`,flexWrap:`nowrap`,overflow:`hidden`,letterSpacing:`inherit`,width:`182px`,variants:[{props:{fieldDirection:`rtl`},style:{justifyContent:`end`}},{props:{inputSize:`small`},style:{paddingTop:1}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode===`light`?.42:.5}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0,hasStartAdornment:!1,inputHasLabel:!0,isLabelShrunk:!1},style:{opacity:0}}]})),Ij=Z(Sj,{name:`MuiPickersInputBase`,slot:`Section`})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:`inherit`,letterSpacing:`inherit`,lineHeight:`1.4375em`,display:`inline-block`,whiteSpace:`nowrap`})),Lj=Z(wj,{name:`MuiPickersInputBase`,slot:`SectionContent`,overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:`1.4375em`,letterSpacing:`inherit`,width:`fit-content`,outline:`none`,"@supports (-webkit-app-region: drag)":{[`.${_j.root}:not(:focus-within) &`]:{WebkitUserModify:`read-only`,userSelect:`none`}}})),Rj=Z(Cj,{name:`MuiPickersInputBase`,slot:`Separator`})(()=>({whiteSpace:`pre`,letterSpacing:`inherit`})),zj=Z(`input`,{name:`MuiPickersInputBase`,slot:`Input`,overridesResolver:(e,t)=>t.hiddenInput})(Y({},zy)),Bj=Z(`div`,{name:`MuiPickersInputBase`,slot:`ActiveBar`})(({theme:e,ownerState:t})=>({display:`none`,position:`absolute`,height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create([`width`,`left`],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:`block`},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),Vj=(e,t)=>{let{isFieldFocused:n,isFieldDisabled:r,isFieldReadOnly:i,hasFieldError:a,inputSize:o,isInputInFullWidth:s,inputColor:c,hasStartAdornment:l,hasEndAdornment:u}=t;return xr({root:[`root`,n&&!r&&`focused`,r&&`disabled`,i&&`readOnly`,a&&`error`,s&&`fullWidth`,`color${gr(c)}`,o===`small`&&`inputSizeSmall`,l&&`adornedStart`,u&&`adornedEnd`],notchedOutline:[`notchedOutline`],input:[`input`],sectionsContainer:[`sectionsContainer`],sectionContent:[`sectionContent`],sectionBefore:[`sectionBefore`],sectionAfter:[`sectionAfter`],activeBar:[`activeBar`]},gj,e)};function Hj(e,t,n,r){if(e.content[`data-range-position`]!==void 0){let e=t.current?.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${r}"]`);if(e)return Array.from(e).reduce((e,t)=>e+t.offsetWidth,0)}return 0}function Uj(e,t){let n=0;if(t.current?.getAttribute(`data-active-range-position`)===`end`)for(let r=e.length-1;r>=e.length/2;--r)n+=Hj(e[r],t,r,`end`);else for(let r=0;r<e.length/2;r+=1)n+=Hj(e[r],t,r,`start`);return{activeBarWidth:n,sectionOffsets:[t.current?.querySelector(`[data-sectionindex="0"]`)?.offsetLeft||0,t.current?.querySelector(`[data-sectionindex="${e.length/2}"]`)?.offsetLeft||0]}}var Wj=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickersInputBase`}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:o,id:s,endAdornment:c,startAdornment:l,renderSuffix:u,slots:d,slotProps:f,contentEditable:p,tabIndex:m,onInput:h,onPaste:g,onKeyDown:_,name:v,readOnly:y,inputRef:b,sectionListRef:x,onFocus:S,onBlur:C,classes:w,ownerState:T}=n,E=cD(n,Aj),D=kj(),O=K.useRef(null),k=K.useRef(null),A=K.useRef([]),j=Cd(t,O),M=Vf();if(!M)throw Error(uD(152));let N=T??D,P=e=>{M.onFocus?.(e),S?.(e)},F=e=>{P(e)},I=e=>{if(_?.(e),e.key===`Enter`&&!e.defaultMuiPrevented){if(O.current?.dataset.multiInput)return;let t=O.current?.closest(`form`),n=t?.querySelector(`[type="submit"]`);if(!t||!n)return;e.preventDefault(),t.requestSubmit(n)}},L=e=>{M.onBlur?.(e),C?.(e)};K.useEffect(()=>{M&&M.setAdornedStart(!!l)},[M,l]),K.useEffect(()=>{M&&(i?M.onEmpty():M.onFilled())},[M,i]);let R=Vj(w,N),z=d?.root||Pj,ee=vg({elementType:z,externalSlotProps:f?.root,externalForwardedProps:E,additionalProps:{"aria-invalid":M.error,ref:j},className:R.root,ownerState:N}),te=d?.input||Fj,B=d?.htmlInput||zj,V=vg({elementType:B,externalSlotProps:f?.htmlInput,ownerState:N}),{ref:ne}=V,re=cD(V,jj),ie=Cd(ne,b),H=r.some(e=>e.content[`data-range-position`]!==void 0);return K.useEffect(()=>{if(!H||!N.isPickerOpen)return;let{activeBarWidth:e,sectionOffsets:t}=Uj(r,O);A.current=[t[0],t[1]],k.current&&(k.current.style.width=`${e}px`)},[r,H,N.isPickerOpen]),(0,J.jsxs)(z,Y({},ee,{children:[l,(0,J.jsx)(Dj,{sectionListRef:x,elements:r,contentEditable:p,tabIndex:m,className:R.sectionsContainer,onFocus:P,onBlur:L,onInput:h,onPaste:g,onKeyDown:I,slots:{root:te,section:Ij,sectionContent:Lj,sectionSeparator:Rj},slotProps:{root:Y({},f?.input,{ownerState:N}),sectionContent:Mj(f?.sectionContent,_j.sectionContent),sectionSeparator:({separatorPosition:e})=>({className:e===`before`?_j.sectionBefore:_j.sectionAfter})}}),c,u?u(Y({},M)):null,(0,J.jsx)(B,Y({name:v,className:R.input,value:a,onChange:o,id:s,"aria-hidden":`true`,tabIndex:-1,readOnly:y,required:M.required,disabled:M.disabled,onFocus:F},re,{ref:ie})),H&&(0,J.jsx)(Bj,{className:R.activeBar,ref:k,ownerState:{sectionOffsets:A.current}})]}))});function Gj(e){return Os(`MuiPickersOutlinedInput`,e)}var Kj=Y({},_j,ks(`MuiPickersOutlinedInput`,[`root`,`notchedOutline`,`input`])),qj=[`children`,`className`,`label`,`notched`,`shrink`],Jj=Z(`fieldset`,{name:`MuiPickersOutlinedInput`,slot:`NotchedOutline`})(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`,borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}}),Yj=Z(`span`,{slot:`internal`,shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:`inherit`})),Xj=Z(`legend`,{slot:`internal`,shouldForwardProp:e=>Ms(e)&&e!==`notched`})(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:`11px`,transition:e.transitions.create(`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,transition:e.transitions.create(`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:`100%`,transition:e.transitions.create(`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function Zj(e){let{className:t,label:n,notched:r}=e,i=cD(e,qj),a=kj();return(0,J.jsx)(Jj,Y({"aria-hidden":!0,className:t},i,{ownerState:a,children:(0,J.jsx)(Xj,{ownerState:a,notched:r,children:n?(0,J.jsx)(Yj,{children:n}):(0,J.jsx)(Yj,{className:`notranslate`,children:`​`})})}))}var Qj=[`label`,`autoFocus`,`ownerState`,`classes`,`notched`,`slots`,`slotProps`],$j=Z(Pj,{name:`MuiPickersOutlinedInput`,slot:`Root`})(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{padding:`0 14px`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Kj.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Kj.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Kj.focused} .${Kj.notchedOutline}`]:{borderStyle:`solid`,borderWidth:2},[`&.${Kj.error} .${Kj.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Kj.disabled}`]:{[`& .${Kj.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},variants:Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t]?.main??!1).map(t=>({props:{inputColor:t},style:{[`&.${Kj.focused}:not(.${Kj.error}) .${Kj.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))}}),eM=Z(Fj,{name:`MuiPickersOutlinedInput`,slot:`SectionsContainer`})({padding:`16.5px 0`,variants:[{props:{inputSize:`small`},style:{padding:`8.5px 0`}}]}),tM=e=>{let t=xr({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},Gj,e);return Y({},e,t)},nM=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickersOutlinedInput`}),{label:r,classes:i,notched:a,slots:o,slotProps:s}=n,c=cD(n,Qj),l=Vf(),u=tM(i);return(0,J.jsx)(Wj,Y({},c,{slots:Y({root:$j,input:eM},o),slotProps:s,renderSuffix:e=>{let t=a===void 0?!!(e.adornedStart||e.focused||e.filled):a;return(0,J.jsx)(Zj,{shrink:t,notched:t,className:u.notchedOutline,label:r!=null&&r!==``&&l?.required?(0,J.jsxs)(K.Fragment,{children:[r,` `,`*`]}):r})},label:r,classes:u,ref:t}))});nM.muiName=`Input`;function rM(e){return Os(`MuiPickersFilledInput`,e)}var iM=Y({},_j,ks(`MuiPickersFilledInput`,[`root`,`underline`,`input`])),aM=[`label`,`autoFocus`,`disableUnderline`,`hiddenLabel`,`classes`,`slots`,`slotProps`],oM=Z(Pj,{name:`MuiPickersFilledInput`,slot:`Root`,shouldForwardProp:e=>Ms(e)&&e!==`disableUnderline`})(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${iM.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${iM.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{inputColor:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${iM.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${iM.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`"\\00a0"`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${iM.disabled}, .${iM.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${iM.disabled}:before`]:{borderBottomStyle:`dotted`}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),sM=Z(Fj,{name:`MuiPickersFilledInput`,slot:`sectionsContainer`,shouldForwardProp:e=>Ms(e)&&e!==`hiddenLabel`})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:`small`},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:`small`},style:{paddingTop:8,paddingBottom:9}}]}),cM=(e,t)=>{let{inputHasUnderline:n}=t,r=xr({root:[`root`,n&&`underline`],input:[`input`]},rM,e);return Y({},e,r)},lM=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickersFilledInput`}),{label:r,disableUnderline:i=!1,hiddenLabel:a=!1,classes:o,slots:s,slotProps:c}=n,l=cD(n,aM),u=kj(),d=Y({},u,{inputHasUnderline:!i}),f=cM(o,d);return(0,J.jsx)(Wj,Y({},l,{slots:Y({root:oM,input:sM},s),slotProps:Y({},c,{root:Y({disableUnderline:i},c?.root),input:Y({hiddenLabel:a},c?.input)}),label:r,classes:f,ref:t,ownerState:d}))});lM.muiName=`Input`;function uM(e){return Os(`MuiPickersFilledInput`,e)}var dM=Y({},_j,ks(`MuiPickersInput`,[`root`,`underline`,`input`])),fM=[`label`,`autoFocus`,`disableUnderline`,`ownerState`,`classes`,`slots`,`slotProps`],pM=Z(Pj,{name:`MuiPickersInput`,slot:`Root`,shouldForwardProp:e=>Ms(e)&&e!==`disableUnderline`})(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{inputColor:t,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:`red`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${dM.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${dM.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`"\\00a0"`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${dM.disabled}, .${dM.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${dM.disabled}:before`]:{borderBottomStyle:`dotted`}}}]}}),mM=(e,t)=>{let{inputHasUnderline:n}=t,r=xr({root:[`root`,!n&&`underline`],input:[`input`]},uM,e);return Y({},e,r)},hM=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickersInput`}),{label:r,disableUnderline:i=!1,classes:a,slots:o,slotProps:s}=n,c=cD(n,fM),l=kj(),u=Y({},l,{inputHasUnderline:!i}),d=mM(a,u);return(0,J.jsx)(Wj,Y({},c,{slots:Y({root:pM},o),slotProps:Y({},s,{root:Y({disableUnderline:i},s?.root)}),ownerState:u,label:r,classes:d,ref:t}))});hM.muiName=`Input`;var gM=`onFocus.onBlur.className.classes.color.disabled.error.variant.required.hiddenLabel.inputRef.sectionListRef.elements.areAllSectionsEmpty.onClick.onMouseDown.onKeyDown.onKeyUp.onPaste.onInput.endAdornment.startAdornment.tabIndex.contentEditable.focused.value.onChange.fullWidth.id.name.helperText.label.slots.slotProps.data-active-range-position`.split(`.`),_M={standard:hM,filled:lM,outlined:nM},vM=Z(fg,{name:`MuiPickersTextField`,slot:`Root`})({maxWidth:`100%`}),yM=(e,t)=>{let{isFieldFocused:n,isFieldDisabled:r,isFieldRequired:i}=t;return xr({root:[`root`,n&&!r&&`focused`,r&&`disabled`,i&&`required`]},hj,e)},bM=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickersTextField`}),{onFocus:r,onBlur:i,className:a,classes:o,color:s=`primary`,disabled:c=!1,error:l=!1,variant:u=`outlined`,required:d=!1,hiddenLabel:f=!1,inputRef:p,sectionListRef:m,elements:h,areAllSectionsEmpty:g,onClick:_,onMouseDown:v,onKeyDown:y,onKeyUp:b,onPaste:x,onInput:S,endAdornment:C,startAdornment:w,tabIndex:T,contentEditable:E,focused:D,value:O,onChange:k,fullWidth:A,id:j,name:M,helperText:N,label:P,slots:F,slotProps:I,"data-active-range-position":L}=n,R=cD(n,gM),z=Cd(t,K.useRef(null)),ee=kc(j),te=N&&ee?`${ee}-helper-text`:void 0,B=P&&ee?`${ee}-label`:void 0,V=I?.input,ne=I?.inputLabel,re=oj({disabled:n.disabled,required:n.required,readOnly:V?.readOnly}),ie=K.useMemo(()=>Y({},re,{isFieldValueEmpty:g,isFieldFocused:D??!1,hasFieldError:l??!1,inputSize:n.size??`medium`,inputColor:s??`primary`,isInputInFullWidth:A??!1,hasStartAdornment:!!(w??V?.startAdornment),hasEndAdornment:!!(C??V?.endAdornment),inputHasLabel:!!P,isLabelShrunk:!!ne?.shrink}),[re,g,D,l,n.size,s,A,w,C,V?.startAdornment,V?.endAdornment,P,ne?.shrink]),H=yM(o,ie),U=F?.input??_M[u],W=F?.root??vM,ae=F?.inputLabel??cg,oe=F?.formHelperText??gg,se={};u===`outlined`?(ne&&ne.shrink!==void 0&&(se.notched=ne.shrink),se.label=P):u===`filled`&&(se.hiddenLabel=f);let ce=vg({elementType:W,externalSlotProps:I?.root,externalForwardedProps:Y({},R,{className:a}),additionalProps:{ref:z,focused:D,disabled:c,variant:u,error:l,color:s,fullWidth:A,required:d},className:H.root,ownerState:ie});return(0,J.jsx)(Oj.Provider,{value:ie,children:(0,J.jsxs)(W,Y({},ce,{children:[P!=null&&P!==``&&(0,J.jsx)(ae,Y({htmlFor:ee,id:B},ne,{children:P})),(0,J.jsx)(U,Y({elements:h,areAllSectionsEmpty:g,onClick:_,onMouseDown:v,onKeyDown:y,onKeyUp:b,onInput:S,onPaste:x,onFocus:r,onBlur:i,endAdornment:C,startAdornment:w,tabIndex:T,contentEditable:E,value:O,onChange:k,id:ee,fullWidth:A,inputRef:p,sectionListRef:m,label:P,name:M,role:`group`,"aria-labelledby":B,"aria-describedby":te,"aria-live":te?`polite`:void 0,"data-active-range-position":L},se,V,{slots:Y({},V?.slots,F?.htmlInput!==void 0&&{htmlInput:F.htmlInput}),slotProps:Y({},V?.slotProps,I?.htmlInput!==void 0&&{htmlInput:I.htmlInput})})),N&&(0,J.jsx)(oe,Y({id:te},I?.formHelperText,{children:N}))]}))})}),xM=[`readOnly`,`onClear`,`clearable`,`clearButtonPosition`,`openPickerButtonPosition`,`openPickerAriaLabel`,`InputProps`,`inputProps`,`InputLabelProps`,`FormHelperTextProps`],SM=[`ownerState`],CM=[`ownerState`],wM=[`ownerState`],TM=[`ownerState`],EM=[`InputProps`,`inputProps`,`InputLabelProps`,`FormHelperTextProps`],DM=e=>{let t=e,{readOnly:n,onClear:r,clearable:i,clearButtonPosition:a,openPickerButtonPosition:o,openPickerAriaLabel:s,InputProps:c,inputProps:l,InputLabelProps:u,FormHelperTextProps:d}=t,f=cD(t,xM);return{clearable:i,onClear:r,clearButtonPosition:a,openPickerButtonPosition:o,openPickerAriaLabel:s,textFieldProps:Y({},f,{slotProps:Y({},f?.slotProps,{input:Y({},f?.slotProps?.input,{readOnly:n})})})}},OM=K.createContext({slots:{},slotProps:{},inputRef:void 0});function kM(e){let{fieldResponse:t,defaultOpenPickerIcon:n}=e,r=LO(),i=QO(),a=K.useContext(OM),{textFieldProps:o,onClear:s,clearable:c,openPickerAriaLabel:l,clearButtonPosition:u=`end`,openPickerButtonPosition:d=`end`}=DM(t),f=oj(o),p=xd(e=>{e.preventDefault(),i?.setOpen(!0)}),m=i?i.triggerStatus:`hidden`,h=c?u:null,g=m===`hidden`?null:d,_=a.slots.textField??bM,v=a.slots.inputAdornment??Mb,y=cD(vg({elementType:v,externalSlotProps:a.slotProps.inputAdornment,additionalProps:{position:`start`},ownerState:Y({},f,{position:`start`})}),SM),b=cD(vg({elementType:v,externalSlotProps:a.slotProps.inputAdornment,additionalProps:{position:`end`},ownerState:Y({},f,{position:`end`})}),CM),x=a.slots.openPickerButton??Sb,S=cD(vg({elementType:x,externalSlotProps:a.slotProps.openPickerButton,additionalProps:{disabled:m===`disabled`,onClick:p,"aria-label":l,"data-mui-picker-open-button":`true`,edge:o.variant!==`standard`&&g},ownerState:f}),wM),C=a.slots.openPickerIcon??n,w=vg({elementType:C,externalSlotProps:a.slotProps.openPickerIcon,ownerState:f}),T=a.slots.clearButton??Sb,E=cD(vg({elementType:T,externalSlotProps:a.slotProps.clearButton,className:`clearButton`,additionalProps:{title:r.fieldClearLabel,tabIndex:-1,onClick:s,disabled:t.disabled||t.readOnly,edge:o.variant!==`standard`&&h!==g&&h},ownerState:f}),TM),D=a.slots.clearIcon??mj,O=vg({elementType:D,externalSlotProps:a.slotProps.clearIcon,additionalProps:{fontSize:`small`},ownerState:f});o.ref=Cd(o.ref,i?.rootRef);let k=o.slotProps?.input,A={},j=Cd(k?.ref,i?.triggerRef);return i&&(A.ref=j),!k?.startAdornment&&(h===`start`||g===`start`)&&(A.startAdornment=(0,J.jsxs)(v,Y({},y,{children:[g===`start`&&(0,J.jsx)(x,Y({},S,{children:(0,J.jsx)(C,Y({},w))})),h===`start`&&(0,J.jsx)(T,Y({},E,{children:(0,J.jsx)(D,Y({},O))}))]}))),!k?.endAdornment&&(h===`end`||g===`end`)&&(A.endAdornment=(0,J.jsxs)(v,Y({},b,{children:[h===`end`&&(0,J.jsx)(T,Y({},E,{children:(0,J.jsx)(D,Y({},O))})),g===`end`&&(0,J.jsx)(x,Y({},S,{children:(0,J.jsx)(C,Y({},w))}))]}))),!A.endAdornment&&!A.startAdornment&&a.slots.inputAdornment&&(A.endAdornment=(0,J.jsx)(v,Y({},b))),h!=null&&(o.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(o.sx)?o.sx:[o.sx]]),o.slotProps=Y({},o.slotProps,{input:Y({},k,A)}),(0,J.jsx)(_,Y({},o))}function AM(e,t){return e?t?n=>Y({},lh(t,n),lh(e,n)):e:t}function jM(e){let{ref:t,externalForwardedProps:n,slotProps:r}=e,i=K.useContext(OM),a=QO(),o=oj(n),s=n??{},{InputProps:c,inputProps:l,InputLabelProps:u,FormHelperTextProps:d}=s,f=cD(s,EM),p=vg({elementType:bM,externalSlotProps:AM(i.slotProps.textField,r?.textField),externalForwardedProps:f,additionalProps:{ref:t,sx:a?.rootSx,label:a?.label,name:a?.name,className:a?.rootClassName,inputRef:i.inputRef},ownerState:o});if(a&&a.keepOpenDuringFieldFocus&&a.triggerStatus===`enabled`&&!a.open&&!a.readOnly&&!a.disabled){let e=p.onFocus,t=p.onMouseDown,n=e=>{let t=(e.nativeEvent??e)?.composedPath?.();if(Array.isArray(t)){for(let e of t)if(e&&e.getAttribute&&e.getAttribute(`data-mui-picker-open-button`)===`true`)return!0}let n=e.target;return n&&n.closest?!!n.closest(`[data-mui-picker-open-button="true"]`):!1};p.onFocus=t=>{e?.(t),!t.isDefaultPrevented()&&!n(t)&&a.setOpen(!0)},p.onMouseDown=e=>{t?.(e),!e.isDefaultPrevented()&&!n(e)&&a.setOpen(!0)}}return p}function MM(e){let{slots:t={},slotProps:n={},inputRef:r,children:i}=e,a=K.useMemo(()=>({inputRef:r,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[r,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return(0,J.jsx)(OM.Provider,{value:a,children:i})}var NM=[`slots`,`slotProps`],PM=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiDateField`}),{slots:r,slotProps:i}=n,a=cD(n,NM),o=aj(jM({slotProps:i,ref:t,externalForwardedProps:a}));return(0,J.jsx)(MM,{slots:r,slotProps:i,inputRef:a.inputRef,children:(0,J.jsx)(kM,{fieldResponse:o,defaultOpenPickerIcon:uj})})}),FM=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:o,timezone:s})=>{let c=IO();return K.useCallback(l=>ok({adapter:c,value:l,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:o}})!==null,[c,e,t,n,r,i,a,o,s])},IM=(e,t)=>(n,r)=>{switch(r.type){case`setVisibleDate`:return Y({},n,{slideDirection:r.direction,currentMonth:r.month,isMonthSwitchingAnimating:!t.isSameMonth(r.month,n.currentMonth)&&!e&&!r.skipAnimation,focusedDay:r.focusedDay});case`changeMonthTimezone`:{let e=r.newTimezone;if(t.getTimezone(n.currentMonth)===e)return n;let i=t.setTimezone(n.currentMonth,e);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),Y({},n,{currentMonth:i})}case`finishMonthSwitchingAnimation`:return Y({},n,{isMonthSwitchingAnimating:!1});default:throw Error(`missing support`)}},LM=e=>{let{value:t,referenceDate:n,disableFuture:r,disablePast:i,maxDate:a,minDate:o,onMonthChange:s,onYearChange:c,reduceAnimations:l,shouldDisableDate:u,timezone:d,getCurrentMonthFromVisibleDate:f}=e,p=IO(),m=K.useRef(IM(!!l,p)).current,h=K.useMemo(()=>lO.getInitialReferenceValue({value:t,adapter:p,timezone:d,props:e,referenceDate:n,granularity:FD.day}),[n,d]),[g,_]=K.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:h,currentMonth:p.setDate(h,1),slideDirection:`left`}),v=FM({shouldDisableDate:u,minDate:o,maxDate:a,disableFuture:r,disablePast:i,timezone:d});return K.useEffect(()=>{_({type:`changeMonthTimezone`,newTimezone:p.getTimezone(h)})},[h,p]),{referenceDate:h,calendarState:g,setVisibleDate:xd(({target:e,reason:t})=>{if(t===`cell-interaction`&&g.focusedDay!=null&&p.isSameDay(e,g.focusedDay))return;let n=t===`cell-interaction`,l,u;if(t===`cell-interaction`)l=f(e,g.currentMonth),u=e;else if(l=p.isSameMonth(e,g.currentMonth)?g.currentMonth:p.startOfMonth(e),u=e,v(u)){let t=p.startOfMonth(e),n=p.endOfMonth(e);u=mD({adapter:p,date:u,minDate:p.isBefore(o,t)?t:o,maxDate:p.isAfter(a,n)?n:a,disablePast:i,disableFuture:r,isDateDisabled:v,timezone:d})}let m=!p.isSameMonth(g.currentMonth,l),h=!p.isSameYear(g.currentMonth,l);m&&s?.(l),h&&c?.(p.startOfYear(l)),_({type:`setVisibleDate`,month:l,direction:p.isAfterDay(l,g.currentMonth)?`left`:`right`,focusedDay:g.focusedDay!=null&&u!=null&&p.isSameDay(u,g.focusedDay)?g.focusedDay:u,skipAnimation:n})}),isDateDisabled:v,onMonthSwitchingAnimationEnd:K.useCallback(()=>{_({type:`finishMonthSwitchingAnimation`})},[])}};function RM(e,t){return RM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RM(e,t)}function zM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,RM(e,t)}function BM(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function VM(e,t){e.classList?e.classList.add(t):BM(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function HM(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function UM(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=HM(e.className,t):e.setAttribute(`class`,HM(e.className&&e.className.baseVal||``,t))}var WM={disabled:!1},GM=function(e){return e.scrollTop},KM=`unmounted`,qM=`exited`,JM=`entering`,YM=`entered`,XM=`exiting`,ZM=function(e){zM(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=qM,r.appearStatus=JM):o=YM:o=t.unmountOnExit||t.mountOnEnter?KM:qM,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:qM}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=JM):(n===`entering`||n===`entered`)&&(t=XM)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null){if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:B_.default.findDOMNode(this);n&&GM(n)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:KM})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[B_.default.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||WM.disabled){this.safeSetState({status:YM},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:JM},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:YM},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:B_.default.findDOMNode(this);if(!t||WM.disabled){this.safeSetState({status:qM},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:XM},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:qM},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:B_.default.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=cD(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return K.createElement(p_.Provider,{value:null},typeof n==`function`?n(e,r):K.cloneElement(K.Children.only(n),r))},t}(K.Component);ZM.contextType=p_,ZM.propTypes={};function QM(){}ZM.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:QM,onEntering:QM,onEntered:QM,onExit:QM,onExiting:QM,onExited:QM},ZM.UNMOUNTED=KM,ZM.EXITED=qM,ZM.ENTERING=JM,ZM.ENTERED=YM,ZM.EXITING=XM;var $M=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return VM(e,t)})},eN=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return UM(e,t)})},tN=function(e){zM(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&GM(e),r&&(this.appliedClasses[t][n]=r,$M(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&eN(e,r),i&&eN(e,i),a&&eN(e,a)},n.render=function(){var e=this.props;e.classNames;var t=cD(e,[`classNames`]);return K.createElement(ZM,Y({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(K.Component);tN.defaultProps={classNames:``},tN.propTypes={};function nN(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function rN(e,t){var n=function(e){return t&&(0,K.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&K.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function iN(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function aN(e,t,n){return n[t]==null?e.props[t]:n[t]}function oN(e,t){return rN(e.children,function(n){return(0,K.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:aN(n,`appear`,e),enter:aN(n,`enter`,e),exit:aN(n,`exit`,e)})})}function sN(e,t,n){var r=rN(e.children),i=iN(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,K.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,K.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,K.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:aN(o,`exit`,e),enter:aN(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,K.cloneElement)(o,{in:!1}):c&&s&&(0,K.isValidElement)(l)&&(i[a]=(0,K.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:aN(o,`exit`,e),enter:aN(o,`enter`,e)}))}}),i}var cN=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},lN={component:`div`,childFactory:function(e){return e}},uN=function(e){zM(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(nN(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?oN(e,r):sN(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=rN(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Y({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=cD(e,[`component`,`childFactory`]),i=this.state.contextValue,a=cN(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?K.createElement(p_.Provider,{value:i},a):K.createElement(p_.Provider,{value:i},K.createElement(t,r,a))},t}(K.Component);uN.propTypes={},uN.defaultProps=lN;var dN=e=>Os(`MuiPickersFadeTransitionGroup`,e);ks(`MuiPickersFadeTransitionGroup`,[`root`]);var fN=[`children`],pN=e=>xr({root:[`root`]},dN,e),mN=Z(uN,{name:`MuiPickersFadeTransitionGroup`,slot:`Root`})({display:`block`,position:`relative`});function hN(e){let t=Np({props:e,name:`MuiPickersFadeTransitionGroup`}),{className:n,reduceAnimations:r,transKey:i,classes:a}=t,{children:o}=t,s=cD(t,fN),c=pN(a),l=Ru();return r?o:(0,J.jsx)(mN,{className:q(c.root,n),ownerState:s,children:(0,J.jsx)(G_,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:o},i)})}function gN(e){return Os(`MuiPickerDay`,e)}var _N=ks(`MuiPickerDay`,[`root`,`dayOutsideMonth`,`today`,`selected`,`disabled`,`fillerCell`]);function vN(e){let{disabled:t,selected:n,today:r,outsideCurrentMonth:i,day:a,disableHighlightToday:o,showDaysOutsideCurrentMonth:s}=e,c=IO(),{ownerState:l}=TO();return K.useMemo(()=>Y({},l,{day:a,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:r??!1,isDayOutsideMonth:i??!1,isDayStartOfWeek:c.isSameDay(a,c.startOfWeek(a)),isDayEndOfWeek:c.isSameDay(a,c.endOfWeek(a)),disableHighlightToday:o??!1,showDaysOutsideCurrentMonth:s??!1}),[c,l,a,n,t,r,i,o,s])}var yN=[`autoFocus`,`className`,`classes`,`hidden`,`isAnimating`,`onClick`,`onDaySelect`,`onFocus`,`onBlur`,`onKeyDown`,`onMouseDown`,`onMouseEnter`,`children`,`isFirstVisibleCell`,`isLastVisibleCell`,`day`,`selected`,`disabled`,`today`,`outsideCurrentMonth`,`disableHighlightToday`,`showDaysOutsideCurrentMonth`,`isVisuallySelected`,`isDayFillerCell`],bN=(e,t)=>{let{isDaySelected:n,disableHighlightToday:r,isDayCurrent:i,isDayDisabled:a,isDayOutsideMonth:o,isDayFillerCell:s}=e;return xr({root:[`root`,n&&!s&&`selected`,a&&`disabled`,!r&&i&&!n&&!s&&`today`,o&&`dayOutsideMonth`,s&&`fillerCell`]},gN,t)},xN=Z(jm,{name:`MuiPickerDay`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableHighlightToday&&n.isDayCurrent&&t.today,n.isDayOutsideMonth&&t.dayOutsideMonth,n.isDayFillerCell&&t.fillerCell]}})(({theme:e})=>Y({"--PickerDay-horizontalMargin":`2px`,"--PickerDay-size":`36px`},e.typography.caption,{lineHeight:1,display:`flex`,width:`var(--PickerDay-size)`,height:`var(--PickerDay-size)`,borderRadius:`calc(var(--PickerDay-size) / 2)`,padding:0,backgroundColor:`transparent`,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)},marginLeft:`var(--PickerDay-horizontalMargin)`,marginRight:`var(--PickerDay-horizontalMargin)`,variants:[{props:{isDaySelected:!0},style:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:focus, &:hover":{willChange:`background-color`,backgroundColor:(e.vars||e).palette.primary.dark},[`&.${_N.disabled}`]:{opacity:.6}}},{props:{isDayOutsideMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{isDayDisabled:!0},style:{color:(e.vars||e).palette.text.disabled}},{props:{isDayFillerCell:!0},style:{opacity:0,pointerEvents:`none`}},{props:{isDayCurrent:!0,isDaySelected:!1},style:{outline:`1px solid ${(e.vars||e).palette.text.secondary}`,outlineOffset:-1}}]})),SN=()=>{},CN=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickerDay`}),r=IO(),{autoFocus:i=!1,className:a,classes:o,isAnimating:s,onClick:c,onDaySelect:l,onFocus:u=SN,onBlur:d=SN,onKeyDown:f=SN,onMouseDown:p=SN,onMouseEnter:m=SN,children:h,day:g,selected:_,disabled:v,today:y,outsideCurrentMonth:b,disableHighlightToday:x,showDaysOutsideCurrentMonth:S,isDayFillerCell:C}=n,w=cD(n,yN),T=vN({day:g,selected:_,disabled:v,today:y,outsideCurrentMonth:b,disableHighlightToday:x,showDaysOutsideCurrentMonth:S}),E=Y({},T,{isDayFillerCell:C??(b&&!S)}),D=bN(E,o),O=K.useRef(null),k=Cd(O,t);return Gs(()=>{i&&!v&&!s&&!b&&O.current.focus()},[i,v,s,b]),E.isDayFillerCell?(0,J.jsx)(xN,{ref:k,role:w.role,"aria-colindex":w[`aria-colindex`],ownerState:E,className:q(D.root,a),as:`div`}):(0,J.jsx)(xN,Y({ref:k,centerRipple:!0,disabled:v,tabIndex:_?0:-1,onKeyDown:e=>f(e,g),onFocus:e=>u(e,g),onBlur:e=>d(e,g),onMouseEnter:e=>m(e,g),onClick:e=>{e.defaultMuiPrevented=!0,v||l(g),b&&e.currentTarget.focus(),c&&c(e)},onMouseDown:e=>{p(e),b&&e.preventDefault()}},w,{ownerState:E,className:q(D.root,a),children:h??r.format(g,`dayOfMonth`)}))}),wN=K.memo(CN),TN=e=>Os(`MuiPickersSlideTransition`,e),EN=ks(`MuiPickersSlideTransition`,[`root`,`slideEnter-left`,`slideEnter-right`,`slideEnterActive`,`slideExit`,`slideExitActiveLeft-left`,`slideExitActiveLeft-right`]),DN=[`children`,`className`,`reduceAnimations`,`slideDirection`,`transKey`,`classes`],ON=(e,t)=>{let{slideDirection:n}=t;return xr({root:[`root`],exit:[`slideExit`],enterActive:[`slideEnterActive`],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]},TN,e)},kN=[`slideEnter-left`,`slideEnter-right`,`slideEnterActive`,`slideExit`,`slideExitActiveLeft-left`,`slideExitActiveLeft-right`],AN=Z(uN,{name:`MuiPickersSlideTransition`,slot:`Root`,overridesResolver:(e,t)=>kN.reduce((e,n)=>(e.push({[`.${EN[n]}`]:t[n]}),e),[t.root])})(({theme:e})=>{let t=e.transitions.create(`transform`,{duration:e.transitions.duration.complex,easing:`cubic-bezier(0.35, 0.8, 0.4, 1)`});return{display:`block`,position:`relative`,overflowX:`hidden`,"& > *":{position:`absolute`,top:0,right:0,left:0},[`& .${EN[`slideEnter-left`]}`]:{willChange:`transform`,transform:`translate(100%)`,zIndex:1},[`& .${EN[`slideEnter-right`]}`]:{willChange:`transform`,transform:`translate(-100%)`,zIndex:1},[`& .${EN.slideEnterActive}`]:{transform:`translate(0%)`,transition:t},[`& .${EN.slideExit}`]:{transform:`translate(0%)`},[`& .${EN[`slideExitActiveLeft-left`]}`]:{willChange:`transform`,transform:`translate(-100%)`,transition:t,zIndex:0},[`& .${EN[`slideExitActiveLeft-right`]}`]:{willChange:`transform`,transform:`translate(100%)`,transition:t,zIndex:0}}});function jN(e){let t=Np({props:e,name:`MuiPickersSlideTransition`}),{children:n,className:r,reduceAnimations:i,slideDirection:a,transKey:o,classes:s}=t,c=cD(t,DN),{ownerState:l}=TO(),u=Y({},l,{slideDirection:a}),d=ON(s,u),f=Ru();if(i)return(0,J.jsx)(`div`,{role:`none`,className:q(d.root,r),children:n});let p={exit:d.exit,enterActive:d.enterActive,enter:d.enter,exitActive:d.exitActive};return(0,J.jsx)(AN,{className:q(d.root,r),childFactory:e=>K.cloneElement(e,{classNames:p}),role:`none`,ownerState:u,children:(0,J.jsx)(tN,Y({mountOnEnter:!0,unmountOnExit:!0,timeout:f.transitions.duration.complex,classNames:p},c,{children:n}),o)})}var MN=e=>Os(`MuiDayCalendar`,e);ks(`MuiDayCalendar`,[`root`,`header`,`weekDayLabel`,`loadingContainer`,`slideTransition`,`monthContainer`,`weekContainer`,`weekNumberLabel`,`weekNumber`]);var NN=[`parentProps`,`day`,`focusedDay`,`selectedDays`,`isDateDisabled`,`currentMonthNumber`,`isViewFocused`],PN=[`ownerState`],FN=e=>xr({root:[`root`],header:[`header`],weekDayLabel:[`weekDayLabel`],loadingContainer:[`loadingContainer`],slideTransition:[`slideTransition`],monthContainer:[`monthContainer`],weekContainer:[`weekContainer`],weekNumberLabel:[`weekNumberLabel`],weekNumber:[`weekNumber`]},MN,e),IN=240,LN=Z(`div`,{name:`MuiDayCalendar`,slot:`Root`})({}),RN=Z(`div`,{name:`MuiDayCalendar`,slot:`Header`})({display:`flex`,justifyContent:`center`,alignItems:`center`}),zN=Z(ky,{name:`MuiDayCalendar`,slot:`WeekDayLabel`})(({theme:e})=>({width:36,height:40,margin:`0 2px`,textAlign:`center`,display:`flex`,justifyContent:`center`,alignItems:`center`,color:(e.vars||e).palette.text.secondary})),BN=Z(ky,{name:`MuiDayCalendar`,slot:`WeekNumberLabel`})(({theme:e})=>({width:36,height:40,margin:`0 2px`,textAlign:`center`,display:`flex`,justifyContent:`center`,alignItems:`center`,color:(e.vars||e).palette.text.disabled})),VN=Z(ky,{name:`MuiDayCalendar`,slot:`WeekNumber`})(({theme:e})=>Y({},e.typography.caption,{width:36,height:36,padding:0,margin:`0 2px`,color:(e.vars||e).palette.text.disabled,fontSize:`0.75rem`,alignItems:`center`,justifyContent:`center`,display:`inline-flex`})),HN=Z(`div`,{name:`MuiDayCalendar`,slot:`LoadingContainer`})({display:`flex`,justifyContent:`center`,alignItems:`center`,minHeight:IN}),UN=Z(jN,{name:`MuiDayCalendar`,slot:`SlideTransition`})({minHeight:IN}),WN=Z(`div`,{name:`MuiDayCalendar`,slot:`MonthContainer`})({overflow:`hidden`}),GN=Z(`div`,{name:`MuiDayCalendar`,slot:`WeekContainer`})({margin:`2px 0`,display:`flex`,justifyContent:`center`});function KN(e){let{parentProps:t,day:n,focusedDay:r,selectedDays:i,isDateDisabled:a,currentMonthNumber:o,isViewFocused:s}=e,c=cD(e,NN),{currentMonth:l,disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:m,slotProps:h,timezone:g}=t,_=IO(),v=dk(g),y=r!=null&&_.isSameDay(n,r),b=s&&y,x=i.some(e=>_.isSameDay(e,n)),S=_.isSameDay(n,v),C=K.useMemo(()=>u||a(n),[u,a,n]),w=K.useMemo(()=>_.getMonth(n)!==o,[_,n,o]),T=vN({day:n,selected:x,disabled:C,today:S,outsideCurrentMonth:w,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),E=m?.day??wN,D=cD(vg({elementType:E,externalSlotProps:h?.day,additionalProps:Y({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:`gridcell`,isAnimating:f,"data-timestamp":_.toJsDate(n).valueOf()},c),ownerState:Y({},T,{day:n,isDayDisabled:C,isDaySelected:x})}),PN),O=K.useMemo(()=>{let e=_.startOfMonth(l);return p?_.isSameDay(n,_.startOfWeek(e)):_.isSameDay(n,e)},[l,n,p,_]),k=K.useMemo(()=>{let e=_.endOfMonth(l);return p?_.isSameDay(n,_.endOfWeek(e)):_.isSameDay(n,e)},[l,n,p,_]);return(0,J.jsx)(E,Y({},D,{day:n,disabled:C,autoFocus:!w&&b,today:S,outsideCurrentMonth:w,isFirstVisibleCell:O,isLastVisibleCell:k,selected:x,tabIndex:y?0:-1,"aria-selected":x,"aria-current":S?`date`:void 0}))}function qN(e){let t=Np({props:e,name:`MuiDayCalendar`}),n=IO(),{onFocusedDayChange:r,className:i,classes:a,currentMonth:o,selectedDays:s,focusedDay:c,loading:l,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:d,readOnly:f,reduceAnimations:p,renderLoading:m=()=>(0,J.jsx)(`span`,{children:`…`}),slideDirection:h,TransitionProps:g,disablePast:_,disableFuture:v,minDate:y,maxDate:b,shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:C,dayOfWeekFormatter:w=e=>n.format(e,`weekdayShort`).charAt(0).toUpperCase(),hasFocus:T,onFocusedViewChange:E,gridLabelId:D,displayWeekNumber:O,fixedWeekNumber:k,timezone:A}=t,j=dk(A),M=FN(a),N=xc(),P=+!!O,F=FM({shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:C,minDate:y,maxDate:b,disablePast:_,disableFuture:v,timezone:A}),I=LO(),L=xd(e=>{f||u(e)}),R=e=>{F(e)||(r(e),E?.(!0))},z=xd((e,t)=>{switch(e.key){case`ArrowUp`:R(n.addDays(t,-7)),e.preventDefault();break;case`ArrowDown`:R(n.addDays(t,7)),e.preventDefault();break;case`ArrowLeft`:{let r=n.addDays(t,N?1:-1),i=n.addMonths(t,N?1:-1),a=mD({adapter:n,date:r,minDate:N?r:n.startOfMonth(i),maxDate:N?n.endOfMonth(i):r,isDateDisabled:F,timezone:A});R(a||r),e.preventDefault();break}case`ArrowRight`:{let r=n.addDays(t,N?-1:1),i=n.addMonths(t,N?-1:1),a=mD({adapter:n,date:r,minDate:N?n.startOfMonth(i):r,maxDate:N?r:n.endOfMonth(i),isDateDisabled:F,timezone:A});R(a||r),e.preventDefault();break}case`Home`:R(n.startOfWeek(t)),e.preventDefault();break;case`End`:R(n.endOfWeek(t)),e.preventDefault();break;case`PageUp`:R(n.addMonths(t,1)),e.preventDefault();break;case`PageDown`:R(n.addMonths(t,-1)),e.preventDefault();break;case`Enter`:case` `:L(t),e.preventDefault()}}),ee=xd((e,t)=>R(t)),te=xd((e,t)=>{c!=null&&n.isSameDay(c,t)&&E?.(!1)}),B=n.getMonth(o),V=n.getYear(o),ne=K.useMemo(()=>s.filter(e=>!!e).map(e=>n.startOfDay(e)),[n,s]),re=`${V}-${B}`,ie=K.useMemo(()=>K.createRef(),[re]),H=K.useMemo(()=>{let e=n.getWeekArray(o),t=n.addMonths(o,1);for(;k&&e.length<k;){let r=n.getWeekArray(t),i=n.isSameDay(e[e.length-1][0],r[0][0]);r.slice(+!!i).forEach(t=>{e.length<k&&e.push(t)}),t=n.addMonths(t,1)}return e},[o,k,n]);return(0,J.jsxs)(LN,{role:`grid`,"aria-labelledby":D,"aria-colcount":P+7,"aria-rowcount":H.length+1,className:M.root,children:[(0,J.jsxs)(RN,{role:`row`,"aria-rowindex":1,className:M.header,children:[O&&(0,J.jsx)(BN,{variant:`caption`,role:`columnheader`,"aria-colindex":1,"aria-label":I.calendarWeekNumberHeaderLabel,className:M.weekNumberLabel,children:I.calendarWeekNumberHeaderText}),wD(n,j).map((e,t)=>(0,J.jsx)(zN,{variant:`caption`,role:`columnheader`,"aria-colindex":P+t+1,"aria-label":n.format(e,`weekday`),className:M.weekDayLabel,children:w(e)},t.toString()))]}),l?(0,J.jsx)(HN,{className:M.loadingContainer,children:m()}):(0,J.jsx)(UN,Y({transKey:re,onExited:d,reduceAnimations:p,slideDirection:h,className:q(i,M.slideTransition)},g,{nodeRef:ie,children:(0,J.jsx)(WN,{ref:ie,role:`rowgroup`,className:M.monthContainer,children:H.map((e,r)=>(0,J.jsxs)(GN,{role:`row`,className:M.weekContainer,"aria-rowindex":r+2,children:[O&&(0,J.jsx)(VN,{className:M.weekNumber,role:`rowheader`,"aria-colindex":1,"aria-label":I.calendarWeekNumberAriaLabelText(n.getWeekNumber(e[0])),children:I.calendarWeekNumberText(n.getWeekNumber(e[0]))}),e.map((e,n)=>(0,J.jsx)(KN,{parentProps:t,day:e,selectedDays:ne,isViewFocused:T,focusedDay:c,onKeyDown:z,onFocus:ee,onBlur:te,onDaySelect:L,isDateDisabled:F,currentMonthNumber:B,"aria-colindex":P+n+1},e.toString()))]},`week-${e[0]}`))})}))]})}function JN(e){return Os(`MuiMonthCalendar`,e)}var YN=ks(`MuiMonthCalendar`,[`root`,`button`,`disabled`,`selected`]),XN=[`autoFocus`,`classes`,`disabled`,`selected`,`value`,`onClick`,`onKeyDown`,`onFocus`,`onBlur`,`slots`,`slotProps`],ZN=(e,t)=>xr({button:[`button`,t.isMonthDisabled&&`disabled`,t.isMonthSelected&&`selected`]},JN,e),QN=Z(`button`,{name:`MuiMonthCalendar`,slot:`Button`,overridesResolver:(e,t)=>[t.button,{[`&.${YN.disabled}`]:t.disabled},{[`&.${YN.selected}`]:t.selected}]})(({theme:e})=>Y({color:`unset`,backgroundColor:`transparent`,border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:`pointer`,"&:focus":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)},"&:disabled":{cursor:`auto`,pointerEvents:`none`},[`&.${YN.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${YN.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),$N=K.memo(function(e){let{autoFocus:t,classes:n,disabled:r,selected:i,value:a,onClick:o,onKeyDown:s,onFocus:c,onBlur:l,slots:u,slotProps:d}=e,f=cD(e,XN),p=K.useRef(null),{ownerState:m}=TO(),h=Y({},m,{isMonthDisabled:r,isMonthSelected:i}),g=ZN(n,h);Gs(()=>{t&&p.current?.focus()},[t]);let _=u?.monthButton??QN,v=vg({elementType:_,externalSlotProps:d?.monthButton,externalForwardedProps:f,additionalProps:{disabled:r,ref:p,type:`button`,role:`radio`,"aria-checked":i,onClick:e=>o(e,a),onKeyDown:e=>s(e,a),onFocus:e=>c(e,a),onBlur:e=>l(e,a)},ownerState:h,className:g.button});return(0,J.jsx)(_,Y({},v))}),eP=[`autoFocus`,`className`,`currentMonth`,`classes`,`value`,`defaultValue`,`referenceDate`,`disabled`,`disableFuture`,`disablePast`,`maxDate`,`minDate`,`onChange`,`shouldDisableMonth`,`readOnly`,`disableHighlightToday`,`onMonthFocus`,`hasFocus`,`onFocusedViewChange`,`monthsPerRow`,`timezone`,`gridLabelId`,`slots`,`slotProps`],tP=e=>xr({root:[`root`]},JN,e);function nP(e,t){let n=Np({props:e,name:t}),r=hk(n);return Y({},n,r,{monthsPerRow:n.monthsPerRow??3})}var rP=(e,t,n,r,i)=>!!(e===t&&r&&i.isSameYear(n,r)),iP=Z(`div`,{name:`MuiMonthCalendar`,slot:`Root`,shouldForwardProp:e=>Ms(e)&&e!==`monthsPerRow`})({display:`flex`,flexWrap:`wrap`,justifyContent:`space-evenly`,rowGap:16,padding:`8px 0`,width:320,boxSizing:`border-box`,variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),aP=K.forwardRef(function(e,t){let n=nP(e,`MuiMonthCalendar`),{autoFocus:r,className:i,currentMonth:a,classes:o,value:s,defaultValue:c,referenceDate:l,disabled:u,disableFuture:d,disablePast:f,maxDate:p,minDate:m,onChange:h,shouldDisableMonth:g,readOnly:_,onMonthFocus:v,hasFocus:y,onFocusedViewChange:b,monthsPerRow:x,timezone:S,gridLabelId:C,slots:w,slotProps:T}=n,E=cD(n,eP),{value:D,handleValueChange:O,timezone:k}=Jk({name:`MonthCalendar`,timezone:S,value:s,defaultValue:c,referenceDate:l,onChange:h,valueManager:lO}),A=dk(k),j=xc(),M=IO(),{ownerState:N}=TO(),P=K.useMemo(()=>lO.getInitialReferenceValue({value:D,adapter:M,props:n,timezone:k,referenceDate:l,granularity:FD.month}),[]),F=tP(o),I=K.useMemo(()=>M.getMonth(A),[M,A]),L=K.useMemo(()=>D==null?null:M.getMonth(D),[D,M]),[R,z]=K.useState(()=>L||M.getMonth(P)),[ee,te]=yd({name:`MonthCalendar`,state:`hasFocus`,controlled:y,default:r??!1}),B=xd(e=>{te(e),b&&b(e)}),V=K.useCallback(e=>{let t=M.startOfMonth(f&&M.isAfter(A,m)?A:m),n=M.startOfMonth(d&&M.isBefore(A,p)?A:p),r=M.startOfMonth(e);return M.isBefore(r,t)||M.isAfter(r,n)?!0:g?g(r):!1},[d,f,p,m,A,g,M]),ne=xd((e,t)=>{if(_)return;let n=(D&&a&&!M.isSameYear(D,a)?M.setYear(D,M.getYear(a)):D)??a??P,r=M.setMonth(n,t);O(r)}),re=xd(e=>{V(M.setMonth(D??a??P,e))||(z(e),B(!0),v&&v(e))});K.useEffect(()=>{z(e=>L!==null&&e!==L?L:e)},[L]);let ie=xd((e,t)=>{switch(e.key){case`ArrowUp`:re((12+t-3)%12),e.preventDefault();break;case`ArrowDown`:re((12+t+3)%12),e.preventDefault();break;case`ArrowLeft`:re((12+t+(j?1:-1))%12),e.preventDefault();break;case`ArrowRight`:re((12+t+(j?-1:1))%12),e.preventDefault();break;case`Enter`:case` `:ne(e,t),e.preventDefault()}}),H=xd((e,t)=>{re(t)}),U=xd((e,t)=>{R===t&&B(!1)});return(0,J.jsx)(iP,Y({ref:t,className:q(F.root,i),ownerState:N,role:`radiogroup`,"aria-labelledby":C,monthsPerRow:x},E,{children:vD(M,a??D??P).map(e=>{let t=M.getMonth(e),n=M.format(e,`monthShort`),r=M.format(e,`month`),i=rP(t,L,e,D,M),a=u||V(e);return(0,J.jsx)($N,{selected:i,value:t,onClick:ne,onKeyDown:ie,autoFocus:ee&&t===R,disabled:a,tabIndex:t===R&&!a?0:-1,onFocus:H,onBlur:U,"aria-current":rP(t,I,e,A,M)?`date`:void 0,"aria-label":r,slots:w,slotProps:T,classes:o,children:n},n)})}))});function oP(e){return Os(`MuiYearCalendar`,e)}var sP=ks(`MuiYearCalendar`,[`root`,`button`,`disabled`,`selected`]),cP=[`autoFocus`,`classes`,`disabled`,`selected`,`value`,`onClick`,`onKeyDown`,`onFocus`,`onBlur`,`slots`,`slotProps`],lP=(e,t)=>xr({button:[`button`,t.isYearDisabled&&`disabled`,t.isYearSelected&&`selected`]},oP,e),uP=Z(`button`,{name:`MuiYearCalendar`,slot:`Button`,overridesResolver:(e,t)=>[t.button,{[`&.${sP.disabled}`]:t.disabled},{[`&.${sP.selected}`]:t.selected}]})(({theme:e})=>Y({color:`unset`,backgroundColor:`transparent`,border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:`pointer`,"&:focus":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.focusOpacity)},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)},"&:disabled":{cursor:`auto`,pointerEvents:`none`},[`&.${sP.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${sP.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),dP=K.memo(function(e){let{autoFocus:t,classes:n,disabled:r,selected:i,value:a,onClick:o,onKeyDown:s,onFocus:c,onBlur:l,slots:u,slotProps:d}=e,f=cD(e,cP),p=K.useRef(null),{ownerState:m}=TO(),h=Y({},m,{isYearDisabled:r,isYearSelected:i}),g=lP(n,h);Gs(()=>{t&&p.current?.focus()},[t]);let _=u?.yearButton??uP,v=vg({elementType:_,externalSlotProps:d?.yearButton,externalForwardedProps:f,additionalProps:{disabled:r,ref:p,type:`button`,role:`radio`,"aria-checked":i,onClick:e=>o(e,a),onKeyDown:e=>s(e,a),onFocus:e=>c(e,a),onBlur:e=>l(e,a)},ownerState:h,className:g.button});return(0,J.jsx)(_,Y({},v))}),fP=[`autoFocus`,`className`,`classes`,`value`,`defaultValue`,`referenceDate`,`disabled`,`disableFuture`,`disablePast`,`maxDate`,`minDate`,`onChange`,`readOnly`,`shouldDisableYear`,`disableHighlightToday`,`onYearFocus`,`hasFocus`,`onFocusedViewChange`,`yearsOrder`,`yearsPerRow`,`timezone`,`gridLabelId`,`slots`,`slotProps`],pP=e=>xr({root:[`root`]},oP,e);function mP(e,t){let n=Np({props:e,name:t}),r=hk(n);return Y({},n,r,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??`asc`})}var hP=Z(`div`,{name:`MuiYearCalendar`,slot:`Root`,shouldForwardProp:e=>Ms(e)&&e!==`yearsPerRow`})({display:`flex`,flexWrap:`wrap`,justifyContent:`space-evenly`,rowGap:12,padding:`6px 0`,overflowY:`auto`,height:`100%`,width:320,maxHeight:280,boxSizing:`border-box`,position:`relative`,variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:`0 2px`}}]}),gP=Z(`div`,{name:`MuiYearCalendar`,slot:`ButtonFiller`})({height:36,width:72}),_P=K.forwardRef(function(e,t){let n=mP(e,`MuiYearCalendar`),{autoFocus:r,className:i,classes:a,value:o,defaultValue:s,referenceDate:c,disabled:l,disableFuture:u,disablePast:d,maxDate:f,minDate:p,onChange:m,readOnly:h,shouldDisableYear:g,onYearFocus:_,hasFocus:v,onFocusedViewChange:y,yearsOrder:b,yearsPerRow:x,timezone:S,gridLabelId:C,slots:w,slotProps:T}=n,E=cD(n,fP),{value:D,handleValueChange:O,timezone:k}=Jk({name:`YearCalendar`,timezone:S,value:o,defaultValue:s,referenceDate:c,onChange:m,valueManager:lO}),A=dk(k),j=xc(),M=IO(),{ownerState:N}=TO(),P=K.useMemo(()=>lO.getInitialReferenceValue({value:D,adapter:M,props:n,timezone:k,referenceDate:c,granularity:FD.year}),[]),F=pP(a),I=K.useMemo(()=>M.getYear(A),[M,A]),L=K.useMemo(()=>D==null?null:M.getYear(D),[D,M]),[R,z]=K.useState(()=>L||M.getYear(P)),[ee,te]=yd({name:`YearCalendar`,state:`hasFocus`,controlled:v,default:r??!1}),B=xd(e=>{te(e),y&&y(e)}),V=K.useCallback(e=>{if(d&&M.isBeforeYear(e,A)||u&&M.isAfterYear(e,A)||p&&M.isBeforeYear(e,p)||f&&M.isAfterYear(e,f))return!0;if(!g)return!1;let t=M.startOfYear(e);return g(t)},[u,d,f,p,A,g,M]),ne=xd((e,t)=>{if(h)return;let n=M.setYear(D??P,t);O(n)}),re=xd(e=>{V(M.setYear(D??P,e))||(z(e),B(!0),_?.(e))});K.useEffect(()=>{z(e=>L!==null&&e!==L?L:e)},[L]);let ie=b===`desc`?x*-1:x*1,H=j&&b===`asc`||!j&&b===`desc`?-1:1,U=xd((e,t)=>{switch(e.key){case`ArrowUp`:re(t-ie),e.preventDefault();break;case`ArrowDown`:re(t+ie),e.preventDefault();break;case`ArrowLeft`:re(t-H),e.preventDefault();break;case`ArrowRight`:re(t+H),e.preventDefault();break;case`Enter`:case` `:ne(e,t),e.preventDefault()}}),W=xd((e,t)=>{re(t)}),ae=xd((e,t)=>{R===t&&B(!1)}),oe=K.useRef(null),se=Cd(t,oe);K.useEffect(()=>{if(r||oe.current===null)return;let e=oe.current.querySelector(`[tabindex="0"]`);if(!e)return;let t=e.offsetHeight,n=e.offsetTop,i=oe.current.clientHeight,a=oe.current.scrollTop,o=n+t;t>i||n<a||(oe.current.scrollTop=o-i/2-t/2)},[r]);let ce=M.getYearRange([p,f]);b===`desc`&&ce.reverse();let G=x-ce.length%x;return G===x&&(G=0),(0,J.jsxs)(hP,Y({ref:se,className:q(F.root,i),ownerState:N,role:`radiogroup`,"aria-labelledby":C,yearsPerRow:x},E,{children:[ce.map(e=>{let t=M.getYear(e),n=t===L,r=l||V(e);return(0,J.jsx)(dP,{selected:n,value:t,onClick:ne,onKeyDown:U,autoFocus:ee&&t===R,disabled:r,tabIndex:t===R&&!r?0:-1,onFocus:W,onBlur:ae,"aria-current":I===t?`date`:void 0,slots:w,slotProps:T,classes:a,children:M.format(e,`year`)},M.format(e,`year`))}),Array.from({length:G},(e,t)=>(0,J.jsx)(gP,{},t))]}))}),vP=e=>Os(`MuiPickersCalendarHeader`,e),yP=ks(`MuiPickersCalendarHeader`,[`root`,`labelContainer`,`label`,`switchViewButton`,`switchViewIcon`]);function bP(e){return Os(`MuiPickersArrowSwitcher`,e)}ks(`MuiPickersArrowSwitcher`,[`root`,`spacer`,`button`,`previousIconButton`,`nextIconButton`,`leftArrowIcon`,`rightArrowIcon`]);var xP=[`children`,`className`,`slots`,`slotProps`,`isNextDisabled`,`isNextHidden`,`onGoToNext`,`nextLabel`,`isPreviousDisabled`,`isPreviousHidden`,`onGoToPrevious`,`previousLabel`,`labelId`,`classes`],SP=[`ownerState`],CP=[`ownerState`],wP=Z(`div`,{name:`MuiPickersArrowSwitcher`,slot:`Root`})({display:`flex`}),TP=Z(`div`,{name:`MuiPickersArrowSwitcher`,slot:`Spacer`})(({theme:e})=>({width:e.spacing(3)})),EP=Z(Sb,{name:`MuiPickersArrowSwitcher`,slot:`Button`})({variants:[{props:{isButtonHidden:!0},style:{visibility:`hidden`}}]}),DP=e=>xr({root:[`root`],spacer:[`spacer`],button:[`button`],previousIconButton:[`previousIconButton`],nextIconButton:[`nextIconButton`],leftArrowIcon:[`leftArrowIcon`],rightArrowIcon:[`rightArrowIcon`]},bP,e),OP=K.forwardRef(function(e,t){let n=xc(),r=Np({props:e,name:`MuiPickersArrowSwitcher`}),{children:i,className:a,slots:o,slotProps:s,isNextDisabled:c,isNextHidden:l,onGoToNext:u,nextLabel:d,isPreviousDisabled:f,isPreviousHidden:p,onGoToPrevious:m,previousLabel:h,labelId:g,classes:_}=r,v=cD(r,xP),{ownerState:y}=TO(),b=DP(_),x={isDisabled:c,isHidden:l,goTo:u,label:d},S={isDisabled:f,isHidden:p,goTo:m,label:h},C=o?.previousIconButton??EP,w=vg({elementType:C,externalSlotProps:s?.previousIconButton,additionalProps:{size:`medium`,title:S.label,"aria-label":S.label,disabled:S.isDisabled,edge:`end`,onClick:S.goTo},ownerState:Y({},y,{isButtonHidden:S.isHidden??!1}),className:q(b.button,b.previousIconButton)}),T=o?.nextIconButton??EP,E=vg({elementType:T,externalSlotProps:s?.nextIconButton,additionalProps:{size:`medium`,title:x.label,"aria-label":x.label,disabled:x.isDisabled,edge:`start`,onClick:x.goTo},ownerState:Y({},y,{isButtonHidden:x.isHidden??!1}),className:q(b.button,b.nextIconButton)}),D=o?.leftArrowIcon??cj,O=cD(vg({elementType:D,externalSlotProps:s?.leftArrowIcon,additionalProps:{fontSize:`inherit`},ownerState:y,className:b.leftArrowIcon}),SP),k=o?.rightArrowIcon??lj,A=cD(vg({elementType:k,externalSlotProps:s?.rightArrowIcon,additionalProps:{fontSize:`inherit`},ownerState:y,className:b.rightArrowIcon}),CP);return(0,J.jsxs)(wP,Y({ref:t,className:q(b.root,a),ownerState:y},v,{children:[(0,J.jsx)(C,Y({},w,{children:n?(0,J.jsx)(k,Y({},A)):(0,J.jsx)(D,Y({},O))})),i?(0,J.jsx)(ky,{variant:`subtitle1`,component:`span`,id:g,children:i}):(0,J.jsx)(TP,{className:b.spacer,ownerState:y}),(0,J.jsx)(T,Y({},E,{children:n?(0,J.jsx)(D,Y({},O)):(0,J.jsx)(k,Y({},A))}))]}))});function kP(e,{disableFuture:t,maxDate:n,timezone:r}){let i=IO();return K.useMemo(()=>{let a=i.date(void 0,r),o=i.startOfMonth(t&&i.isBefore(a,n)?a:n);return!i.isAfter(o,e)},[t,n,e,i,r])}function AP(e,{disablePast:t,minDate:n,timezone:r}){let i=IO();return K.useMemo(()=>{let a=i.date(void 0,r),o=i.startOfMonth(t&&i.isAfter(a,n)?a:n);return!i.isBefore(o,i.startOfMonth(e))},[t,n,e,i,r])}function jP(e,t,n,r){let i=IO(),a=K.useMemo(()=>i.isValid(e)?e:null,[i,e]);return{meridiemMode:kD(a,i),handleMeridiemChange:K.useCallback(e=>{n(a==null?null:jD(a,e,!!t,i),r??`partial`)},[t,a,n,r,i])}}var MP=[`slots`,`slotProps`,`currentMonth`,`disabled`,`disableFuture`,`disablePast`,`maxDate`,`minDate`,`onMonthChange`,`onViewChange`,`view`,`reduceAnimations`,`views`,`labelId`,`className`,`classes`,`timezone`,`format`],NP=[`ownerState`],PP=e=>xr({root:[`root`],labelContainer:[`labelContainer`],label:[`label`],switchViewButton:[`switchViewButton`],switchViewIcon:[`switchViewIcon`]},vP,e),FP=Z(`div`,{name:`MuiPickersCalendarHeader`,slot:`Root`})({display:`flex`,alignItems:`center`,marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),IP=Z(`div`,{name:`MuiPickersCalendarHeader`,slot:`LabelContainer`})(({theme:e})=>Y({display:`flex`,overflow:`hidden`,alignItems:`center`,cursor:`pointer`,marginRight:`auto`},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),LP=Z(`div`,{name:`MuiPickersCalendarHeader`,slot:`Label`})({marginRight:6}),RP=Z(Sb,{name:`MuiPickersCalendarHeader`,slot:`SwitchViewButton`})({marginRight:`auto`,variants:[{props:{view:`year`},style:{[`.${yP.switchViewIcon}`]:{transform:`rotate(180deg)`}}}]}),zP=Z(sj,{name:`MuiPickersCalendarHeader`,slot:`SwitchViewIcon`})(({theme:e})=>({willChange:`transform`,transition:e.transitions.create(`transform`),transform:`rotate(0deg)`})),BP=K.forwardRef(function(e,t){let n=LO(),r=IO(),i=Np({props:e,name:`MuiPickersCalendarHeader`}),{slots:a,slotProps:o,currentMonth:s,disabled:c,disableFuture:l,disablePast:u,maxDate:d,minDate:f,onMonthChange:p,onViewChange:m,view:h,reduceAnimations:g,views:_,labelId:v,className:y,classes:b,timezone:x,format:S=`${r.formats.month} ${r.formats.year}`}=i,C=cD(i,MP),{ownerState:w}=TO(),T=PP(b),E=a?.switchViewButton??RP,D=vg({elementType:E,externalSlotProps:o?.switchViewButton,additionalProps:{size:`small`,"aria-label":n.calendarViewSwitchingButtonAriaLabel(h)},ownerState:Y({},w,{view:h}),className:T.switchViewButton}),O=a?.switchViewIcon??zP,k=cD(vg({elementType:O,externalSlotProps:o?.switchViewIcon,ownerState:w,className:T.switchViewIcon}),NP),A=()=>p(r.addMonths(s,1)),j=()=>p(r.addMonths(s,-1)),M=kP(s,{disableFuture:l,maxDate:d,timezone:x}),N=AP(s,{disablePast:u,minDate:f,timezone:x}),P=()=>{if(_.length!==1&&m&&!c){if(_.length===2)m(_.find(e=>e!==h)||_[0]);else{let e=+(_.indexOf(h)===0);m(_[e])}}};if(_.length===1&&_[0]===`year`)return null;let F=r.formatByString(s,S);return(0,J.jsxs)(FP,Y({},C,{ownerState:w,className:q(T.root,y),ref:t,children:[(0,J.jsxs)(IP,{role:`none`,onClick:P,ownerState:w,"aria-live":`polite`,className:T.labelContainer,children:[(0,J.jsx)(hN,{reduceAnimations:g,transKey:F,children:(0,J.jsx)(LP,{id:v,ownerState:w,className:T.label,children:F})}),_.length>1&&!c&&(0,J.jsx)(E,Y({},D,{children:(0,J.jsx)(O,Y({},k))}))]}),(0,J.jsx)(G_,{in:h===`day`,appear:!g,enter:!g,children:(0,J.jsx)(OP,{slots:a,slotProps:o,onGoToPrevious:j,isPreviousDisabled:N,previousLabel:n.previousMonth,onGoToNext:A,isNextDisabled:M,nextLabel:n.nextMonth})})]}))}),VP=Z(`div`,{slot:`internal`,shouldForwardProp:void 0})({overflow:`hidden`,width:320,maxHeight:336,display:`flex`,flexDirection:`column`,margin:`0 auto`}),HP=e=>Os(`MuiDateCalendar`,e);ks(`MuiDateCalendar`,[`root`,`viewTransitionContainer`]);var UP=`autoFocus.onViewChange.value.defaultValue.referenceDate.disableFuture.disablePast.onChange.onYearChange.onMonthChange.reduceAnimations.shouldDisableDate.shouldDisableMonth.shouldDisableYear.view.views.openTo.className.classes.disabled.readOnly.minDate.maxDate.disableHighlightToday.focusedView.onFocusedViewChange.showDaysOutsideCurrentMonth.fixedWeekNumber.dayOfWeekFormatter.slots.slotProps.loading.renderLoading.displayWeekNumber.yearsOrder.yearsPerRow.monthsPerRow.timezone`.split(`.`),WP=e=>xr({root:[`root`],viewTransitionContainer:[`viewTransitionContainer`]},HP,e);function GP(e,t){let n=Np({props:e,name:t}),r=Hk(n.reduceAnimations),i=hk(n);return Y({},n,i,{loading:n.loading??!1,openTo:n.openTo??`day`,views:n.views??[`year`,`day`],reduceAnimations:r,renderLoading:n.renderLoading??(()=>(0,J.jsx)(`span`,{children:`…`}))})}var KP=Z(VP,{name:`MuiDateCalendar`,slot:`Root`})({display:`flex`,flexDirection:`column`,height:336}),qP=Z(hN,{name:`MuiDateCalendar`,slot:`ViewTransitionContainer`})({}),JP=K.forwardRef(function(e,t){let n=IO(),{ownerState:r}=TO(),i=kc(),a=GP(e,`MuiDateCalendar`),{autoFocus:o,onViewChange:s,value:c,defaultValue:l,referenceDate:u,disableFuture:d,disablePast:f,onChange:p,onMonthChange:m,reduceAnimations:h,shouldDisableDate:g,shouldDisableMonth:_,shouldDisableYear:v,view:y,views:b,openTo:x,className:S,classes:C,disabled:w,readOnly:T,minDate:E,maxDate:D,disableHighlightToday:O,focusedView:k,onFocusedViewChange:A,showDaysOutsideCurrentMonth:j,fixedWeekNumber:M,dayOfWeekFormatter:N,slots:P,slotProps:F,loading:I,renderLoading:L,displayWeekNumber:R,yearsOrder:z,yearsPerRow:ee,monthsPerRow:te,timezone:B}=a,V=cD(a,UP),{value:ne,handleValueChange:re,timezone:ie}=Jk({name:`DateCalendar`,timezone:B,value:c,defaultValue:l,referenceDate:u,onChange:p,valueManager:lO}),{view:H,setView:U,focusedView:W,setFocusedView:ae,goToNextView:oe,setValueAndGoToNextView:se}=Gk({view:y,views:b,openTo:x,onChange:re,onViewChange:s,autoFocus:o,focusedView:k,onFocusedViewChange:A}),{referenceDate:ce,calendarState:G,setVisibleDate:le,isDateDisabled:ue,onMonthSwitchingAnimationEnd:de}=LM({value:ne,referenceDate:u,reduceAnimations:h,onMonthChange:m,minDate:E,maxDate:D,shouldDisableDate:g,disablePast:f,disableFuture:d,timezone:ie,getCurrentMonthFromVisibleDate:(e,t)=>n.isSameMonth(e,t)?t:n.startOfMonth(e)}),fe=w&&ne||E,pe=w&&ne||D,me=`${i}-grid-label`,he=W!==null,ge=P?.calendarHeader??BP,_e=vg({elementType:ge,externalSlotProps:F?.calendarHeader,additionalProps:{views:b,view:H,currentMonth:G.currentMonth,onViewChange:U,onMonthChange:e=>le({target:e,reason:`header-navigation`}),minDate:fe,maxDate:pe,disabled:w,disablePast:f,disableFuture:d,reduceAnimations:h,timezone:ie,labelId:me},ownerState:r}),ve=xd(e=>{let t=n.startOfMonth(e),r=n.endOfMonth(e),i=ue(e)?mD({adapter:n,date:e,minDate:n.isBefore(E,t)?t:E,maxDate:n.isAfter(D,r)?r:D,disablePast:f,disableFuture:d,isDateDisabled:ue,timezone:ie}):e;i?(se(i,`finish`),le({target:i,reason:`cell-interaction`})):(oe(),le({target:t,reason:`cell-interaction`}))}),ye=xd(e=>{let t=n.startOfYear(e),r=n.endOfYear(e),i=ue(e)?mD({adapter:n,date:e,minDate:n.isBefore(E,t)?t:E,maxDate:n.isAfter(D,r)?r:D,disablePast:f,disableFuture:d,isDateDisabled:ue,timezone:ie}):e;i?(se(i,`finish`),le({target:i,reason:`cell-interaction`})):(oe(),le({target:t,reason:`cell-interaction`}))}),be=xd(e=>re(e&&pD(n,e,ne??ce),`finish`,H));K.useEffect(()=>{n.isValid(ne)&&le({target:ne,reason:`controlled-value-change`})},[ne]);let xe=WP(C),Se={disablePast:f,disableFuture:d,maxDate:D,minDate:E},Ce={disableHighlightToday:O,readOnly:T,disabled:w,timezone:ie,gridLabelId:me,slots:P,slotProps:F},we=K.useRef(H);K.useEffect(()=>{we.current!==H&&(W===we.current&&ae(H,!0),we.current=H)},[W,ae,H]);let Te=K.useMemo(()=>[ne],[ne]);return(0,J.jsxs)(KP,Y({ref:t,className:q(xe.root,S),ownerState:r},V,{children:[(0,J.jsx)(ge,Y({},_e,{slots:P,slotProps:F})),(0,J.jsx)(qP,{reduceAnimations:h,className:xe.viewTransitionContainer,transKey:H,ownerState:r,children:(0,J.jsxs)(`div`,{children:[H===`year`&&(0,J.jsx)(_P,Y({},Se,Ce,{value:ne,onChange:ye,shouldDisableYear:v,hasFocus:he,onFocusedViewChange:e=>ae(`year`,e),yearsOrder:z,yearsPerRow:ee,referenceDate:ce})),H===`month`&&(0,J.jsx)(aP,Y({},Se,Ce,{currentMonth:G.currentMonth,hasFocus:he,className:S,value:ne,onChange:ve,shouldDisableMonth:_,onFocusedViewChange:e=>ae(`month`,e),monthsPerRow:te,referenceDate:ce})),H===`day`&&(0,J.jsx)(qN,Y({},G,Se,Ce,{onMonthSwitchingAnimationEnd:de,hasFocus:he,onFocusedDayChange:e=>le({target:e,reason:`cell-interaction`}),reduceAnimations:h,selectedDays:Te,onSelectedDaysChange:be,shouldDisableDate:g,shouldDisableMonth:_,shouldDisableYear:v,onFocusedViewChange:e=>ae(`day`,e),showDaysOutsideCurrentMonth:j,fixedWeekNumber:M,dayOfWeekFormatter:N,displayWeekNumber:R,loading:I,renderLoading:L}))]})})]}))}),YP=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minDate:p,maxDate:m,shouldDisableDate:h,shouldDisableMonth:g,shouldDisableYear:_,reduceAnimations:v,onMonthChange:y,monthsPerRow:b,onYearChange:x,yearsOrder:S,yearsPerRow:C,slots:w,slotProps:T,loading:E,renderLoading:D,disableHighlightToday:O,readOnly:k,disabled:A,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:M,sx:N,autoFocus:P,fixedWeekNumber:F,displayWeekNumber:I,timezone:L})=>(0,J.jsx)(JP,{view:e,onViewChange:t,views:n.filter(SD),focusedView:r&&SD(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minDate:p,maxDate:m,shouldDisableDate:h,shouldDisableMonth:g,shouldDisableYear:_,reduceAnimations:v,onMonthChange:y,monthsPerRow:b,onYearChange:x,yearsOrder:S,yearsPerRow:C,slots:w,slotProps:T,loading:E,renderLoading:D,disableHighlightToday:O,readOnly:k,disabled:A,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:M,sx:N,autoFocus:P,fixedWeekNumber:F,displayWeekNumber:I,timezone:L}),XP=K.forwardRef(function(e,t){let n=IO(),r=gk(e,`MuiDesktopDatePicker`),i=Y({day:YP,month:YP,year:YP},r.viewRenderers),{renderPicker:a}=AA({ref:t,props:Y({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:CD(n,r,!1),yearsPerRow:r.yearsPerRow??4,slots:Y({field:PM},r.slots),slotProps:Y({},r.slotProps,{field:e=>Y({},lh(r.slotProps?.field,e),HO(r)),toolbar:Y({hidden:!0},r.slotProps?.toolbar)})}),valueManager:lO,valueType:`date`,validator:ok,steps:null});return a()}),ZP=Z(vx,{slot:`internal`})({[`& .${dx.container}`]:{outline:0},[`& .${dx.paper}`]:{outline:0,minWidth:320}}),QP=Z(jx,{slot:`internal`})({"&:first-of-type":{padding:0}});function $P(e){let{children:t,slots:n,slotProps:r}=e,{open:i}=xO(),{dismissViews:a,onPopperExited:o}=TO(),s=n?.dialog??ZP;return(0,J.jsx)(s,Y({open:i,onClose:()=>{a(),o?.()}},r?.dialog,{PaperComponent:n?.mobilePaper,slots:Y({transition:n?.mobileTransition??G_},r?.dialog?.slots),slotProps:Y({transition:r?.mobileTransition,paper:r?.mobilePaper},r?.dialog?.slotProps),children:(0,J.jsx)(QP,{children:t})}))}var eF=[`props`,`steps`],tF=[`ownerState`],nF=e=>{let{props:t,steps:n}=e,r=cD(e,eF),{slots:i,slotProps:a,label:o,inputRef:s,localeText:c}=t,l=DA({steps:n}),{providerProps:u,renderCurrentView:d,ownerState:f}=Zk(Y({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:`dialog`,variant:`mobile`,getStepNavigation:l})),p=u.privateContextValue.labelId,m=a?.toolbar?.hidden??!1,h=i.field,g=cD(vg({elementType:h,externalSlotProps:a?.field,externalForwardedProps:Ek(t),additionalProps:Y({},m&&{id:p}),ownerState:f}),tF),_=i.layout??EA,v=p;m&&(v=o?`${p}-label`:void 0);let y=Y({},a,{toolbar:Y({},a?.toolbar,{titleId:p}),mobilePaper:Y({"aria-labelledby":v},a?.mobilePaper)});return{renderPicker:()=>(0,J.jsxs)(wO,Y({},u,{children:[(0,J.jsx)(h,Y({},g,{slots:Y({},i,g.slots),slotProps:Y({},y,g.slotProps),inputRef:s})),(0,J.jsx)($P,{slots:i,slotProps:y,children:(0,J.jsx)(_,Y({},y?.layout,{slots:i,slotProps:y,children:d()}))})]}))}},rF=K.forwardRef(function(e,t){let n=IO(),r=gk(e,`MuiMobileDatePicker`),i=Y({day:YP,month:YP,year:YP},r.viewRenderers),{renderPicker:a}=nF({ref:t,props:Y({},r,{viewRenderers:i,format:CD(n,r,!1),slots:Y({field:PM},r.slots),slotProps:Y({},r.slotProps,{field:e=>Y({},lh(r.slotProps?.field,e),HO(r)),toolbar:Y({hidden:!1},r.slotProps?.toolbar)})}),valueManager:lO,valueType:`date`,validator:ok,steps:null});return a()}),iF=[`desktopModeMediaQuery`],aF=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiDatePicker`}),{desktopModeMediaQuery:r=Tk}=n,i=cD(n,iF);return lD(r,{defaultMatches:!0})?(0,J.jsx)(XP,Y({ref:t},i)):(0,J.jsx)(rF,Y({ref:t},i))}),oF=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),sF=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),cF=s(((e,t)=>{t.exports=sF()})),lF=s((e=>{var t=cF(),n=Ye(),r=z_();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),N=Symbol.for(`react.forward_ref`),P=Symbol.for(`react.suspense`),F=Symbol.for(`react.suspense_list`),I=Symbol.for(`react.memo`),L=Symbol.for(`react.lazy`),R=Symbol.for(`react.activity`),z=Symbol.for(`react.legacy_hidden`),ee=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.for(`react.view_transition`),B=Symbol.for(`react.recoverable`),V=Symbol.iterator;function ne(e){return typeof e!=`object`||!e?null:(e=V&&e[V]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case P:return`Suspense`;case F:return`SuspenseList`;case R:return`Activity`;case te:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case M:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case N:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case I:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case L:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var H=Array.isArray,U=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function ce(e){return{current:e}}function G(e){0>se||(e.current=oe[se],oe[se]=null,se--)}function le(e,t){se++,oe[se]=e.current,e.current=t}var ue=ce(null),de=ce(null),fe=ce(null),pe=ce(null);function me(e,t){switch(le(fe,t),le(de,e),le(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}G(ue),le(ue,e)}function he(){G(ue),G(de),G(fe)}function ge(e){var t=e.memoizedState;t!==null&&(Q._currentValue=t.memoizedState,le(pe,e)),t=ue.current;var n=dp(t,e.type);t!==n&&(le(de,e),le(ue,n))}function _e(e){de.current===e&&(G(ue),G(de)),pe.current===e&&(G(pe),Q._currentValue=ae)}var ve,ye;function be(e){if(ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||``,ye=-1<e.stack.indexOf(`
203
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
204
+ `+ve+e+ye}var xe=!1;function Se(e,t){if(!e||xe)return``;xe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
205
+ `),l=s.split(`
206
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
207
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{xe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?be(n):``}function Ce(e,t){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be(`Lazy`);case 13:return e.child!==t&&t!==null?be(`Suspense Fallback`):be(`Suspense`);case 19:return be(`SuspenseList`);case 0:case 15:return Se(e.type,!1);case 11:return Se(e.type.render,!1);case 1:return Se(e.type,!0);case 31:return be(`Activity`);case 30:return be(`ViewTransition`);default:return``}}function we(e){try{var t=``,n=null;do t+=Ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
208
+ Error generating stack: `+e.message+`
209
+ `+e.stack}}var Te=Object.prototype.hasOwnProperty,Ee=t.unstable_scheduleCallback,De=t.unstable_cancelCallback,Oe=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,Me=t.unstable_ImmediatePriority,Ne=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,Be=null;function Ve(e){if(typeof Le==`function`&&Re(e),Be&&typeof Be.setStrictMode==`function`)try{Be.setStrictMode(ze,e)}catch{}}var He=Math.clz32?Math.clz32:Ge,Ue=Math.log,We=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(Ue(e)/We|0)|0}var Ke=256,qe=262144,Je=4194304;function K(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=K(n))):i=K(o):i=K(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=K(n))):i=K(o)):i=K(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-He(n),i=1<<r;t|=e[r],n&=~i}return t}function $e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function et(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function tt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-He(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&it(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function it(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-He(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function at(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-He(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ot(e,t){var n=t&-t;return n=n&42?1:st(n),(n&(e.suspendedLanes|t))===0?n:0}function st(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ct(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function lt(){var e=W.p;return e===0?(e=window.event,e===void 0?32:Sh(e.type)):e}function ut(e,t){var n=W.p;try{return W.p=e,t()}finally{W.p=n}}var dt=Math.random().toString(36).slice(2),ft=`__reactFiber$`+dt,pt=`__reactProps$`+dt,mt=`__reactContainer$`+dt,ht=`__reactEvents$`+dt,gt=`__reactListeners$`+dt,_t=`__reactHandles$`+dt,vt=`__reactResources$`+dt,yt=`__reactMarker$`+dt,bt=`__reactLoad$`+dt;function xt(e){delete e[ft],delete e[pt],delete e[gt],delete e[_t]}function St(e){var t;if(t=e[ft])return t;for(var n=e.parentNode;n;){if(t=n[mt]||n[ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[ft])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function Ct(e){if(e=e[ft]||e[mt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Tt(e){var t=e[vt];return t||=e[vt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Et(e){e[yt]=!0}function Dt(e){e[bt]=void 0}var Ot=new Set,kt={};function At(e,t){jt(e,t),jt(e+`Capture`,t)}function jt(e,t){for(kt[e]=t,e=0;e<t.length;e++)Ot.add(t[e])}var Mt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Nt={},Pt={};function Ft(e){return Te.call(Pt,e)?!0:Te.call(Nt,e)?!1:Mt.test(e)?Pt[e]=!0:(Nt[e]=!0,!1)}var It=!1;function Lt(){var e=It;return It=!1,e}function Rt(e,t,n){if(Ft(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function zt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Bt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Vt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ht(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ut(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wt(e){if(!e._valueTracker){var t=Ht(e)?`checked`:`value`;e._valueTracker=Ut(e,t,``+e[t])}}function Gt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ht(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Kt=/[\n"\\]/g;function qt(e){return e.replace(Kt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Jt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Vt(t)):e.value!==``+Vt(t)&&(e.value=``+Vt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Xt(e,Vt(n)):o===`number`&&e.value==t?Xt(e,Vt(e.value)):Xt(e,Vt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Vt(s):e.removeAttribute(`name`)}function Yt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Wt(e);return}n=n==null?``:``+Vt(n),t=t==null?n:``+Vt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Wt(e)}function Xt(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function Zt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Vt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qt(e,t,n){if(t!=null&&(t=``+Vt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Vt(n)}function $t(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(H(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Vt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Wt(e)}function en(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function nn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||tn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function rn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,It=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(nn(e,a,r),It=!0)}else for(var o in t)t.hasOwnProperty(o)&&nn(e,o,t[o])}function an(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var on=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),sn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function cn(e){return sn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function ln(){}var un=null;function dn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fn=null,pn=null;function mn(e){var t=Ct(e);if(t&&(e=t.stateNode)){var n=e[pt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Jt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+qt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[pt]||null;if(!a)throw Error(i(90));Jt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Gt(r)}break a;case`textarea`:Qt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Zt(e,!!n.multiple,t,!1)}}}var hn=!1;function gn(e,t,n){if(hn)return e(t,n);hn=!0;try{return e(t)}finally{if(hn=!1,(fn!==null||pn!==null)&&(Id(),fn&&(t=fn,e=pn,pn=fn=null,mn(t),e)))for(t=0;t<e.length;t++)mn(e[t])}}function _n(e,t){var n=e.stateNode;if(n===null)return null;var r=n[pt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var vn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,yn=!1;if(vn)try{var bn={};Object.defineProperty(bn,"passive",{get:function(){yn=!0}}),window.addEventListener(`test`,bn,bn),window.removeEventListener(`test`,bn,bn)}catch{yn=!1}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Cn=i.slice(e,1<r?1-r:void 0)}function Tn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function En(){return!0}function Dn(){return!1}function On(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?En:Dn,this.isPropagationStopped=Dn,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=On(kn),jn=w({},kn,{view:0,detail:0}),Mn=On(jn),Nn,Pn,Fn,In=w({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=On(In),Rn=On(w({},In,{dataTransfer:0})),zn=On(w({},jn,{relatedTarget:0})),Bn=On(w({},kn,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=On(w({},kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Hn=On(w({},kn,{data:0})),Un={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Wn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Gn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gn[e])?!!t[e]:!1}function qn(){return Kn}var Jn=On(w({},jn,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Tn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Wn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return e.type===`keypress`?Tn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Tn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Yn=On(w({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Xn=On(w({},kn,{submitter:0})),Zn=On(w({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Qn=On(w({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),$n=On(w({},In,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),er=On(w({},kn,{newState:0,oldState:0,source:0})),tr=[9,13,27,32],nr=vn&&`CompositionEvent`in window,rr=null;vn&&`documentMode`in document&&(rr=document.documentMode);var ir=vn&&`TextEvent`in window&&!rr,ar=vn&&(!nr||rr&&8<rr&&11>=rr),or=` `,sr=!1;function cr(e,t){switch(e){case`keyup`:return tr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function lr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ur=!1;function dr(e,t){switch(e){case`compositionend`:return lr(t);case`keypress`:return t.which===32?(sr=!0,or):null;case`textInput`:return e=t.data,e===or&&sr?null:e;default:return null}}function fr(e,t){if(ur)return e===`compositionend`||!nr&&cr(e,t)?(e=wn(),Cn=Sn=xn=null,ur=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return ar&&t.locale!==`ko`?null:t.data;default:return null}}var pr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!pr[e.type]:t===`textarea`}function hr(e,t,n,r){fn?pn?pn.push(r):pn=[r]:fn=r,t=qf(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var gr=null,_r=null;function vr(e){zf(e,0)}function yr(e){if(Gt(wt(e)))return e}function br(e,t){if(e===`change`)return t}var q=!1;if(vn){var xr;if(vn){var Sr=`oninput`in document;if(!Sr){var Cr=document.createElement(`div`);Cr.setAttribute(`oninput`,`return;`),Sr=typeof Cr.oninput==`function`}xr=Sr}else xr=!1;q=xr&&(!document.documentMode||9<document.documentMode)}function wr(){gr&&(gr.detachEvent(`onpropertychange`,Tr),_r=gr=null)}function Tr(e){if(e.propertyName===`value`&&yr(_r)){var t=[];hr(t,_r,e,dn(e)),gn(vr,t)}}function Er(e,t,n){e===`focusin`?(wr(),gr=t,_r=n,gr.attachEvent(`onpropertychange`,Tr)):e===`focusout`&&wr()}function Dr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return yr(_r)}function Or(e,t){if(e===`click`)return yr(t)}function kr(e,t){if(e===`input`||e===`change`)return yr(t)}function Ar(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var jr=typeof Object.is==`function`?Object.is:Ar;function Mr(e,t){if(jr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Te.call(t,i)||!jr(e[i],t[i]))return!1}return!0}function Nr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fr(e,t){var n=Pr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Pr(n)}}function Ir(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ir(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nr(e.document)}return t}function Rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var zr=vn&&`documentMode`in document&&11>=document.documentMode,Br=null,Vr=null,Hr=null,Ur=!1;function Wr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ur||Br==null||Br!==Nr(r)||(r=Br,`selectionStart`in r&&Rr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hr&&Mr(Hr,r)||(Hr=r,r=qf(Vr,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Br)))}function Gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Kr={animationend:Gr(`Animation`,`AnimationEnd`),animationiteration:Gr(`Animation`,`AnimationIteration`),animationstart:Gr(`Animation`,`AnimationStart`),transitionrun:Gr(`Transition`,`TransitionRun`),transitionstart:Gr(`Transition`,`TransitionStart`),transitioncancel:Gr(`Transition`,`TransitionCancel`),transitionend:Gr(`Transition`,`TransitionEnd`)},qr={},Jr={};vn&&(Jr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Kr.animationend.animation,delete Kr.animationiteration.animation,delete Kr.animationstart.animation),`TransitionEvent`in window||delete Kr.transitionend.transition);function Yr(e){if(qr[e])return qr[e];if(!Kr[e])return e;var t=Kr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jr)return qr[e]=t[n];return e}var Xr=Yr(`animationend`),Zr=Yr(`animationiteration`),Qr=Yr(`animationstart`),$r=Yr(`transitionrun`),ei=Yr(`transitionstart`),ti=Yr(`transitioncancel`),ni=Yr(`transitionend`),ri=new Map,ii=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ii.push(`scrollEnd`);function ai(e,t){ri.set(e,t),At(t,[e])}var oi=0;function si(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=_d.identifierPrefix;var n=oi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function ci(e){if(e==null||typeof e==`string`)return e;var t=null,n=Td;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function li(e,t){return e=ci(e),t=ci(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var ui=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},di=[],fi=0,pi=0;function mi(){for(var e=fi,t=pi=fi=0;t<e;){var n=di[t];di[t++]=null;var r=di[t];di[t++]=null;var i=di[t];di[t++]=null;var a=di[t];if(di[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&vi(n,i,a)}}function hi(e,t,n,r){di[fi++]=e,di[fi++]=t,di[fi++]=n,di[fi++]=r,pi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function gi(e,t,n,r){return hi(e,t,n,r),yi(e)}function _i(e,t){return hi(e,null,null,t),yi(e)}function vi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-He(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function yi(e){if(50<Ed)throw Ed=0,Dd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var bi={};function xi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Si(e,t,n,r){return new xi(e,t,n,r)}function Ci(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wi(e,t){var n=e.alternate;return n===null?(n=Si(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ti(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ei(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ci(r)&&(s=1);else if(typeof r==`string`)s=qm(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case R:return e=Si(31,n,t,a),e.elementType=R,e.lanes=o,e;case O:return Di(n.children,a,o,t);case k:s=8,a|=24;break;case A:return e=Si(12,n,t,a|2),e.elementType=A,e.lanes=o,e;case P:return e=Si(13,n,t,a),e.elementType=P,e.lanes=o,e;case F:return e=Si(19,n,t,a),e.elementType=F,e.lanes=o,e;case z:case te:return e=a|32,e=Si(30,n,t,e),e.elementType=te,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case M:s=10;break a;case j:s=9;break a;case N:s=11;break a;case I:s=14;break a;case L:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Si(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Di(e,t,n,r){return e=Si(7,e,r,t),e.lanes=n,e}function Oi(e,t,n){return e=Si(6,e,null,t),e.lanes=n,e}function ki(e){var t=Si(18,null,null,0);return t.stateNode=e,t}function Ai(e,t,n){return t=Si(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ji=new WeakMap;function Mi(e,t){if(typeof e==`object`&&e){var n=ji.get(e);return n===void 0?(t={value:e,source:t,stack:we(t)},ji.set(e,t),t):n}return{value:e,source:t,stack:we(t)}}var Ni=[],Pi=0,Fi=null,Ii=0,Li=[],Ri=0,zi=null,Bi=1,Vi=``;function Hi(e,t){Ni[Pi++]=Ii,Ni[Pi++]=Fi,Fi=e,Ii=t}function Ui(e,t,n){Li[Ri++]=Bi,Li[Ri++]=Vi,Li[Ri++]=zi,zi=e;var r=Bi;e=Vi;var i=32-He(r)-1;r&=~(1<<i),n+=1;var a=32-He(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Bi=1<<32-He(t)+i|n<<i|r,Vi=a+e}else Bi=1<<a|n<<i|r,Vi=e}function Wi(e){e.return!==null&&(Hi(e,1),Ui(e,1,0))}function Gi(e){for(;e===Fi;)Fi=Ni[--Pi],Ni[Pi]=null,Ii=Ni[--Pi],Ni[Pi]=null;for(;e===zi;)zi=Li[--Ri],Li[Ri]=null,Vi=Li[--Ri],Li[Ri]=null,Bi=Li[--Ri],Li[Ri]=null}function Ki(e,t){Li[Ri++]=Bi,Li[Ri++]=Vi,Li[Ri++]=zi,Bi=t.id,Vi=t.overflow,zi=e}var qi=null,Ji=null,Yi=!1,Xi=null,Zi=!1,Qi=Error(i(519));function $i(e){throw Y(Mi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Qi}function ea(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ft]=e,t[pt]=r,n){case`dialog`:Bf(`cancel`,t),Bf(`close`,t);break;case`iframe`:case`object`:case`embed`:Bf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Lf.length;n++)Bf(Lf[n],t);break;case`source`:Bf(`error`,t);break;case`img`:case`image`:case`link`:Bf(`error`,t),Bf(`load`,t);break;case`details`:Bf(`toggle`,t);break;case`input`:Bf(`invalid`,t),Yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Bf(`invalid`,t);break;case`textarea`:Bf(`invalid`,t),$t(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||$f(t.textContent,n)?(r.popover!=null&&(Bf(`beforetoggle`,t),Bf(`toggle`,t)),r.onScroll!=null&&Bf(`scroll`,t),r.onScrollEnd!=null&&Bf(`scrollend`,t),r.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||$i(e,!0)}function ta(e){for(qi=e.return;qi;)switch(qi.tag){case 5:case 31:case 13:Zi=!1;return;case 27:case 3:Zi=!0;return;default:qi=qi.return}}function na(e){if(e!==qi)return!1;if(!Yi)return ta(e),Yi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||pp(e.type,e.memoizedProps)),n=!n),n&&Ji&&$i(e),ta(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ji=dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ji=dm(e)}else t===27?(t=Ji,Sp(e.type)?(e=um,um=null,Ji=e):Ji=t):Ji=qi?lm(e.stateNode.nextSibling):null;return!0}function ra(){Ji=qi=null,Yi=!1}function J(){var e=Xi;return e!==null&&(ld===null?ld=e:ld.push.apply(ld,e),Xi=null),e}function Y(e){Xi===null?Xi=[e]:Xi.push(e)}var ia=ce(null),aa=null,oa=null;function sa(e,t,n){le(ia,t._currentValue),t._currentValue=n}function ca(e){e._currentValue=ia.current,G(ia)}function la(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ua(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),la(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),la(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),la(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function da(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;jr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===pe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Q]:e.push(Q))}a=a.return}return e!==null&&ua(t,e,n,r),t.flags|=262144,e!==null}function fa(e){for(e=e.firstContext;e!==null;){if(!jr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pa(e){aa=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ma(e){return ga(aa,e)}function ha(e,t){return aa===null&&pa(e),ga(e,t)}function ga(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},oa===null){if(e===null)throw Error(i(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return n}var _a=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},va=t.unstable_scheduleCallback,ya=t.unstable_NormalPriority,ba={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xa(){return{controller:new _a,data:new Map,refCount:0}}function Sa(e){e.refCount--,e.refCount===0&&va(ya,function(){e.controller.abort()})}function Ca(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var wa=null;function Ta(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ea=null,Da=0,Oa=0,ka=null;function Aa(e,t){if(Ea===null){var n=Ea=[];Da=0,Oa=Mf(),ka={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Da++,t.then(ja,ja),t}function ja(){if(--Da===0&&(wa=null,Ea!==null)){ka!==null&&(ka.status=`fulfilled`);var e=Ea;Ea=null,Oa=0,ka=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ma(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Na=U.S;U.S=function(e,t){if(fd=Ae(),typeof t==`object`&&t&&typeof t.then==`function`&&Aa(e,t),wa!==null)for(var n=vf;n!==null;)Ca(n,wa),n=n.next;if(n=e.types,n!==null){for(var r=vf;r!==null;)Ca(r,n),r=r.next;if(Oa!==0){r=wa,r===null&&(r=wa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Na!==null&&Na(e,t)};var Pa=ce(null);function Fa(){var e=Pa.current;return e===null?qu.pooledCache:e}function Ia(e,t){t===null?le(Pa,Pa.current):le(Pa,t.pool)}function La(){var e=Fa();return e===null?null:{parent:ba._currentValue,pool:e}}var Ra=Error(i(460)),za=Error(i(474)),Ba=Error(i(542)),Va={then:function(){}};function Ha(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ua(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ln,ln),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,qa(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(ln,ln);else{if(e=qu,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,qa(e),e}throw Ga=t,Ra}}function Wa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ga=e,Ra):e}}var Ga=null;function Ka(){if(Ga===null)throw Error(i(459));var e=Ga;return Ga=null,e}function qa(e){if(e===Ra||e===Ba)throw Error(i(483))}var Ja=null,Ya=0;function Xa(e){var t=Ya;return Ya+=1,Ja===null&&(Ja=[]),Ua(Ja,e,t)}function Za(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Qa(e,t){throw t.$$typeof===T?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function $a(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=wi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Oi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===O?(e=d(e,t,n.props.children,r,n.key),Za(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===L&&Wa(i)===t.type)?(t=a(t,n.props),Za(t,n),t.return=e,t):(t=Ei(n.type,n.key,n.props,null,e.mode,r),Za(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ai(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Di(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Oi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=Ei(t.type,t.key,t.props,null,e.mode,n),Za(n,t),n.return=e,n;case D:return t=Ai(t,e.mode,n),t.return=e,t;case L:return t=Wa(t),f(e,t,n)}if(H(t)||ne(t))return t=Di(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Xa(t),n);if(t.$$typeof===M)return f(e,ha(e,t),n);Qa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case E:return n.key===i?l(e,t,n,r):null;case D:return n.key===i?u(e,t,n,r):null;case L:return n=Wa(n),p(e,t,n,r)}if(H(n)||ne(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Xa(n),r);if(n.$$typeof===M)return p(e,t,ha(e,n),r);Qa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case E:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case D:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case L:return r=Wa(r),m(e,t,n,r,i)}if(H(r)||ne(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Xa(r),i);if(r.$$typeof===M)return m(e,t,n,ha(t,r),i);Qa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Yi&&Hi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Yi&&Hi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Yi&&Hi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Yi&&Hi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Yi&&Hi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Yi&&Hi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===O&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case E:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===O){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),Za(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===L&&Wa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Za(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=Di(o.props.children,e.mode,c,o.key),Za(c,o),c.return=e,e=c):(c=Ei(o.type,o.key,o.props,null,e.mode,c),Za(c,o),c.return=e,e=c)}return s(e);case D:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ai(o,e.mode,c),c.return=e,e=c}return s(e);case L:return o=Wa(o),_(e,r,o,c)}if(H(o))return h(e,r,o,c);if(ne(o)){if(l=ne(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,Xa(o),c);if(o.$$typeof===M)return _(e,r,ha(e,o),c);Qa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Oi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ya=0;var i=_(e,t,n,r);return Ja=null,i}catch(t){if(t===Ra||t===Ba)throw t;var a=Si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var eo=$a(!0),to=$a(!1),no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ao(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function oo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ku&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=yi(e),vi(e,null,n),t}return hi(e,r,t,n),yi(e)}function so(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}function co(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var lo=!1;function uo(){if(lo){var e=ka;if(e!==null)throw e}}function fo(e,t,n,r){lo=!1;var i=e.updateQueue;no=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Yu&f)===f:(r&f)===f){f!==0&&f===Oa&&(lo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=w({},d,f);break a;case 2:no=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),rd|=o,e.lanes=o,e.memoizedState=d}}function po(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function mo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)po(n[e],t)}var ho=ce(null),go=ce(0);function _o(e,t){e=td,le(go,e),le(ho,t),td=e|t.baseLanes}function vo(){le(go,td),le(ho,ho.current)}function yo(){td=go.current,G(ho),G(go)}var bo=ce(null),xo=null;function So(e){var t=e.alternate;le(Do,Do.current&1),le(bo,e),xo===null&&(t===null||ho.current!==null||t.memoizedState!==null)&&(xo=e)}function Co(e){le(Do,Do.current),le(bo,e),xo===null&&(xo=e)}function wo(e){e.tag===22?(le(Do,Do.current),le(bo,e),xo===null&&(xo=e)):To()}function To(){le(Do,Do.current),le(bo,bo.current)}function Eo(e){G(bo),xo===e&&(xo=null),G(Do)}var Do=ce(0);function Oo(e,t){le(bo,bo.current),le(Do,t)}function ko(e){G(Do),G(bo),xo===e&&(xo=null)}function Ao(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||om(n)||sm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jo=0,Mo=null,No=null,Po=null,Fo=!1,Io=!1,Lo=!1,Ro=0,zo=0,Bo=null,Vo=0;function Ho(){throw Error(i(321))}function Uo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jr(e[n],t[n]))return!1;return!0}function Wo(e,t,n,r,i,a){return jo=a,Mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?sc:cc,Lo=!1,a=n(r,i),Lo=!1,Io&&(a=Ko(t,n,r,i)),Go(e),a}function Go(e){U.H=oc;var t=No!==null&&No.next!==null;if(jo=0,Po=No=Mo=null,Fo=!1,zo=0,Bo=null,t)throw Error(i(300));e===null||Tc||(e=e.dependencies,e!==null&&fa(e)&&(Tc=!0))}function Ko(e,t,n,r){Mo=e;var a=0;do{if(Io&&(Bo=null),zo=0,Io=!1,25<=a)throw Error(i(301));if(a+=1,Po=No=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}U.H=lc,o=t(n,r)}while(Io);return o}function qo(){var e=U.H,t=e.useState()[0];return t=typeof t.then==`function`?es(t):t,e=e.useState()[0],(No===null?null:No.memoizedState)!==e&&(Mo.flags|=1024),t}function Jo(){var e=Ro!==0;return Ro=0,e}function Yo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Xo(e){if(Fo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fo=!1}jo=0,Po=No=Mo=null,Io=!1,zo=Ro=0,Bo=null}function Zo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Po===null?Mo.memoizedState=Po=e:Po=Po.next=e,Po}function Qo(){if(No===null){var e=Mo.alternate;e=e===null?null:e.memoizedState}else e=No.next;var t=Po===null?Mo.memoizedState:Po.next;if(t!==null)Po=t,No=e;else{if(e===null)throw Mo.alternate===null?Error(i(467)):Error(i(310));No=e,e={memoizedState:No.memoizedState,baseState:No.baseState,baseQueue:No.baseQueue,queue:No.queue,next:null},Po===null?Mo.memoizedState=Po=e:Po=Po.next=e}return Po}function $o(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function es(e){var t=zo;return zo+=1,Bo===null&&(Bo=[]),e=Ua(Bo,e,t),t=Mo,(Po===null?t.memoizedState:Po.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?sc:cc),e}function ts(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return es(e);if(e.$$typeof===B)return;if(e.$$typeof===M)return ma(e)}throw Error(i(438,String(e)))}function ns(e){var t=null,n=Mo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Mo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=$o(),Mo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ee;return t.index++,n}function rs(e,t){return typeof t==`function`?t(e):t}function is(e){return as(Qo(),No,e)}function as(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(jo&f)===f:(Yu&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Oa&&(d=!0);else if((jo&p)===p){u=u.next,p===Oa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Mo.lanes|=p,rd|=p;f=u.action,Lo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Mo.lanes|=f,rd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!jr(o,e.memoizedState)&&(Tc=!0,d&&(n=ka,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function os(e){var t=Qo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);jr(o,t.memoizedState)||(Tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ss(e,t,n){var r=Mo,a=Qo(),o=Yi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!jr((No||a).memoizedState,n);if(s&&(a.memoizedState=n,Tc=!0),a=a.queue,Ms(us.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Po!==null&&!!(Po.memoizedState.tag&1),Ds(e?9:8,{destroy:void 0},ls.bind(null,r,a,n,t),null),e){if(r.flags|=2048,qu===null)throw Error(i(349));o||jo&127||cs(r,t,n)}return n}function cs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Mo.updateQueue,t===null?(t=$o(),Mo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ls(e,t,n,r){t.value=n,t.getSnapshot=r,ds(t)&&fs(e)}function us(e,t,n){return n(function(){ds(t)&&fs(e)})}function ds(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jr(e,n)}catch{return!0}}function fs(e){var t=_i(e,2);t!==null&&jd(t,e,2)}function ps(e){var t=Zo();if(typeof e==`function`){var n=e;if(e=n(),Lo){Ve(!0);try{n()}finally{Ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:e},t}function ms(e,t,n,r){return e.baseState=n,as(e,No,typeof r==`function`?r:rs)}function hs(e,t,n,r,a){if(rc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};U.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,gs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function gs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=U.T,o={};o.types=a===null?null:a.types,U.T=o;try{var s=n(i,r),c=U.S;c!==null&&c(o,s),_s(e,t,s)}catch(n){ys(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),U.T=a}}else try{a=n(i,r),_s(e,t,a)}catch(n){ys(e,t,n)}}function _s(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){vs(e,t,n)},function(n){return ys(e,t,n)}):vs(e,t,n)}function vs(e,t,n){t.status=`fulfilled`,t.value=n,bs(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,gs(e,n)))}function ys(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,bs(t),t=t.next;while(t!==r)}e.action=null}function bs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xs(e,t){return t}function Ss(e,t){if(Yi){var n=qu.formState;if(n!==null){a:{var r=Mo;if(Yi){if(Ji){b:{for(var i=Ji,a=Zi;i.nodeType!==8;){if(!a){i=null;break b}if(i=lm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ji=lm(i.nextSibling),r=i.data===`F!`;break a}}$i(r)}r=!1}r&&(t=n[0])}}return n=Zo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:t},n.queue=r,n=ec.bind(null,Mo,r),r.dispatch=n,r=ps(!1),a=nc.bind(null,Mo,!1,r.queue),r=Zo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=hs.bind(null,Mo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Cs(e){return ws(Qo(),No,e)}function ws(e,t,n){if(t=as(e,t,xs)[0],e=is(rs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=es(t)}catch(e){throw e===Ra?Ba:e}else r=t;t=Qo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Mo.flags|=2048,Ds(9,{destroy:void 0},Ts.bind(null,i,n),null)),[r,a,e]}function Ts(e,t){e.action=t}function Es(e){var t=Qo(),n=No;if(n!==null)return ws(t,n,e);Qo(),t=t.memoizedState,n=Qo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ds(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Mo.updateQueue,t===null&&(t=$o(),Mo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Os(){return Qo().memoizedState}function ks(e,t,n,r){var i=Zo();Mo.flags|=e,i.memoizedState=Ds(1|t,{destroy:void 0},n,r===void 0?null:r)}function As(e,t,n,r){var i=Qo();r=r===void 0?null:r;var a=i.memoizedState.inst;No!==null&&r!==null&&Uo(r,No.memoizedState.deps)?i.memoizedState=Ds(t,a,n,r):(Mo.flags|=e,i.memoizedState=Ds(1|t,a,n,r))}function js(e,t){ks(8390656,8,e,t)}function Ms(e,t){As(2048,8,e,t)}function Ns(e){Mo.flags|=4;var t=Mo.updateQueue;if(t===null)t=$o(),Mo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ps(e){var t=Qo().memoizedState;return Ns({ref:t,nextImpl:e}),function(){if(Ku&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Fs(e,t){return As(4,2,e,t)}function Is(e,t){return As(4,4,e,t)}function Ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rs(e,t,n){n=n==null?null:n.concat([e]),As(4,4,Ls.bind(null,t,e),n)}function zs(){}function Bs(e,t){var n=Qo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Uo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vs(e,t){var n=Qo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Uo(t,r[1]))return r[0];if(r=e(),Lo){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r}function Hs(e,t,n){return n===void 0||jo&1073741824&&!(Yu&261930)?e.memoizedState=t:(e.memoizedState=n,e=kd(),Mo.lanes|=e,rd|=e,n)}function Us(e,t,n,r){return jr(n,t)?n:ho.current===null?!(jo&106)||jo&1073741824&&!(Yu&261930)?(Tc=!0,e.memoizedState=n):(e=kd(),Mo.lanes|=e,rd|=e,t):(e=Hs(e,n,r),jr(e,t)||(Tc=!0),e)}function Ws(e,t,n,r,i){var a=W.p;W.p=a!==0&&8>a?a:8;var o=U.T,s={};s.types=o===null?null:o.types,U.T=s,nc(e,!1,t,n);try{var c=i(),l=U.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?tc(e,t,Ma(c,r),Od(e)):tc(e,t,r,Od(e))}catch(n){tc(e,t,{then:function(){},status:`rejected`,reason:n},Od())}finally{W.p=a,o!==null&&s.types!==null&&(o.types=s.types),U.T=o}}function Gs(){}function Ks(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=qs(e).queue;Ws(e,a,t,ae,n===null?Gs:function(){return Js(e),n(r)})}function qs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Js(e){var t=qs(e);t.next===null&&(t=e.alternate.memoizedState),tc(e,t.next.queue,{},Od())}function Ys(){return ma(Q)}function Xs(){return Qo().memoizedState}function Zs(){return Qo().memoizedState}function Qs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Od();e=ao(n);var r=oo(t,e,n);r!==null&&(jd(r,t,n),so(r,t,n)),t={cache:xa()},e.payload=t;return}t=t.return}}function $s(e,t,n){var r=Od();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},rc(e)?ic(t,n):(n=gi(e,t,n,r),n!==null&&(jd(n,e,r),ac(n,t,r)))}function ec(e,t,n){tc(e,t,n,Od())}function tc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(rc(e))ic(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,jr(s,o))return hi(e,t,i,0),qu===null&&mi(),!1}catch{}if(n=gi(e,t,i,r),n!==null)return jd(n,e,r),ac(n,t,r),!0}return!1}function nc(e,t,n,r){if(r={lane:2,revertLane:Mf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},rc(e)){if(t)throw Error(i(479))}else t=gi(e,n,r,2),t!==null&&jd(t,e,2)}function rc(e){var t=e.alternate;return e===Mo||t!==null&&t===Mo}function ic(e,t){Io=Fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ac(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}var oc={readContext:ma,use:ts,useCallback:Ho,useContext:Ho,useEffect:Ho,useImperativeHandle:Ho,useLayoutEffect:Ho,useInsertionEffect:Ho,useMemo:Ho,useReducer:Ho,useRef:Ho,useState:Ho,useDebugValue:Ho,useDeferredValue:Ho,useTransition:Ho,useSyncExternalStore:Ho,useId:Ho,useHostTransitionStatus:Ho,useFormState:Ho,useActionState:Ho,useOptimistic:Ho,useMemoCache:Ho,useCacheRefresh:Ho,useEffectEvent:Ho},sc={readContext:ma,use:ts,useCallback:function(e,t){return Zo().memoizedState=[e,t===void 0?null:t],e},useContext:ma,useEffect:js,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ks(4194308,4,Ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ks(4194308,4,e,t)},useInsertionEffect:function(e,t){ks(4,2,e,t)},useMemo:function(e,t){var n=Zo();t=t===void 0?null:t;var r=e();if(Lo){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Zo();if(n!==void 0){var i=n(t);if(Lo){Ve(!0);try{n(t)}finally{Ve(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=$s.bind(null,Mo,e),[r.memoizedState,e]},useRef:function(e){var t=Zo();return e={current:e},t.memoizedState=e},useState:function(e){e=ps(e);var t=e.queue,n=ec.bind(null,Mo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:zs,useDeferredValue:function(e,t){return Hs(Zo(),e,t)},useTransition:function(){var e=ps(!1);return e=Ws.bind(null,Mo,e.queue,!0,!1),Zo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Mo,a=Zo();if(Yi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),qu===null)throw Error(i(349));Yu&127||cs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,js(us.bind(null,r,o,e),[e]),r.flags|=2048,Ds(9,{destroy:void 0},ls.bind(null,r,o,n,t),null),n},useId:function(){var e=Zo(),t=qu.identifierPrefix;if(Yi){var n=Vi,r=Bi;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ro++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Vo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ys,useFormState:Ss,useActionState:Ss,useOptimistic:function(e){var t=Zo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=nc.bind(null,Mo,!0,n),n.dispatch=t,[e,t]},useMemoCache:ns,useCacheRefresh:function(){return Zo().memoizedState=Qs.bind(null,Mo)},useEffectEvent:function(e){var t=Zo(),n={impl:e};return t.memoizedState=n,function(){if(Ku&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},cc={readContext:ma,use:ts,useCallback:Bs,useContext:ma,useEffect:Ms,useImperativeHandle:Rs,useInsertionEffect:Fs,useLayoutEffect:Is,useMemo:Vs,useReducer:is,useRef:Os,useState:function(){return is(rs)},useDebugValue:zs,useDeferredValue:function(e,t){return Us(Qo(),No.memoizedState,e,t)},useTransition:function(){var e=is(rs)[0],t=Qo().memoizedState;return[typeof e==`boolean`?e:es(e),t]},useSyncExternalStore:ss,useId:Xs,useHostTransitionStatus:Ys,useFormState:Cs,useActionState:Cs,useOptimistic:function(e,t){return ms(Qo(),No,e,t)},useMemoCache:ns,useCacheRefresh:Zs,useEffectEvent:Ps},lc={readContext:ma,use:ts,useCallback:Bs,useContext:ma,useEffect:Ms,useImperativeHandle:Rs,useInsertionEffect:Fs,useLayoutEffect:Is,useMemo:Vs,useReducer:os,useRef:Os,useState:function(){return os(rs)},useDebugValue:zs,useDeferredValue:function(e,t){var n=Qo();return No===null?Hs(n,e,t):Us(n,No.memoizedState,e,t)},useTransition:function(){var e=os(rs)[0],t=Qo().memoizedState;return[typeof e==`boolean`?e:es(e),t]},useSyncExternalStore:ss,useId:Xs,useHostTransitionStatus:Ys,useFormState:Es,useActionState:Es,useOptimistic:function(e,t){var n=Qo();return No===null?(n.baseState=e,[e,n.queue.dispatch]):ms(n,No,e,t)},useMemoCache:ns,useCacheRefresh:Zs,useEffectEvent:Ps};function uc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:w({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Od(),i=ao(r);i.payload=t,n!=null&&(i.callback=n),t=oo(e,i,r),t!==null&&(jd(t,e,r),so(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Od(),i=ao(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=oo(e,i,r),t!==null&&(jd(t,e,r),so(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Od(),r=ao(n);r.tag=2,t!=null&&(r.callback=t),t=oo(e,r,n),t!==null&&(jd(t,e,n),so(t,e,n))}};function fc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Mr(n,r)||!Mr(i,a):!0}function pc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&dc.enqueueReplaceState(t,t.state,null)}function mc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=w({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function hc(e){ui(e)}function gc(e){console.error(e)}function _c(e){ui(e)}function vc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function yc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function bc(e,t,n){return n=ao(n),n.tag=3,n.payload={element:null},n.callback=function(){vc(e,t)},n}function xc(e){return e=ao(e),e.tag=3,e}function Sc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){yc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){yc(t,n,r),typeof i!=`function`&&(hd===null?hd=new Set([this]):hd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Cc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&da(t,n,a,!0),n=bo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return xo===null?Ud():n.alternate===null&&nd===0&&(nd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Va?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),ff(e,r,a)),!1;case 22:return n.flags|=65536,r===Va?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),ff(e,r,a)),!1}throw Error(i(435,n.tag))}return ff(e,r,a),Ud(),!1}if(Yi)return t=bo.current,t===null?(r!==Qi&&(t=Error(i(423),{cause:r}),Y(Mi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Mi(r,n),a=bc(e.stateNode,r,a),co(e,a),nd!==4&&(nd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Qi&&(e=Error(i(422),{cause:r}),Y(Mi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Mi(o,n),cd===null?cd=[o]:cd.push(o),nd!==4&&(nd=2),t===null)return!0;r=Mi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=bc(n.stateNode,r,e),co(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(hd===null||!hd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=xc(a),Sc(a,e,n,r),co(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var wc=Error(i(461)),Tc=!1;function Ec(e,t,n,r){t.child=e===null?to(t,null,n,r):eo(t,e.child,n,r)}function Dc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return pa(t),r=Wo(e,t,n,o,a,i),s=Jo(),e!==null&&!Tc?(Yo(e,t,i),tl(e,t,i)):(Yi&&s&&Wi(t),t.flags|=1,Ec(e,t,r,i),t.child)}function Oc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ci(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,kc(e,t,a,r,i)):(e=Ei(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!nl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Mr:n,n(o,r)&&e.ref===t.ref)return tl(e,t,i)}return t.flags|=1,e=wi(a,r),e.ref=t.ref,e.return=t,t.child=e}function kc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Mr(a,r)&&e.ref===t.ref){if(Tc=!1,t.pendingProps=r=a,nl(e,i))e.flags&131072&&(Tc=!0);else return t.lanes=e.lanes,tl(e,t,i)}}return Lc(e,t,n,r,i)}function Ac(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Mc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ia(t,a===null?null:a.cachePool),a===null?vo():_o(t,a),wo(t);else return r=t.lanes=536870912,Mc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ia(t,null),vo(),To()):(Ia(t,a.cachePool),_o(t,a),To(),t.memoizedState=null);return Ec(e,t,i,n),t.child}function jc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Mc(e,t,n,r,i){var a=Fa();return a=a===null?null:{parent:ba._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ia(t,null),vo(),wo(t),e!==null&&da(e,t,r,!0),t.childLanes=i,null}function Nc(e,t){return t=Kc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Pc(e,t,n){return eo(t,e.child,null,n),e=Nc(t,t.pendingProps),e.flags|=2,Eo(t),t.memoizedState=null,e}function Fc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Yi){if(r.mode===`hidden`)return e=Nc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},jc(null,e);if(Co(t),(e=Ji)?(e=am(e,Zi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:zi===null?null:{id:Bi,overflow:Vi},retryLane:536870912,hydrationErrors:null},n=ki(e),n.return=t,t.child=n,qi=t,Ji=null)):e=null,e===null)throw $i(t);return t.lanes=536870912,null}return Nc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Co(t),a){if(t.flags&256)t.flags&=-257,t=Pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Tc||da(e,t,n,!1),a=(n&e.childLanes)!==0,Tc||a){if(ho.current===null){if(r=qu,r!==null&&(s=ot(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,_i(e,s),jd(r,e,s),wc;Ud()}t=Pc(e,t,n)}else e=o.treeContext,Ji=lm(s.nextSibling),qi=t,Yi=!0,Xi=null,Zi=!1,e!==null&&Ki(t,e),t=Nc(t,r),t.flags|=134221824;return t}return e=wi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ic(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Lc(e,t,n,r,i){return pa(t),n=Wo(e,t,n,r,void 0,i),r=Jo(),e!==null&&!Tc?(Yo(e,t,i),tl(e,t,i)):(Yi&&r&&Wi(t),t.flags|=1,Ec(e,t,n,i),t.child)}function Rc(e,t,n,r,i,a){return pa(t),t.updateQueue=null,n=Ko(t,r,n,i),Go(e),r=Jo(),e!==null&&!Tc?(Yo(e,t,a),tl(e,t,a)):(Yi&&r&&Wi(t),t.flags|=1,Ec(e,t,n,a),t.child)}function zc(e,t,n,r,i){if(pa(t),t.stateNode===null){var a=bi,o=n.contextType;typeof o==`object`&&o&&(a=ma(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=dc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ro(t),o=n.contextType,a.context=typeof o==`object`&&o?ma(o):bi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(uc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&dc.enqueueReplaceState(a,a.state,null),fo(t,r,a,i),uo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=mc(n,s);a.props=c;var l=a.context,u=n.contextType;o=bi,typeof u==`object`&&u&&(o=ma(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&pc(t,a,r,o),no=!1;var f=t.memoizedState;a.state=f,fo(t,r,a,i),uo(),l=t.memoizedState,s||f!==l||no?(typeof d==`function`&&(uc(t,n,d,r),l=t.memoizedState),(c=no||fc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,io(e,t),o=t.memoizedProps,u=mc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=bi,typeof l==`object`&&l&&(c=ma(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&pc(t,a,r,c),no=!1,f=t.memoizedState,a.state=f,fo(t,r,a,i),uo();var p=t.memoizedState;o!==d||f!==p||no||e!==null&&e.dependencies!==null&&fa(e.dependencies)?(typeof s==`function`&&(uc(t,n,s,r),p=t.memoizedState),(u=no||fc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&fa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Ic(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=eo(t,e.child,null,i),t.child=eo(t,null,n,i)):Ec(e,t,n,i),t.memoizedState=a.state,e=t.child):e=tl(e,t,i),e}function Bc(e,t,n,r){return ra(),t.flags|=256,Ec(e,t,n,r),t.child}var Vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(e){return{baseLanes:e,cachePool:La()}}function Uc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=od),e}function Wc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Do.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(Yi){if(i?So(t):To(),(e=Ji)?(e=am(e,Zi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:zi===null?null:{id:Bi,overflow:Vi},retryLane:536870912,hydrationErrors:null},n=ki(e),n.return=t,t.child=n,qi=t,Ji=null)):e=null,e===null)throw $i(t);return t.lanes=sm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(To(),i=t.mode,a=Kc({mode:`hidden`,children:a},i),r=Di(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Hc(n),r.childLanes=Uc(e,o,n),t.memoizedState=Vc,jc(null,r)):(So(t),Gc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Jc(e,t,a,o,r,c,s,n)}return i?(To(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=wi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Di(i,a,n,null),i.flags|=2):i=wi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,jc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Hc(n):(a=i.cachePool,a===null?a=La():(s=ba._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Uc(e,o,n),t.memoizedState=Vc,jc(e.child,r)):(So(t),n=e.child,e=n.sibling,n=wi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Gc(e,t){return t=Kc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Kc(e,t){return e=Si(22,e,null,t),e.lanes=0,e}function qc(e,t,n){return eo(t,e.child,null,n),e=Gc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(So(t),t.flags&=-257,qc(e,t,c)):t.memoizedState===null?(To(),o=a.fallback,s=t.mode,a=Kc({mode:`visible`,children:a.children},s),o=Di(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,eo(t,e.child,null,c),a=t.child,a.memoizedState=Hc(c),a.childLanes=Uc(e,r,c),t.memoizedState=Vc,jc(null,a)):(To(),t.child=e.child,t.flags|=128,null);if(So(t),sm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,Y({value:a,source:null,stack:null})),qc(e,t,c)}if(Tc||da(e,t,c,!1),r=(c&e.childLanes)!==0,Tc||r){if(ho.current!==null)return qc(e,t,c);if(r=qu,r!==null&&(a=ot(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,_i(e,a),jd(r,e,a),wc;return om(o)||Ud(),qc(e,t,c)}return om(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Ji=lm(o.nextSibling),qi=t,Yi=!0,Xi=null,Zi=!1,e!==null&&Ki(t,e),t=Gc(t,a.children),t.flags|=134221824,t)}function Yc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),la(e.return,t,n)}function Xc(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ao(n)===null&&(t=e),e=e.sibling}return t}function Zc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Qc(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function $c(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Do.current;if(t.flags&128)return Oo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Oo(t,o),i===`backwards`&&e!==null?(Qc(e),Ec(e,t,r,n),Qc(e)):Ec(e,t,r,n),r=Yi?Ii:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yc(e,n,t);else if(e.tag===19)Yc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=Xc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,Qc(t)),Zc(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ao(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zc(t,!0,n,null,a,r);break;case`together`:Zc(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=Xc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zc(t,!1,i,n,a,r)}return t.child}function el(e,t,n){var r=t.pendingProps;return sa(t,t.type,r.value),Ec(e,t,r.children,n),t.child}function tl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(da(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=wi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&fa(e)))}function rl(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),sa(t,ba,e.memoizedState.cache),ra();break;case 27:case 5:ge(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:sa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Co(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return So(t),t.flags|=128,null;r=da(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Wc(e,t,n):(So(t),e=tl(e,t,n),e===null?null:e.sibling)}So(t);break;case 19:if(t.flags&128)return $c(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(da(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return $c(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Oo(t,Do.current),r)break;return null;case 22:return t.lanes=0,Ac(e,t,n,t.pendingProps);case 24:sa(t,ba,e.memoizedState.cache)}return tl(e,t,n)}function il(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Tc=!0;else{if(!nl(e,n)&&!(t.flags&128))return Tc=!1,rl(e,t,n);Tc=!!(e.flags&131072)}}else Tc=!1,Yi&&t.flags&1048576&&Ui(t,Ii,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Wa(t.elementType),t.type=e,typeof e==`function`)Ci(e)?(r=mc(e,r),t.tag=1,t=zc(null,t,e,r,n)):(t.tag=0,t=Lc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===N){t.tag=11,t=Dc(null,t,e,r,n);break a}if(a===I){t.tag=14,t=Oc(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=el(null,t,n);break a}}throw t=ie(e)||e,Error(i(306,t,``))}}return t;case 0:return Lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=mc(r,t.pendingProps),zc(e,t,r,a,n);case 3:a:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,io(e,t),fo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,sa(t,ba,r),r!==o.cache&&ua(t,[ba],n,!0),uo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Bc(e,t,r,n);break a}if(r!==a){a=Mi(Error(i(424)),t),Y(a),t=Bc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ji=lm(e.firstChild),qi=t,Yi=!0,Xi=null,Zi=!0,n=to(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ra(),r===a){t=tl(e,t,n);break a}Ec(e,t,r,n)}t=t.child}return t;case 26:return Ic(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Yi||(t.stateNode=fp(t.type,t.pendingProps,fe.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&Yi&&(r=t.stateNode=hm(t.type,t.pendingProps,fe.current),qi=t,Zi=!0,a=Ji,Sp(t.type)?(um=a,Ji=lm(r.firstChild)):Ji=a),Ec(e,t,t.pendingProps.children,n),Ic(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Yi&&((a=r=Ji)&&(r=rm(r,t.type,t.pendingProps,Zi),r===null?a=!1:(t.stateNode=r,qi=t,Ji=lm(r.firstChild),Zi=!1,a=!0)),a||$i(t)),ge(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,pp(a,o)?r=null:s!==null&&pp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Wo(e,t,qo,null,null,n),Q._currentValue=a),Ic(e,t),Ec(e,t,r,n),t.child;case 6:return e===null&&Yi&&((e=n=Ji)&&(n=im(n,t.pendingProps,Zi),n===null?e=!1:(t.stateNode=n,qi=t,Ji=null,e=!0)),e||$i(t)),null;case 13:return Wc(e,t,n);case 4:return me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=eo(t,null,r,n):Ec(e,t,r,n),t.child;case 11:return Dc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Ic(e,t),Ec(e,t,r,n),t.child;case 8:return Ec(e,t,t.pendingProps.children,n),t.child;case 12:return Ec(e,t,t.pendingProps.children,n),t.child;case 10:return el(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,pa(t),a=ma(a),r=r(a),t.flags|=1,Ec(e,t,r,n),t.child;case 14:return Oc(e,t,t.type,t.pendingProps,n);case 15:return kc(e,t,t.type,t.pendingProps,n);case 19:return $c(e,t,n);case 31:return Fc(e,t,n);case 22:return Ac(e,t,n,t.pendingProps);case 24:return pa(t),r=ma(ba),e===null?(a=Fa(),a===null&&(a=qu,o=xa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},ro(t),sa(t,ba,a)):((e.lanes&n)!==0&&(io(e,t),fo(t,null,null,n),uo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,sa(t,ba,r),r!==a.cache&&ua(t,[ba],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),sa(t,ba,r))),Ec(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:Yi&&Wi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Ic(e,t),Ec(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function al(e){e.flags|=4}function ol(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Jm(t,r):Jm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Bd())e.flags|=8192;else throw Ga=Va,za}}else e.flags&=-16777217}function sl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t)){if(Bd())e.flags|=8192;else throw Ga=Va,za}}function cl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:et(),e.lanes|=t,sd|=t)}function ll(e,t){if(!Yi)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function ul(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dl(e,t,n){var r=t.pendingProps;switch(Gi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ul(t),null;case 1:return ul(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ca(ba),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(na(t)?al(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,J())),ul(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(al(t),o===null?(ul(t),ol(t,a,null,r,n)):(ul(t),sl(t,o))):o?o===e.memoizedState?(ul(t),t.flags&=-16777217):(al(t),ul(t),sl(t,o)):(e=e.memoizedProps,e!==r&&al(t),ul(t),ol(t,a,e,r,n)),null;case 27:if(_e(t),n=fe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&al(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return ul(t),t.subtreeFlags&=-33554433,null}e=ue.current,na(t)?ea(t,e):(e=hm(a,r,n),t.stateNode=e,al(t))}return ul(t),t.subtreeFlags&=-33554433,null;case 5:if(_e(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&al(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return ul(t),t.subtreeFlags&=-33554433,null}if(o=ue.current,na(t))ea(t,o);else{var s=lp(fe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ft]=t,o[pt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(np(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&al(t)}}return ul(t),t.subtreeFlags&=-33554433,ol(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&al(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=fe.current,na(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=qi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ft]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||$f(e.nodeValue,n)),e||$i(t,!0)}else e=lp(e).createTextNode(r),e[ft]=t,t.stateNode=e}return ul(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=na(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ft]=t}else ra(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ul(t),e=!1}else n=J(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Eo(t),t):(Eo(t),null);if(t.flags&128)throw Error(i(558))}return ul(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=na(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ft]=t}else ra(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ul(t),a=!1}else a=J(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Eo(t),t):(Eo(t),null)}return Eo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cl(t,t.updateQueue),ul(t),null);case 4:return he(),e===null&&Uf(t.stateNode.containerInfo),t.flags|=67108864,ul(t),null;case 10:return ca(t.type),ul(t),null;case 19:if(ko(t),r=t.memoizedState,r===null)return ul(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)ll(r,!1);else{if(nd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ao(e),o!==null){for(t.flags|=128,ll(r,!1),e=o.updateQueue,t.updateQueue=e,cl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ti(n,e),n=n.sibling;return Oo(t,Do.current&1|2),Yi&&Hi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>pd&&(t.flags|=128,a=!0,ll(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Ao(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,cl(t,e),ll(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Yi)return ul(t),null}else 2*Ae()-r.renderingStartTime>pd&&n!==536870912&&(t.flags|=128,a=!0,ll(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,o=Do.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Yi?Oo(t,o):(n=o,le(bo,t),le(Do,n),xo===null&&(xo=t)),Yi&&Hi(t,r.treeForkCount),e}return ul(t),null;case 22:case 23:return Eo(t),yo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(ul(t),t.subtreeFlags&6&&(t.flags|=8192)):ul(t),n=t.updateQueue,n!==null&&cl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&G(Pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ca(ba),ul(t),null;case 25:return null;case 30:return t.flags|=33554432,ul(t),null}throw Error(i(156,t.tag))}function fl(e,t){switch(Gi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(ba),he(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _e(t),null;case 31:if(t.memoizedState!==null){if(Eo(t),t.alternate===null)throw Error(i(340));ra()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ra()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ko(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return he(),null;case 10:return ca(t.type),null;case 22:case 23:return Eo(t),yo(),e!==null&&G(Pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ca(ba),null;case 25:return null;default:return null}}function pl(e,t){switch(Gi(t),t.tag){case 3:ca(ba),he();break;case 26:case 27:case 5:_e(t);break;case 4:he();break;case 31:t.memoizedState!==null&&Eo(t);break;case 13:Eo(t);break;case 19:ko(t);break;case 10:ca(t.type);break;case 22:case 23:Eo(t),yo(),e!==null&&G(Pa);break;case 24:ca(ba)}}function ml(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){df(t,t.return,e)}}function hl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){df(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){df(t,t.return,e)}}function gl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{mo(t,n)}catch(t){df(e,e.return,t)}}}function _l(e,t,n){n.props=mc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){df(e,t,n)}}function vl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=si(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);f(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){df(e,t,n)}}function yl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){df(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){df(e,t,n)}else n.current=null}}function bl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)em(e.stateNode,t[n])}function xl(e){for(var t=e.return;t!==null&&(wl(t)&&em(e.stateNode,t.stateNode),!Cl(t));)t=t.return}function Sl(e){for(var t=e.return;t!==null&&(wl(t)&&tm(e.stateNode,t.stateNode),!Cl(t));)t=t.return}function Cl(e){return e.tag===5||e.tag===3||e.tag===27}function wl(e){return e&&e.tag===7&&e.stateNode!==null}function Tl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){df(e,e.return,t)}}function El(e,t,n){try{var r=e.stateNode;ip(r,e.type,n,t),r[pt]=t}catch(t){df(e,e.return,t)}}function Dl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sp(e.type)||e.tag===4}function Ol(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Dl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Sp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln)),bl(e,r),It=!0;else if(i!==4&&(i===27&&(bl(e,r),r=null,Sp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(kl(e,t,n,r),e=e.sibling;e!==null;)kl(e,t,n,r),e=e.sibling}function Al(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),bl(e,r),It=!0;else if(i!==4&&(i===27&&(bl(e,r),r=null,Sp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Al(e,t,n,r),e=e.sibling;e!==null;)Al(e,t,n,r),e=e.sibling}function jl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);np(t,r,n),t[ft]=e,t[pt]=n}catch(t){df(e,e.return,t)}}var Ml=!1,Nl=null;function Pl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Ml=!0)}var Fl=null;function Il(){var e=Fl;return Fl=null,e}var Ll=0;function Rl(e,t,n,r,i){return Ll=0,zl(e.child,t,n,r,i)}function zl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Op(o);r.push(s),s.view&&(a=!0)}else a||Op(o).view&&(a=!0);Ml=!0,Tp(o,Ll===0?t:t+`_`+Ll,n),Ll++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||zl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Bl(e,t){for(;e!==null;)e.tag===5?Ep(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Bl(e.child,t)),e=e.sibling}function Vl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Vl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=li(t.default,t.share),t!==`none`&&(Rl(e,n,t,null,!1)||Bl(e.child,!1))}e=e.sibling}}function Hl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=si(r,n),a=li(r.default,n.paired?r.share:r.enter);a===`none`?Vl(e):Rl(e,i,a,null,!1)?(Vl(e),n.paired||t||Ad(e,r.onEnter)):Bl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Hl(e,t),e=e.sibling;else Vl(e)}function Ul(e){if(Nl!==null&&Nl.size!==0){var t=Nl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=li(n.default,n.share);if(a!==`none`&&(Rl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Ad(e,n.onShare)):Bl(e.child,!1)),t.delete(r),t.size===0)break}}}Ul(e)}e=e.sibling}}}function Wl(e){if(e.tag===30){var t=e.memoizedProps,n=si(t,e.stateNode),r=Nl===null?void 0:Nl.get(n),i=li(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Rl(e,n,i,null,!1)?r===void 0?Ad(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Nl.delete(n),Ad(e,t.onShare)):Bl(e.child,!1)),Nl!==null&&Ul(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Wl(e),e=e.sibling;else Nl!==null&&Ul(e)}function Gl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=si(t,e.stateNode);t=li(t.default,t.update),e.flags&=-5,t!==`none`&&Rl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Gl(e);e=e.sibling}}function Kl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Bl(e.child,!1))}Kl(e)}e=e.sibling}}function ql(e){if(e.tag===30)e.stateNode.paired=null,Bl(e.child,!1),Kl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e),e=e.sibling;else Kl(e)}function Jl(e){for(e=e.child;e!==null;)e.tag===30?Bl(e.child,!1):e.subtreeFlags&33554432&&Jl(e),e=e.sibling}function Yl(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Ll<a.length){var l=a[Ll],u=Op(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Tp(c,Ll===0?n:n+`_`+Ll,i),s&&e.flags&4||(Fl===null&&(Fl=[]),Fl.push(c,Ll===0?r:r+`_`+Ll,t.memoizedProps)),Ll++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Yl(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function Xl(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=si(n,r),a=li(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(kp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Ll=0,i=Yl(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Ad(e,n.onUpdate))}else e.subtreeFlags&33554432&&Xl(e,t);e=e.sibling}}var Zl=!1,Ql=!1,$l=!1,eu=!1,tu=typeof WeakSet==`function`?WeakSet:Set,nu=null,ru=!1,iu=!1,au=!1,ou=!1;function su(e,t,n){if(e=e.containerInfo,sp=hh,e=Lr(e),Rr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(cp={focusedElem:e,selectionRange:r},hh=!1,n=(n&335544064)===n,nu=t,t=n?9270:1024;nu!==null;){if(e=nu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Wl(r[a]);if(e.alternate===null&&e.flags&2)n&&Pl(e),cu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Wl(r),cu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Pl(e),cu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,nu=r):(n&&Gl(e),cu(n))}}Nl=null}function cu(e){for(;nu!==null;){var t=nu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=mc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){df(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)nm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:nm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=si(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=li(a.default,a.update),a!==`none`&&Rl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,nu=r;break}nu=t.return}}function lu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ou(e,n),r&4&&ml(5,n);break;case 1:if(Ou(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){df(n,n.return,e)}else{var i=mc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){df(n,n.return,e)}}}r&64&&gl(n),r&512&&vl(n,n.return);break;case 3:if(Ou(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{mo(e,t)}catch(e){df(n,n.return,e)}}break;case 27:t===null&&r&4&&jl(n);case 26:case 5:Ou(e,n),t===null&&r&4&&Tl(n),r&512&&vl(n,n.return);break;case 12:Ou(e,n);break;case 31:Ou(e,n),r&4&&vu(e,n);break;case 13:Ou(e,n),r&4&&yu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=hf.bind(null,n),cm(e,n))));break;case 22:if(r=n.memoizedState!==null||Zl,!r){var a=t!==null&&t.memoizedState!==null||Ql;t=Zl,i=Ql,Zl=r,(Ql=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Au(e,n,r)):Ou(e,n),Zl=t,Ql=i}break;case 30:Ou(e,n),r&512&&vl(n,n.return);break;case 7:r&512&&vl(n,n.return);default:Ou(e,n)}}function uu(e,t){for(e=e.child;e!==null;)du(e,t),e=e.sibling}function du(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){df(e,e.return,t)}fu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,It=!0}catch(t){df(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?wp(s,!0):wp(e.stateNode,!1)}catch(t){df(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&uu(e,t);break;default:uu(e,t)}}function fu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:du(n,r);break a;case 22:n.memoizedState===null&&fu(n,r);break a;default:fu(n,r)}}e=e.sibling}}function pu(e){var t=e.alternate;t!==null&&(e.alternate=null,pu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var mu=null,hu=!1;function gu(e,t,n){for(n=n.child;n!==null;)_u(e,t,n),n=n.sibling}function _u(e,t,n){if(Be&&typeof Be.onCommitFiberUnmount==`function`)try{Be.onCommitFiberUnmount(ze,n)}catch{}switch(n.tag){case 26:Ql||yl(n,t),gu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Ql&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ql||yl(n,t),Sl(n);var r=mu,i=hu;Sp(n.type)&&(mu=n.stateNode,hu=!1),gu(e,t,n),gm(n.stateNode,n.type,n.memoizedProps),mu=r,hu=i;break;case 5:Ql||yl(n,t),Sl(n);case 6:if(n.tag===6&&Sl(n),r=mu,i=hu,mu=null,gu(e,t,n),mu=r,hu=i,mu!==null){if(hu)try{(mu.nodeType===9?mu.body:mu.nodeName===`HTML`?mu.ownerDocument.body:mu).removeChild(n.stateNode),It=!0}catch(e){df(n,t,e)}else try{mu.removeChild(n.stateNode),It=!0}catch(e){df(n,t,e)}}break;case 18:mu!==null&&(hu?(e=mu,Cp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Vh(e)):Cp(mu,n.stateNode));break;case 4:r=mu,i=hu,mu=n.stateNode.containerInfo,hu=!0,gu(e,t,n),mu=r,hu=i;break;case 0:case 11:case 14:case 15:hl(2,n,t),Ql||hl(4,n,t),gu(e,t,n);break;case 1:Ql||(yl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&_l(n,t,r)),gu(e,t,n);break;case 21:gu(e,t,n);break;case 22:Ql=(r=Ql)||n.memoizedState!==null,gu(e,t,n),Ql=r;break;case 30:yl(n,t),gu(e,t,n);break;case 7:Ql||yl(n,t),gu(e,t,n);break;default:gu(e,t,n)}}function vu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vh(e)}catch(e){df(t,t.return,e)}}}function yu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vh(e)}catch(e){df(t,t.return,e)}}function bu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tu),t;default:throw Error(i(435,e.tag))}}function xu(e,t){var n=bu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=gf.bind(null,e,t);t.then(r,r)}})}function Su(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Sp(l.type)){mu=l.stateNode,hu=!1;break a}break;case 5:mu=l.stateNode,hu=!1;break a;case 3:case 4:mu=l.stateNode.containerInfo,hu=!0;break a}l=l.return}if(mu===null)throw Error(i(160));_u(s,c,o),mu=null,hu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wu(t,e,n),t=t.sibling}var Cu=null;function wu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Su(t,e,n),Tu(e),a&4&&(hl(3,e,e.return),ml(3,e),hl(5,e,e.return));break;case 1:Su(t,e,n),Tu(e),a&512&&(Ql||r===null||yl(r,r.return)),a&64&&Zl&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Cu,Su(t,e,n),Tu(e),a&512&&(Ql||r===null||yl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(Zl)e.stateNode=fp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[yt]||r[ft]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),np(r,t,n),r[ft]=e,Et(r),t=r;break a;case`link`:if(o=Gm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),np(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Gm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),np(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[ft]=e,Et(r),t=r}e.stateNode=t}}else Zl||Km(o,e.type,e.stateNode)}else e.stateNode=Bm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&El(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||Ql||t.parentNode.removeChild(t)):a.count--,n===null?Zl||Km(o,e.type,e.stateNode):Bm(o,n,e.memoizedProps))}break;case 27:Su(t,e,n),Tu(e),a&512&&(Ql||r===null||yl(r,r.return)),r!==null&&a&4&&El(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=$l,$l=!1,Su(t,e,n),$l=o,Tu(e),a&512&&(Ql||r===null||yl(r,r.return)),e.flags&32){t=e.stateNode;try{en(t,``),It=!0}catch(t){df(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,El(e,t,r===null?t:r.memoizedProps)),a&1024&&(eu=!0);break;case 6:if(Su(t,e,n),Tu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,It=!0}catch(t){df(e,e.return,t)}}break;case 3:if(It=!1,Wm=null,o=Cu,Cu=bm(t.containerInfo),Su(t,e,n),Cu=o,Tu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Vh(t.containerInfo)}catch(t){df(e,e.return,t)}eu&&(eu=!1,Eu(e)),It=!1;break;case 4:a=$l,$l=Zl,r=Lt(),o=Cu,Cu=bm(e.stateNode.containerInfo),Su(t,e,n),Tu(e),Cu=o,It&&iu&&(au=!0),It=r,$l=a;break;case 12:Su(t,e,n),Tu(e);break;case 31:Su(t,e,n),Tu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,xu(e,t)));break;case 13:Su(t,e,n),Tu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(dd=Ae()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,xu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=Zl,l=Ql,u=$l;Zl=c||o,$l=u||o,Ql=l||s,Su(t,e,n),Ql=l,$l=u,Zl=c,Tu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||Zl||Ql||(t=s||Ql,n=Zl,r=Ql,Zl=o||Zl,Ql=t,ku(e,2),Zl=n,Ql=r),!o&&$l||uu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,xu(e,n))));break;case 19:Su(t,e,n),Tu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,xu(e,t)));break;case 30:a&512&&(Ql||r===null||yl(r,r.return)),a=Lt(),o=iu,s=(n&335544064)===n,c=e.memoizedProps,iu=s&&li(c.default,c.update)!==`none`,Su(t,e,n),Tu(e),s&&r!==null&&It&&(e.flags|=4),iu=o,It=a;break;case 21:break;case 7:a&512&&(Ql||r===null||yl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Su(t,e,n),Tu(e)}}function Tu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Dl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(wl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Cl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Al(e,Ol(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(en(l,``),n.flags&=-33),Al(e,Ol(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;kl(e,Ol(e),u,s);break;default:throw Error(i(161))}}catch(t){df(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Eu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Eu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,hh=!0,t.reset(),hh=!1),e=e.sibling}}function X(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Du(t,e),t=t.sibling;else Xl(t,!1)}function Du(e,t){var n=e.alternate;if(n===null)Hl(e,!1);else switch(e.tag){case 3:if(ou=ru=!1,Il(),X(t,e),!ru&&!au){if(e=Fl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ep(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),ou=!0}Fl=null;break;case 5:X(t,e);break;case 4:r=ru,ru=!1,X(t,e),ru&&(au=!0),ru=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?X(t,e):Hl(e,!1));break;case 30:r=ru,i=Il(),ru=!1,X(t,e),ru&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=si(a,o),o=si(n.memoizedProps,o);var s=li(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ll=0,t=Yl(e,n,t,o,s,a,!0),Ll!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Ad(e,e.memoizedProps.onUpdate),Fl=i):i!==null&&(i.push.apply(i,Fl),Fl=i),ru=e.flags&32?!0:r;break;default:X(t,e)}}function Ou(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)lu(e,t.alternate,t),t=t.sibling}function ku(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:hl(4,n,n.return),ku(n,r);break;case 1:yl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&_l(n,n.return,i),ku(n,r);break;case 27:r&2&&gm(n.stateNode,n.type,n.memoizedProps);case 5:yl(n,n.return),n.tag!==5&&n.tag!==27||Sl(n),ku(n,r);break;case 6:Sl(n);break;case 26:yl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||Ql||i.parentNode.removeChild(i),ku(n,r);break;case 22:n.memoizedState===null&&ku(n,r);break;case 30:yl(n,n.return),ku(n,r);break;case 7:yl(n,n.return);default:ku(n,r)}e=e.sibling}}function Au(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Au(i,a,n),ml(4,a);break;case 1:if(Au(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){df(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)po(l[i],c)}catch(e){df(r,r.return,e)}}s&&o&64&&gl(a),vl(a,a.return);break;case 27:n&2&&jl(a);case 5:a.tag!==5&&a.tag!==27||xl(a),Au(i,a,n),s&&r===null&&o&4&&Tl(a),vl(a,a.return);break;case 6:xl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||Zl||Km(bm(c.ownerDocument),a.type,c),Au(i,a,n),s&&r===null&&o&4&&Tl(a),vl(a,a.return);break;case 12:Au(i,a,n);break;case 31:Au(i,a,n),s&&o&4&&vu(i,a);break;case 13:Au(i,a,n),s&&o&4&&yu(i,a);break;case 22:a.memoizedState===null&&Au(i,a,n),vl(a,a.return);break;case 30:Au(i,a,n),vl(a,a.return);break;case 7:vl(a,a.return);default:Au(i,a,n)}t=t.sibling}}function ju(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Sa(n))}function Mu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Sa(e))}function Nu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Pu(e,t,n,r),t=t.sibling;else i&&Jl(t)}function Pu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ql(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Nu(e,t,n,r),a&2048&&ml(9,t);break;case 1:Nu(e,t,n,r);break;case 3:Nu(e,t,n,r),i&&ou&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Sa(a)));break;case 12:if(a&2048){Nu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){df(t,t.return,e)}}else Nu(e,t,n,r);break;case 31:Nu(e,t,n,r);break;case 13:Nu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&ql(t),o._visibility&2?Nu(e,t,n,r):(o._visibility|=2,Fu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&ql(s),o._visibility&2?Nu(e,t,n,r):Iu(e,t)),a&2048&&ju(s,t);break;case 24:Nu(e,t,n,r),a&2048&&Mu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Bl(a.child,!0),Bl(t.child,!0))),Nu(e,t,n,r);break;default:Nu(e,t,n,r)}}function Fu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Fu(a,o,s,c,i),ml(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Fu(a,o,s,c,i)):u._visibility&2?Fu(a,o,s,c,i):Iu(a,o),i&&l&2048&&ju(o.alternate,o);break;case 24:Fu(a,o,s,c,i),i&&l&2048&&Mu(o.alternate,o);break;default:Fu(a,o,s,c,i)}t=t.sibling}}function Iu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Iu(n,r),i&2048&&ju(r.alternate,r);break;case 24:Iu(n,r),i&2048&&Mu(r.alternate,r);break;default:Iu(n,r)}t=t.sibling}}var Lu=8192;function Ru(e,t,n){if(e.subtreeFlags&Lu)for(e=e.child;e!==null;)zu(e,t,n),e=e.sibling}function zu(e,t,n){switch(e.tag){case 26:Ru(e,t,n),e.flags&Lu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Zm(n,e)):Qm(n,Cu,e.memoizedState,e.memoizedProps));break;case 5:Ru(e,t,n),e.flags&Lu&&(e=e.stateNode,(t&335544128)===t&&Zm(n,e));break;case 3:case 4:var r=Cu;Cu=bm(e.stateNode.containerInfo),Ru(e,t,n),Cu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Lu,Lu=16777216,Ru(e,t,n),Lu=r):Ru(e,t,n));break;case 30:if((e.flags&Lu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Nl===null&&(Nl=new Map),Nl.set(r,i)}Ru(e,t,n);break;default:Ru(e,t,n)}}function Bu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Vu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nu=r,Uu(r,e)}Bu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Z(e),e=e.sibling}function Z(e){switch(e.tag){case 0:case 11:case 15:Vu(e),e.flags&2048&&hl(9,e,e.return);break;case 3:Vu(e);break;case 12:Vu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hu(e)):Vu(e);break;default:Vu(e)}}function Hu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nu=r,Uu(r,e)}Bu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:hl(8,t,t.return),Hu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Hu(t));break;default:Hu(t)}e=e.sibling}}function Uu(e,t){for(;nu!==null;){var n=nu;switch(n.tag){case 0:case 11:case 15:hl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Sa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,nu=r;else a:for(n=e;nu!==null;){r=nu;var i=r.sibling,a=r.return;if(pu(r),r===n){nu=null;break a}if(i!==null){i.return=a,nu=i;break a}nu=a}}}var Wu={getCacheForType:function(e){var t=ma(ba),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ma(ba).controller.signal}},Gu=typeof WeakMap==`function`?WeakMap:Map,Ku=0,qu=null,Ju=null,Yu=0,Xu=0,Zu=null,Qu=!1,$u=!1,ed=!1,td=0,nd=0,rd=0,id=0,ad=0,od=0,sd=0,cd=null,ld=null,ud=!1,dd=0,fd=0,pd=1/0,md=null,hd=null,gd=0,_d=null,vd=null,yd=0,bd=0,xd=null,Sd=null,Cd=null,wd=null,Td=null,Ed=0,Dd=null;function Od(){return Ku&2&&Yu!==0?Yu&-Yu:U.T===null?lt():Mf()}function kd(){if(od===0){if(!(Yu&536870912)||Yi){var e=qe;qe<<=1,!(qe&3932160)&&(qe=262144),od=e}else od=536870912}return e=bo.current,e!==null&&(e.flags|=32),od}function Ad(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Pp(si(e.memoizedProps,n))),wd===null&&(wd=[]),wd.push(t.bind(null,r))}}function jd(e,t,n){(e===qu&&(Xu===2||Xu===9)||e.cancelPendingCommit!==null)&&(Rd(e,0),Fd(e,Yu,od,!1)),nt(e,n),(!(Ku&2)||e!==qu)&&(e===qu&&(!(Ku&2)&&(id|=n),nd===4&&Fd(e,Yu,od,!1)),wf(e))}function Md(e,t,n){if(Ku&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ze(e,t),a=r?Kd(e,t):Wd(e,t,!0),o=r;do{if(a===0){$u&&!r&&Fd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Pd(n)){a=Wd(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=cd;var l=c.current.memoizedState.isDehydrated;if(l&&(Rd(c,s).flags|=256),s=Wd(c,s,!1),s!==2&&s!==6){if(ed&&!l){c.errorRecoveryDisabledLanes|=o,id|=o,a=4;break a}o=ld,ld=a,o!==null&&(ld===null?ld=o:ld.push.apply(ld,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Rd(e,0),Fd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Fd(r,t,od,!Qu);break a;case 2:ld=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=dd+300-Ae(),10<a)){if(Fd(r,t,od,!Qu),Xe(r,0,!0)!==0)break a;yd=t,r.timeoutHandle=gp(Nd.bind(null,r,n,ld,md,ud,t,od,id,sd,Qu,o,`Throttled`,-0,0),a);break a}Nd(r,n,ld,md,ud,t,od,id,sd,Qu,o,null,-0,0)}break}while(1);wf(e)}function Nd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},Nl=null,zu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=nh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?dd-Ae():(a&4194048)===a?fd-Ae():0,m=eh(d,m),m!==null)){yd=a,e.cancelPendingCommit=m($d.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Fd(e,a,o,!l);return}$d(e,t,a,n,r,i,o,s,c,l,u,d)}function Pd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!jr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fd(e,t,n,r){t=Qe(e,t),t&=~ad,t&=~id,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-He(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&it(e,n,t)}function Id(){return Ku&6?!0:(Tf(0,!1),!1)}function Ld(){if(Ju!==null){if(Xu===0)var e=Ju.return;else e=Ju,oa=aa=null,Xo(e),Ja=null,Ya=0,e=Ju;for(;e!==null;)pl(e.alternate,e),e=e.return;Ju=null}}function Rd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,_p(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yd=0,Ld(),qu=e,Ju=n=wi(e.current,null),Yu=t,Xu=0,Zu=null,Qu=!1,$u=Ze(e,t),ed=!1,sd=od=ad=id=rd=nd=0,ld=cd=null,ud=!1,td=Qe(e,t),mi(),n}function zd(e,t){Mo=null,U.H=oc,t===Ra||t===Ba?(t=Ka(),Xu=3):t===za?(t=Ka(),Xu=4):Xu=t===wc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Zu=t,Ju===null&&(nd=1,vc(e,Mi(t,e.current)))}function Bd(){var e=bo.current;return e===null?!0:(Yu&4194048)===Yu?xo===null:(Yu&62914560)===Yu||Yu&536870912?e===xo:!1}function Vd(){var e=U.H;return U.H=oc,e===null?oc:e}function Hd(){var e=U.A;return U.A=Wu,e}function Ud(){nd=4,Qu||(Yu&4194048)!==Yu&&bo.current!==null||($u=!0),!(rd&134217727)&&!(id&134217727)||qu===null||Fd(qu,Yu,od,!1)}function Wd(e,t,n){var r=Ku;Ku|=2;var i=Vd(),a=Hd();(qu!==e||Yu!==t)&&(md=null,Rd(e,t)),t=!1;var o=nd;a:do try{if(Xu!==0&&Ju!==null){var s=Ju,c=Zu;switch(Xu){case 8:Ld(),o=6;break a;case 3:case 2:case 9:case 6:bo.current===null&&(t=!0);var l=Xu;if(Xu=0,Zu=null,Xd(e,s,c,l),n&&$u){o=0;break a}break;default:l=Xu,Xu=0,Zu=null,Xd(e,s,c,l)}}Gd(),o=nd;break}catch(t){zd(e,t)}while(1);return t&&e.shellSuspendCounter++,oa=aa=null,Ku=r,U.H=i,U.A=a,Ju===null&&(qu=null,Yu=0,mi()),o}function Gd(){for(;Ju!==null;)Jd(Ju)}function Kd(e,t){var n=Ku;Ku|=2;var r=Vd(),a=Hd();qu!==e||Yu!==t?(md=null,pd=Ae()+500,Rd(e,t)):$u=Ze(e,t);a:do try{if(Xu!==0&&Ju!==null){t=Ju;var o=Zu;b:switch(Xu){case 1:Xu=0,Zu=null,Xd(e,t,o,1);break;case 2:case 9:if(Ha(o)){Xu=0,Zu=null,Yd(t);break}t=function(){Xu!==2&&Xu!==9||qu!==e||(Xu=7),wf(e)},o.then(t,t);break a;case 3:Xu=7;break a;case 4:Xu=5;break a;case 7:Ha(o)?(Xu=0,Zu=null,Yd(t)):(Xu=0,Zu=null,Xd(e,t,o,7));break;case 5:var s=null;switch(Ju.tag){case 26:s=Ju.memoizedState;case 5:case 27:var c=Ju;if(s?Ym(s):c.stateNode.complete){Xu=0,Zu=null;var l=c.sibling;if(l!==null)Ju=l;else{var u=c.return;u===null?Ju=null:(Ju=u,Zd(u))}break b}}Xu=0,Zu=null,Xd(e,t,o,5);break;case 6:Xu=0,Zu=null,Xd(e,t,o,6);break;case 8:Ld(),nd=6;break a;default:throw Error(i(462))}}qd();break}catch(t){zd(e,t)}while(1);return oa=aa=null,U.H=r,U.A=a,Ku=n,Ju===null?(qu=null,Yu=0,mi(),nd):0}function qd(){for(;Ju!==null&&!Oe();)Jd(Ju)}function Jd(e){var t=il(e.alternate,e,td);e.memoizedProps=e.pendingProps,t===null?Zd(e):Ju=t}function Yd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Rc(n,t,t.pendingProps,t.type,void 0,Yu);break;case 11:t=Rc(n,t,t.pendingProps,t.type.render,t.ref,Yu);break;case 5:Xo(t);var r=t;r===qi&&(Yi?(ta(r),r.tag===5&&r.stateNode!=null&&(Ji=r.stateNode)):(ta(r),Yi=!0));default:pl(n,t),t=Ju=Ti(t,td),t=il(n,t,td)}e.memoizedProps=e.pendingProps,t===null?Zd(e):Ju=t}function Xd(e,t,n,r){oa=aa=null,Xo(t),Ja=null,Ya=0;var i=t.return;try{if(Cc(e,i,t,n,Yu)){nd=1,vc(e,Mi(n,e.current)),Ju=null;return}}catch(t){if(i!==null)throw Ju=i,t;nd=1,vc(e,Mi(n,e.current)),Ju=null;return}t.flags&32768?(Yi||r===1?e=!0:$u||Yu&536870912?e=!1:(Qu=e=!0,(r===2||r===9||r===3||r===6)&&(r=bo.current,r!==null&&r.tag===13&&(r.flags|=16384))),Qd(t,e)):Zd(t)}function Zd(e){var t=e;do{if(t.flags&32768){Qd(t,Qu);return}e=t.return;var n=dl(t.alternate,t,td);if(n!==null){Ju=n;return}if(t=t.sibling,t!==null){Ju=t;return}Ju=t=e}while(t!==null);nd===0&&(nd=5)}function Qd(e,t){do{var n=fl(e.alternate,e);if(n!==null){n.flags&=32767,Ju=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ju=e;return}Ju=e=n}while(e!==null);nd=6,Ju=null}function $d(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do cf();while(gd!==0);if(Ku&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===qu&&(Ju=qu=null,Yu=0),vd=t,_d=e,yd=n,xd=a,Sd=r,ef(e,t,n,s,c,l,f)}}function ef(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(bd=s,s|=pi,rt(e,n,s,r,i,a),wd=null,(n&335544064)===n?(Td=Ta(e),r=10262):(Td=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,_f(Pe,function(){return lf(),null})):(e.callbackNode=null,e.callbackPriority=0),Ml=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=U.T,U.T=null,i=W.p,W.p=2,a=Ku,Ku|=4;try{su(e,t,n)}finally{Ku=a,W.p=i,U.T=r}}gd=1,Ml?Cd=Mp(o,e.containerInfo,Td,rf,af,nf,of,lf,tf,null,null):(rf(),af(),of())}function tf(e){if(gd!==0){var t=_d.onRecoverableError;t(e,{componentStack:null})}}function nf(){gd===3&&(gd=0,Du(vd,_d),gd=4)}function rf(){if(gd===1){gd=0;var e=_d,t=vd,n=yd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=U.T,U.T=null;var i=W.p;W.p=2;var a=Ku;Ku|=4;try{iu=au=!1,wu(t,e,n),n=cp;var o=Lr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ir(s.ownerDocument.documentElement,s)){if(c!==null&&Rr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Fr(s,h),v=Fr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}hh=!!sp,cp=sp=null}finally{Ku=a,W.p=i,U.T=r}}e.current=t,gd=2}}function af(){if(gd===2){gd=0;var e=_d,t=vd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=U.T,U.T=null;var r=W.p;W.p=2;var i=Ku;Ku|=4;try{lu(e,t.alternate,t)}finally{Ku=i,W.p=r,U.T=n}}gd=3}}function of(){if(gd===4||gd===3){gd=0;var e=Cd;Cd=null,ke();var t=_d,n=vd,r=yd,i=Sd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?gd=5:(gd=0,vd=_d=null,sf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(hd=null),ct(r),n=n.stateNode,Be&&typeof Be.onCommitFiberRoot==`function`)try{Be.onCommitFiberRoot(ze,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=U.T,a=W.p,W.p=2,U.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{U.T=n,W.p=a}}if(i=wd,o=Td,Td=null,i!==null&&(wd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);yd&3&&cf(),wf(t),a=t.pendingLanes,r&261930&&a&42?t===Dd?Ed++:(Ed=0,Dd=t):(Ed=0,Dd=null),Tf(0,!1)}}function sf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Sa(t)))}function cf(){return Cd!==null&&(Cd.skipTransition(),Cd=null),rf(),af(),of(),lf()}function lf(){if(gd!==5)return!1;var e=_d,t=bd;bd=0;var n=ct(yd),r=U.T,a=W.p;try{W.p=32>n?32:n,U.T=null,n=xd,xd=null;var o=_d,s=yd;if(gd=0,vd=_d=null,yd=0,Ku&6)throw Error(i(331));var c=Ku;if(Ku|=4,Z(o.current),Pu(o,o.current,s,n),Ku=c,Tf(0,!1),Be&&typeof Be.onPostCommitFiberRoot==`function`)try{Be.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{W.p=a,U.T=r,sf(e,t)}}function uf(e,t,n){t=Mi(n,t),t=bc(e.stateNode,t,2),e=oo(e,t,2),e!==null&&(nt(e,2),wf(e))}function df(e,t,n){if(e.tag===3)uf(e,e,n);else for(;t!==null;){if(t.tag===3){uf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(hd===null||!hd.has(r))){e=Mi(n,e),n=xc(2),r=oo(t,n,2),r!==null&&(Sc(n,r,t,e),nt(r,2),wf(r));break}}t=t.return}}function ff(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Gu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ed=!0,i.add(n),e=pf.bind(null,e,t,n),t.then(e,e))}function pf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,qu===e&&(Yu&n)===n&&(nd===4||nd===3&&(Yu&62914560)===Yu&&300>Ae()-dd?Ku&2?ad|=n:Rd(e,0):ad|=n,sd===Yu&&(sd=0)),wf(e)}function mf(e,t){t===0&&(t=et()),e=_i(e,t),e!==null&&(nt(e,t),wf(e))}function hf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mf(e,n)}function gf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),mf(e,n)}function _f(e,t){return Ee(e,t)}var vf=null,yf=null,bf=!1,xf=!1,Sf=!1,Cf=0;function wf(e){e!==yf&&e.next===null&&(yf===null?vf=yf=e:yf=yf.next=e),xf=!0,bf||(bf=!0,jf())}function Tf(e,t){if(!Sf&&xf){Sf=!0;do for(var n=!1,r=vf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-He(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Af(r,a))}else a=Yu,a=Xe(r,r===qu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,Af(r,a))}r=r.next}while(n);Sf=!1}}function Ef(){Df()}function Df(){xf=bf=!1;var e=0;Cf!==0&&hp()&&(e=Cf);for(var t=Ae(),n=null,r=vf;r!==null;){var i=r.next,a=Of(r,t);a===0?(r.next=null,n===null?vf=i:n.next=i,i===null&&(yf=n)):(n=r,(e!==0||a&3)&&(xf=!0)),r=i}gd!==0&&gd!==5||Tf(e,!1),Cf!==0&&(Cf=0)}function Of(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-He(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=$e(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=qu,n=Yu,n=Xe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Xu===2||Xu===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&De(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&De(r),ct(n)){case 2:case 8:n=Ne;break;case 32:n=Pe;break;case 268435456:n=Ie;break;default:n=Pe}return r=kf.bind(null,e),n=Ee(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&De(r),e.callbackPriority=2,e.callbackNode=null,2}function kf(e,t){if(gd!==0&&gd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cf()&&e.callbackNode!==n)return null;var r=Yu;return r=Xe(e,e===qu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Md(e,r,t),Of(e,Ae()),e.callbackNode!=null&&e.callbackNode===n?kf.bind(null,e):null)}function Af(e,t){if(cf())return null;Md(e,t,!0)}function jf(){bp(function(){Ku&6?Ee(Me,Ef):Df()})}function Mf(){if(Cf===0){var e=Oa;e===0&&(e=Ke,Ke<<=1,!(Ke&261888)&&(Ke=256)),Cf=e}return Cf}function Nf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:cn(e)}function Pf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Nf((i[pt]||null).action),o=r.submitter;o&&(t=(t=o[pt]||null)?Nf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new An(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Cf!==0){var e=new FormData(i,o);Ks(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Ks(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Ff=0;Ff<ii.length;Ff++){var If=ii[Ff];ai(If.toLowerCase(),`on`+(If[0].toUpperCase()+If.slice(1)))}ai(Xr,`onAnimationEnd`),ai(Zr,`onAnimationIteration`),ai(Qr,`onAnimationStart`),ai(`dblclick`,`onDoubleClick`),ai(`focusin`,`onFocus`),ai(`focusout`,`onBlur`),ai($r,`onTransitionRun`),ai(ei,`onTransitionStart`),ai(ti,`onTransitionCancel`),ai(ni,`onTransitionEnd`),jt(`onMouseEnter`,[`mouseout`,`mouseover`]),jt(`onMouseLeave`,[`mouseout`,`mouseover`]),jt(`onPointerEnter`,[`pointerout`,`pointerover`]),jt(`onPointerLeave`,[`pointerout`,`pointerover`]),At(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),At(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),At(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),At(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Lf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Rf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Lf));function zf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ui(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ui(e)}i.currentTarget=null,a=c}}}}function Bf(e,t){var n=t[ht];n===void 0&&(n=t[ht]=new Set);var r=e+`__bubble`;n.has(r)||(Wf(t,e,2,!1),n.add(r))}function Vf(e,t,n){var r=0;t&&(r|=4),Wf(n,e,r,t)}var Hf=`_reactListening`+Math.random().toString(36).slice(2);function Uf(e){if(!e[Hf]){e[Hf]=!0,Ot.forEach(function(t){t!==`selectionchange`&&(Rf.has(t)||Vf(t,!1,e),Vf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hf]||(t[Hf]=!0,Vf(`selectionchange`,!1,t))}}function Wf(e,t,n,r){switch(Sh(t)){case 2:var i=gh;break;case 8:i=_h;break;default:i=vh}n=i.bind(null,t,n,e),i=void 0,!yn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Gf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=St(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}gn(function(){var r=a,i=dn(n),s=[];a:{var c=ri.get(e);if(c!==void 0){var l=An,u=e;switch(e){case`keypress`:if(Tn(n)===0)break a;case`keydown`:case`keyup`:l=Jn;break;case`focusin`:u=`focus`,l=zn;break;case`focusout`:u=`blur`,l=zn;break;case`beforeblur`:case`afterblur`:l=zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Zn;break;case Xr:case Zr:case Qr:l=Bn;break;case ni:l=Qn;break;case`scroll`:case`scrollend`:l=Mn;break;case`wheel`:l=$n;break;case`copy`:case`cut`:case`paste`:l=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Yn;break;case`submit`:l=Xn;break;case`toggle`:case`beforetoggle`:l=er}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=_n(m,p),g!=null&&d.push(Kf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==un&&(u=n.relatedTarget||n.fromElement)&&(St(u)||u[mt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?St(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Ln,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Yn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:wt(c),h=l==null?u:wt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,St(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?C(c,l,Jf):null,c!==null&&Yf(s,u,c,d,!1),l!==null&&f!==null&&Yf(s,f,l,d,!0)))}a:{if(c=r?wt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=br;else if(mr(c)){if(q)_=kr;else{_=Dr;var v=Er}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&an(r.elementType)&&(_=br):_=Or;if(_&&=_(e,r)){hr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?wt(r):window,e){case`focusin`:(mr(v)||v.contentEditable===`true`)&&(Br=v,Vr=r,Hr=null);break;case`focusout`:Hr=Vr=Br=null;break;case`mousedown`:Ur=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ur=!1,Wr(s,n,i);break;case`selectionchange`:if(zr)break;case`keydown`:case`keyup`:Wr(s,n,i)}var y;if(nr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else ur?cr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(ar&&n.locale!==`ko`&&(ur||b!==`onCompositionStart`?b===`onCompositionEnd`&&ur&&(y=wn()):(xn=i,Sn=`value`in xn?xn.value:xn.textContent,ur=!0)),v=qf(r,b),0<v.length&&(b=new Hn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=lr(n),y!==null&&(b.data=y)))),(y=ir?dr(e,n):fr(e,n))&&(b=qf(r,`onBeforeInput`),0<b.length&&(v=new Hn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Pf(s,e,r,n,i)}zf(s,t)})}function Kf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=_n(e,n),i!=null&&r.unshift(Kf(e,i,a)),i=_n(e,t),i!=null&&r.push(Kf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Jf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yf(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=_n(n,a),l!=null&&o.unshift(Kf(n,l,c))):i||(l=_n(n,a),l!=null&&o.push(Kf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Xf=/\r\n?/g,Zf=/\u0000|\uFFFD/g;function Qf(e){return(typeof e==`string`?e:``+e).replace(Xf,`
210
+ `).replace(Zf,``)}function $f(e,t){return t=Qf(t),Qf(e)===t}function ep(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||en(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&en(e,``+r);else return;break;case`className`:zt(e,`class`,r);break;case`tabIndex`:zt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:zt(e,n,r);break;case`style`:rn(e,r,o);return;case`data`:if(t!==`object`){zt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ep(e,t,`name`,a.name,a,null),ep(e,t,`formEncType`,a.formEncType,a,null),ep(e,t,`formMethod`,a.formMethod,a,null),ep(e,t,`formTarget`,a.formTarget,a,null)):(ep(e,t,`encType`,a.encType,a,null),ep(e,t,`method`,a.method,a,null),ep(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=ln);return;case`onScroll`:r!=null&&Bf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Bf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=cn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Bf(`beforetoggle`,e),Bf(`toggle`,e),Rt(e,`popover`,r);break;case`xlinkActuate`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Rt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=on.get(n)||n,Rt(e,n,r);else return}It=!0}function tp(e,t,n,r,a,o){switch(n){case`style`:rn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)en(e,r);else if(typeof r==`number`||typeof r==`bigint`)en(e,``+r);else return;break;case`onScroll`:r!=null&&Bf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Bf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=ln);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[pt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}It=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Rt(e,n,r)}return}It=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Bf(`error`,e),Bf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ep(e,t,o,s,n,null)}}a&&ep(e,t,`srcSet`,n.srcSet,n,null),r&&ep(e,t,`src`,n.src,n,null);return;case`input`:Bf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:ep(e,t,r,d,n,null)}}Yt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Bf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:ep(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Zt(e,!!r,n,!0):Zt(e,!!r,t,!1);return;case`textarea`:for(s in Bf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:ep(e,t,s,c,n,null)}$t(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ep(e,t,l,r,n,null)}return;case`dialog`:Bf(`beforetoggle`,e),Bf(`toggle`,e),Bf(`cancel`,e),Bf(`close`,e);break;case`iframe`:case`object`:Bf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Lf.length;r++)Bf(Lf[r],e);break;case`image`:Bf(`error`,e),Bf(`load`,e);break;case`details`:Bf(`toggle`,e);break;case`embed`:case`source`:case`link`:Bf(`error`,e),Bf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ep(e,t,u,r,n,null)}return;default:if(an(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ep(e,t,c,r,n,null))}var rp={};function ip(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ep(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(It=!0),o=m;break;case`name`:m!==f&&(It=!0),a=m;break;case`checked`:m!==f&&(It=!0),u=m;break;case`defaultChecked`:m!==f&&(It=!0),d=m;break;case`value`:m!==f&&(It=!0),s=m;break;case`defaultValue`:m!==f&&(It=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ep(e,t,p,m,r,f)}}Jt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||ep(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(It=!0),p=o;break;case`defaultValue`:o!==l&&(It=!0),c=o;break;case`multiple`:o!==l&&(It=!0),s=o;default:o!==l&&ep(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Zt(e,!!n,n?[]:``,!1):Zt(e,!!n,t,!0)):Zt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ep(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(It=!0),p=a;break;case`defaultValue`:a!==o&&(It=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ep(e,t,s,a,r,o)}Qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ep(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(It=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ep(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ep(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:ep(e,t,u,p,r,m)}return;default:if(an(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ep(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ep(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&ap(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function dp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function fp(e,t,n,r){return n=lp(n).createElement(e),n[ft]=r,n[pt]=t,np(n,e,t),Et(n),n}function pp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Vh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[yt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Vh(t)}function wp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Tp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ep(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Dp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Ap(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Xm(f),u>$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Bp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=_(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=_(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=lp(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=_(e),t.observe(e),!1)}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag!==6&&(e=_(e),t.unobserve(e),!1)}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=_(e),t.push.apply(t,e.getClientRects());return!1}Fp.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Hp,n,void 0,void 0);var r=_(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=_(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=_(n[0]),i=_(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=St(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=C(n,a,S),t===null?t=!1:(f(t,!0,b,a,n),a=v,v=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=C(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=v,y=v=null,t=a!==null)),t):!1}function Zp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Hp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=_(r),Zp(e,n);return}if(r=_(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=_(a),Zp(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=_(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nm(n),xt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[yt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function mm(e){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ep(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===ln&&(e.onclick=null),xt(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xt(e)}var vm=new Map,ym=new Set;function bm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var xm=W.d;W.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=Id();return e||t}function Cm(e){var t=Ct(e);t!==null&&t.tag===5&&t.type===`form`?Js(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Et(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+qt(n.imageSizes)+`"]`)):i+=`[href="`+qt(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[bt]=!0,o.onload=o.onerror=function(){Dt(o)}),Et(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+qt(r)+`"][href="`+qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=w({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Et(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Tt(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Et(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Tt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=w({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Et(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Tt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Et(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=fe.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Tt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=Tt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Tt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+qt(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[bt]){r.loading=1;return}}else t=e.createElement(`link`),t[bt]=!0,t.onload=t.onerror=Dt.bind(null,t),np(t,`link`,n),Et(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+qt(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+qt(n.href)+`"]`);if(r)return t.instance=r,Et(r),r;var a=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Et(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Et(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Et(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Et(a),a):(r=n,(a=vm.get(o))&&(r=w({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Et(a),np(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[yt]||a[ft]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Et(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Et(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*op());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=nh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Q={$$typeof:M,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function sh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tt(0),this.hiddenUpdates=tt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function ch(e,t,n,r,i,a,o,s,c,l,u,d){return e=new sh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Si(3,null,null,t),e.current=a,a.stateNode=e,t=xa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ro(a),e}function lh(e){return e?(e=bi,e):bi}function uh(e,t,n,r,i,a){i=lh(i),r.context===null?r.context=i:r.pendingContext=i,r=ao(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=oo(e,r,t),n!==null&&(jd(n,e,t),so(n,e,t))}function dh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fh(e,t){dh(e,t),(e=e.alternate)&&dh(e,t)}function ph(e){if(e.tag===13||e.tag===31){var t=_i(e,67108864);t!==null&&jd(t,e,67108864),fh(e,67108864)}}function mh(e){if(e.tag===13||e.tag===31){var t=Od();t=st(t);var n=_i(e,t);n!==null&&jd(n,e,t),fh(e,t)}}var hh=!0;function gh(e,t,n,r){var i=U.T;U.T=null;var a=W.p;try{W.p=2,vh(e,t,n,r)}finally{W.p=a,U.T=i}}function _h(e,t,n,r){var i=U.T;U.T=null;var a=W.p;try{W.p=8,vh(e,t,n,r)}finally{W.p=a,U.T=i}}function vh(e,t,n,r){if(hh){var i=yh(r);if(i===null)Gf(e,t,r,bh,n),jh(e,r);else if(Nh(i,e,t,n,r))r.stopPropagation();else if(jh(e,r),t&4&&-1<Ah.indexOf(e)){for(;i!==null;){var a=Ct(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=K(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-He(o);s.entanglements[1]|=c,o&=~c}wf(a),!(Ku&6)&&(pd=Ae()+500,Tf(0,!1))}}break;case 31:case 13:s=_i(a,2),s!==null&&jd(s,a,2),Id(),fh(a,2)}if(a=yh(r),a===null&&Gf(e,t,r,bh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Gf(e,t,r,null,n)}}function yh(e){return e=dn(e),xh(e)}var bh=null;function xh(e){if(bh=null,e=St(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bh=e,null}function Sh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(je()){case Me:return 2;case Ne:return 8;case Pe:case Fe:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var Ch=!1,wh=null,Th=null,Eh=null,Dh=new Map,Oh=new Map,kh=[],Ah=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function jh(e,t){switch(e){case`focusin`:case`focusout`:wh=null;break;case`dragenter`:case`dragleave`:Th=null;break;case`mouseover`:case`mouseout`:Eh=null;break;case`pointerover`:case`pointerout`:Dh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Oh.delete(t.pointerId)}}function Mh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ct(t),t!==null&&ph(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Nh(e,t,n,r,i){switch(t){case`focusin`:return wh=Mh(wh,e,t,n,r,i),!0;case`dragenter`:return Th=Mh(Th,e,t,n,r,i),!0;case`mouseover`:return Eh=Mh(Eh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Dh.set(a,Mh(Dh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Oh.set(a,Mh(Oh.get(a)||null,e,t,n,r,i)),!0}return!1}function Ph(e){var t=St(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ut(e.priority,function(){mh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ut(e.priority,function(){mh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);un=r,n.target.dispatchEvent(r),un=null}else return t=Ct(n),t!==null&&ph(t),e.blockedOn=n,!1;t.shift()}return!0}function Ih(e,t,n){Fh(e)&&n.delete(t)}function Lh(){Ch=!1,wh!==null&&Fh(wh)&&(wh=null),Th!==null&&Fh(Th)&&(Th=null),Eh!==null&&Fh(Eh)&&(Eh=null),Dh.forEach(Ih),Oh.forEach(Ih)}function Rh(e,n){e.blockedOn===n&&(e.blockedOn=null,Ch||(Ch=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Lh)))}var zh=null;function Bh(e){zh!==e&&(zh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){zh===e&&(zh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(xh(r||n)===null)continue;break}var a=Ct(n);a!==null&&(e.splice(t,3),t-=3,Ks(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Vh(e){function t(t){return Rh(t,e)}wh!==null&&Rh(wh,e),Th!==null&&Rh(Th,e),Eh!==null&&Rh(Eh,e),Dh.forEach(t),Oh.forEach(t);for(var n=0;n<kh.length;n++){var r=kh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<kh.length&&(n=kh[0],n.blockedOn===null);)Ph(n),n.blockedOn===null&&kh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[pt]||null;if(typeof a==`function`)o||Bh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[pt]||null)s=o.formAction;else if(xh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Bh(n)}}}function Hh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Uh(e){this._internalRoot=e}Wh.prototype.render=Uh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;uh(n,Od(),e,t,null,null)},Wh.prototype.unmount=Uh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;uh(e.current,2,null,e,null,null),Id(),t[mt]=null}};function Wh(e){this._internalRoot=e}Wh.prototype.unstable_scheduleHydration=function(e){if(e){var t=lt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kh.length&&t!==0&&t<kh[n].priority;n++);kh.splice(n,0,e),n===0&&Ph(e)}};var Gh=n.version;if(Gh!==`19.3.0`)throw Error(i(527,Gh,`19.3.0`));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Kh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:U,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qh.isDisabled&&qh.supportsFiber)try{ze=qh.inject(Kh),Be=qh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=hc,s=gc,c=_c;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ch(e,1,!1,null,null,n,r,null,o,s,c,Hh),e[mt]=t.current,Uf(e),new Uh(t)}})),uF=s(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=lF()})),dF=e=>JA({manager:ZA(e),props:e}),fF=[`slots`,`slotProps`],pF=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiTimeField`}),{slots:r,slotProps:i}=n,a=cD(n,fF),o=dF(jM({slotProps:i,ref:t,externalForwardedProps:a}));return(0,J.jsx)(MM,{slots:r,slotProps:i,inputRef:a.inputRef,children:(0,J.jsx)(kM,{fieldResponse:o,defaultOpenPickerIcon:dj})})});function mF(e){return Os(`MuiPickersToolbarText`,e)}var hF=ks(`MuiPickersToolbarText`,[`root`]),gF=[`className`,`classes`,`selected`,`value`],_F=e=>xr({root:[`root`]},mF,e),vF=Z(ky,{name:`MuiPickersToolbarText`,slot:`Root`})(({theme:e})=>({transition:e.transitions.create(`color`),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),yF=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickersToolbarText`}),{className:r,classes:i,selected:a,value:o}=n,s=cD(n,gF),c=_F(i);return(0,J.jsx)(vF,Y({ref:t,className:q(c.root,r),component:`span`,ownerState:n},a&&{"data-selected":!0},s,{children:o}))}),bF=[`align`,`className`,`classes`,`selected`,`typographyClassName`,`value`,`variant`,`width`],xF=e=>xr({root:[`root`]},dO,e),SF=Z(ah,{name:`MuiPickersToolbarButton`,slot:`Root`})({padding:0,minWidth:16,textTransform:`none`}),CF=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiPickersToolbarButton`}),{align:r,className:i,classes:a,selected:o,typographyClassName:s,value:c,variant:l,width:u}=n,d=cD(n,bF),f=xF(a);return(0,J.jsx)(SF,Y({variant:`text`,ref:t,className:q(f.root,i),ownerState:n},u?{sx:{width:u}}:{},d,{children:(0,J.jsx)(yF,{align:r,className:s,variant:l,value:c,selected:o})}))});function wF(e){return Os(`MuiTimePickerToolbar`,e)}var TF=ks(`MuiTimePickerToolbar`,[`root`,`separator`,`hourMinuteLabel`,`hourMinuteLabelLandscape`,`hourMinuteLabelReverse`,`ampmSelection`,`ampmLandscape`,`ampmLabel`]),EF=[`ampm`,`ampmInClock`,`className`,`classes`],DF=(e,t)=>{let{pickerOrientation:n,toolbarDirection:r}=t;return xr({root:[`root`],separator:[`separator`],hourMinuteLabel:[`hourMinuteLabel`,n===`landscape`&&`hourMinuteLabelLandscape`,r===`rtl`&&`hourMinuteLabelReverse`],ampmSelection:[`ampmSelection`,n===`landscape`&&`ampmLandscape`],ampmLabel:[`ampmLabel`]},wF,e)},OF=Z(jO,{name:`MuiTimePickerToolbar`,slot:`Root`})({}),kF=Z(yF,{name:`MuiTimePickerToolbar`,slot:`Separator`})({outline:0,margin:`0 4px 0 2px`,cursor:`default`}),AF=Z(`div`,{name:`MuiTimePickerToolbar`,slot:`HourMinuteLabel`,overridesResolver:(e,t)=>[{[`&.${TF.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${TF.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:`flex`,justifyContent:`flex-end`,alignItems:`flex-end`,variants:[{props:{toolbarDirection:`rtl`},style:{flexDirection:`row-reverse`}},{props:{pickerOrientation:`landscape`},style:{marginTop:`auto`}}]}),jF=Z(`div`,{name:`MuiTimePickerToolbar`,slot:`AmPmSelection`,overridesResolver:(e,t)=>[{[`.${TF.ampmLabel}`]:t.ampmLabel},{[`&.${TF.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:`flex`,flexDirection:`column`,marginRight:`auto`,marginLeft:12,[`& .${TF.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:`landscape`},style:{margin:`4px 0 auto`,flexDirection:`row`,justifyContent:`space-around`,flexBasis:`100%`}}]});function MF(e){let t=Np({props:e,name:`MuiTimePickerToolbar`}),{ampm:n,ampmInClock:r,className:i,classes:a}=t,o=cD(t,EF),s=IO(),c=LO(),l=EO(),u=DF(a,l),{value:d,setValue:f,disabled:p,readOnly:m,view:h,setView:g,views:_}=xO(),v=!!(n&&!r&&_.includes(`hours`)),{meridiemMode:y,handleMeridiemChange:b}=jP(d,n,e=>f(e,{changeImportance:`set`,source:`view`})),x=e=>s.isValid(d)?s.format(d,e):`--`,S=(0,J.jsx)(kF,{tabIndex:-1,value:`:`,variant:`h3`,selected:!1,className:u.separator});return(0,J.jsxs)(OF,Y({landscapeDirection:`row`,toolbarTitle:c.timePickerToolbarTitle,ownerState:l,className:q(u.root,i)},o,{children:[(0,J.jsxs)(AF,{className:u.hourMinuteLabel,ownerState:l,children:[bk(_,`hours`)&&(0,J.jsx)(CF,{tabIndex:-1,variant:`h3`,onClick:()=>g(`hours`),selected:h===`hours`,value:x(n?`hours12h`:`hours24h`)}),bk(_,[`hours`,`minutes`])&&S,bk(_,`minutes`)&&(0,J.jsx)(CF,{tabIndex:-1,variant:`h3`,onClick:()=>g(`minutes`),selected:h===`minutes`,value:x(`minutes`)}),bk(_,[`minutes`,`seconds`])&&S,bk(_,`seconds`)&&(0,J.jsx)(CF,{variant:`h3`,onClick:()=>g(`seconds`),selected:h===`seconds`,value:x(`seconds`)})]}),v&&(0,J.jsxs)(jF,{className:u.ampmSelection,ownerState:l,children:[(0,J.jsx)(CF,{disableRipple:!0,variant:`subtitle2`,selected:y===`am`,typographyClassName:u.ampmLabel,value:bD(s,`am`),onClick:m?void 0:()=>b(`am`),disabled:p}),(0,J.jsx)(CF,{disableRipple:!0,variant:`subtitle2`,selected:y===`pm`,typographyClassName:u.ampmLabel,value:bD(s,`pm`),onClick:m?void 0:()=>b(`pm`),disabled:p})]})]}))}function NF(e,t){let n=IO(),r=Np({props:e,name:t}),i=ej(r),a=r.ampm??n.is12HourCycleInCurrentLocale(),o=K.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:Y({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return Y({},r,i,{ampm:a,localeText:o},fD({views:r.views,openTo:r.openTo,defaultViews:[`hours`,`minutes`],defaultOpenTo:`hours`}),{slots:Y({toolbar:MF},r.slots),slotProps:Y({},r.slotProps,{toolbar:Y({ampm:a,ampmInClock:r.ampmInClock},r.slotProps?.toolbar)})})}function PF(e){return Os(`MuiTimeClock`,e)}ks(`MuiTimeClock`,[`root`,`arrowSwitcher`]);var FF={x:110,y:110},IF={x:FF.x,y:0},LF=IF.x-FF.x,RF=IF.y-FF.y,zF=e=>180/Math.PI*e,BF=(e,t,n)=>{let r=t-FF.x,i=n-FF.y,a=zF(Math.atan2(LF,RF)-Math.atan2(r,i));a=Math.round(a/e)*e,a%=360;let o=Math.floor(a/e)||0,s=r**2+i**2;return{value:o,distance:Math.sqrt(s)}},VF=(e,t,n=1)=>{let{value:r}=BF(n*6,e,t);return r=r*n%60,r},HF=(e,t,n)=>{let{value:r,distance:i}=BF(30,e,t),a=r||12;return n?a%=12:i<74&&(a+=12,a%=24),a};function UF(e){return Os(`MuiClockPointer`,e)}ks(`MuiClockPointer`,[`root`,`thumb`]);var WF=[`className`,`classes`,`isBetweenTwoClockValues`,`isInner`,`type`,`viewValue`],GF=e=>xr({root:[`root`],thumb:[`thumb`]},UF,e),KF=Z(`div`,{name:`MuiClockPointer`,slot:`Root`})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:`absolute`,left:`calc(50% - 1px)`,bottom:`50%`,transformOrigin:`center bottom 0px`,variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create([`transform`,`height`])}}]})),qF=Z(`div`,{name:`MuiClockPointer`,slot:`Thumb`})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:`50%`,position:`absolute`,top:-21,left:`calc(50% - 18px)`,border:`16px solid ${(e.vars||e).palette.primary.main}`,boxSizing:`content-box`,variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function JF(e){let t=Np({props:e,name:`MuiClockPointer`}),{className:n,classes:r,isBetweenTwoClockValues:i,isInner:a,type:o,viewValue:s}=t,c=cD(t,WF),l=K.useRef(o);K.useEffect(()=>{l.current=o},[o]);let{ownerState:u}=TO(),d=Y({},u,{isClockPointerAnimated:l.current!==o,isClockPointerBetweenTwoValues:i}),f=GF(r);return(0,J.jsx)(KF,Y({style:(()=>{let e=360/(o===`hours`?12:60)*s;return o===`hours`&&s>12&&(e-=360),{height:Math.round((a?.26:.4)*220),transform:`rotateZ(${e}deg)`}})(),className:q(f.root,n),ownerState:d},c,{children:(0,J.jsx)(qF,{ownerState:d,className:f.thumb})}))}function YF(e){return Os(`MuiClock`,e)}ks(`MuiClock`,[`root`,`clock`,`wrapper`,`squareMask`,`pin`,`amButton`,`pmButton`,`meridiemText`,`selected`]);var XF=(e,t)=>xr({root:[`root`],clock:[`clock`],wrapper:[`wrapper`],squareMask:[`squareMask`],pin:[`pin`],amButton:[`amButton`,t.clockMeridiemMode===`am`&&`selected`],pmButton:[`pmButton`,t.clockMeridiemMode===`pm`&&`selected`],meridiemText:[`meridiemText`]},YF,e),ZF=Z(`div`,{name:`MuiClock`,slot:`Root`})(({theme:e})=>({display:`flex`,justifyContent:`center`,alignItems:`center`,margin:e.spacing(2)})),QF=Z(`div`,{name:`MuiClock`,slot:`Clock`})({backgroundColor:`rgba(0,0,0,.07)`,borderRadius:`50%`,height:220,width:220,flexShrink:0,position:`relative`,pointerEvents:`none`}),$F=Z(`div`,{name:`MuiClock`,slot:`Wrapper`})({"&:focus":{outline:`none`}}),eI=Z(`div`,{name:`MuiClock`,slot:`SquareMask`})({width:`100%`,height:`100%`,position:`absolute`,pointerEvents:`auto`,outline:0,touchAction:`none`,userSelect:`none`,variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:`pointer`,borderRadius:`50%`},"&:active":{cursor:`move`}}}]}),tI=Z(`div`,{name:`MuiClock`,slot:`Pin`})(({theme:e})=>({width:6,height:6,borderRadius:`50%`,backgroundColor:(e.vars||e).palette.primary.main,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`})),nI=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:36,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),rI=Z(Sb,{name:`MuiClock`,slot:`AmButton`})(({theme:e})=>Y({},nI(e,`am`),{position:`absolute`,left:8})),iI=Z(Sb,{name:`MuiClock`,slot:`PmButton`})(({theme:e})=>Y({},nI(e,`pm`),{position:`absolute`,right:8})),aI=Z(ky,{name:`MuiClock`,slot:`MeridiemText`})({overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`});function oI(e){let{ampm:t,ampmInClock:n,autoFocus:r,children:i,value:a,handleMeridiemChange:o,isTimeDisabled:s,meridiemMode:c,minutesStep:l=1,onChange:u,selectedId:d,type:f,viewValue:p,viewRange:[m,h],disabled:g=!1,readOnly:_,className:v,classes:y}=Np({props:e,name:`MuiClock`}),b=IO(),x=LO(),{ownerState:S}=TO(),C=Y({},S,{isClockDisabled:g,clockMeridiemMode:c}),w=K.useRef(!1),T=K.useRef(null),E=K.useRef(null),D=K.useRef(void 0),O=XF(y,C),k=s(p,f),A=!t&&f===`hours`&&(p<1||p>12),j=(e,t)=>{g||_||s(e,f)||u(e,t)},M=(e,n)=>{let r=E.current;if(!r)return;let i=r.getBoundingClientRect(),a=e.clientX-i.left,o=e.clientY-i.top,s=f===`seconds`||f===`minutes`?VF(a,o,l):HF(a,o,!!t);j(s,n)},N=()=>{w.current=!1,T.current=null,D.current?.()},P=xd(e=>{e.pointerId===T.current&&(e.preventDefault(),M(e,`shallow`))}),F=xd(e=>{e.pointerId===T.current&&(N(),M(e,`finish`))}),I=xd(e=>{e.pointerId===T.current&&N()}),L=e=>{if(e.button>0||e.isPrimary===!1||g||_)return;N(),w.current=!0,T.current=e.pointerId;let t=fd(E.current);t.addEventListener(`pointermove`,P),t.addEventListener(`pointerup`,F),t.addEventListener(`pointercancel`,I),D.current=()=>{t.removeEventListener(`pointermove`,P),t.removeEventListener(`pointerup`,F),t.removeEventListener(`pointercancel`,I),D.current=void 0},M(e.nativeEvent,`shallow`)},R=f!==`hours`&&p%5!=0,z=f===`minutes`?l:1,ee=K.useRef(null);Gs(()=>{r&&ee.current.focus()},[r]),K.useEffect(()=>()=>D.current?.(),[]);let te=e=>Math.max(m,Math.min(h,e)),B=e=>(e+(h+1))%(h+1);return(0,J.jsxs)(ZF,{className:q(O.root,v),children:[(0,J.jsxs)(QF,{className:O.clock,children:[(0,J.jsx)(eI,{ref:E,onPointerDown:L,ownerState:C,className:O.squareMask}),!k&&(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(tI,{className:O.pin}),a!=null&&(0,J.jsx)(JF,{type:f,viewValue:p,isInner:A,isBetweenTwoClockValues:R})]}),(0,J.jsx)($F,{"aria-activedescendant":d,"aria-label":x.clockLabelText(f,a==null?null:b.format(a,t?`fullTime12h`:`fullTime24h`)),ref:ee,role:`listbox`,onKeyDown:e=>{if(!w.current)switch(e.key){case`Home`:j(m,`partial`),e.preventDefault();break;case`End`:j(h,`partial`),e.preventDefault();break;case`ArrowUp`:j(B(p+z),`partial`),e.preventDefault();break;case`ArrowDown`:j(B(p-z),`partial`),e.preventDefault();break;case`PageUp`:j(te(p+5),`partial`),e.preventDefault();break;case`PageDown`:j(te(p-5),`partial`),e.preventDefault();break;case`Enter`:case` `:j(p,`finish`),e.preventDefault()}},tabIndex:0,className:O.wrapper,children:i})]}),t&&n&&(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(rI,{onClick:_?void 0:()=>o(`am`),disabled:g||c===null,ownerState:C,className:O.amButton,title:bD(b,`am`),children:(0,J.jsx)(aI,{variant:`caption`,className:O.meridiemText,children:bD(b,`am`)})}),(0,J.jsx)(iI,{disabled:g||c===null,onClick:_?void 0:()=>o(`pm`),ownerState:C,className:O.pmButton,title:bD(b,`pm`),children:(0,J.jsx)(aI,{variant:`caption`,className:O.meridiemText,children:bD(b,`pm`)})})]})]})}function sI(e){return Os(`MuiClockNumber`,e)}var cI=ks(`MuiClockNumber`,[`root`,`selected`,`disabled`]),lI=[`className`,`classes`,`disabled`,`index`,`inner`,`label`,`selected`],uI=(e,t)=>xr({root:[`root`,t.isClockNumberSelected&&`selected`,t.isClockNumberDisabled&&`disabled`]},sI,e),dI=Z(`span`,{name:`MuiClockNumber`,slot:`Root`,overridesResolver:(e,t)=>[t.root,{[`&.${cI.disabled}`]:t.disabled},{[`&.${cI.selected}`]:t.selected}]})(({theme:e})=>({height:36,width:36,position:`absolute`,left:`calc((100% - 36px) / 2)`,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,borderRadius:`50%`,color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${cI.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${cI.disabled}`]:{pointerEvents:`none`,color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:Y({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function fI(e){let t=Np({props:e,name:`MuiClockNumber`}),{className:n,classes:r,disabled:i,index:a,inner:o,label:s,selected:c}=t,l=cD(t,lI),{ownerState:u}=TO(),d=Y({},u,{isClockNumberInInnerRing:o,isClockNumberSelected:c,isClockNumberDisabled:i}),f=uI(r,d),p=a%12/12*Math.PI*2-Math.PI/2,m=91*(o?.65:1),h=Math.round(Math.cos(p)*m),g=Math.round(Math.sin(p)*m);return(0,J.jsx)(dI,Y({className:q(f.root,n),"aria-disabled":i?!0:void 0,"aria-selected":c?!0:void 0,role:`option`,style:{transform:`translate(${h}px, ${g+92}px`},ownerState:d},l,{children:s}))}var pI=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,adapter:a})=>{let o=t?a.getHours(t):null,s=[],c=+!!e,l=e?12:23,u=t=>o===null?!1:e?t===12?o===12||o===0:o===t||o-12===t:o===t;for(let t=c;t<=l;t+=1){let o=t.toString();t===0&&(o=`00`);let c=!e&&(t===0||t>12);o=a.formatNumber(o);let l=u(t);s.push((0,J.jsx)(fI,{id:l?i:void 0,index:t,inner:c,selected:l,disabled:r(t),label:o,"aria-label":n(o)},t))}return s},mI=({adapter:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{let a=e.formatNumber;return[[5,a(`05`)],[10,a(`10`)],[15,a(`15`)],[20,a(`20`)],[25,a(`25`)],[30,a(`30`)],[35,a(`35`)],[40,a(`40`)],[45,a(`45`)],[50,a(`50`)],[55,a(`55`)],[0,a(`00`)]].map(([e,a],o)=>{let s=e===t;return(0,J.jsx)(fI,{label:a,id:s?i:void 0,index:o+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(a)},e)})},hI=({value:e,referenceDate:t,adapter:n,props:r,timezone:i})=>{let a=K.useMemo(()=>lO.getInitialReferenceValue({value:e,adapter:n,props:r,referenceDate:t,granularity:FD.day,timezone:i,getTodayDate:()=>yD(n,i,`date`)}),[t,i]);return e??a},gI=`ampm.ampmInClock.autoFocus.slots.slotProps.value.defaultValue.referenceDate.disableIgnoringDatePartForTimeValidation.maxTime.minTime.disableFuture.disablePast.minutesStep.shouldDisableTime.showViewSwitcher.onChange.view.views.openTo.onViewChange.focusedView.onFocusedViewChange.className.classes.disabled.readOnly.timezone`.split(`.`),_I=e=>xr({root:[`root`],arrowSwitcher:[`arrowSwitcher`]},PF,e),vI=Z(VP,{name:`MuiTimeClock`,slot:`Root`})({display:`flex`,flexDirection:`column`,position:`relative`}),yI=Z(OP,{name:`MuiTimeClock`,slot:`ArrowSwitcher`})({position:`absolute`,right:12,top:15}),bI=[`hours`,`minutes`],xI=K.forwardRef(function(e,t){let n=IO(),r=Np({props:e,name:`MuiTimeClock`}),{ampm:i=n.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:o,slots:s,slotProps:c,value:l,defaultValue:u,referenceDate:d,disableIgnoringDatePartForTimeValidation:f=!1,maxTime:p,minTime:m,disableFuture:h,disablePast:g,minutesStep:_=1,shouldDisableTime:v,showViewSwitcher:y,onChange:b,view:x,views:S=bI,openTo:C,onViewChange:w,focusedView:T,onFocusedViewChange:E,className:D,classes:O,disabled:k,readOnly:A,timezone:j}=r,M=cD(r,gI),{value:N,handleValueChange:P,timezone:F}=Jk({name:`TimeClock`,timezone:j,value:l,defaultValue:u,referenceDate:d,onChange:b,valueManager:lO}),I=hI({value:N,referenceDate:d,adapter:n,props:r,timezone:F}),L=LO(),R=dk(F),z=kc(),{ownerState:ee}=TO(),{view:te,setView:B,previousView:V,nextView:ne,setValueAndGoToNextView:re}=Gk({view:x,views:S,openTo:C,onViewChange:w,onChange:P,focusedView:T,onFocusedViewChange:E}),{meridiemMode:ie,handleMeridiemChange:H}=jP(I,i,re),U=K.useCallback((e,t)=>{let r=ND(f,n),a=t===`hours`||t===`minutes`&&S.includes(`seconds`),o=({start:e,end:t})=>!(m&&r(m,t)||p&&r(e,p)||h&&r(e,R)||g&&r(R,a?t:e)),s=(e,r=1)=>{if(e%r!==0)return!1;if(v)switch(t){case`hours`:return!v(n.setHours(I,e),`hours`);case`minutes`:return!v(n.setMinutes(I,e),`minutes`);case`seconds`:return!v(n.setSeconds(I,e),`seconds`);default:return!1}return!0};switch(t){case`hours`:{let t=AD(e,ie,i),r=n.setHours(I,t);return n.getHours(r)!==t||!o({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case`minutes`:{let t=n.setMinutes(I,e);return!o({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,_)}case`seconds`:{let t=n.setSeconds(I,e);return!o({start:t,end:t})||!s(e)}default:throw Error(`not supported`)}},[i,I,f,p,ie,m,_,v,n,h,g,R,S]),W=K.useMemo(()=>{switch(te){case`hours`:{let e=(e,t)=>{let r=AD(e,ie,i);re(n.setHours(I,r),t,`hours`)},t=n.getHours(I),r;return r=i?t>12?[12,23]:[0,11]:[0,23],{onChange:e,viewValue:t,children:pI({value:N,adapter:n,ampm:i,onChange:e,getClockNumberText:L.hoursClockNumberText,isDisabled:e=>k||U(e,`hours`),selectedId:z}),viewRange:r}}case`minutes`:{let e=n.getMinutes(I),t=(e,t)=>{re(n.setMinutes(I,e),t,`minutes`)};return{viewValue:e,onChange:t,children:mI({adapter:n,value:e,onChange:t,getClockNumberText:L.minutesClockNumberText,isDisabled:e=>k||U(e,`minutes`),selectedId:z}),viewRange:[0,59]}}case`seconds`:{let e=n.getSeconds(I),t=(e,t)=>{re(n.setSeconds(I,e),t,`seconds`)};return{viewValue:e,onChange:t,children:mI({adapter:n,value:e,onChange:t,getClockNumberText:L.secondsClockNumberText,isDisabled:e=>k||U(e,`seconds`),selectedId:z}),viewRange:[0,59]}}default:throw Error(uD(147))}},[te,n,N,i,L.hoursClockNumberText,L.minutesClockNumberText,L.secondsClockNumberText,ie,re,I,U,z,k]),ae=_I(O);return(0,J.jsxs)(vI,Y({ref:t,className:q(ae.root,D),ownerState:ee},M,{children:[(0,J.jsx)(oI,Y({autoFocus:o??!!T,ampmInClock:a&&S.includes(`hours`),value:N,type:te,ampm:i,minutesStep:_,isTimeDisabled:U,meridiemMode:ie,handleMeridiemChange:H,selectedId:z,disabled:k,readOnly:A},W)),y&&(0,J.jsx)(yI,{className:ae.arrowSwitcher,slots:s,slotProps:c,onGoToPrevious:()=>B(V),isPreviousDisabled:!V,previousLabel:L.openPreviousView,onGoToNext:()=>B(ne),isNextDisabled:!ne,nextLabel:L.openNextView,ownerState:ee})]}))});function SI(e){return Os(`MuiDigitalClock`,e)}var CI=ks(`MuiDigitalClock`,[`root`,`list`,`item`]),wI=`ampm.timeStep.autoFocus.slots.slotProps.value.defaultValue.referenceDate.disableIgnoringDatePartForTimeValidation.maxTime.minTime.disableFuture.disablePast.minutesStep.shouldDisableTime.onChange.view.openTo.onViewChange.focusedView.onFocusedViewChange.className.classes.disabled.readOnly.views.skipDisabled.timezone`.split(`.`),TI=e=>xr({root:[`root`],list:[`list`],item:[`item`]},SI,e),EI=Z(VP,{name:`MuiDigitalClock`,slot:`Root`})({overflowY:`auto`,width:`100%`,scrollbarWidth:`thin`,"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:`auto`},maxHeight:232,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:`smooth`}}}]}),DI=Z(u_,{name:`MuiDigitalClock`,slot:`List`})({padding:0}),OI=Z(Ry,{name:`MuiDigitalClock`,slot:`Item`,shouldForwardProp:e=>e!==`itemValue`&&e!==`formattedValue`})(({theme:e})=>({padding:`8px 16px`,margin:`2px 4px`,"&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),kI=K.forwardRef(function(e,t){let n=IO(),r=K.useRef(null),i=Cd(t,r),a=K.useRef(null),o=K.useRef(null),s=Np({props:e,name:`MuiDigitalClock`}),{ampm:c=n.is12HourCycleInCurrentLocale(),timeStep:l=30,autoFocus:u,slots:d,slotProps:f,value:p,defaultValue:m,referenceDate:h,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:_,minTime:v,disableFuture:y,disablePast:b,minutesStep:x=1,shouldDisableTime:S,onChange:C,view:w,openTo:T,onViewChange:E,focusedView:D,onFocusedViewChange:O,className:k,classes:A,disabled:j,readOnly:M,views:N=[`hours`],skipDisabled:P=!1,timezone:F}=s,I=cD(s,wI),{value:L,handleValueChange:R,timezone:z}=Jk({name:`DigitalClock`,timezone:F,value:p,defaultValue:m,referenceDate:h,onChange:C,valueManager:lO}),ee=LO(),te=dk(z),{ownerState:B}=TO(),V=Y({},B,{hasDigitalClockAlreadyBeenRendered:!!r.current}),ne=TI(A),re=d?.digitalClockItem??OI,ie=vg({elementType:re,externalSlotProps:f?.digitalClockItem,ownerState:V,className:ne.item}),H=hI({value:L,referenceDate:h,adapter:n,props:s,timezone:z}),{setValueAndGoToNextView:U}=Gk({view:w,views:N,openTo:T,onViewChange:E,onChange:xd(e=>R(e,`finish`,`hours`)),focusedView:D,onFocusedViewChange:O}),W=xd(e=>{U(e,`finish`)});Gs(()=>{if(r.current===null)return;let e=r.current.querySelector(`[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]`);if(!e)return;let t=e.offsetTop;(u||D)&&e!==o.current&&(o.current=e,e.focus()),r.current.scrollTop=t-4});let ae=K.useCallback(e=>{let t=ND(g,n);return!!(v&&t(v,e)||_&&t(e,_)||y&&t(e,te)||b&&t(te,e))||n.getMinutes(e)%x!==0||!!S&&!!S(e,`hours`)},[g,n,v,_,y,te,b,x,S]),oe=K.useMemo(()=>{let e=[],t=n.startOfDay(H);for(;n.isSameDay(H,t);)e.push(t),t=n.addMinutes(t,l);return e},[H,l,n]),se=oe.findIndex(e=>n.isEqual(e,H));return(0,J.jsx)(EI,Y({ref:i,className:q(ne.root,k),ownerState:V},I,{children:(0,J.jsx)(DI,{ref:a,role:`listbox`,"aria-label":ee.timePickerToolbarTitle,className:ne.list,onKeyDown:e=>{switch(e.key){case`PageUp`:{let t=wk(a.current)-5,n=a.current.children[Math.max(0,t)];n&&n.focus(),e.preventDefault();break}case`PageDown`:{let t=wk(a.current)+5,n=a.current.children,r=n[Math.min(n.length-1,t)];r&&r.focus(),e.preventDefault();break}}},children:oe.map((e,t)=>{let r=ae(e);if(P&&r)return null;let i=n.isEqual(e,L),a=n.format(e,c?`fullTime12h`:`fullTime24h`);return(0,J.jsx)(re,Y({onClick:()=>!M&&W(e),selected:i,disabled:j||r,disableRipple:M,role:`option`,"aria-disabled":M,"aria-selected":i,tabIndex:se===t||se===-1&&t===0?0:-1,itemValue:e,formattedValue:a},ie,{children:a}),`${e.valueOf()}-${a}`)})})}))});function AI(e){return Os(`MuiMultiSectionDigitalClock`,e)}var jI=ks(`MuiMultiSectionDigitalClock`,[`root`]);function MI(e){return Os(`MuiMultiSectionDigitalClockSection`,e)}var NI=ks(`MuiMultiSectionDigitalClockSection`,[`root`,`item`]),PI=[`autoFocus`,`onChange`,`className`,`classes`,`disabled`,`readOnly`,`items`,`active`,`slots`,`slotProps`,`skipDisabled`],FI=e=>xr({root:[`root`],item:[`item`]},MI,e),II=Z(u_,{name:`MuiMultiSectionDigitalClockSection`,slot:`Root`})(({theme:e})=>({maxHeight:232,width:56,padding:0,overflow:`hidden`,scrollbarWidth:`thin`,"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:`auto`},"@media (pointer: fine)":{"&:hover":{overflowY:`auto`}},"@media (pointer: none), (pointer: coarse)":{overflowY:`auto`},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:`smooth`}}}]})),LI=Z(Ry,{name:`MuiMultiSectionDigitalClockSection`,slot:`Item`})(({theme:e})=>({padding:8,margin:`2px 4px`,width:48,justifyContent:`center`,"&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),RI=K.forwardRef(function(e,t){let n=K.useRef(null),r=Cd(t,n),i=K.useRef(null),a=K.useRef(!1),o=Np({props:e,name:`MuiMultiSectionDigitalClockSection`}),{autoFocus:s,onChange:c,className:l,classes:u,disabled:d,readOnly:f,items:p,active:m,slots:h,slotProps:g,skipDisabled:_}=o,v=cD(o,PI),{ownerState:y}=TO(),b=Y({},y,{hasDigitalClockAlreadyBeenRendered:!!n.current}),x=FI(u),S=h?.digitalClockSectionItem??LI;Gs(()=>{if(n.current===null)return;let e=n.current.querySelector(`[role="option"][tabindex="0"], [role="option"][aria-selected="true"]`);if(!e)return;let t=document.activeElement,r=i.current===e,o=!!t&&n.current.contains(t),c=r&&a.current;if(m&&s&&(!r||c)&&(i.current==null||a.current||o)&&(i.current=e,a.current=!1,e.focus()),r)return;let l=e.offsetTop,u=e.offsetHeight,d=n.current.clientHeight,f=n.current.scrollHeight,p=l-d/2+u/2,h=f-d,g=Math.min(p,h);n.current.scrollTop=Math.max(0,g)});let C=xd(e=>{let t=e.relatedTarget,r=t?.parentElement,o=t?.getAttribute(`role`),s=r?.nodeName===`UL`&&r!==n.current||o===`gridcell`;a.current=s,i.current&&r?.nodeName===`UL`&&r!==n.current&&(i.current=null)});K.useEffect(()=>{m||(i.current=null)},[m]);let w=p.findIndex(e=>e.isFocused(e.value)),T=xd(e=>{switch(e.key){case`Tab`:a.current=!0;break;case`PageUp`:{let t=wk(n.current)-5,r=n.current.children[Math.max(0,t)];r&&r.focus(),e.preventDefault();break}case`PageDown`:{let t=wk(n.current)+5,r=n.current.children,i=r[Math.min(r.length-1,t)];i&&i.focus(),e.preventDefault();break}}});return(0,J.jsx)(II,Y({ref:r,className:q(x.root,l),ownerState:b,role:`listbox`,onKeyDown:T,onBlur:C},v,{children:p.map((e,t)=>{let n=e.isDisabled?.(e.value),r=d||n;if(_&&r)return null;let i=e.isSelected(e.value),a=w===t||w===-1&&t===0?0:-1;return(0,J.jsx)(S,Y({onClick:()=>!f&&c(e.value),selected:i,disabled:r,disableRipple:f,role:`option`,"aria-disabled":f||r||void 0,"aria-label":e.ariaLabel,"aria-selected":i,tabIndex:a,className:x.item},g?.digitalClockSectionItem,{children:e.label}),e.label)})}))}),zI=({now:e,value:t,adapter:n,ampm:r,isDisabled:i,resolveAriaLabel:a,timeStep:o,valueOrReferenceDate:s})=>{let c=t?n.getHours(t):null,l=[],u=(e,t)=>{let n=t??c;return n===null?!1:r?e===12?n===12||n===0:n===e||n-12===e:n===e},d=e=>u(e,n.getHours(s)),f=n.setDate(n.setMonth(n.startOfDay(e),0),15),p=r?11:23;for(let e=0;e<=p;e+=o){let t=n.format(n.setHours(f,e),r?`hours12h`:`hours24h`),o=a(parseInt(t,10).toString());t=n.formatNumber(t),l.push({value:e,label:t,isSelected:u,isDisabled:i,isFocused:d,ariaLabel:o})}return l},BI=({value:e,adapter:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:a,hasValue:o=!0})=>{let s=t=>e!==null&&o&&e===t,c=t=>e===t;return[...Array.from({length:Math.ceil(60/r)},(e,o)=>{let l=r*o;return{value:l,label:t.formatNumber(i(l)),isDisabled:n,isSelected:s,isFocused:c,ariaLabel:a(l.toString())}})]},VI=`ampm.timeSteps.autoFocus.slots.slotProps.value.defaultValue.referenceDate.disableIgnoringDatePartForTimeValidation.maxTime.minTime.disableFuture.disablePast.minutesStep.shouldDisableTime.onChange.view.views.openTo.onViewChange.focusedView.onFocusedViewChange.className.classes.disabled.readOnly.skipDisabled.timezone`.split(`.`),HI=e=>xr({root:[`root`]},AI,e),UI=Z(VP,{name:`MuiMultiSectionDigitalClock`,slot:`Root`})(({theme:e})=>({flexDirection:`row`,width:`100%`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),WI=K.forwardRef(function(e,t){let n=IO(),r=xc(),i=Np({props:e,name:`MuiMultiSectionDigitalClock`}),{ampm:a=n.is12HourCycleInCurrentLocale(),timeSteps:o,autoFocus:s,slots:c,slotProps:l,value:u,defaultValue:d,referenceDate:f,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:m,minTime:h,disableFuture:g,disablePast:_,minutesStep:v=1,shouldDisableTime:y,onChange:b,view:x,views:S=[`hours`,`minutes`],openTo:C,onViewChange:w,focusedView:T,onFocusedViewChange:E,className:D,classes:O,disabled:k,readOnly:A,skipDisabled:j=!1,timezone:M}=i,N=cD(i,VI),{value:P,handleValueChange:F,timezone:I}=Jk({name:`MultiSectionDigitalClock`,timezone:M,value:u,defaultValue:d,referenceDate:f,onChange:b,valueManager:lO}),L=LO(),R=dk(I),z=K.useMemo(()=>Y({hours:1,minutes:5,seconds:5},o),[o]),ee=hI({value:P,referenceDate:f,adapter:n,props:i,timezone:I}),te=xd((e,t,n)=>F(e,t,n)),B=K.useMemo(()=>!a||!S.includes(`hours`)||S.includes(`meridiem`)?S:[...S,`meridiem`],[a,S]),{view:V,setValueAndGoToNextView:ne,focusedView:re}=Gk({view:x,views:B,openTo:C,onViewChange:w,onChange:te,focusedView:T,onFocusedViewChange:E}),{meridiemMode:ie,handleMeridiemChange:H}=jP(ee,a,xd(e=>{ne(e,`finish`,`meridiem`)}),`finish`),U=K.useCallback((e,t)=>{let r=ND(p,n),i=t===`hours`||t===`minutes`&&B.includes(`seconds`),o=({start:e,end:t})=>!(h&&r(h,t)||m&&r(e,m)||g&&r(e,R)||_&&r(R,i?t:e)),s=(e,r=1)=>{if(e%r!==0)return!1;if(y)switch(t){case`hours`:return!y(n.setHours(ee,e),`hours`);case`minutes`:return!y(n.setMinutes(ee,e),`minutes`);case`seconds`:return!y(n.setSeconds(ee,e),`seconds`);default:return!1}return!0};switch(t){case`hours`:{let t=AD(e,ie,a),r=n.setHours(ee,t);return n.getHours(r)!==t||!o({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case`minutes`:{let t=n.setMinutes(ee,e);return!o({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,v)}case`seconds`:{let t=n.setSeconds(ee,e);return!o({start:t,end:t})||!s(e)}default:throw Error(`not supported`)}},[a,ee,p,m,ie,h,v,y,n,g,_,R,B]),W=K.useCallback(e=>{switch(e){case`hours`:return{onChange:e=>{let t=AD(e,ie,a);ne(n.setHours(ee,t),`finish`,`hours`)},items:zI({now:R,value:P,ampm:a,adapter:n,isDisabled:e=>U(e,`hours`),timeStep:z.hours,resolveAriaLabel:L.hoursClockNumberText,valueOrReferenceDate:ee})};case`minutes`:return{onChange:e=>{ne(n.setMinutes(ee,e),`finish`,`minutes`)},items:BI({value:n.getMinutes(ee),adapter:n,isDisabled:e=>U(e,`minutes`),resolveLabel:e=>n.format(n.setMinutes(R,e),`minutes`),timeStep:z.minutes,hasValue:!!P,resolveAriaLabel:L.minutesClockNumberText})};case`seconds`:return{onChange:e=>{ne(n.setSeconds(ee,e),`finish`,`seconds`)},items:BI({value:n.getSeconds(ee),adapter:n,isDisabled:e=>U(e,`seconds`),resolveLabel:e=>n.format(n.setSeconds(R,e),`seconds`),timeStep:z.seconds,hasValue:!!P,resolveAriaLabel:L.secondsClockNumberText})};case`meridiem`:{let e=bD(n,`am`),t=bD(n,`pm`);return{onChange:H,items:[{value:`am`,label:e,isSelected:()=>!!P&&ie===`am`,isFocused:()=>!!ee&&ie===`am`,ariaLabel:e},{value:`pm`,label:t,isSelected:()=>!!P&&ie===`pm`,isFocused:()=>!!ee&&ie===`pm`,ariaLabel:t}]}}default:throw Error(uD(144,e))}},[R,P,a,n,z.hours,z.minutes,z.seconds,L.hoursClockNumberText,L.minutesClockNumberText,L.secondsClockNumberText,ie,ne,ee,U,H]),ae=K.useMemo(()=>{if(!r)return B;let e=B.filter(e=>e!==`meridiem`);return e.reverse(),B.includes(`meridiem`)&&e.push(`meridiem`),e},[r,B]),oe=K.useMemo(()=>B.reduce((e,t)=>Y({},e,{[t]:W(t)}),{}),[B,W]),{ownerState:se}=TO(),ce=HI(O);return(0,J.jsx)(UI,Y({ref:t,className:q(ce.root,D),ownerState:se,role:`group`},N,{children:ae.map(e=>(0,J.jsx)(RI,{items:oe[e].items,onChange:oe[e].onChange,active:V===e,autoFocus:s||re===e,disabled:k,readOnly:A,slots:c,slotProps:l,skipDisabled:j,"aria-label":L.selectViewText(e)},e))}))}),GI=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,ampmInClock:v,slots:y,slotProps:b,readOnly:x,disabled:S,sx:C,autoFocus:w,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:E,timezone:D})=>(0,J.jsx)(xI,{view:e,onViewChange:t,focusedView:n&&DD(n)?n:null,onFocusedViewChange:r,views:i.filter(DD),value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,ampmInClock:v,slots:y,slotProps:b,readOnly:x,disabled:S,sx:C,autoFocus:w,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:E,timezone:D}),KI=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,slots:v,slotProps:y,readOnly:b,disabled:x,sx:S,autoFocus:C,disableIgnoringDatePartForTimeValidation:w,timeSteps:T,skipDisabled:E,timezone:D})=>(0,J.jsx)(kI,{view:e,onViewChange:t,focusedView:n&&DD(n)?n:null,onFocusedViewChange:r,views:i.filter(DD),value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,slots:v,slotProps:y,readOnly:b,disabled:x,sx:S,autoFocus:C,disableIgnoringDatePartForTimeValidation:w,timeStep:T?.minutes,skipDisabled:E,timezone:D}),qI=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,slots:v,slotProps:y,readOnly:b,disabled:x,sx:S,autoFocus:C,disableIgnoringDatePartForTimeValidation:w,timeSteps:T,skipDisabled:E,timezone:D})=>(0,J.jsx)(WI,{view:e,onViewChange:t,focusedView:n&&OD(n)?n:null,onFocusedViewChange:r,views:i.filter(DD),value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,slots:v,slotProps:y,readOnly:b,disabled:x,sx:S,autoFocus:C,disableIgnoringDatePartForTimeValidation:w,timeSteps:T,skipDisabled:E,timezone:D}),JI=[`views`,`format`],YI=(e,t,n)=>{let{views:r,format:i}=t,a=cD(t,JI);if(i)return i;let o=[],s=[];if(r.forEach(e=>{DD(e)?s.push(e):SD(e)&&o.push(e)}),s.length===0)return CD(e,Y({views:o},a),!1);if(o.length===0)return PD(e,Y({views:s},a));let c=PD(e,Y({views:s},a));return`${n?e.formats.keyboardDate:CD(e,Y({views:o},a),!1)} ${c}`},XI=(e,t,n)=>n?t.filter(e=>!OD(e)||e===`hours`):e?[...t,`meridiem`]:t,ZI=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function QI({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){let i=e??24,a=Y({hours:1,minutes:5,seconds:5},n),o=ZI(a,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:a,shouldRenderTimeInASingleColumn:o,views:XI(t,r,o)}}var $I=K.forwardRef(function(e,t){let n=IO(),r=NF(e,`MuiDesktopTimePicker`),{shouldRenderTimeInASingleColumn:i,views:a,timeSteps:o}=QI(r),s=i?KI:qI,c=Y({hours:s,minutes:s,seconds:s,meridiem:s},r.viewRenderers),l=r.ampmInClock??!0,u=c.hours?.name===qI.name?a:a.filter(e=>e!==`meridiem`),{renderPicker:d}=AA({ref:t,props:Y({},r,{ampmInClock:l,timeSteps:o,viewRenderers:c,format:PD(n,r),views:i?[`hours`]:u,slots:Y({field:pF},r.slots),slotProps:Y({},r.slotProps,{field:e=>Y({},lh(r.slotProps?.field,e),HO(r)),toolbar:Y({hidden:!0,ampmInClock:l},r.slotProps?.toolbar)})}),valueManager:lO,valueType:`time`,validator:sk,steps:null});return d()}),eL=K.forwardRef(function(e,t){let n=IO(),r=NF(e,`MuiMobileTimePicker`),i=Y({hours:GI,minutes:GI,seconds:GI},r.viewRenderers),a=r.ampmInClock??!1,{renderPicker:o}=nF({ref:t,props:Y({},r,{ampmInClock:a,viewRenderers:i,format:PD(n,r),slots:Y({field:pF},r.slots),slotProps:Y({},r.slotProps,{field:e=>Y({},lh(r.slotProps?.field,e),HO(r)),toolbar:Y({hidden:!1,ampmInClock:a},r.slotProps?.toolbar)})}),valueManager:lO,valueType:`time`,validator:sk,steps:null});return o()}),tL=[`desktopModeMediaQuery`],nL=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiTimePicker`}),{desktopModeMediaQuery:r=Tk}=n,i=cD(n,tL);return lD(r,{defaultMatches:!0})?(0,J.jsx)($I,Y({ref:t},i)):(0,J.jsx)(eL,Y({ref:t},i))});function rL(e){return Os(`MuiAlert`,e)}var iL=ks(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]),aL=od((0,J.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),oL=od((0,J.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),sL=od((0,J.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),cL=od((0,J.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),lL=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return xr({root:[`root`,`color${_r(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},rL,i)},uL=Z(lv,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(Uu(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(Fm([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${iL.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fm([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${iL.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Fm([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{...e.focusVisible&&zl(`0 0 0 4px ${(e.vars||e).palette.background.default}`),fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),dL=Z(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),fL=Z(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),pL=Z(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),mL={success:(0,J.jsx)(aL,{fontSize:`inherit`}),warning:(0,J.jsx)(oL,{fontSize:`inherit`}),error:(0,J.jsx)(sL,{fontSize:`inherit`}),info:(0,J.jsx)(cL,{fontSize:`inherit`})},hL=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,icon:c,iconMapping:l=mL,onClose:u,role:d=`alert`,severity:f=`success`,slotProps:p={},slots:m={},variant:h=`standard`,...g}=n,_={...n,color:s,severity:f,variant:h,colorSeverity:s||f},v=lL(_),y={slots:m,slotProps:p},[b,x]=ph(`root`,{ref:t,shouldForwardComponentProp:!0,className:q(v.root,a),elementType:uL,externalForwardedProps:{...y,...g},ownerState:_,additionalProps:{role:d,elevation:0}}),[S,C]=ph(`icon`,{className:v.icon,elementType:dL,externalForwardedProps:y,ownerState:_}),[w,T]=ph(`message`,{className:v.message,elementType:fL,externalForwardedProps:y,ownerState:_}),[E,D]=ph(`action`,{className:v.action,elementType:pL,externalForwardedProps:y,ownerState:_}),[O,k]=ph(`closeButton`,{elementType:Sb,externalForwardedProps:y,ownerState:_}),[A,j]=ph(`closeIcon`,{elementType:GE,externalForwardedProps:y,ownerState:_});return(0,J.jsxs)(b,{...x,children:[c===!1?null:(0,J.jsx)(S,{...C,children:c||l[f]||mL[f]}),(0,J.jsx)(w,{...T,children:i}),r==null?null:(0,J.jsx)(E,{...D,children:r}),r==null&&u?(0,J.jsx)(E,{...D,children:(0,J.jsx)(O,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:u,...k,children:(0,J.jsx)(A,{fontSize:`small`,...j})})}):null]})});function gL(e){return Os(`MuiAlertTitle`,e)}ks(`MuiAlertTitle`,[`root`]);var _L=e=>{let{classes:t}=e;return xr({root:[`root`]},gL,t)},vL=Z(ky,{name:`MuiAlertTitle`,slot:`Root`})(Uu(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),yL=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiAlertTitle`}),{className:r,...i}=n,a=n,o=_L(a);return(0,J.jsx)(vL,{gutterBottom:!0,component:`div`,ownerState:a,ref:t,className:q(o.root,r),...i})});function bL(e){return Os(`MuiLinearProgress`,e)}ks(`MuiLinearProgress`,[`root`,`colorPrimary`,`colorSecondary`,`determinate`,`indeterminate`,`buffer`,`query`,`dashed`,`bar`,`bar1`,`bar2`]);var xL=4,SL={},CL=es`
211
+ 0% {
212
+ left: -35%;
213
+ right: 100%;
214
+ }
215
+
216
+ 60% {
217
+ left: 100%;
218
+ right: -90%;
219
+ }
220
+
221
+ 100% {
222
+ left: 100%;
223
+ right: -90%;
224
+ }
225
+ `,wL=typeof CL==`string`?null:$o`
226
+ animation: ${CL} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
227
+ `,TL=es`
228
+ 0% {
229
+ left: -200%;
230
+ right: 100%;
231
+ }
232
+
233
+ 60% {
234
+ left: 107%;
235
+ right: -8%;
236
+ }
237
+
238
+ 100% {
239
+ left: 107%;
240
+ right: -8%;
241
+ }
242
+ `,EL=typeof TL==`string`?null:$o`
243
+ animation: ${TL} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
244
+ `,DL=es`
245
+ 0% {
246
+ opacity: 1;
247
+ background-position: 0 -23px;
248
+ }
249
+
250
+ 60% {
251
+ opacity: 0;
252
+ background-position: 0 -23px;
253
+ }
254
+
255
+ 100% {
256
+ opacity: 1;
257
+ background-position: -200px -23px;
258
+ }
259
+ `,OL=typeof DL==`string`?null:$o`
260
+ animation: ${DL} 3s infinite linear;
261
+ `,kL=e=>{let{classes:t,variant:n,color:r}=e;return xr({root:[`root`,`color${_r(r)}`,n],dashed:[`dashed`],bar1:[`bar`,`bar1`],bar2:[`bar`,`bar2`,n===`buffer`&&`color${_r(r)}`]},bL,t)},AL=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode===`light`?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),jL=Z(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${_r(n.color)}`],t[n.variant]]}})(Uu(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{backgroundColor:AL(e,t)}})),{props:({ownerState:e})=>e.color===`inherit`&&e.variant!==`buffer`,style:{"&::before":{content:`""`,position:`absolute`,left:0,top:0,right:0,bottom:0,backgroundColor:`currentColor`,opacity:.3}}},{props:{variant:`buffer`},style:{backgroundColor:`transparent`}},{props:{variant:`query`},style:{transform:`rotate(180deg)`}}]}))),ML=Z(`span`,{name:`MuiLinearProgress`,slot:`Dashed`})(Uu(({theme:e})=>({position:`absolute`,marginTop:0,height:`100%`,width:`100%`,backgroundSize:`10px 10px`,backgroundPosition:`0 -23px`,variants:[{props:{color:`inherit`},style:{opacity:.3,backgroundImage:`radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)`}},...Object.entries(e.palette).filter(Fm()).map(([t])=>{let n=AL(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),OL||{animation:`${DL} 3s infinite linear`},Uu(({theme:e})=>td(e,{animation:`none`})||SL)),NL=Z(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>[t.bar,t.bar1]})(Uu(({theme:e})=>{let t=td(e,{animation:`none`,left:`30%`,right:`auto`,width:`40%`});return{width:`100%`,position:`absolute`,left:0,bottom:0,top:0,...nd(e,`transform`,{duration:`0.2s`,easing:`linear`}),transformOrigin:`left`,variants:[{props:{color:`inherit`},style:{backgroundColor:`currentColor`}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{...nd(e,`transform`,{duration:`.${xL}s`,easing:`linear`})}},{props:{variant:`buffer`},style:{zIndex:1,...nd(e,`transform`,{duration:`.${xL}s`,easing:`linear`})}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:wL||{animation:`${CL} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:t}]:[]]}})),PL=Z(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>[t.bar,t.bar2]})(Uu(({theme:e})=>{let t=td(e,{animation:`none`,display:`none`});return{width:`100%`,position:`absolute`,left:0,bottom:0,top:0,...nd(e,`transform`,{duration:`0.2s`,easing:`linear`}),transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:e})=>e.variant!==`buffer`&&e.color!==`inherit`,style:{backgroundColor:`var(--LinearProgressBar2-barColor, currentColor)`}},{props:({ownerState:e})=>e.variant!==`buffer`&&e.color===`inherit`,style:{backgroundColor:`currentColor`}},{props:{color:`inherit`},style:{opacity:.3}},...Object.entries(e.palette).filter(Fm()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:AL(e,t),...nd(e,`transform`,{duration:`.${xL}s`,easing:`linear`})}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:EL||{animation:`${TL} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:t}]:[]]}})),FL=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiLinearProgress`}),{className:r,color:i=`primary`,max:a,min:o,value:s,valueBuffer:c,variant:l=`indeterminate`,...u}=n,d={...n,color:i,variant:l},f=o??0,p=a??100,m=kL(d),h=xc(),g={},_={bar1:{},bar2:{}};if((l===`determinate`||l===`buffer`)&&s!==void 0){let e=p-f,t=(s-f)/e*100-100;h&&(t=-t),_.bar1.transform=e>0?`translateX(${t}%)`:`translateX(-100%)`,g[`aria-valuenow`]=s,g[`aria-valuemin`]=f,g[`aria-valuemax`]=p}if(l===`buffer`&&c!==void 0){let e=p-f,t=(c-f)/e*100-100;h&&(t=-t),_.bar2.transform=e>0?`translateX(${t}%)`:`translateX(-100%)`}return(0,J.jsxs)(jL,{className:q(m.root,r),ownerState:d,role:`progressbar`,...g,ref:t,...u,children:[l===`buffer`?(0,J.jsx)(ML,{className:m.dashed,ownerState:d}):null,(0,J.jsx)(NL,{className:m.bar1,ownerState:d,style:_.bar1}),l===`determinate`?null:(0,J.jsx)(PL,{className:m.bar2,ownerState:d,style:_.bar2})]})});function IL(e){return Os(`MuiPagination`,e)}ks(`MuiPagination`,[`root`,`ul`,`outlined`,`text`]);function LL(e={}){let{boundaryCount:t=1,componentName:n=`usePagination`,count:r=1,defaultPage:i=1,disabled:a=!1,hideNextButton:o=!1,hidePrevButton:s=!1,onChange:c,page:l,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:f=1,...p}=e,[m,h]=yd({controlled:l,default:i,name:n,state:`page`}),g=(e,t)=>{l||h(t),c&&c(e,t)},_=(e,t)=>{let n=t-e+1;return Array.from({length:n},(t,n)=>e+n)},v=_(1,Math.min(t,r)),y=_(Math.max(r-t+1,t+1),r),b=Math.max(Math.min(m-f,r-t-f*2-1),t+2),x=Math.min(Math.max(m+f,t+f*2+2),r-t-1),S=[...u?[`first`]:[],...s?[]:[`previous`],...v,...b>t+2?[`start-ellipsis`]:t+1<r-t?[t+1]:[],..._(b,x),...x<r-t-1?[`end-ellipsis`]:r-t>t?[r-t]:[],...y,...o?[]:[`next`],...d?[`last`]:[]],C=e=>{switch(e){case`first`:return 1;case`previous`:return m-1;case`next`:return m+1;case`last`:return r;default:return null}};return{items:S.map(e=>typeof e==`number`?{onClick:t=>{g(t,e)},type:`page`,page:e,selected:e===m,disabled:a,"aria-current":e===m?`page`:void 0}:{onClick:t=>{g(t,C(e))},type:e,page:C(e),selected:!1,disabled:a||!e.includes(`ellipsis`)&&(e===`next`||e===`last`?m>=r:m<=1)}),...p}}function RL(e){return Os(`MuiPaginationItem`,e)}var zL=ks(`MuiPaginationItem`,[`root`,`page`,`sizeSmall`,`sizeLarge`,`text`,`outlined`,`rounded`,`ellipsis`,`firstLast`,`previousNext`,`focusVisible`,`disabled`,`selected`,`icon`,`colorPrimary`,`colorSecondary`]),BL=od((0,J.jsx)(`path`,{d:`M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z`}),`FirstPage`),VL=od((0,J.jsx)(`path`,{d:`M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z`}),`LastPage`),HL=od((0,J.jsx)(`path`,{d:`M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`NavigateBefore`),UL=od((0,J.jsx)(`path`,{d:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`}),`NavigateNext`),WL=(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${_r(n.size)}`],n.shape===`rounded`&&t.rounded,n.type===`page`&&t.page,(n.type===`start-ellipsis`||n.type===`end-ellipsis`)&&t.ellipsis,(n.type===`previous`||n.type===`next`)&&t.previousNext,(n.type===`first`||n.type===`last`)&&t.firstLast]},GL=e=>{let{classes:t,color:n,disabled:r,selected:i,size:a,shape:o,type:s,variant:c}=e;return xr({root:[`root`,`size${_r(a)}`,c,o,n!==`standard`&&`color${_r(n)}`,r&&`disabled`,i&&`selected`,{page:`page`,first:`firstLast`,last:`firstLast`,"start-ellipsis":`ellipsis`,"end-ellipsis":`ellipsis`,previous:`previousNext`,next:`previousNext`}[s]],icon:[`icon`]},RL,t)},KL=Z(`div`,{name:`MuiPaginationItem`,slot:`Root`,overridesResolver:WL})(Uu(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:`center`,boxSizing:`border-box`,minWidth:32,padding:`0 6px`,margin:`0 3px`,color:(e.vars||e).palette.text.primary,height:`auto`,[`&.${zL.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:`small`},style:{minWidth:26,borderRadius:13,margin:`0 1px`,padding:`0 4px`}},{props:{size:`large`},style:{minWidth:40,borderRadius:20,padding:`0 10px`,fontSize:e.typography.pxToRem(15)}}]}))),qL=Z(jm,{name:`MuiPaginationItem`,slot:`Root`,overridesResolver:WL})(Uu(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:`center`,boxSizing:`border-box`,minWidth:32,height:32,padding:`0 6px`,margin:`0 3px`,color:(e.vars||e).palette.text.primary,...!e.focusVisible&&{[`&.${zL.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${zL.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},...nd(e,[`color`,`background-color`],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${zL.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},...!e.focusVisible&&{[`&.${zL.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${zL.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:`small`},style:{minWidth:26,height:26,borderRadius:13,margin:`0 1px`,padding:`0 4px`}},{props:{size:`large`},style:{minWidth:40,height:40,borderRadius:20,padding:`0 10px`,fontSize:e.typography.pxToRem(15)}},{props:{shape:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`outlined`},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`}`,[`&.${zL.selected}`]:{[`&.${zL.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:`text`},style:{[`&.${zL.selected}`]:{[`&.${zL.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Fm([`dark`,`contrastText`])).map(([t])=>({props:{variant:`text`,color:t},style:{[`&.${zL.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},...!e.focusVisible&&{[`&.${zL.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}},[`&.${zL.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Fm([`light`])).map(([t])=>({props:{variant:`outlined`,color:t},style:{[`&.${zL.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:`transparent`}},...!e.focusVisible&&{[`&.${zL.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}}))]}))),JL=Z(`div`,{name:`MuiPaginationItem`,slot:`Icon`})(Uu(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:`0 -8px`,variants:[{props:{size:`small`},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{fontSize:e.typography.pxToRem(22)}}]}))),YL=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiPaginationItem`}),{className:r,color:i=`standard`,component:a,disabled:o=!1,page:s,selected:c=!1,shape:l=`circular`,size:u=`medium`,slots:d={},slotProps:f={},type:p=`page`,variant:m=`text`,...h}=n,g={...n,color:i,disabled:o,selected:c,shape:l,size:u,type:p,variant:m},_=xc(),v=GL(g),y={slots:d,slotProps:f},[b,x]=ph(`previous`,{elementType:HL,externalForwardedProps:y,ownerState:g}),[S,C]=ph(`next`,{elementType:UL,externalForwardedProps:y,ownerState:g}),[w,T]=ph(`first`,{elementType:BL,externalForwardedProps:y,ownerState:g}),[E,D]=ph(`last`,{elementType:VL,externalForwardedProps:y,ownerState:g}),O=_?{previous:`next`,next:`previous`,first:`last`,last:`first`}[p]:p,k={previous:b,next:S,first:w,last:E}[O],A={previous:x,next:C,first:T,last:D}[O];return p===`start-ellipsis`||p===`end-ellipsis`?(0,J.jsx)(KL,{ref:t,ownerState:g,className:q(v.root,r),children:`…`}):(0,J.jsxs)(qL,{ref:t,ownerState:g,component:a,internalNativeButton:!0,disabled:o,className:q(v.root,r),...h,children:[p===`page`&&s,k?(0,J.jsx)(JL,{...A,className:v.icon,as:k}):null]})}),XL=e=>{let{classes:t,variant:n}=e;return xr({root:[`root`,n],ul:[`ul`]},IL,t)},ZL=Z(`nav`,{name:`MuiPagination`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),QL=Z(`ul`,{name:`MuiPagination`,slot:`Ul`})({display:`flex`,flexWrap:`wrap`,alignItems:`center`,padding:0,margin:0,listStyle:`none`});function $L(e,t,n){return e===`page`?`${n?``:`Go to `}page ${t}`:`Go to ${e} page`}var eR=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiPagination`}),{boundaryCount:r=1,className:i,color:a=`standard`,count:o=1,defaultPage:s=1,disabled:c=!1,getItemAriaLabel:l=$L,hideNextButton:u=!1,hidePrevButton:d=!1,onChange:f,page:p,renderItem:m=e=>(0,J.jsx)(YL,{...e}),shape:h=`circular`,showFirstButton:g=!1,showLastButton:_=!1,siblingCount:v=1,size:y=`medium`,variant:b=`text`,...x}=n,{items:S}=LL({...n,componentName:`Pagination`}),C={...n,boundaryCount:r,color:a,count:o,defaultPage:s,disabled:c,getItemAriaLabel:l,hideNextButton:u,hidePrevButton:d,renderItem:m,shape:h,showFirstButton:g,showLastButton:_,siblingCount:v,size:y,variant:b},w=XL(C),T=K.useRef(null),E=K.useRef(null),D=wd(t,T),O=S.find(e=>e.selected)?.page,k=K.useCallback((e,t)=>{E.current=null,((e.type===`first`||e.type===`previous`)&&e.page===1||(e.type===`next`||e.type===`last`)&&e.page===o)&&dd(pd(t.currentTarget))===t.currentTarget&&(E.current={page:e.page,trigger:t.currentTarget}),e.onClick(t)},[o]);return _d(()=>{let e=E.current;if(!e||e.page!==O)return;let t=pd(T.current),n=dd(t);(n===t.body||n===t.documentElement||n===e.trigger||n==null)&&T.current.querySelector(`[aria-current="page"]`)?.focus(),E.current=null},[O]),(0,J.jsx)(ZL,{"aria-label":`pagination navigation`,className:q(w.root,i),ownerState:C,ref:D,...x,children:(0,J.jsx)(QL,{className:w.ul,ownerState:C,children:S.map((e,t)=>(0,J.jsx)(`li`,{children:m({...e,color:a,"aria-label":l(e.type,e.page,e.selected),shape:h,size:y,variant:b,onClick:t=>k(e,t)})},t))})})});function tR(e){return Os(`MuiCollapse`,e)}ks(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var nR={},rR=e=>{let{orientation:t,classes:n}=e;return xr({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},tR,n)},iR=Z(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(Uu(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),aR=Z(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),oR=Z(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),sR=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,disablePrefersReducedMotion:c=!1,easing:l,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:h,onExiting:g,orientation:_=`vertical`,slots:v=nR,slotProps:y=nR,style:b,timeout:x=au.standard,TransitionComponent:S=g_,...C}=n,w={...n,orientation:_,collapsedSize:o},T=rR(w),E=Ru(),D=K.useRef(null),O=K.useRef(null),k=typeof o==`number`?`${o}px`:o,A=_===`horizontal`,j=A?`width`:`height`,M=pm(E.motion.reducedMotion,c),N=K.useRef(null),P=wd(t,N),F=()=>D.current?D.current[A?`clientWidth`:`clientHeight`]:0,I=Qu(N,(e,t)=>{D.current&&A&&(D.current.style.position=`absolute`),e.style[j]=k,d&&d(e,t)}),L=Qu(N,(e,t)=>{let n=F();D.current&&A&&(D.current.style.position=``);let{duration:r,easing:i}=ed({style:b,timeout:x,easing:l},{mode:`enter`});if(x===`auto`&&!M.shouldReduceMotion){let e=E.transitions.getAutoHeightDuration(n);O.current=e}else O.current=null;let a=M.getTransitionTiming({duration:O.current??r,delay:void 0});e.style.transitionDuration=typeof a.duration==`string`?a.duration:`${a.duration}ms`,e.style[j]=`${n}px`,e.style.transitionTimingFunction=i,p&&p(e,t)}),R=Qu(N,(e,t)=>{e.style[j]=`auto`,f&&f(e,t)}),z=Qu(N,e=>{e.style[j]=`${F()}px`,m&&m(e)}),ee=Qu(N,h),te=Qu(N,e=>{let t=F(),{duration:n,easing:r}=ed({style:b,timeout:x,easing:l},{mode:`exit`});if(x===`auto`&&!M.shouldReduceMotion){let e=E.transitions.getAutoHeightDuration(t);O.current=e}else O.current=null;let i=M.getTransitionTiming({duration:O.current??n,delay:void 0});e.style.transitionDuration=typeof i.duration==`string`?i.duration:`${i.duration}ms`,e.style[j]=k,e.style.transitionTimingFunction=r,g&&g(e)}),B=r?e=>{r(N.current,e)}:void 0,V={slots:v,slotProps:y,component:s},[ne,re]=ph(`root`,{ref:P,className:q(T.root,a),elementType:iR,externalForwardedProps:V,ownerState:w,additionalProps:{style:{[A?`minWidth`:`minHeight`]:k,...b}}}),[ie,H]=ph(`wrapper`,{ref:D,className:T.wrapper,elementType:aR,externalForwardedProps:V,ownerState:w}),[U,W]=ph(`wrapperInner`,{className:T.wrapperInner,elementType:oR,externalForwardedProps:V,ownerState:w});return(0,J.jsx)(S,{in:u,onEnter:I,onEntered:R,onEntering:L,onExit:z,onExited:ee,onExiting:te,addEndListener:B,getAutoTimeout:x===`auto`?()=>O.current:void 0,reduceMotion:M.shouldReduceMotion,nodeRef:N,timeout:x===`auto`?null:x,...C,children:(e,{ownerState:t,...n})=>{let r={...w,state:e};return(0,J.jsx)(ne,{...re,className:q(re.className,{entered:T.entered,exited:!u&&k===`0px`&&T.hidden}[e]),ownerState:r,...n,children:(0,J.jsx)(ie,{...H,ownerState:r,children:(0,J.jsx)(U,{...W,ownerState:r,children:i})})})}})});sR&&(sR.muiSupportAuto=!0),oF();var cR=od((0,J.jsx)(`path`,{d:`M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z`}),`FilterList`);function lR(e,t){return typeof e==`function`?e(t):e}function uR(e,t){return n=>{t.setState(t=>({...t,[e]:lR(n,t[e])}))}}function dR(e){return e instanceof Function}function fR(e){return Array.isArray(e)&&e.every(e=>typeof e==`number`)}function pR(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i!=null&&i.length&&r(i)})};return r(e),n}function mR(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());let s=e(a);if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug&&(c=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
262
+ font-size: .6rem;
263
+ font-weight: bold;
264
+ color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return i}}function hR(e,t,n,r){return{debug:()=>e?.debugAll??e[t],key:!1,onChange:r}}function gR(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>i.getValue()??e.options.renderFallbackValue,getContext:mR(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),hR(e.options,`debugCells`,`cell.getContext`))};return e._features.forEach(r=>{r.createCell==null||r.createCell(i,n,t,e)},{}),i}function _R(e,t,n,r){let i={...e._getDefaultColumnDef(),...t},a=i.accessorKey,o=i.id??(a?typeof String.prototype.replaceAll==`function`?a.replaceAll(`.`,`_`):a.replace(/\./g,`_`):void 0)??(typeof i.header==`string`?i.header:void 0),s;if(i.accessorFn?s=i.accessorFn:a&&(s=a.includes(`.`)?e=>{let t=e;for(let e of a.split(`.`))t=t?.[e];return t}:e=>e[i.accessorKey]),!o)throw Error();let c={id:`${String(o)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:mR(()=>[!0],()=>[c,...c.columns?.flatMap(e=>e.getFlatColumns())],hR(e.options,`debugColumns`,`column.getFlatColumns`)),getLeafColumns:mR(()=>[e._getOrderColumnsFn()],e=>{var t;return(t=c.columns)!=null&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},hR(e.options,`debugColumns`,`column.getLeafColumns`))};for(let t of e._features)t.createColumn==null||t.createColumn(c,e);return c}var vR=`debugHeaders`;function yR(e,t,n){let r={id:n.id??t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{t.createHeader==null||t.createHeader(r,e)}),r}var bR={createTable:e=>{e.getHeaderGroups=mR(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{let a=r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],o=i?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],s=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id)));return xR(t,[...a,...s,...o],e)},hR(e.options,vR,`getHeaderGroups`)),e.getCenterHeaderGroups=mR(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id))),xR(t,n,e,`center`)),hR(e.options,vR,`getCenterHeaderGroups`)),e.getLeftHeaderGroups=mR(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>xR(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`left`),hR(e.options,vR,`getLeftHeaderGroups`)),e.getRightHeaderGroups=mR(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>xR(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`right`),hR(e.options,vR,`getRightHeaderGroups`)),e.getFooterGroups=mR(()=>[e.getHeaderGroups()],e=>[...e].reverse(),hR(e.options,vR,`getFooterGroups`)),e.getLeftFooterGroups=mR(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),hR(e.options,vR,`getLeftFooterGroups`)),e.getCenterFooterGroups=mR(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),hR(e.options,vR,`getCenterFooterGroups`)),e.getRightFooterGroups=mR(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),hR(e.options,vR,`getRightFooterGroups`)),e.getFlatHeaders=mR(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),hR(e.options,vR,`getFlatHeaders`)),e.getLeftFlatHeaders=mR(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),hR(e.options,vR,`getLeftFlatHeaders`)),e.getCenterFlatHeaders=mR(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),hR(e.options,vR,`getCenterFlatHeaders`)),e.getRightFlatHeaders=mR(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),hR(e.options,vR,`getRightFlatHeaders`)),e.getCenterLeafHeaders=mR(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),hR(e.options,vR,`getCenterLeafHeaders`)),e.getLeftLeafHeaders=mR(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),hR(e.options,vR,`getLeftLeafHeaders`)),e.getRightLeafHeaders=mR(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),hR(e.options,vR,`getRightLeafHeaders`)),e.getLeafHeaders=mR(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>[...e[0]?.headers??[],...t[0]?.headers??[],...n[0]?.headers??[]].map(e=>e.getLeafHeaders()).flat(),hR(e.options,vR,`getLeafHeaders`))}};function xR(e,t,n,r){let i=0,a=function(e,t){t===void 0&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;(n=e.columns)!=null&&n.length&&a(e.columns,t+1)},0)};a(e);let o=[],s=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join(`_`),headers:[]},a=[];e.forEach(e=>{let o=[...a].reverse()[0],s=e.column.depth===i.depth,c,l=!1;if(s&&e.column.parent?c=e.column.parent:(c=e.column,l=!0),o&&o?.column===c)o.subHeaders.push(e);else{let i=yR(n,c,{id:[r,t,c.id,e?.id].filter(Boolean).join(`_`),isPlaceholder:l,placeholderId:l?`${a.filter(e=>e.column===c).length}`:void 0,depth:t,index:a.length});i.subHeaders.push(e),a.push(i)}i.headers.push(e),e.headerGroup=i}),o.push(i),t>0&&s(a,t-1)};s(t.map((e,t)=>yR(n,e,{depth:i,index:t})),i-1),o.reverse();let c=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],c(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1;let i=Math.min(...r);return n+=i,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return c(o[0]?.headers??[]),o}var SR=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t])},renderValue:t=>s.getValue(t)??e.options.renderFallbackValue,subRows:a??[],getLeafRows:()=>pR(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:mR(()=>[e.getAllLeafColumns()],t=>t.map(t=>gR(e,s,t,t.id)),hR(e.options,`debugRows`,`getAllCells`)),_getAllCellsByColumnId:mR(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),hR(e.options,`debugRows`,`getAllCellsByColumnId`))};for(let t=0;t<e._features.length;t++){let n=e._features[t];n==null||n.createRow==null||n.createRow(s,e)}return s},CR={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},wR=(e,t,n)=>{var r,i;let a=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!((i=e.getValue(t))!=null&&(i=i.toString())!=null&&(i=i.toLowerCase())!=null&&i.includes(a))};wR.autoRemove=e=>PR(e);var TR=(e,t,n)=>{var r;return!!((r=e.getValue(t))!=null&&(r=r.toString())!=null&&r.includes(n))};TR.autoRemove=e=>PR(e);var ER=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};ER.autoRemove=e=>PR(e);var DR=(e,t,n)=>e.getValue(t)?.includes(n);DR.autoRemove=e=>PR(e)||!(e!=null&&e.length);var OR=(e,t,n)=>!n.some(n=>{var r;return!((r=e.getValue(t))!=null&&r.includes(n))});OR.autoRemove=e=>PR(e)||!(e!=null&&e.length);var kR=(e,t,n)=>n.some(n=>e.getValue(t)?.includes(n));kR.autoRemove=e=>PR(e)||!(e!=null&&e.length);var AR=(e,t,n)=>e.getValue(t)===n;AR.autoRemove=e=>PR(e);var jR=(e,t,n)=>e.getValue(t)==n;jR.autoRemove=e=>PR(e);var MR=(e,t,n)=>{let[r,i]=n,a=e.getValue(t);return a>=r&&a<=i};MR.resolveFilterValue=e=>{let[t,n]=e,r=typeof t==`number`?t:parseFloat(t),i=typeof n==`number`?n:parseFloat(n),a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){let e=a;a=o,o=e}return[a,o]},MR.autoRemove=e=>PR(e)||PR(e[0])&&PR(e[1]);var NR={includesString:wR,includesStringSensitive:TR,equalsString:ER,arrIncludes:DR,arrIncludesAll:OR,arrIncludesSome:kR,equals:AR,weakEquals:jR,inNumberRange:MR};function PR(e){return e==null||e===``}var FR={getDefaultColumnDef:()=>({filterFn:`auto`}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:uR(`columnFilters`,e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);return typeof n==`string`?NR.includesString:typeof n==`number`?NR.inNumberRange:typeof n==`boolean`||typeof n==`object`&&n?NR.equals:Array.isArray(n)?NR.arrIncludes:NR.weakEquals},e.getFilterFn=()=>dR(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn===`auto`?e.getAutoFilterFn():t.options.filterFns?.[e.columnDef.filterFn]??NR[e.columnDef.filterFn],e.getCanFilter=()=>(e.columnDef.enableColumnFilter??!0)&&(t.options.enableColumnFilters??!0)&&(t.options.enableFilters??!0)&&!!e.accessorFn,e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(t=>t.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>t.getState().columnFilters?.findIndex(t=>t.id===e.id)??-1,e.setFilterValue=n=>{t.setColumnFilters(t=>{let r=e.getFilterFn(),i=t?.find(t=>t.id===e.id),a=lR(n,i?i.value:void 0);if(IR(r,a,e))return t?.filter(t=>t.id!==e.id)??[];let o={id:e.id,value:a};return i?t?.map(t=>t.id===e.id?o:t)??[]:t!=null&&t.length?[...t,o]:[o]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(e=>lR(t,e)?.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&IR(t.getFilterFn(),e.value,t))}))},e.resetColumnFilters=t=>{e.setColumnFilters(t?[]:e.initialState?.columnFilters??[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function IR(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||t===void 0||typeof t==`string`&&!t}var LR={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+(typeof r==`number`?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r===void 0?n>=n&&(r=i=n):(r>n&&(r=n),i<n&&(i=n)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!fR(n))return;if(n.length===1)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2==0?(i[r-1]+i[r])/2:i[r]},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},RR={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t;return((t=e.getValue())==null||t.toString==null?void 0:t.toString())??null},aggregationFn:`auto`}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:uR(`grouping`,e),groupedColumnMode:`reorder`}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(t=>t!==e.id):[...t??[],e.id])},e.getCanGroup=()=>(e.columnDef.enableGrouping??!0)&&(t.options.enableGrouping??!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue),e.getIsGrouped=()=>t.getState().grouping?.includes(e.id),e.getGroupedIndex=()=>t.getState().grouping?.indexOf(e.id),e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);if(typeof n==`number`)return LR.sum;if(Object.prototype.toString.call(n)===`[object Date]`)return LR.extent},e.getAggregationFn=()=>{if(!e)throw Error();return dR(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn===`auto`?e.getAutoAggregationFn():t.options.aggregationFns?.[e.columnDef.aggregationFn]??LR[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{e.setGrouping(t?[]:e.initialState?.grouping??[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((t=n.subRows)!=null&&t.length)}}};function zR(e,t,n){if(!(t!=null&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));return n===`remove`?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}var BR={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:uR(`columnOrder`,e)}),createColumn:(e,t)=>{e.getIndex=mR(e=>[XR(t,e)],t=>t.findIndex(t=>t.id===e.id),hR(t.options,`debugColumns`,`getIndex`)),e.getIsFirstColumn=n=>XR(t,n)[0]?.id===e.id,e.getIsLastColumn=n=>{let r=XR(t,n);return r[r.length-1]?.id===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{e.setColumnOrder(t?[]:e.initialState.columnOrder??[])},e._getOrderColumnsFn=mR(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(!(e!=null&&e.length))i=r;else{let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}return zR(i,t,n)},hR(e.options,`debugTable`,`_getOrderColumnsFn`))}},VR=()=>({left:[],right:[]}),HR={getInitialState:e=>({columnPinning:VR(),...e}),getDefaultOptions:e=>({onColumnPinningChange:uR(`columnPinning`,e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>n===`right`?{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:[...(e?.right??[]).filter(e=>!(r!=null&&r.includes(e))),...r]}:n===`left`?{left:[...(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),...r],right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))}:{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))})},e.getCanPin=()=>e.getLeafColumns().some(e=>(e.columnDef.enablePinning??!0)&&(t.options.enableColumnPinning??t.options.enablePinning??!0)),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`left`:o?`right`:!1},e.getPinnedIndex=()=>{var n;let r=e.getIsPinned();return r?((n=t.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(e.id))??-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=mR(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.column.id))},hR(t.options,`debugRows`,`getCenterVisibleCells`)),e.getLeftVisibleCells=mR(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`left`})),hR(t.options,`debugRows`,`getLeftVisibleCells`)),e.getRightVisibleCells=mR(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`right`})),hR(t.options,`debugRows`,`getRightVisibleCells`))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>e.setColumnPinning(t?VR():e.initialState?.columnPinning??VR()),e.getIsSomeColumnsPinned=t=>{let n=e.getState().columnPinning;return t?!!n[t]?.length:!!(n.left?.length||n.right?.length)},e.getLeftLeafColumns=mR(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),hR(e.options,`debugColumns`,`getLeftLeafColumns`)),e.getRightLeafColumns=mR(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),hR(e.options,`debugColumns`,`getRightLeafColumns`)),e.getCenterLeafColumns=mR(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.id))},hR(e.options,`debugColumns`,`getCenterLeafColumns`))}},UR={size:150,minSize:20,maxSize:2**53-1},WR=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),GR={getDefaultColumnDef:()=>UR,getInitialState:e=>({columnSizing:{},columnSizingInfo:WR(),...e}),getDefaultOptions:e=>({columnResizeMode:`onEnd`,columnResizeDirection:`ltr`,onColumnSizingChange:uR(`columnSizing`,e),onColumnSizingInfoChange:uR(`columnSizingInfo`,e)}),createColumn:(e,t)=>{e.getSize=()=>{let n=t.getState().columnSizing[e.id];return Math.min(Math.max(e.columnDef.minSize??UR.minSize,n??e.columnDef.size??UR.size),e.columnDef.maxSize??UR.maxSize)},e.getStart=mR(e=>[e,XR(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),hR(t.options,`debugColumns`,`getStart`)),e.getAfter=mR(e=>[e,XR(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),hR(t.options,`debugColumns`,`getAfter`)),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>(e.columnDef.enableResizing??!0)&&(t.options.enableColumnResizing??!0),e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{e.subHeaders.length?e.subHeaders.forEach(n):t+=e.column.getSize()??0};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),i=r?.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),JR(a)&&a.touches&&a.touches.length>1))return;let o=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],c=JR(a)?Math.round(a.touches[0].clientX):a.clientX,l={},u=(e,n)=>{typeof n==`number`&&(t.setColumnSizingInfo(e=>{let r=t.options.columnResizeDirection===`rtl`?-1:1,i=(n-(e?.startOffset??0))*r,a=Math.max(i/(e?.startSize??0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;l[t]=Math.round(Math.max(n+n*a,0)*100)/100}),{...e,deltaOffset:i,deltaPercentage:a}}),(t.options.columnResizeMode===`onChange`||e===`end`)&&t.setColumnSizing(e=>({...e,...l})))},d=e=>u(`move`,e),f=e=>{u(`end`,e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||typeof document<`u`?document:null,m={moveHandler:e=>d(e.clientX),upHandler:e=>{p?.removeEventListener(`mousemove`,m.moveHandler),p?.removeEventListener(`mouseup`,m.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{p?.removeEventListener(`touchmove`,h.moveHandler),p?.removeEventListener(`touchend`,h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(e.touches[0]?.clientX)}},g=qR()?{passive:!1}:!1;JR(a)?(p?.addEventListener(`touchmove`,h.moveHandler,g),p?.addEventListener(`touchend`,h.upHandler,g)):(p?.addEventListener(`mousemove`,m.moveHandler,g),p?.addEventListener(`mouseup`,m.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:c,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{e.setColumnSizing(t?{}:e.initialState.columnSizing??{})},e.resetHeaderSizeInfo=t=>{e.setColumnSizingInfo(t?WR():e.initialState.columnSizingInfo??WR())},e.getTotalSize=()=>e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getLeftTotalSize=()=>e.getLeftHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getCenterTotalSize=()=>e.getCenterHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getRightTotalSize=()=>e.getRightHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0}},KR=null;function qR(){if(typeof KR==`boolean`)return KR;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener(`test`,n,t),window.removeEventListener(`test`,n)}catch{e=!1}return KR=e,KR}function JR(e){return e.type===`touchstart`}var YR={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:uR(`columnVisibility`,e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{let n=e.columns;return(n.length?n.some(e=>e.getIsVisible()):t.getState().columnVisibility?.[e.id])??!0},e.getCanHide=()=>(e.columnDef.enableHiding??!0)&&(t.options.enableHiding??!0),e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=mR(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),hR(t.options,`debugRows`,`_getAllVisibleCells`)),e.getVisibleCells=mR(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],hR(t.options,`debugRows`,`getVisibleCells`))},createTable:e=>{let t=(t,n)=>mR(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join(`_`)],e=>e.filter(e=>e.getIsVisible==null?void 0:e.getIsVisible()),hR(e.options,`debugColumns`,t));e.getVisibleFlatColumns=t(`getVisibleFlatColumns`,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(`getVisibleLeafColumns`,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(`getLeftVisibleLeafColumns`,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(`getRightVisibleLeafColumns`,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(`getCenterVisibleLeafColumns`,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{e.setColumnVisibility(t?{}:e.initialState.columnVisibility??{})},e.toggleAllColumnsVisible=t=>{t??=!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(n.getCanHide!=null&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(e.getIsVisible!=null&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>e.getIsVisible==null?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{e.toggleAllColumnsVisible(t.target?.checked)}}};function XR(e,t){return t?t===`center`?e.getCenterVisibleLeafColumns():t===`left`?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var ZR={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,`__global__`),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,`__global__`),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,`__global__`),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},QR={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:uR(`globalFilter`,e),globalFilterFn:`auto`,getColumnCanGlobalFilter:t=>{var n;let r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r==`string`||typeof r==`number`}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>(e.columnDef.enableGlobalFilter??!0)&&(t.options.enableGlobalFilter??!0)&&(t.options.enableFilters??!0)&&((t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))??!0)&&!!e.accessorFn},createTable:e=>{e.getGlobalAutoFilterFn=()=>NR.includesString,e.getGlobalFilterFn=()=>{let{globalFilterFn:t}=e.options;return dR(t)?t:t===`auto`?e.getGlobalAutoFilterFn():e.options.filterFns?.[t]??NR[t]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},$R={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:uR(`expanded`,e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{e.setExpanded(t?{}:e.initialState?.expanded??{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{t.persist==null||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return t===!0||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return typeof t==`boolean`?t===!0:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(`.`);t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{let i=r===!0||!!(r!=null&&r[e.id]),a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n??=!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{let n=t.getState().expanded;return!!((t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))??(n===!0||n?.[e.id]))},e.getCanExpand=()=>{var n;return(t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))??((t.options.enableExpanding??!0)&&!!((n=e.subRows)!=null&&n.length))},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},ez=0,tz=10,nz=()=>({pageIndex:ez,pageSize:tz}),rz={getInitialState:e=>({...e,pagination:{...nz(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:uR(`pagination`,e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(e=>lR(t,e)),e.resetPagination=t=>{e.setPagination(t?nz():e.initialState.pagination??nz())},e.setPageIndex=t=>{e.setPagination(n=>{let r=lR(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n;e.setPageIndex(t?ez:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageIndex)??ez)},e.resetPageSize=t=>{var n;e.setPageSize(t?tz:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageSize)??tz)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,lR(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{let r=lR(t,e.options.pageCount??-1);return typeof r==`number`&&(r=Math.max(-1,r)),{...n,pageCount:r}}),e.getPageOptions=mR(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},hR(e.options,`debugTable`,`getPageOptions`)),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return n===-1||n!==0&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>e.options.pageCount??Math.ceil(e.getRowCount()/e.getState().pagination.pageSize),e.getRowCount=()=>e.options.rowCount??e.getPrePaginationRowModel().rows.length}},iz=()=>({top:[],bottom:[]}),az={getInitialState:e=>({rowPinning:iz(),...e}),getDefaultOptions:e=>({onRowPinningChange:uR(`rowPinning`,e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{let a=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],o=i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(e=>n===`bottom`?{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:[...(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)]}:n===`top`?{top:[...(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)],bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))}:{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))})},e.getCanPin=()=>{let{enableRowPinning:n,enablePinning:r}=t.options;return typeof n==`function`?n(e):n??r??!0},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`top`:o?`bottom`:!1},e.getPinnedIndex=()=>{let n=e.getIsPinned();return n?((n===`top`?t.getTopRows():t.getBottomRows())?.map(e=>{let{id:t}=e;return t}))?.indexOf(e.id)??-1:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>e.setRowPinning(t?iz():e.initialState?.rowPinning??iz()),e.getIsSomeRowsPinned=t=>{let n=e.getState().rowPinning;return t?!!n[t]?.length:!!(n.top?.length||n.bottom?.length)},e._getPinnedRows=(t,n,r)=>(e.options.keepPinnedRows??!0?(n??[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(n??[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r})),e.getTopRows=mR(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,`top`),hR(e.options,`debugRows`,`getTopRows`)),e.getBottomRows=mR(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,`bottom`),hR(e.options,`debugRows`,`getBottomRows`)),e.getCenterRows=mR(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...t??[],...n??[]]);return e.filter(e=>!r.has(e.id))},hR(e.options,`debugRows`,`getCenterRows`))}},oz={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:uR(`rowSelection`,e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>e.setRowSelection(t?{}:e.initialState.rowSelection??{}),e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=t===void 0?!e.getIsAllRowsSelected():t;let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=t===void 0?!e.getIsAllPageRowsSelected():t,i={...n};return e.getRowModel().rows.forEach(t=>{sz(i,t.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=mR(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?cz(e,n):{rows:[],flatRows:[],rowsById:{}},hR(e.options,`debugTable`,`getSelectedRowModel`)),e.getFilteredSelectedRowModel=mR(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?cz(e,n):{rows:[],flatRows:[],rowsById:{}},hR(e.options,`debugTable`,`getFilteredSelectedRowModel`)),e.getGroupedSelectedRowModel=mR(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?cz(e,n):{rows:[],flatRows:[],rowsById:{}},hR(e.options,`debugTable`,`getGroupedSelectedRowModel`)),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{let t=Object.keys(e.getState().rowSelection??{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let i=e.getIsSelected();t.setRowSelection(a=>{if(n=n===void 0?!i:n,e.getCanSelect()&&i===n)return a;let o={...a};return sz(o,e.id,n,r?.selectChildren??!0,t),o})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return lz(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return uz(e,n)===`some`},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return uz(e,n)===`all`},e.getCanSelect=()=>typeof t.options.enableRowSelection==`function`?t.options.enableRowSelection(e):t.options.enableRowSelection??!0,e.getCanSelectSubRows=()=>typeof t.options.enableSubRowSelection==`function`?t.options.enableSubRowSelection(e):t.options.enableSubRowSelection??!0,e.getCanMultiSelect=()=>typeof t.options.enableMultiRowSelection==`function`?t.options.enableMultiRowSelection(e):t.options.enableMultiRowSelection??!0,e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{t&&e.toggleSelected(n.target?.checked)}}}},sz=(e,t,n,r,i)=>{var a;let o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(t=>sz(e,t.id,n,r,i))};function cz(e,t){let n=e.getState().rowSelection,r=[],i={},a=function(e,t){return e.map(e=>{var t;let o=lz(e,n);if(o&&(r.push(e),i[e.id]=e),(t=e.subRows)!=null&&t.length&&(e={...e,subRows:a(e.subRows)}),o)return e}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function lz(e,t){return t[e.id]??!1}function uz(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(e=>{if((!a||i)&&(e.getCanSelect()&&(lz(e,t)?a=!0:i=!1),e.subRows&&e.subRows.length)){let n=uz(e,t);n===`all`?a=!0:(n===`some`&&(a=!0),i=!1)}}),i?`all`:a?`some`:!1}var dz=/([0-9]+)/gm,fz=(e,t,n)=>bz(yz(e.getValue(n)).toLowerCase(),yz(t.getValue(n)).toLowerCase()),pz=(e,t,n)=>bz(yz(e.getValue(n)),yz(t.getValue(n))),mz=(e,t,n)=>vz(yz(e.getValue(n)).toLowerCase(),yz(t.getValue(n)).toLowerCase()),hz=(e,t,n)=>vz(yz(e.getValue(n)),yz(t.getValue(n))),gz=(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},_z=(e,t,n)=>vz(e.getValue(n),t.getValue(n));function vz(e,t){return e===t?0:e>t?1:-1}function yz(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function bz(e,t){let n=e.split(dz).filter(Boolean),r=t.split(dz).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),a=parseInt(t,10),o=[i,a].sort();if(isNaN(o[0])){if(e>t)return 1;if(t>e)return-1;continue}if(isNaN(o[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return-1}return n.length-r.length}var xz={alphanumeric:fz,alphanumericCaseSensitive:pz,text:mz,textCaseSensitive:hz,datetime:gz,basic:_z},Sz=[bR,YR,BR,HR,CR,FR,ZR,QR,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:`auto`,sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:uR(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=t?.getValue(e.id);if(Object.prototype.toString.call(n)===`[object Date]`)return xz.datetime;if(typeof n==`string`&&(r=!0,n.split(dz).length>1))return xz.alphanumeric}return r?xz.text:xz.basic},e.getAutoSortDir=()=>typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id)==`string`?`asc`:`desc`,e.getSortingFn=()=>{if(!e)throw Error();return dR(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn===`auto`?e.getAutoSortingFn():t.options.sortingFns?.[e.columnDef.sortingFn]??xz[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let i=e.getNextSortingOrder(),a=n!=null;t.setSorting(o=>{let s=o?.find(t=>t.id===e.id),c=o?.findIndex(t=>t.id===e.id),l=[],u,d=a?n:i===`desc`;return u=o!=null&&o.length&&e.getCanMultiSort()&&r?s?`toggle`:`add`:o!=null&&o.length&&c!==o.length-1?`replace`:s?`toggle`:`replace`,u===`toggle`&&(a||i||(u=`remove`)),u===`add`?(l=[...o,{id:e.id,desc:d}],l.splice(0,l.length-(t.options.maxMultiSortColCount??2**53-1))):l=u===`toggle`?o.map(t=>t.id===e.id?{...t,desc:d}:t):u===`remove`?o.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],l})},e.getFirstSortDir=()=>e.columnDef.sortDescFirst??t.options.sortDescFirst??e.getAutoSortDir()===`desc`?`desc`:`asc`,e.getNextSortingOrder=n=>{let r=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==r&&(t.options.enableSortingRemoval??!0)&&(!n||(t.options.enableMultiRemove??!0))?!1:i===`desc`?`asc`:`desc`:r},e.getCanSort=()=>(e.columnDef.enableSorting??!0)&&(t.options.enableSorting??!0)&&!!e.accessorFn,e.getCanMultiSort=()=>e.columnDef.enableMultiSort??t.options.enableMultiSort??!!e.accessorFn,e.getIsSorted=()=>{let n=t.getState().sorting?.find(t=>t.id===e.id);return n?n.desc?`desc`:`asc`:!1},e.getSortIndex=()=>t.getState().sorting?.findIndex(t=>t.id===e.id)??-1,e.clearSorting=()=>{t.setSorting(t=>t!=null&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{e.setSorting(t?[]:e.initialState?.sorting??[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},RR,$R,rz,az,oz,GR];function Cz(e){let t=[...Sz,...e._features??[]],n={_features:t},r=n._features.reduce((e,t)=>Object.assign(e,t.getDefaultOptions==null?void 0:t.getDefaultOptions(n)),{}),i=e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e},a={...e.initialState??{}};n._features.forEach(e=>{a=(e.getInitialState==null?void 0:e.getInitialState(a))??a});let o=[],s=!1,c={_features:t,options:{...r,...e},initialState:a,_queue:e=>{o.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;o.length;)o.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{let t=lR(e,n.options);n.options=i(t)},getState:()=>n.options.state,setState:e=>{n.options.onStateChange==null||n.options.onStateChange(e)},_getRowId:(e,t,r)=>(n.options.getRowId==null?void 0:n.options.getRowId(e,t,r))??`${r?[r.id,t].join(`.`):t}`,getCoreRowModel:()=>(n._getCoreRowModel||=n.options.getCoreRowModel(n),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw Error();return r},_getDefaultColumnDef:mR(()=>[n.options.defaultColumn],e=>(e??={},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t;return((t=e.renderValue())==null||t.toString==null?void 0:t.toString())??null},...n._features.reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef==null?void 0:t.getDefaultColumnDef()),{}),...e}),hR(e,`debugColumns`,`_getDefaultColumnDef`)),_getColumnDefs:()=>n.options.columns,getAllColumns:mR(()=>[n._getColumnDefs()],e=>{let t=function(e,r,i){return i===void 0&&(i=0),e.map(e=>{let a=_R(n,e,i,r),o=e;return a.columns=o.columns?t(o.columns,a,i+1):[],a})};return t(e)},hR(e,`debugColumns`,`getAllColumns`)),getAllFlatColumns:mR(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),hR(e,`debugColumns`,`getAllFlatColumns`)),_getAllFlatColumnsById:mR(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),hR(e,`debugColumns`,`getAllFlatColumnsById`)),getAllLeafColumns:mR(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),hR(e,`debugColumns`,`getAllLeafColumns`)),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,c);for(let e=0;e<n._features.length;e++){let t=n._features[e];t==null||t.createTable==null||t.createTable(n)}return n}function wz(){return e=>mR(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,a){i===void 0&&(i=0);let o=[];for(let c=0;c<t.length;c++){let l=SR(e,e._getRowId(t[c],c,a),t[c],c,i,void 0,a?.id);if(n.flatRows.push(l),n.rowsById[l.id]=l,o.push(l),e.options.getSubRows){var s;l.originalSubRows=e.options.getSubRows(t[c],c),(s=l.originalSubRows)!=null&&s.length&&(l.subRows=r(l.originalSubRows,i+1,l))}}return o};return n.rows=r(t),n},hR(e.options,`debugTable`,`getRowModel`,()=>e._autoResetPageIndex()))}function Tz(){return e=>mR(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(e,t,n)=>!t.rows.length||e!==!0&&!Object.keys(e??{}).length||!n?t:Ez(t),hR(e.options,`debugTable`,`getExpandedRowModel`))}function Ez(e){let t=[],n=e=>{var r;t.push(e),(r=e.subRows)!=null&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Dz(){return(e,t)=>mR(()=>[e.getColumn(t)?.getFacetedRowModel()],e=>{if(!e)return;let n=e.flatRows.flatMap(e=>e.getUniqueValues(t)??[]).map(Number).filter(e=>!Number.isNaN(e));if(!n.length)return;let r=n[0],i=n[n.length-1];for(let e of n)e<r?r=e:e>i&&(i=e);return[r,i]},hR(e.options,`debugTable`,`getFacetedMinMaxValues`))}function Oz(e,t,n){return n.options.filterFromLeafRows?kz(e,t,n):Az(e,t,n)}function kz(e,t,n){let r=[],i={},a=n.options.maxLeafRowFilterDepth??100,o=function(e,s){s===void 0&&(s=0);let c=[];for(let u=0;u<e.length;u++){var l;let d=e[u],f=SR(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(f.columnFilters=d.columnFilters,(l=d.subRows)!=null&&l.length&&s<a){if(f.subRows=o(d.subRows,s+1),d=f,t(d)&&!f.subRows.length){c.push(d),i[d.id]=d,r.push(d);continue}if(t(d)||f.subRows.length){c.push(d),i[d.id]=d,r.push(d);continue}}else d=f,t(d)&&(c.push(d),i[d.id]=d,r.push(d))}return c};return{rows:o(e),flatRows:r,rowsById:i}}function Az(e,t,n){let r=[],i={},a=n.options.maxLeafRowFilterDepth??100,o=function(e,s){s===void 0&&(s=0);let c=[];for(let u=0;u<e.length;u++){let d=e[u];if(t(d)){var l;if((l=d.subRows)!=null&&l.length&&s<a){let e=SR(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=o(d.subRows,s+1),d=e}c.push(d),r.push(d),i[d.id]=d}}return c};return{rows:o(e),flatRows:r,rowsById:i}}function jz(){return(e,t)=>mR(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i)return n;let a=[...r.map(e=>e.id).filter(e=>e!==t),i?`__global__`:void 0].filter(Boolean);return Oz(n.rows,e=>{for(let t=0;t<a.length;t++)if(e.columnFilters[a[t]]===!1)return!1;return!0},e)},hR(e.options,`debugTable`,`getFacetedRowModel`))}function Mz(){return(e,t)=>mR(()=>[e.getColumn(t)?.getFacetedRowModel()],e=>{if(!e)return new Map;let n=new Map;for(let r=0;r<e.flatRows.length;r++){let i=e.flatRows[r].getUniqueValues(t);for(let e=0;e<i.length;e++){let t=i[e];n.has(t)?n.set(t,(n.get(t)??0)+1):n.set(t,1)}}return n},hR(e.options,`debugTable`,`getFacetedUniqueValues_${t}`))}function Nz(){return e=>mR(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}let i=[],a=[];(n??[]).forEach(t=>{let n=e.getColumn(t.id);if(!n)return;let r=n.getFilterFn();r&&i.push({id:t.id,filterFn:r,resolvedValue:(r.resolveFilterValue==null?void 0:r.resolveFilterValue(t.value))??t.value})});let o=(n??[]).map(e=>e.id),s=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());r&&s&&c.length&&(o.push(`__global__`),c.forEach(e=>{a.push({id:e.id,filterFn:s,resolvedValue:(s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))??r})}));let l,u;for(let e=0;e<t.flatRows.length;e++){let n=t.flatRows[e];if(n.columnFilters={},i.length)for(let e=0;e<i.length;e++){l=i[e];let t=l.id;n.columnFilters[t]=l.filterFn(n,t,l.resolvedValue,e=>{n.columnFiltersMeta[t]=e})}if(a.length){for(let e=0;e<a.length;e++){u=a[e];let t=u.id;if(u.filterFn(n,t,u.resolvedValue,e=>{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}n.columnFilters.__global__!==!0&&(n.columnFilters.__global__=!1)}}return Oz(t.rows,e=>{for(let t=0;t<o.length;t++)if(e.columnFilters[o[t]]===!1)return!1;return!0},e)},hR(e.options,`debugTable`,`getFilteredRowModel`,()=>e._autoResetPageIndex()))}function Pz(){return e=>mR(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach(e=>{e.depth=0,e.parentId=void 0}),n;let r=t.filter(t=>e.getColumn(t)),i=[],a={},o=function(t,n,s){if(n===void 0&&(n=0),n>=r.length)return t.map(e=>(e.depth=n,i.push(e),a[e.id]=e,e.subRows&&=o(e.subRows,n+1,e.id),e));let c=r[n],l=Fz(t,c);return Array.from(l.entries()).map((t,l)=>{let[u,d]=t,f=`${c}:${u}`;f=s?`${s}>${f}`:f;let p=o(d,n+1,f);p.forEach(e=>{e.parentId=f});let m=n?pR(d,e=>e.subRows):d,h=SR(e,f,m[0].original,l,n,void 0,s);return Object.assign(h,{groupingColumnId:c,groupingValue:u,subRows:p,leafRows:m,getValue:t=>{if(r.includes(t))return h._valuesCache.hasOwnProperty(t)||d[0]&&(h._valuesCache[t]=d[0].getValue(t)??void 0),h._valuesCache[t];if(h._groupingValuesCache.hasOwnProperty(t))return h._groupingValuesCache[t];let n=e.getColumn(t)?.getAggregationFn();if(n)return h._groupingValuesCache[t]=n(t,m,d),h._groupingValuesCache[t]}}),p.forEach(e=>{i.push(e),a[e.id]=e}),h})},s=o(n.rows,0);return s.forEach(e=>{i.push(e),a[e.id]=e}),{rows:s,flatRows:i,rowsById:a}},hR(e.options,`debugTable`,`getGroupedRowModel`,()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function Fz(e,t){let n=new Map;return e.reduce((e,n)=>{let r=`${n.getGroupingValue(t)}`,i=e.get(r);return i?i.push(n):e.set(r,[n]),e},n)}function Iz(e){return e=>mR(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{if(!n.rows.length)return n;let{pageSize:r,pageIndex:i}=t,{rows:a,flatRows:o,rowsById:s}=n,c=r*i,l=c+r;a=a.slice(c,l);let u;u=e.options.paginateExpandedRows?{rows:a,flatRows:o,rowsById:s}:Ez({rows:a,flatRows:o,rowsById:s}),u.flatRows=[];let d=e=>{u.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return u.rows.forEach(d),u},hR(e.options,`debugTable`,`getPaginationRowModel`))}function Lz(){return e=>mR(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;let r=e.getState().sorting,i=[],a=r.filter(t=>e.getColumn(t.id)?.getCanSort()),o={};a.forEach(t=>{let n=e.getColumn(t.id);n&&(o[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n<a.length;n+=1){let r=a[n],i=o[r.id],s=i.sortUndefined,c=r?.desc??!1,l=0;if(s){let n=e.getValue(r.id),i=t.getValue(r.id),a=n===void 0,o=i===void 0;if(a||o){if(s===`first`)return a?-1:1;if(s===`last`)return a?1:-1;l=a&&o?0:a?s:-s}}if(l===0&&(l=i.sortingFn(e,t,r.id)),l!==0)return c&&(l*=-1),i.invertSorting&&(l*=-1),l}return e.index-t.index}),t.forEach(e=>{var t;i.push(e),(t=e.subRows)!=null&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},hR(e.options,`debugTable`,`getSortedRowModel`,()=>e._autoResetPageIndex()))}function Rz(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=K.useState(()=>({current:Cz(t)})),[r,i]=K.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),e.onStateChange==null||e.onStateChange(t)}})),n.current}var zz={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,Ấ:`A`,Ắ:`A`,Ẳ:`A`,Ẵ:`A`,Ặ:`A`,Æ:`AE`,Ầ:`A`,Ằ:`A`,Ȃ:`A`,Ç:`C`,Ḉ:`C`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,Ế:`E`,Ḗ:`E`,Ề:`E`,Ḕ:`E`,Ḝ:`E`,Ȇ:`E`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,Ḯ:`I`,Ȋ:`I`,Ð:`D`,Ñ:`N`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,Ố:`O`,Ṍ:`O`,Ṓ:`O`,Ȏ:`O`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,Ý:`Y`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,ấ:`a`,ắ:`a`,ẳ:`a`,ẵ:`a`,ặ:`a`,æ:`ae`,ầ:`a`,ằ:`a`,ȃ:`a`,ç:`c`,ḉ:`c`,è:`e`,é:`e`,ê:`e`,ë:`e`,ế:`e`,ḗ:`e`,ề:`e`,ḕ:`e`,ḝ:`e`,ȇ:`e`,ì:`i`,í:`i`,î:`i`,ï:`i`,ḯ:`i`,ȋ:`i`,ð:`d`,ñ:`n`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,ố:`o`,ṍ:`o`,ṓ:`o`,ȏ:`o`,ù:`u`,ú:`u`,û:`u`,ü:`u`,ý:`y`,ÿ:`y`,Ā:`A`,ā:`a`,Ă:`A`,ă:`a`,Ą:`A`,ą:`a`,Ć:`C`,ć:`c`,Ĉ:`C`,ĉ:`c`,Ċ:`C`,ċ:`c`,Č:`C`,č:`c`,C̆:`C`,c̆:`c`,Ď:`D`,ď:`d`,Đ:`D`,đ:`d`,Ē:`E`,ē:`e`,Ĕ:`E`,ĕ:`e`,Ė:`E`,ė:`e`,Ę:`E`,ę:`e`,Ě:`E`,ě:`e`,Ĝ:`G`,Ǵ:`G`,ĝ:`g`,ǵ:`g`,Ğ:`G`,ğ:`g`,Ġ:`G`,ġ:`g`,Ģ:`G`,ģ:`g`,Ĥ:`H`,ĥ:`h`,Ħ:`H`,ħ:`h`,Ḫ:`H`,ḫ:`h`,Ĩ:`I`,ĩ:`i`,Ī:`I`,ī:`i`,Ĭ:`I`,ĭ:`i`,Į:`I`,į:`i`,İ:`I`,ı:`i`,IJ:`IJ`,ij:`ij`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,Ḱ:`K`,ḱ:`k`,K̆:`K`,k̆:`k`,Ĺ:`L`,ĺ:`l`,Ļ:`L`,ļ:`l`,Ľ:`L`,ľ:`l`,Ŀ:`L`,ŀ:`l`,Ł:`l`,ł:`l`,Ḿ:`M`,ḿ:`m`,M̆:`M`,m̆:`m`,Ń:`N`,ń:`n`,Ņ:`N`,ņ:`n`,Ň:`N`,ň:`n`,ʼn:`n`,N̆:`N`,n̆:`n`,Ō:`O`,ō:`o`,Ŏ:`O`,ŏ:`o`,Ő:`O`,ő:`o`,Œ:`OE`,œ:`oe`,P̆:`P`,p̆:`p`,Ŕ:`R`,ŕ:`r`,Ŗ:`R`,ŗ:`r`,Ř:`R`,ř:`r`,R̆:`R`,r̆:`r`,Ȓ:`R`,ȓ:`r`,Ś:`S`,ś:`s`,Ŝ:`S`,ŝ:`s`,Ş:`S`,Ș:`S`,ș:`s`,ş:`s`,Š:`S`,š:`s`,Ţ:`T`,ţ:`t`,ț:`t`,Ț:`T`,Ť:`T`,ť:`t`,Ŧ:`T`,ŧ:`t`,T̆:`T`,t̆:`t`,Ũ:`U`,ũ:`u`,Ū:`U`,ū:`u`,Ŭ:`U`,ŭ:`u`,Ů:`U`,ů:`u`,Ű:`U`,ű:`u`,Ų:`U`,ų:`u`,Ȗ:`U`,ȗ:`u`,V̆:`V`,v̆:`v`,Ŵ:`W`,ŵ:`w`,Ẃ:`W`,ẃ:`w`,X̆:`X`,x̆:`x`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Y̆:`Y`,y̆:`y`,Ź:`Z`,ź:`z`,Ż:`Z`,ż:`z`,Ž:`Z`,ž:`z`,ſ:`s`,ƒ:`f`,Ơ:`O`,ơ:`o`,Ư:`U`,ư:`u`,Ǎ:`A`,ǎ:`a`,Ǐ:`I`,ǐ:`i`,Ǒ:`O`,ǒ:`o`,Ǔ:`U`,ǔ:`u`,Ǖ:`U`,ǖ:`u`,Ǘ:`U`,ǘ:`u`,Ǚ:`U`,ǚ:`u`,Ǜ:`U`,ǜ:`u`,Ứ:`U`,ứ:`u`,Ṹ:`U`,ṹ:`u`,Ǻ:`A`,ǻ:`a`,Ǽ:`AE`,ǽ:`ae`,Ǿ:`O`,ǿ:`o`,Þ:`TH`,þ:`th`,Ṕ:`P`,ṕ:`p`,Ṥ:`S`,ṥ:`s`,X́:`X`,x́:`x`,Ѓ:`Г`,ѓ:`г`,Ќ:`К`,ќ:`к`,A̋:`A`,a̋:`a`,E̋:`E`,e̋:`e`,I̋:`I`,i̋:`i`,Ǹ:`N`,ǹ:`n`,Ồ:`O`,ồ:`o`,Ṑ:`O`,ṑ:`o`,Ừ:`U`,ừ:`u`,Ẁ:`W`,ẁ:`w`,Ỳ:`Y`,ỳ:`y`,Ȁ:`A`,ȁ:`a`,Ȅ:`E`,ȅ:`e`,Ȉ:`I`,ȉ:`i`,Ȍ:`O`,ȍ:`o`,Ȑ:`R`,ȑ:`r`,Ȕ:`U`,ȕ:`u`,B̌:`B`,b̌:`b`,Č̣:`C`,č̣:`c`,Ê̌:`E`,ê̌:`e`,F̌:`F`,f̌:`f`,Ǧ:`G`,ǧ:`g`,Ȟ:`H`,ȟ:`h`,J̌:`J`,ǰ:`j`,Ǩ:`K`,ǩ:`k`,M̌:`M`,m̌:`m`,P̌:`P`,p̌:`p`,Q̌:`Q`,q̌:`q`,Ř̩:`R`,ř̩:`r`,Ṧ:`S`,ṧ:`s`,V̌:`V`,v̌:`v`,W̌:`W`,w̌:`w`,X̌:`X`,x̌:`x`,Y̌:`Y`,y̌:`y`,A̧:`A`,a̧:`a`,B̧:`B`,b̧:`b`,Ḑ:`D`,ḑ:`d`,Ȩ:`E`,ȩ:`e`,Ɛ̧:`E`,ɛ̧:`e`,Ḩ:`H`,ḩ:`h`,I̧:`I`,i̧:`i`,Ɨ̧:`I`,ɨ̧:`i`,M̧:`M`,m̧:`m`,O̧:`O`,o̧:`o`,Q̧:`Q`,q̧:`q`,U̧:`U`,u̧:`u`,X̧:`X`,x̧:`x`,Z̧:`Z`,z̧:`z`},Bz=Object.keys(zz).join(`|`),Vz=new RegExp(Bz,`g`);function Hz(e){return e.replace(Vz,e=>zz[e])}var Uz={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function Wz(e,t,n){if(n||={},n.threshold=n.threshold??Uz.MATCHES,!n.accessors){let r=Gz(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}let r=Zz(e,n.accessors),i={rankedValue:e,rank:Uz.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<r.length;e++){let a=r[e],o=Gz(a.itemValue,t,n),{minRanking:s,maxRanking:c,threshold:l=n.threshold}=a.attributes;o<s&&o>=Uz.MATCHES?o=s:o>c&&(o=c),o=Math.min(o,c),o>=l&&o>i.rank&&(i.rank=o,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=l,i.rankedValue=a.itemValue)}return i}function Gz(e,t,n){return e=Yz(e,n),t=Yz(t,n),t.length>e.length?Uz.NO_MATCH:e===t?Uz.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Uz.EQUAL:e.startsWith(t)?Uz.STARTS_WITH:e.includes(` ${t}`)?Uz.WORD_STARTS_WITH:e.includes(t)?Uz.CONTAINS:t.length===1?Uz.NO_MATCH:Kz(e).includes(t)?Uz.ACRONYM:qz(e,t))}function Kz(e){let t=``;return e.split(` `).forEach(e=>{e.split(`-`).forEach(e=>{t+=e.substr(0,1)})}),t}function qz(e,t){let n=0,r=0;function i(e,t,r){for(let i=r,a=t.length;i<a;i++)if(t[i]===e)return n+=1,i+1;return-1}function a(e){let r=1/e,i=n/t.length;return Uz.MATCHES+i*r}let o=i(t[0],e,0);if(o<0)return Uz.NO_MATCH;r=o;for(let n=1,a=t.length;n<a;n++){let a=t[n];if(r=i(a,e,r),!(r>-1))return Uz.NO_MATCH}return a(r-o)}function Jz(e,t){return e.rank===t.rank?0:e.rank>t.rank?-1:1}function Yz(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Hz(e)),e}function Xz(e,t){let n=t;typeof t==`object`&&(n=t.accessor);let r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function Zz(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r],a=$z(i),o=Xz(e,i);for(let e=0,t=o.length;e<t;e++)n.push({itemValue:o[e],attributes:a})}return n}var Qz={maxRanking:1/0,minRanking:-1/0};function $z(e){return typeof e==`function`?Qz:{...Qz,...e}}var eB=od((0,J.jsx)(`path`,{d:`m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z`}),`ArrowDownward`),tB=od((0,J.jsx)(`path`,{d:`m10 17 5-5-5-5z`}),`ArrowRight`),nB=od((0,J.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z`}),`Cancel`),rB=od((0,J.jsx)(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`ChevronLeft`),iB=od((0,J.jsx)(`path`,{d:`M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`}),`ChevronRight`),aB=od((0,J.jsx)(`path`,{d:`M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z`}),`ClearAll`),oB=od((0,J.jsx)(`path`,{d:`M3 3h18v2H3zm0 16h18v2H3z`}),`DensityLarge`),sB=od((0,J.jsx)(`path`,{d:`M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z`}),`DensityMedium`),cB=od((0,J.jsx)(`path`,{d:`M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z`}),`DensitySmall`),lB=od((0,J.jsx)(`path`,{d:`M20 9H4v2h16zM4 15h16v-2H4z`}),`DragHandle`),uB=od([(0,J.jsx)(`path`,{d:`M8 8H6v7c0 1.1.9 2 2 2h9v-2H8z`},`0`),(0,J.jsx)(`path`,{d:`M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 8h-8V7h8zM4 12H2v7c0 1.1.9 2 2 2h9v-2H4z`},`1`)],`DynamicFeed`),dB=od((0,J.jsx)(`path`,{d:`M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z`}),`Edit`),fB=od((0,J.jsx)(`path`,{d:`M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z`}),`ExpandMore`),pB=od((0,J.jsx)(`path`,{d:`M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61`}),`FilterAlt`),mB=od((0,J.jsx)(`path`,{d:`M10.83 8H21V6H8.83zm5 5H18v-2h-4.17zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22 2.8 2.81l18.38 18.38-1.41 1.41z`}),`FilterListOff`),hB=od((0,J.jsx)(`path`,{d:`M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z`}),`FirstPage`),gB=od((0,J.jsx)(`path`,{d:`M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z`}),`Fullscreen`),_B=od((0,J.jsx)(`path`,{d:`M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z`}),`FullscreenExit`),vB=od([(0,J.jsx)(`path`,{d:`M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z`},`0`),(0,J.jsx)(`path`,{d:`m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z`},`1`)],`KeyboardDoubleArrowDown`),yB=od((0,J.jsx)(`path`,{d:`M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z`}),`LastPage`),bB=od((0,J.jsx)(`path`,{d:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2`}),`MoreHoriz`),xB=od((0,J.jsx)(`path`,{d:`M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2`}),`MoreVert`),SB=od((0,J.jsx)(`path`,{fillRule:`evenodd`,d:`M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3`}),`PushPin`),CB=od((0,J.jsx)(`path`,{d:`M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91`}),`RestartAlt`),wB=od((0,J.jsx)(`path`,{d:`M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z`}),`Save`),TB=od([(0,J.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 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z`},`0`),(0,J.jsx)(`path`,{d:`M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z`},`1`)],`SearchOff`),EB=od((0,J.jsx)(`path`,{d:`M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z`}),`Sort`),DB=od((0,J.jsx)(`path`,{d:`m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z`}),`SyncAlt`),OB=od((0,J.jsx)(`path`,{d:`M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z`}),`ViewColumn`),kB=od((0,J.jsx)(`path`,{d:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z`}),`VisibilityOff`);function AB(e,t,n){let r=n.initialDeps??[],i;return()=>{var a;let o;n.key&&n.debug?.call(n)&&(o=Date.now());let s=e();if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
265
+ font-size: .6rem;
266
+ font-weight: bold;
267
+ color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return(a=n?.onChange)==null||a.call(n,i),i}}function jB(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var MB=(e,t)=>Math.abs(e-t)<1,NB=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},PB=e=>e,FB=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},IB=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(e=>{let t=e[0];if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e){i({width:e.inlineSize,height:e.blockSize});return}}i(n.getBoundingClientRect())});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},LB={passive:!0},RB=typeof window>`u`||`onscrollend`in window,zB=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,a=e.options.useScrollendEvent&&RB?()=>void 0:NB(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=r=>()=>{let{horizontal:o,isRtl:s}=e.options;i=o?n.scrollLeft*(s&&-1||1):n.scrollTop,a(),t(i,r)},s=o(!0),c=o(!1);return c(),n.addEventListener(`scroll`,s,LB),n.addEventListener(`scrollend`,c,LB),()=>{n.removeEventListener(`scroll`,s),n.removeEventListener(`scrollend`,c)}},BB=(e,t,n)=>{if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?`width`:`height`])},VB=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;let o=e+t;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:o,behavior:n})},HB=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{n===void 0&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:PB,rangeExtractor:FB,onChange:()=>{},measureElement:BB,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=AB(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let a=r.get(t.lane);if(a==null||t.end>a.end?r.set(t.lane,t):t.end<a.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=AB(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i}),{key:!1}),this.getMeasurements=AB(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let o=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let s=this.measurementsCache.slice(0,o);for(let i=o;i<e;i++){let e=r(i),o=this.options.lanes===1?s[i-1]:this.getFurthestMeasurement(s,i),c=o?o.end+this.options.gap:t+n,l=a.get(e),u=typeof l==`number`?l:this.options.estimateSize(i),d=c+u,f=o?o.lane:i%this.options.lanes;s[i]={index:i,start:c,size:u,end:d,key:e,lane:f}}return this.measurementsCache=s,s},{key:!1,debug:()=>this.options.debug}),this.calculateRange=AB(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,n)=>this.range=e.length>0&&t>0?WB({measurements:e,outerSize:t,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=AB(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,t,n,r)=>t===null?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:n,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;let i=r.key,a=this.elementsCache.get(i);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);r!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange===void 0?n.start<this.getScrollOffset()+this.scrollAdjustments:this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=AB(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return jB(t[UB(0,t.length-1,e=>jB(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let n=this.getSize(),r=this.getScrollOffset();t===`auto`&&e>=r+n&&(t=`end`),t===`end`&&(e-=n);let i=this.options.horizontal?`scrollWidth`:`scrollHeight`,a=(this.scrollElement?`document`in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-n;return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let r=this.getSize(),i=this.getScrollOffset();if(t===`auto`){if(n.end>=i+r-this.options.scrollPaddingEnd)t=`end`;else if(n.start<=i+this.options.scrollPaddingStart)t=`start`;else return[i,t]}let a=n.start-this.options.scrollPaddingStart+(n.size-r)/2;switch(t){case`center`:return[this.getOffsetForAlignment(a,t),t];case`end`:return[this.getOffsetForAlignment(n.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(n.start-this.options.scrollPaddingStart,t),t]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t=`start`,behavior:n}={})=>{this.cancelScrollToIndex(),n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t=`auto`,behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),n!==`smooth`&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=jB(this.getOffsetForIndex(e,a));MB(t,this.getScrollOffset())||this.scrollToIndex(e,{align:a,behavior:n})}else this.scrollToIndex(e,{align:a,behavior:n})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),t===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;return t=e.length===0?this.options.paddingStart:this.options.lanes===1?e[e.length-1]?.end??0:Math.max(...e.slice(-this.options.lanes).map(e=>e.end)),Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}},UB=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function WB({measurements:e,outerSize:t,scrollOffset:n}){let r=e.length-1,i=UB(0,r,t=>e[t].start,n),a=i;for(;a<r&&e[a].end<n+t;)a++;return{startIndex:i,endIndex:a}}var GB=typeof document<`u`?K.useLayoutEffect:K.useEffect;function KB(e){let t=K.useReducer(()=>({}),{})[1],n={...e,onChange:(n,r)=>{var i;r?(0,B_.flushSync)(t):t(),(i=e.onChange)==null||i.call(e,n,r)}},[r]=K.useState(()=>new HB(n));return r.setOptions(n),GB(()=>r._didMount(),[]),GB(()=>r._willUpdate()),r}function qB(e){return KB({observeElementRect:IB,observeElementOffset:zB,scrollToFn:VB,...e})}function JB(e){return Os(`MuiTableContainer`,e)}ks(`MuiTableContainer`,[`root`]);var YB=e=>{let{classes:t}=e;return xr({root:[`root`]},JB,t)},XB=Z(`div`,{name:`MuiTableContainer`,slot:`Root`})({width:`100%`,overflowX:`auto`}),ZB=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTableContainer`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i},s=YB(o);return(0,J.jsx)(XB,{ref:t,as:i,className:q(s.root,r),ownerState:o,...a})}),QB=K.createContext();function $B(e){return Os(`MuiTable`,e)}ks(`MuiTable`,[`root`,`stickyHeader`]);var eV=e=>{let{classes:t,stickyHeader:n}=e;return xr({root:[`root`,n&&`stickyHeader`]},$B,t)},tV=Z(`table`,{name:`MuiTable`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Uu(({theme:e})=>({display:`table`,width:`100%`,borderCollapse:`collapse`,borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:`left`,captionSide:`bottom`},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:`separate`}}]}))),nV=`table`,rV=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTable`}),{className:r,component:i=nV,padding:a=`normal`,size:o=`medium`,stickyHeader:s=!1,...c}=n,l={...n,component:i,padding:a,size:o,stickyHeader:s},u=eV(l),d=K.useMemo(()=>({padding:a,size:o,stickyHeader:s}),[a,o,s]);return(0,J.jsx)(QB.Provider,{value:d,children:(0,J.jsx)(tV,{as:i,role:i===nV?null:`table`,ref:t,className:q(u.root,r),ownerState:l,...c})})}),iV=K.createContext();function aV(e){return Os(`MuiTableBody`,e)}ks(`MuiTableBody`,[`root`]);var oV=e=>{let{classes:t}=e;return xr({root:[`root`]},aV,t)},sV=Z(`tbody`,{name:`MuiTableBody`,slot:`Root`})({display:`table-row-group`}),cV={variant:`body`},lV=`tbody`,uV=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTableBody`}),{className:r,component:i=lV,...a}=n,o={...n,component:i},s=oV(o);return(0,J.jsx)(iV.Provider,{value:cV,children:(0,J.jsx)(sV,{className:q(s.root,r),as:i,ref:t,role:i===lV?null:`rowgroup`,ownerState:o,...a})})});function dV(e){return Os(`MuiTableRow`,e)}var fV=ks(`MuiTableRow`,[`root`,`selected`,`hover`,`head`,`footer`]),pV=e=>{let{classes:t,selected:n,hover:r,head:i,footer:a}=e;return xr({root:[`root`,n&&`selected`,r&&`hover`,i&&`head`,a&&`footer`]},dV,t)},mV=Z(`tr`,{name:`MuiTableRow`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Uu(({theme:e})=>({color:`inherit`,display:`table-row`,verticalAlign:`middle`,outline:0,[`&.${fV.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fV.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),hV=`tr`,gV=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTableRow`}),{className:r,component:i=hV,hover:a=!1,selected:o=!1,...s}=n,c=K.useContext(iV),l={...n,component:i,hover:a,selected:o,head:c&&c.variant===`head`,footer:c&&c.variant===`footer`},u=pV(l);return(0,J.jsx)(mV,{as:i,ref:t,className:q(u.root,r),role:i===hV?null:`row`,ownerState:l,...s})});function _V(e){return Os(`MuiTableCell`,e)}var vV=ks(`MuiTableCell`,[`root`,`head`,`body`,`footer`,`sizeSmall`,`sizeMedium`,`paddingCheckbox`,`paddingNone`,`alignLeft`,`alignCenter`,`alignRight`,`alignJustify`,`stickyHeader`]),yV=e=>{let{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:o}=e;return xr({root:[`root`,n,o&&`stickyHeader`,r!==`inherit`&&`align${_r(r)}`,i!==`normal`&&`padding${_r(i)}`,`size${_r(a)}`]},_V,t)},bV=Z(`td`,{name:`MuiTableCell`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${_r(n.size)}`],n.padding!==`normal`&&t[`padding${_r(n.padding)}`],n.align!==`inherit`&&t[`align${_r(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Uu(({theme:e})=>({...e.typography.body2,display:`table-cell`,verticalAlign:`inherit`,borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
268
+ ${e.palette.mode===`light`?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:`left`,padding:16,variants:[{props:{variant:`head`},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:`body`},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:`footer`},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:`small`},style:{padding:`6px 16px`,[`&.${vV.paddingCheckbox}`]:{width:24,padding:`0 12px 0 16px`,"& > *":{padding:0}}}},{props:{padding:`checkbox`},style:{width:48,padding:`0 0 0 4px`}},{props:{padding:`none`},style:{padding:0}},{props:{align:`left`},style:{textAlign:`left`}},{props:{align:`center`},style:{textAlign:`center`}},{props:{align:`right`},style:{textAlign:`right`,flexDirection:`row-reverse`}},{props:{align:`justify`},style:{textAlign:`justify`}},{props:({ownerState:e})=>e.stickyHeader,style:{position:`sticky`,top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),xV=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTableCell`}),{align:r=`inherit`,className:i,component:a,padding:o,scope:s,size:c,sortDirection:l,variant:u,...d}=n,f=K.useContext(QB),p=K.useContext(iV),m=p&&p.variant===`head`,h;h=a||(m?`th`:`td`);let g=s;h===`td`?g=void 0:!g&&m&&(g=`col`);let _=u||p&&p.variant,v={...n,align:r,component:h,padding:o||(f&&f.padding?f.padding:`normal`),size:c||(f&&f.size?f.size:`medium`),sortDirection:l,stickyHeader:_===`head`&&f&&f.stickyHeader,variant:_},y=yV(v),b=null;return l&&(b=l===`asc`?`ascending`:`descending`),(0,J.jsx)(bV,{as:h,ref:t,className:q(y.root,i),"aria-sort":b,scope:g,ownerState:v,...d})}),SV=(e=>t=>typeof t==`object`&&!!t&&e in t)(`match`),CV=e=>e!==void 0;function wV({curr:e,next:t,prev:n,clipBy:r=3}){let i=e.text.split(` `),a=i.length;return e.match||r>=a?e.text:CV(t)&&CV(n)&&SV(n)&&SV(t)?a>r*2?[...i.slice(0,r),`...`,...i.slice(-r)].join(` `):e.text:CV(t)&&SV(t)?[`...`,...i.slice(-r)].join(` `):CV(n)&&SV(n)?[...i.slice(0,r),`...`].join(` `):e.text}for(var TV=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,e=>`\\${e}`),EV=e=>e.replace(/\s{2,}/g,` `).split(` `).join(`|`),DV=({terms:e,matchExactly:t=!1})=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let n=TV(e.trim());return`(${t?n:EV(n)})`},OV=({terms:e,matchExactly:t=!1})=>{try{let n=/^([/~@;%#'])(.*?)\1([gimsuy]*)$/.exec(e);return n?new RegExp(n[2],n[3]):new RegExp(DV({terms:e,matchExactly:t}),`ig`)}catch{throw TypeError(`Expected terms to be either a string or a RegExp!`)}},kV=36,AV=``;kV--;)AV+=kV.toString(36);function jV(e=11){let t=``,n=e;for(;n--;)t+=AV[Math.random()*36|0];return t}var MV=e=>e.length>0,NV=({text:e,query:t,clipBy:n,matchExactly:r=!1})=>{let i=typeof t==`string`?t.trim():t;if(i===``)return[{key:jV(),text:e,match:!1}];let a=OV({terms:t,matchExactly:r});return e.split(a).filter(MV).map(e=>({key:jV(),text:e,match:r?e.toLowerCase()===i.toLowerCase():a.test(e)})).map((e,t,r)=>({...e,...typeof n==`number`&&{text:wV({curr:e,...t<r.length-1&&{next:r[t+1]},...t>0&&{prev:r[t-1]},clipBy:n})}}))};function PV(e){return Os(`MuiTableFooter`,e)}ks(`MuiTableFooter`,[`root`]);var FV=e=>{let{classes:t}=e;return xr({root:[`root`]},PV,t)},IV=Z(`tfoot`,{name:`MuiTableFooter`,slot:`Root`})({display:`table-footer-group`}),LV={variant:`footer`},RV=`tfoot`,zV=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTableFooter`}),{className:r,component:i=RV,...a}=n,o={...n,component:i},s=FV(o);return(0,J.jsx)(iV.Provider,{value:LV,children:(0,J.jsx)(IV,{as:i,className:q(s.root,r),ref:t,role:i===RV?null:`rowgroup`,ownerState:o,...a})})});function BV(e){return Os(`MuiTableHead`,e)}ks(`MuiTableHead`,[`root`]);var VV=e=>{let{classes:t}=e;return xr({root:[`root`]},BV,t)},HV=Z(`thead`,{name:`MuiTableHead`,slot:`Root`})({display:`table-header-group`}),UV={variant:`head`},WV=`thead`,GV=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTableHead`}),{className:r,component:i=WV,...a}=n,o={...n,component:i},s=VV(o);return(0,J.jsx)(iV.Provider,{value:UV,children:(0,J.jsx)(HV,{as:i,className:q(s.root,r),ref:t,role:i===WV?null:`rowgroup`,ownerState:o,...a})})}),KV=e=>JA({manager:tj(),props:e}),qV=[`slots`,`slotProps`],JV=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiDateTimeField`}),{slots:r,slotProps:i}=n,a=cD(n,qV),o=KV(jM({slotProps:i,ref:t,externalForwardedProps:a}));return(0,J.jsx)(MM,{slots:r,slotProps:i,inputRef:a.inputRef,children:(0,J.jsx)(kM,{fieldResponse:o,defaultOpenPickerIcon:uj})})});function YV(e){return Os(`MuiDateTimePickerTabs`,e)}ks(`MuiDateTimePickerTabs`,[`root`]);var XV=[`dateIcon`,`timeIcon`,`hidden`,`className`,`classes`,`sx`],ZV=e=>SD(e)?`date`:`time`,QV=e=>e===`date`?`day`:`hours`,$V=e=>xr({root:[`root`]},YV,e),eH=Z(ix,{name:`MuiDateTimePickerTabs`,slot:`Root`})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Xb.indicator}`]:{bottom:`auto`,top:0}}})),tH=function(e){let t=Np({props:e,name:`MuiDateTimePickerTabs`}),{dateIcon:n=(0,J.jsx)(fj,{}),timeIcon:r=(0,J.jsx)(pj,{}),hidden:i=typeof window>`u`||window.innerHeight<667,className:a,classes:o,sx:s}=t,c=cD(t,XV),l=LO(),{ownerState:u}=TO(),{view:d,setView:f}=xO(),p=$V(o);return i?null:(0,J.jsxs)(eH,Y({},c,{ownerState:u,variant:`fullWidth`,value:ZV(d),onChange:(e,t)=>{f(QV(t))},className:q(a,p.root),sx:s,children:[(0,J.jsx)(lx,{value:`date`,"aria-label":l.dateTableLabel,icon:(0,J.jsx)(K.Fragment,{children:n})}),(0,J.jsx)(lx,{value:`time`,"aria-label":l.timeTableLabel,icon:(0,J.jsx)(K.Fragment,{children:r})})]}))};function nH(e){return Os(`MuiDateTimePickerToolbar`,e)}var rH=ks(`MuiDateTimePickerToolbar`,[`root`,`dateContainer`,`timeContainer`,`timeDigitsContainer`,`separator`,`timeLabelReverse`,`ampmSelection`,`ampmLandscape`,`ampmLabel`]),iH=[`ampm`,`ampmInClock`,`toolbarFormat`,`toolbarPlaceholder`,`toolbarTitle`,`className`,`classes`],aH=(e,t)=>{let{pickerOrientation:n,toolbarDirection:r}=t;return xr({root:[`root`],dateContainer:[`dateContainer`],timeContainer:[`timeContainer`,r===`rtl`&&`timeLabelReverse`],timeDigitsContainer:[`timeDigitsContainer`,r===`rtl`&&`timeLabelReverse`],separator:[`separator`],ampmSelection:[`ampmSelection`,n===`landscape`&&`ampmLandscape`],ampmLabel:[`ampmLabel`]},nH,e)},oH=Z(jO,{name:`MuiDateTimePickerToolbar`,slot:`Root`,shouldForwardProp:e=>Ms(e)&&e!==`toolbarVariant`})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:`space-around`,position:`relative`,variants:[{props:{toolbarVariant:`desktop`},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${fO.content} .${hF.root}[data-selected]`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:`desktop`,pickerOrientation:`landscape`},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:`desktop`,pickerOrientation:`portrait`},style:{paddingLeft:24,paddingRight:0}}]})),sH=Z(`div`,{name:`MuiDateTimePickerToolbar`,slot:`DateContainer`})({display:`flex`,flexDirection:`column`,alignItems:`flex-start`}),cH=Z(`div`,{name:`MuiDateTimePickerToolbar`,slot:`TimeContainer`,shouldForwardProp:e=>Ms(e)&&e!==`toolbarVariant`})({display:`flex`,flexDirection:`row`,variants:[{props:{toolbarDirection:`rtl`},style:{flexDirection:`row-reverse`}},{props:{toolbarVariant:`desktop`,pickerOrientation:`portrait`},style:{gap:9,marginRight:4,alignSelf:`flex-end`}},{props:({pickerOrientation:e,toolbarVariant:t})=>e===`landscape`&&t!==`desktop`,style:{flexDirection:`column`}},{props:({pickerOrientation:e,toolbarVariant:t,toolbarDirection:n})=>e===`landscape`&&t!==`desktop`&&n===`rtl`,style:{flexDirection:`column-reverse`}}]}),lH=Z(`div`,{name:`MuiDateTimePickerToolbar`,slot:`TimeDigitsContainer`,shouldForwardProp:e=>Ms(e)&&e!==`toolbarVariant`})({display:`flex`,variants:[{props:{toolbarDirection:`rtl`},style:{flexDirection:`row-reverse`}},{props:{toolbarVariant:`desktop`},style:{gap:1.5}}]}),uH=Z(yF,{name:`MuiDateTimePickerToolbar`,slot:`Separator`,shouldForwardProp:e=>Ms(e)&&e!==`toolbarVariant`})({margin:`0 4px 0 2px`,cursor:`default`,variants:[{props:{toolbarVariant:`desktop`},style:{margin:0}}]}),dH=Z(`div`,{name:`MuiDateTimePickerToolbar`,slot:`AmPmSelection`,overridesResolver:(e,t)=>[{[`.${rH.ampmLabel}`]:t.ampmLabel},{[`&.${rH.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:`flex`,flexDirection:`column`,marginRight:`auto`,marginLeft:12,[`& .${rH.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:`landscape`},style:{margin:`4px 0 auto`,flexDirection:`row`,justifyContent:`space-around`,width:`100%`}}]}),fH=K.createContext(null);function pH(e){let t=Np({props:e,name:`MuiDateTimePickerToolbar`}),{ampm:n,ampmInClock:r,toolbarFormat:i,toolbarPlaceholder:a=`––`,toolbarTitle:o,className:s,classes:c}=t,l=cD(t,iH),{value:u,setValue:d,disabled:f,readOnly:p,variant:m,orientation:h,view:g,setView:_,views:v}=xO(),y=LO(),b=EO(),x=aH(c,b),S=IO(),C=K.useContext(fH),w=C?C.value:u,T=C?C.setValue:d,E=C?C.view:g,D=C?C.setView:_,{meridiemMode:O,handleMeridiemChange:k}=jP(w,n,e=>T(e,{changeImportance:`set`,source:`view`})),A=C?.forceDesktopVariant?`desktop`:m,j=A===`desktop`,M=!(!n||r),N=o??y.dateTimePickerToolbarTitle,P=K.useMemo(()=>S.isValid(w)?i?S.formatByString(w,i):S.format(w,`shortDate`):a,[w,i,a,S]),F=(e,t)=>S.isValid(w)?S.format(w,e):t;return(0,J.jsxs)(oH,Y({className:q(x.root,s),toolbarTitle:N,toolbarVariant:A},l,{ownerState:b,children:[(0,J.jsxs)(sH,{className:x.dateContainer,ownerState:b,children:[v.includes(`year`)&&(0,J.jsx)(CF,{tabIndex:-1,variant:`subtitle1`,onClick:()=>D(`year`),selected:E===`year`,value:F(`year`,`–`)}),v.includes(`day`)&&(0,J.jsx)(CF,{tabIndex:-1,variant:j?`h5`:`h4`,onClick:()=>D(`day`),selected:E===`day`,value:P})]}),(0,J.jsxs)(cH,{className:x.timeContainer,ownerState:b,toolbarVariant:A,children:[(0,J.jsxs)(lH,{className:x.timeDigitsContainer,ownerState:b,toolbarVariant:A,children:[v.includes(`hours`)&&(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(CF,{variant:j?`h5`:`h3`,width:j&&h===`portrait`?48:void 0,onClick:()=>D(`hours`),selected:E===`hours`,value:F(n?`hours12h`:`hours24h`,`--`)}),(0,J.jsx)(uH,{variant:j?`h5`:`h3`,value:`:`,className:x.separator,ownerState:b,toolbarVariant:A}),(0,J.jsx)(CF,{variant:j?`h5`:`h3`,width:j&&h===`portrait`?48:void 0,onClick:()=>D(`minutes`),selected:E===`minutes`||!v.includes(`minutes`)&&E===`hours`,value:F(`minutes`,`--`),disabled:!v.includes(`minutes`)})]}),v.includes(`seconds`)&&(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(uH,{variant:j?`h5`:`h3`,value:`:`,className:x.separator,ownerState:b,toolbarVariant:A}),(0,J.jsx)(CF,{variant:j?`h5`:`h3`,width:j&&h===`portrait`?48:void 0,onClick:()=>D(`seconds`),selected:E===`seconds`,value:F(`seconds`,`--`)})]})]}),M&&!j&&(0,J.jsxs)(dH,{className:x.ampmSelection,ownerState:b,children:[(0,J.jsx)(CF,{variant:`subtitle2`,selected:O===`am`,typographyClassName:x.ampmLabel,value:bD(S,`am`),onClick:p?void 0:()=>k(`am`),disabled:f}),(0,J.jsx)(CF,{variant:`subtitle2`,selected:O===`pm`,typographyClassName:x.ampmLabel,value:bD(S,`pm`),onClick:p?void 0:()=>k(`pm`),disabled:f})]}),n&&j&&(0,J.jsx)(CF,{variant:`h5`,onClick:()=>D(`meridiem`),selected:E===`meridiem`,value:w&&O?bD(S,O):`--`,width:48})]})]}))}function mH(e,t){let n=IO(),r=Np({props:e,name:t}),i=ij(r),a=r.ampm??n.is12HourCycleInCurrentLocale(),o=K.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:Y({},r.localeText,{dateTimePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]),{openTo:s,views:c}=fD({views:r.views,openTo:r.openTo,defaultViews:[`year`,`day`,`hours`,`minutes`],defaultOpenTo:`day`}),{shouldRenderTimeInASingleColumn:l,thresholdToRenderTimeInASingleColumn:u,views:d,timeSteps:f}=QI({thresholdToRenderTimeInASingleColumn:r.thresholdToRenderTimeInASingleColumn,ampm:a,timeSteps:r.timeSteps,views:c}),p=a?[...c,`meridiem`]:c;return Y({},r,i,{timeSteps:f,openTo:s,shouldRenderTimeInASingleColumn:l,thresholdToRenderTimeInASingleColumn:u,views:d,viewsForFormatting:p,ampm:a,localeText:o,orientation:r.orientation??`portrait`,slots:Y({toolbar:pH,tabs:tH},r.slots),slotProps:Y({},r.slotProps,{toolbar:Y({ampm:a},r.slotProps?.toolbar)})})}var hH=K.forwardRef(function(e,t){let{toolbar:n,tabs:r,content:i,actionBar:a,shortcuts:o,ownerState:s}=xA(e),{orientation:c}=xO(),{sx:l,className:u,classes:d}=e,f=a&&(a.props.actions?.length??0)>0;return(0,J.jsxs)(wA,{ref:t,className:q($k.root,d?.root,u),sx:[{[`& .${$k.tabs}`]:{gridRow:4,gridColumn:`1 / 4`},[`& .${$k.actionBar}`]:{gridRow:5}},...Array.isArray(l)?l:[l]],ownerState:s,children:[c===`landscape`?o:n,c===`landscape`?n:o,(0,J.jsxs)(TA,{className:q($k.contentWrapper,d?.contentWrapper),ownerState:s,sx:{display:`grid`},children:[i,r,f&&(0,J.jsx)(vy,{sx:{gridRow:3,gridColumn:`1 / 4`}})]}),a]})}),gH=[`openTo`,`focusedView`,`timeViewsCount`],_H=function(e){let{viewRenderers:t,popperView:n,rendererProps:r}=e,{openTo:i,focusedView:a,timeViewsCount:o}=r,s=cD(r,gH),c=Y({},s,{autoFocus:!1,focusedView:null,sx:[{[`&.${jI.root}`]:{borderBottom:0},[`&.${jI.root}, .${NI.root}, &.${CI.root}`]:{maxHeight:336}}]}),l=OD(n),u=l?`day`:n,d=l?n:`hours`;return(0,J.jsxs)(K.Fragment,{children:[t[u]?.(Y({},r,{view:l?`day`:n,focusedView:a&&SD(a)?a:null,views:r.views.filter(SD),sx:[{gridColumn:1},...c.sx]})),o>0&&(0,J.jsxs)(K.Fragment,{children:[(0,J.jsx)(vy,{orientation:`vertical`,sx:{gridColumn:2}}),t[d]?.(Y({},c,{view:l?n:`hours`,focusedView:a&&OD(a)?a:null,openTo:OD(i)?i:`hours`,views:r.views.filter(OD),sx:[{gridColumn:3},...c.sx]}))]})]})},vH=K.forwardRef(function(e,t){let n=IO(),r=mH(e,`MuiDesktopDateTimePicker`),i=r.shouldRenderTimeInASingleColumn?KI:qI,a=Y({day:YP,month:YP,year:YP,hours:i,minutes:i,seconds:i,meridiem:i},r.viewRenderers),o=r.ampmInClock??!0,s=a.hours?.name===qI.name?r.views:r.views.filter(e=>e!==`meridiem`),{renderPicker:c}=AA({ref:t,props:Y({},r,{viewRenderers:a,format:YI(n,Y({},r,{views:r.viewsForFormatting})),views:s,yearsPerRow:r.yearsPerRow??4,ampmInClock:o,slots:Y({field:JV,layout:hH},r.slots),slotProps:Y({},r.slotProps,{field:e=>Y({},lh(r.slotProps?.field,e),HO(r)),toolbar:Y({hidden:!0,ampmInClock:o},r.slotProps?.toolbar),tabs:Y({hidden:!0},r.slotProps?.tabs)})}),valueManager:lO,valueType:`date-time`,validator:ck,rendererInterceptor:_H,steps:null});return c()}),yH=[{views:xD},{views:TD}],bH=K.forwardRef(function(e,t){let n=IO(),r=mH(e,`MuiMobileDateTimePicker`),i=r.shouldRenderTimeInASingleColumn?KI:qI,a=Y({day:YP,month:YP,year:YP,hours:i,minutes:i,seconds:i,meridiem:i},r.viewRenderers),o=r.ampmInClock??!1,s=a.hours?.name===qI.name?r.views:r.views.filter(e=>e!==`meridiem`),{renderPicker:c}=nF({ref:t,props:Y({},r,{viewRenderers:a,format:YI(n,Y({},r,{views:r.viewsForFormatting})),views:s,ampmInClock:o,slots:Y({field:JV},r.slots),slotProps:Y({},r.slotProps,{field:e=>Y({},lh(r.slotProps?.field,e),HO(r)),toolbar:Y({hidden:!1,ampmInClock:o},r.slotProps?.toolbar),tabs:Y({hidden:!1},r.slotProps?.tabs),layout:Y({},r.slotProps?.layout,{sx:Dk([{[`& .${jI.root}`]:{width:320},[`& .${NI.root}`]:{flex:1,maxHeight:335,[`.${NI.item}`]:{width:`auto`}},[`& .${CI.root}`]:{width:320,maxHeight:336,flex:1,[`.${CI.item}`]:{justifyContent:`center`}}}],r.slotProps?.layout?.sx)})})}),valueManager:lO,valueType:`date-time`,validator:ck,steps:yH});return c()}),xH=[`desktopModeMediaQuery`],SH=K.forwardRef(function(e,t){let n=Np({props:e,name:`MuiDateTimePicker`}),{desktopModeMediaQuery:r=Tk}=n,i=cD(n,xH);return lD(r,{defaultMatches:!0})?(0,J.jsx)(vH,Y({ref:t},i)):(0,J.jsx)(bH,Y({ref:t},i))}),CH=od((0,J.jsx)(`path`,{d:`M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z`}),`ArrowDownward`);function wH(e){return Os(`MuiTableSortLabel`,e)}var TH=ks(`MuiTableSortLabel`,[`root`,`active`,`icon`,`directionDesc`,`directionAsc`]),EH=e=>{let{classes:t,direction:n,active:r}=e;return xr({root:[`root`,r&&`active`,`direction${_r(n)}`],icon:[`icon`]},wH,t)},DH=Z(jm,{name:`MuiTableSortLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.active&&t.active]}})(Uu(({theme:e})=>({cursor:`pointer`,display:`inline-flex`,justifyContent:`flex-start`,flexDirection:`inherit`,alignItems:`center`,"&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${TH.icon}`]:{opacity:.5}},[`&.${TH.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${TH.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),OH=Z(`span`,{name:`MuiTableSortLabel`,slot:`Icon`})(Uu(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,...nd(e,[`opacity`,`transform`],{duration:e.transitions.duration.shorter}),userSelect:`none`,variants:[{props:{direction:`desc`},style:{transform:`rotate(0deg)`}},{props:{direction:`asc`},style:{transform:`rotate(180deg)`}}]}))),kH=K.forwardRef(function(e,t){let n=Wu({props:e,name:`MuiTableSortLabel`}),{active:r=!1,children:i,className:a,direction:o=`asc`,hideSortIcon:s=!1,IconComponent:c=CH,slots:l={},slotProps:u={},...d}=n,f={...n,active:r,direction:o,hideSortIcon:s,IconComponent:c},p=EH(f),m={slots:l,slotProps:u},[h,g]=ph(`root`,{elementType:DH,externalForwardedProps:m,ownerState:f,className:q(p.root,a),ref:t,additionalProps:{internalNativeButton:!1}}),[_,v]=ph(`icon`,{elementType:OH,externalForwardedProps:m,ownerState:f,className:p.icon});return(0,J.jsxs)(h,{disableRipple:!0,component:`span`,...g,...d,children:[i,s&&!r?null:(0,J.jsx)(_,{as:c,...v})]})}),AH=e=>{var t;return e.id??((t=e.accessorKey)?.toString)?.call(t)??e.header},jH=e=>{let t=[],n=e=>{e.forEach(e=>{e.columns?n(e.columns):t.push(e)})};return n(e),t},MH=({columnDefs:e,tableOptions:t})=>{let{aggregationFns:n={},defaultDisplayColumn:r,filterFns:i={},sortingFns:a={},state:{columnFilterFns:o={}}={}}=t;return e.map(e=>{if(e.id||(e.id=AH(e)),e.columnDefType||(e.columnDefType=`data`),e.columns?.length)e.columnDefType=`group`,e.columns=MH({columnDefs:e.columns,tableOptions:t});else if(e.columnDefType===`data`){if(Array.isArray(e.aggregationFn)){let t=e.aggregationFn;e.aggregationFn=(e,r,i)=>t.map(t=>n[t]?.call(n,e,r,i))}Object.keys(i).includes(o[e.id])&&(e.filterFn=i[o[e.id]]??i.fuzzy,e._filterFn=o[e.id]),Object.keys(a).includes(e.sortingFn)&&(e.sortingFn=a[e.sortingFn])}else e.columnDefType===`display`&&(e=Object.assign(Object.assign({},r),e));return e})},NH=(e,t,n)=>{e.getCanPin()&&e.pin(t.getIsPinned());let r=[...n];return r.splice(r.indexOf(t.id),0,r.splice(r.indexOf(e.id),1)[0]),r},PH=e=>{let{filterVariant:t}=e;return t===`multi-select`?`arrIncludesSome`:t?.includes(`range`)?`betweenInclusive`:t===`select`||t===`checkbox`?`equals`:`fuzzy`},FH=({header:e,table:t})=>{let{options:{columnFilterModeOptions:n}}=t,{column:r}=e,{columnDef:i}=r,{filterVariant:a}=i,o=!!(a?.startsWith(`date`)||a?.startsWith(`time`)),s=a===`autocomplete`,c=a?.includes(`range`)||[`between`,`betweenInclusive`,`inNumberRange`].includes(i._filterFn),l=a===`select`,u=a===`multi-select`,d=[`autocomplete`,`text`].includes(a)||!l&&!u,f=i._filterFn;return{allowedColumnFilterOptions:i?.columnFilterModeOptions??n,currentFilterOption:f,facetedUniqueValues:r.getFacetedUniqueValues(),isAutocompleteFilter:s,isDateFilter:o,isMultiSelectFilter:u,isRangeFilter:c,isSelectFilter:l,isTextboxFilter:d}},IH=({header:e,table:t})=>{let{column:n}=e,{columnDef:r}=n,{facetedUniqueValues:i,isAutocompleteFilter:a,isMultiSelectFilter:o,isSelectFilter:s}=FH({header:e,table:t});return(0,K.useMemo)(()=>r.filterSelectOptions??((s||o||a)&&i?Array.from(i.keys()).filter(e=>e!=null).sort((e,t)=>e.localeCompare(t)):void 0),[r.filterSelectOptions,i,o,s])},LH=(e,t,n=-1,r=0,i,a)=>SR(e,`mrt-row-create`,t??Object.assign({},...jH(e.options.columns).map(e=>({[AH(e)]:``}))),n,r,i,a),RH=Object.assign(Object.assign({},xz),{fuzzy:(e,t,n)=>{let r=0;return e.columnFiltersMeta[n]&&(r=Jz(e.columnFiltersMeta[n],t.columnFiltersMeta[n])),r===0?xz.alphanumeric(e,t,n):r}}),zH=(e,t)=>Math.max(...Object.values(t.columnFiltersMeta).map(e=>e.rank))-Math.max(...Object.values(e.columnFiltersMeta).map(e=>e.rank)),$=(e,t)=>e instanceof Function?e(t):e,BH=e=>{let t=``,n=``;return e&&(typeof e==`object`?(t=e.label??e.value,n=e.value??t):(t=e,n=e)),{label:t,value:n}},VH=(e,t)=>{let{getCenterRows:n,getPrePaginationRowModel:r,getRowModel:i,getState:a,getTopRows:o,options:{createDisplayMode:s,enablePagination:c,enableRowPinning:l,manualPagination:u,positionCreatingRow:d,rowPinningDisplayMode:f}}=e,{creatingRow:p,pagination:m}=a(),h=UH(e),g=[];if(!h)g=!l||f?.includes(`sticky`)?t?r().rows:i().rows:n();else{if(g=r().rows.sort((e,t)=>zH(e,t)),c&&!u&&!t){let e=m.pageIndex*m.pageSize;g=g.slice(e,e+m.pageSize)}l&&!f?.includes(`sticky`)&&(g=g.filter(e=>!e.getIsPinned()))}if(l&&f?.includes(`sticky`)){let e=g.filter(e=>e.getIsPinned()).map(e=>e.id);g=[...o().filter(t=>!e.includes(t.id)),...g]}if(d!==void 0&&p&&s===`row`){let e=isNaN(+d)?d===`top`?0:g.length:+d;g=[...g.slice(0,e),p,...g.slice(e)]}return g},HH=e=>{let{getState:t,options:{enableGlobalFilterRankedResults:n,manualExpanding:r,manualFiltering:i,manualGrouping:a,manualSorting:o}}=e,{expanded:s,globalFilterFn:c}=t();return!r&&!i&&!a&&!o&&n&&c===`fuzzy`&&s!==!0&&!Object.values(s).some(Boolean)},UH=e=>{let{globalFilter:t,sorting:n}=e.getState();return HH(e)&&t&&!Object.values(n).some(Boolean)},WH=({row:e,table:t})=>{let{options:{enableRowSelection:n}}=t;return e.getIsSelected()||$(n,e)&&e.getCanSelectSubRows()&&e.getIsAllSubRowsSelected()},GH=({row:e,staticRowIndex:t=0,table:n})=>(r,i)=>{var a;let{getState:o,options:{enableBatchRowSelection:s,enableMultiRowSelection:c,enableRowPinning:l,manualPagination:u,rowPinningDisplayMode:d},refs:{lastSelectedRowId:f}}=n,{pagination:{pageIndex:p,pageSize:m}}=o(),h=u?0:m*p,g=WH({row:e,table:n});e.toggleSelected(i??!g);let _=new Set([e.id]);if(s&&c&&r.nativeEvent.shiftKey&&f.current!==null){let e=VH(n,!0),r=e.findIndex(e=>e.id===f.current);if(r!==-1){let i=WH({row:e?.[r],table:n}),a=t+h,[o,s]=r<a?[r,a]:[a,r];if(g!==i)for(let t=o;t<=s;t++)e[t].toggleSelected(!g),_.add(e[t].id)}}f.current=e.id,e.getCanSelectSubRows()&&e.getIsAllSubRowsSelected()&&((a=e.subRows)==null||a.forEach(e=>e.toggleSelected(!1))),l&&d?.includes(`select`)&&_.forEach(e=>{n.getRow(e).pin(g?!1:d?.includes(`bottom`)?`bottom`:`top`)})},KH=({table:e})=>(t,n,r)=>{let{options:{enableRowPinning:i,rowPinningDisplayMode:a,selectAllMode:o},refs:{lastSelectedRowId:s}}=e;o===`all`||r?e.toggleAllRowsSelected(n??t.target.checked):e.toggleAllPageRowsSelected(n??t.target.checked),i&&a?.includes(`select`)&&e.setRowPinning({bottom:[],top:[]}),s.current=null},qH=e=>e.ctrlKey&&navigator.platform.toLowerCase().includes(`win`)||e.metaKey&&navigator.platform.toLowerCase().includes(`mac`),JH=({cell:e,table:t})=>{let{enableEditing:n}=t.options,{column:{columnDef:r},row:i}=e;return!e.getIsPlaceholder()&&$(n,i)&&$(r.enableEditing,i)!==!1},YH=({cell:e,table:t})=>{let{options:{editDisplayMode:n},refs:{editInputRefs:r}}=t,{column:i}=e;JH({cell:e,table:t})&&n===`cell`&&(t.setEditingCell(e),queueMicrotask(()=>{var e;let t=r.current?.[i.id];t&&(t.focus(),(e=t.select)==null||e.call(t))}))},XH=({cell:e,cellElements:t,cellValue:n,containerElement:r,event:i,header:a,parentElement:o,table:s})=>{var c;if(!s.options.enableKeyboardShortcuts||i.isPropagationStopped())return;let l=i.currentTarget;if(n&&qH(i)&&i.key===`c`)navigator.clipboard.writeText(n);else if([`Enter`,` `].includes(i.key)){if(e?.column?.id===`mrt-row-select`)i.preventDefault(),GH({row:e.row,table:s,staticRowIndex:+i.target.getAttribute(`data-index`)})(i);else if(a?.column?.id===`mrt-row-select`&&s.options.enableSelectAll)i.preventDefault(),KH({table:s})(i);else if(e?.column?.id===`mrt-row-expand`&&(e.row.getCanExpand()||(c=s.options).renderDetailPanel?.call(c,{row:e.row,table:s})))i.preventDefault(),e.row.toggleExpanded();else if(a?.column?.id===`mrt-row-expand`&&s.options.enableExpandAll)i.preventDefault(),s.toggleAllRowsExpanded();else if(e?.column.id===`mrt-row-pin`)i.preventDefault(),e.row.getIsPinned()?e.row.pin(!1):e.row.pin(s.options.rowPinningDisplayMode?.includes(`bottom`)?`bottom`:`top`);else if(a&&qH(i)){let e=l.querySelector(`button[aria-label="${s.options.localization.columnActions}"]`);e&&e.click()}else(a?.column)?.getCanSort()&&(i.preventDefault(),a.column.toggleSorting())}else if([`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`].includes(i.key)){i.preventDefault();let e=o||l.closest(`tr`),n=r||l.closest(`table`),a=t||Array.from(n?.querySelectorAll(`th, td`)||[]),s=a.indexOf(l),c=parseInt(l.getAttribute(`data-index`)||`0`),u,d=(t,r)=>{let i=t===`c`?e:t===`f`?n?.querySelector(`tr`):n?.lastElementChild?.lastElementChild,a=Array.from(i?.children||[]);return r===`f`?a[0]:a[a.length-1]},f=(e,t)=>{let r=t===`t`?n?.querySelector(`tr`):n?.lastElementChild?.lastElementChild;return Array.from(r?.children||[])[e]},p=(e,t)=>(t===`f`?a.slice(s+1):a.slice(0,s).reverse()).find(t=>t.matches(`[data-index="${e}"]`));switch(i.key){case`ArrowRight`:u=p(c+1,`f`);break;case`ArrowLeft`:u=p(c-1,`b`);break;case`ArrowUp`:u=p(c,`b`);break;case`ArrowDown`:u=p(c,`f`);break;case`Home`:u=d(qH(i)?`f`:`c`,`f`);break;case`End`:u=d(qH(i)?`l`:`c`,`l`);break;case`PageUp`:u=f(c,`t`);break;case`PageDown`:u=f(c,`b`)}u&&u.focus()}};function ZH({header:e,id:t,size:n,tableOptions:r}){let{defaultDisplayColumn:i,displayColumnDefOptions:a,localization:o}=r;return Object.assign(Object.assign(Object.assign(Object.assign({},i),{header:e?o[e]:``,size:n}),a?.[t]),{id:t})}var QH=e=>{let{enableRowPinning:t,rowPinningDisplayMode:n}=e;return!(!t||n?.startsWith(`select`))},$H=e=>{let{enableRowDragging:t,enableRowOrdering:n}=e;return!!(t||n)},eU=e=>{let{enableExpanding:t,enableGrouping:n,renderDetailPanel:r,state:{grouping:i}}=e;return!!(t||n&&i?.length||r)},tU=e=>{let{createDisplayMode:t,editDisplayMode:n,enableEditing:r,enableRowActions:i,state:{creatingRow:a}}=e;return!!(i||a&&t===`row`||r&&[`modal`,`row`].includes(n??``))},nU=e=>!!e.enableRowSelection,rU=e=>!!e.enableRowNumbers,iU=e=>e.layoutMode===`grid-no-grow`,aU=e=>[QH(e)&&`mrt-row-pin`,$H(e)&&`mrt-row-drag`,e.positionActionsColumn===`first`&&tU(e)&&`mrt-row-actions`,e.positionExpandColumn===`first`&&eU(e)&&`mrt-row-expand`,nU(e)&&`mrt-row-select`,rU(e)&&`mrt-row-numbers`].filter(Boolean),oU=e=>[e.positionActionsColumn===`last`&&tU(e)&&`mrt-row-actions`,e.positionExpandColumn===`last`&&eU(e)&&`mrt-row-expand`,iU(e)&&`mrt-row-spacer`].filter(Boolean),sU=(e,t=!1)=>{let{state:{columnOrder:n=[]}}=e,r=aU(e),i=oU(e),a=jH(e.columns).map(e=>AH(e)),o=t?a:Array.from(new Set([...n,...a]));return o=o.filter(e=>!r.includes(e)&&!i.includes(e)),[...r,...o,...i]},cU=Object.assign({},LR),lU=(e,t,n,r)=>{let i=Wz(e.getValue(t),n,{threshold:Uz.MATCHES});return r(i),i.passed};lU.autoRemove=e=>!e;var uU=(e,t,n)=>!!e.getValue(t)?.toString().toLowerCase().trim().includes(n.toString().toLowerCase().trim());uU.autoRemove=e=>!e;var dU=(e,t,n)=>!!e.getValue(t)?.toString().toLowerCase().trim().startsWith(n.toString().toLowerCase().trim());dU.autoRemove=e=>!e;var fU=(e,t,n)=>!!e.getValue(t)?.toString().toLowerCase().trim().endsWith(n.toString().toLowerCase().trim());fU.autoRemove=e=>!e;var pU=(e,t,n)=>e.getValue(t)?.toString().toLowerCase().trim()===n.toString().toLowerCase().trim();pU.autoRemove=e=>!e;var mU=(e,t,n)=>e.getValue(t)?.toString().toLowerCase().trim()!==n.toString().toLowerCase().trim();mU.autoRemove=e=>!e;var hU=(e,t,n)=>!isNaN(+n)&&!isNaN(+e.getValue(t))?+(e.getValue(t)??0)>+n:(e.getValue(t)??``)?.toString().toLowerCase().trim()>n.toString().toLowerCase().trim();hU.autoRemove=e=>!e;var gU=(e,t,n)=>pU(e,t,n)||hU(e,t,n);gU.autoRemove=e=>!e;var _U=(e,t,n)=>!isNaN(+n)&&!isNaN(+e.getValue(t))?+(e.getValue(t)??0)<+n:(e.getValue(t)??``)?.toString().toLowerCase().trim()<n.toString().toLowerCase().trim();_U.autoRemove=e=>!e;var vU=(e,t,n)=>pU(e,t,n)||_U(e,t,n);vU.autoRemove=e=>!e;var yU=(e,t,n)=>([``,void 0].includes(n[0])||hU(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||[``,void 0].includes(n[1])||_U(e,t,n[1]));yU.autoRemove=e=>!e;var bU=(e,t,n)=>([``,void 0].includes(n[0])||gU(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||[``,void 0].includes(n[1])||vU(e,t,n[1]));bU.autoRemove=e=>!e;var xU=(e,t,n)=>!e.getValue(t)?.toString().trim();xU.autoRemove=e=>!e;var SU=(e,t,n)=>!!e.getValue(t)?.toString().trim();SU.autoRemove=e=>!e;var CU=Object.assign(Object.assign({},NR),{between:yU,betweenInclusive:bU,contains:uU,empty:xU,endsWith:fU,equals:pU,fuzzy:lU,greaterThan:hU,greaterThanOrEqualTo:gU,lessThan:_U,lessThanOrEqualTo:vU,notEmpty:SU,notEquals:mU,startsWith:dU});function wU(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var TU=e=>{var{row:t,table:n,variant:r=`icon`}=e,i=wU(e,[`row`,`table`,`variant`]);let{getState:a,options:{icons:{CancelIcon:o,SaveIcon:s},localization:c,onCreatingRowCancel:l,onCreatingRowSave:u,onEditingRowCancel:d,onEditingRowSave:f},refs:{editInputRefs:p},setCreatingRow:m,setEditingRow:h}=n,{creatingRow:g,editingRow:_,isSaving:v}=a(),y=g?.id===t.id,b=_?.id===t.id,x=()=>{y?(l?.({row:t,table:n}),m(null)):b&&(d?.({row:t,table:n}),h(null)),t._valuesCache={}},S=()=>{var e;(e=Object.values(p.current??{}).filter(e=>t.id===(e?.name)?.split(`_`)?.[0]))==null||e.forEach(e=>{e.value!==void 0&&Object.hasOwn(t?._valuesCache,e.name)&&(t._valuesCache[e.name]=e.value)}),y?u?.({exitCreatingMode:()=>m(null),row:t,table:n,values:t._valuesCache}):b&&f?.({exitEditingMode:()=>h(null),row:t,table:n,values:t?._valuesCache})};return(0,J.jsx)(Q,{onClick:e=>e.stopPropagation(),sx:e=>Object.assign({display:`flex`,gap:`0.75rem`},$(i?.sx,e)),children:r===`icon`?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(pT,{title:c.cancel,children:(0,J.jsx)(Sb,{"aria-label":c.cancel,onClick:x,children:(0,J.jsx)(o,{})})}),(y&&u||b&&f)&&(0,J.jsx)(pT,{title:c.save,children:(0,J.jsx)(Sb,{"aria-label":c.save,color:`info`,disabled:v,onClick:S,children:v?(0,J.jsx)(qm,{size:18}):(0,J.jsx)(s,{})})})]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(ah,{onClick:x,sx:{minWidth:`100px`},children:c.cancel}),(0,J.jsxs)(ah,{disabled:v,onClick:S,sx:{minWidth:`100px`},variant:`contained`,children:[v&&(0,J.jsx)(qm,{color:`inherit`,size:18}),c.save]})]})})},EU=e=>e.replace(/[^a-zA-Z0-9]/g,`_`),DU=(e,t)=>{let n=$(e,t),r=n?.baseBackgroundColor??(t.palette.mode===`dark`?uc(t.palette.background.default,.05):t.palette.background.default);return Object.assign({baseBackgroundColor:r,cellNavigationOutlineColor:t.palette.primary.main,draggingBorderColor:t.palette.primary.main,matchHighlightColor:t.palette.mode===`dark`?cc(t.palette.warning.dark,.25):uc(t.palette.warning.light,.5),menuBackgroundColor:uc(r,.07),pinnedRowBackgroundColor:oc(t.palette.primary.main,.1),selectedRowBackgroundColor:oc(t.palette.primary.main,.2)},n)},OU={content:`""`,height:`100%`,left:0,position:`absolute`,top:0,width:`100%`,zIndex:-1},kU=({column:e,table:t,theme:n})=>{let{baseBackgroundColor:r}=t.options.mrtTheme,i=e?.getIsPinned();return{'&[data-pinned="true"]':{"&:before":Object.assign({backgroundColor:oc(cc(r,n.palette.mode===`dark`?.05:.01),.97),boxShadow:e?i===`left`&&e.getIsLastColumn(i)?`-4px 0 4px -4px ${oc(n.palette.grey[700],.5)} inset`:i===`right`&&e.getIsFirstColumn(i)?`4px 0 4px -4px ${oc(n.palette.grey[700],.5)} inset`:void 0:void 0},OU)}}},AU=({column:e,header:t,table:n,tableCellProps:r,theme:i})=>{let{getState:a,options:{enableColumnVirtualization:o,layoutMode:s}}=n,{draggingColumn:c}=a(),{columnDef:l}=e,{columnDefType:u}=l,d=l.columnDefType!==`group`&&e.getIsPinned(),f={minWidth:`max(calc(var(--${t?`header`:`col`}-${EU(t?.id??e.id)}-size) * 1px), ${l.minSize??30}px)`,width:`calc(var(--${t?`header`:`col`}-${EU(t?.id??e.id)}-size) * 1px)`};s===`grid`?f.flex=`${[0,!1].includes(l.grow)?0:`var(--${t?`header`:`col`}-${EU(t?.id??e.id)}-size)`} 0 auto`:s===`grid-no-grow`&&(f.flex=`${+(l.grow||0)} 0 auto`);let p=d?Object.assign(Object.assign({},kU({column:e,table:n,theme:i})),{left:d===`left`?`${e.getStart(`left`)}px`:void 0,opacity:.97,position:`sticky`,right:d===`right`?`${e.getAfter(`right`)}px`:void 0}):{};return Object.assign(Object.assign(Object.assign({backgroundColor:`inherit`,backgroundImage:`inherit`,display:s?.startsWith(`grid`)?`flex`:void 0,justifyContent:u===`group`?`center`:s?.startsWith(`grid`)?r.align:void 0,opacity:n.getState().draggingColumn?.id===e.id||n.getState().hoveredColumn?.id===e.id?.5:1,position:`relative`,transition:o?`none`:`padding 150ms ease-in-out`,zIndex:e.getIsResizing()||c?.id===e.id?2:u!==`group`&&d?1:0,"&:focus-visible":{outline:`2px solid ${n.options.mrtTheme.cellNavigationOutlineColor}`,outlineOffset:`-2px`}},p),f),$(r?.sx,i))},jU=({table:e})=>({alignItems:`flex-start`,backgroundColor:e.options.mrtTheme.baseBackgroundColor,display:`grid`,flexWrap:`wrap-reverse`,minHeight:`3.5rem`,overflow:`hidden`,position:`relative`,transition:`all 150ms ease-in-out`,zIndex:1}),MU=e=>e.direction===`rtl`?{style:{transform:`scaleX(-1)`}}:void 0,NU=e=>({disableInteractive:!0,enterDelay:1e3,enterNextDelay:1e3,placement:e}),PU=e=>{var{icon:t,label:n,onOpenSubMenu:r,table:i}=e,a=wU(e,[`icon`,`label`,`onOpenSubMenu`,`table`]);let{options:{icons:{ArrowRightIcon:o}}}=i;return(0,J.jsxs)(Ry,Object.assign({sx:{alignItems:`center`,justifyContent:`space-between`,minWidth:`120px`,my:0,py:`6px`},tabIndex:0},a,{children:[(0,J.jsxs)(Q,{sx:{alignItems:`center`,display:`flex`},children:[(0,J.jsx)(Cy,{children:t}),n]}),r&&(0,J.jsx)(Sb,{onClick:r,onMouseEnter:r,size:`small`,sx:{p:0},children:(0,J.jsx)(o,{})})]}))},FU=e=>{var{anchorEl:t,handleEdit:n,row:r,setAnchorEl:i,staticRowIndex:a,table:o}=e,s=wU(e,[`anchorEl`,`handleEdit`,`row`,`setAnchorEl`,`staticRowIndex`,`table`]);let{getState:c,options:{editDisplayMode:l,enableEditing:u,icons:{EditIcon:d},localization:f,mrtTheme:{menuBackgroundColor:p},renderRowActionMenuItems:m}}=o,{density:h}=c(),g=(0,K.useMemo)(()=>{let e=[],t=$(u,r)&&[`modal`,`row`].includes(l)&&(0,J.jsx)(PU,{icon:(0,J.jsx)(d,{}),label:f.edit,onClick:n,table:o},`edit`);t&&e.push(t);let s=m?.({closeMenu:()=>i(null),row:r,staticRowIndex:a,table:o});return s?.length&&e.push(...s),e},[m,r,a,o]);return g.length?(0,J.jsx)(Ev,Object.assign({MenuListProps:{dense:h===`compact`,sx:{backgroundColor:p}},anchorEl:t,disableScrollLock:!0,onClick:e=>e.stopPropagation(),onClose:()=>i(null),open:!!t},s,{children:g})):null},IU={"&:hover":{opacity:1},height:`2rem`,ml:`10px`,opacity:.5,transition:`opacity 150ms`,width:`2rem`},LU=e=>{var{cell:t,row:n,staticRowIndex:r,table:i}=e,a=wU(e,[`cell`,`row`,`staticRowIndex`,`table`]);let{getState:o,options:{createDisplayMode:s,editDisplayMode:c,enableEditing:l,icons:{EditIcon:u,MoreHorizIcon:d},localization:f,renderRowActionMenuItems:p,renderRowActions:m},setEditingRow:h}=i,{creatingRow:g,editingRow:_}=o(),v=g?.id===n.id,y=_?.id===n.id,b=v&&s===`row`||y&&c===`row`,[x,S]=(0,K.useState)(null),C=e=>{e.stopPropagation(),e.preventDefault(),S(e.currentTarget)},w=e=>{e.stopPropagation(),h(Object.assign({},n)),S(null)};return(0,J.jsx)(J.Fragment,{children:m&&!b?m({cell:t,row:n,staticRowIndex:r,table:i}):b?(0,J.jsx)(TU,{row:n,table:i}):!p&&$(l,n)&&[`modal`,`row`].includes(c)?(0,J.jsx)(pT,{placement:`right`,title:f.edit,children:(0,J.jsx)(Sb,Object.assign({"aria-label":f.edit,onClick:w,sx:IU},a,{children:(0,J.jsx)(u,{})}))}):p?.({row:n,staticRowIndex:r,table:i})?.length?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(pT,Object.assign({},NU(),{title:f.rowActions,children:(0,J.jsx)(Sb,Object.assign({"aria-label":f.rowActions,onClick:C,size:`small`,sx:IU},a,{children:(0,J.jsx)(d,{})}))})),(0,J.jsx)(FU,{anchorEl:x,handleEdit:w,row:n,setAnchorEl:S,staticRowIndex:r,table:i})]}):null})},RU=e=>Object.assign({Cell:({cell:e,row:t,staticRowIndex:n,table:r})=>(0,J.jsx)(LU,{cell:e,row:t,staticRowIndex:n,table:r})},ZH({header:`actions`,id:`mrt-row-actions`,size:70,tableOptions:e})),zU=e=>{var{location:t,table:n}=e,r=wU(e,[`location`,`table`]);let{options:{icons:{DragHandleIcon:i},localization:a}}=n;return(0,J.jsx)(pT,Object.assign({},NU(`top`),{title:r?.title??a.move,children:(0,J.jsx)(Sb,Object.assign({"aria-label":r.title??a.move,disableRipple:!0,draggable:`true`,size:`small`},r,{onClick:e=>{var t;e.stopPropagation(),(t=r?.onClick)==null||t.call(r,e)},sx:e=>Object.assign({"&:active":{cursor:`grabbing`},"&:hover":{backgroundColor:`transparent`,opacity:1},cursor:`grab`,m:`0 -0.1rem`,opacity:t===`row`?1:.5,p:`2px`,transition:`all 150ms ease-in-out`},$(r?.sx,e)),title:void 0,children:(0,J.jsx)(i,{})}))}))},BU=e=>{var{row:t,rowRef:n,table:r}=e,i=wU(e,[`row`,`rowRef`,`table`]);let{options:{muiRowDragHandleProps:a}}=r,o=Object.assign(Object.assign({},$(a,{row:t,table:r})),i);return(0,J.jsx)(zU,Object.assign({},o,{location:`row`,onDragEnd:e=>{var t;(t=o?.onDragEnd)==null||t.call(o,e),r.setDraggingRow(null),r.setHoveredRow(null)},onDragStart:e=>{var i;(i=o?.onDragStart)==null||i.call(o,e);try{e.dataTransfer.setDragImage(n.current,0,0)}catch(e){console.error(e)}r.setDraggingRow(t)},table:r}))},VU=e=>Object.assign({Cell:({row:e,rowRef:t,table:n})=>(0,J.jsx)(BU,{row:e,rowRef:t,table:n}),grow:!1},ZH({header:`move`,id:`mrt-row-drag`,size:60,tableOptions:e})),HU=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getCanSomeRowsExpand:r,getIsAllRowsExpanded:i,getIsSomeRowsExpanded:a,getState:o,options:{icons:{KeyboardDoubleArrowDownIcon:s},localization:c,muiExpandAllButtonProps:l,renderDetailPanel:u},toggleAllRowsExpanded:d}=t,{density:f,isLoading:p}=o(),m=Object.assign(Object.assign({},$(l,{table:t})),n),h=i();return(0,J.jsx)(pT,Object.assign({},NU(),{title:m?.title??(h?c.collapseAll:c.expandAll),children:(0,J.jsx)(`span`,{children:(0,J.jsx)(Sb,Object.assign({"aria-label":c.expandAll,disabled:p||!u&&!r(),onClick:()=>d(!h)},m,{sx:e=>Object.assign({height:f===`compact`?`1.75rem`:`2.25rem`,mt:f===`compact`?void 0:`-0.25rem`,width:f===`compact`?`1.75rem`:`2.25rem`},$(m?.sx,e)),title:void 0,children:m?.children??(0,J.jsx)(s,{style:{transform:`rotate(${h?-180:a()?-90:0}deg)`,transition:`transform 150ms`}})}))})}))},UU=({row:e,staticRowIndex:t,table:n})=>{let r=Ru(),{getState:i,options:{icons:{ExpandMoreIcon:a},localization:o,muiExpandButtonProps:s,positionExpandColumn:c,renderDetailPanel:l}}=n,{density:u}=i(),d=$(s,{row:e,staticRowIndex:t,table:n}),f=e.getCanExpand(),p=e.getIsExpanded(),m=t=>{var n;t.stopPropagation(),e.toggleExpanded(),(n=d?.onClick)==null||n.call(d,t)},h=!!l?.({row:e,table:n});return(0,J.jsx)(pT,Object.assign({disableHoverListener:!f&&!h},NU(),{title:d?.title??(p?o.collapse:o.expand),children:(0,J.jsx)(`span`,{children:(0,J.jsx)(Sb,Object.assign({"aria-label":o.expand,disabled:!f&&!h},d,{onClick:m,sx:t=>Object.assign({height:u===`compact`?`1.75rem`:`2.25rem`,opacity:!f&&!h?.3:1,[t.direction===`rtl`||c===`last`?`mr`:`ml`]:`${e.depth*16}px`,width:u===`compact`?`1.75rem`:`2.25rem`},$(d?.sx,t)),title:void 0,children:d?.children??(0,J.jsx)(a,{style:{transform:`rotate(${!f&&!l?c===`last`||r.direction===`rtl`?90:-90:p?-180:0}deg)`,transition:`transform 150ms`}})}))})}))},WU=e=>{let{defaultColumn:t,enableExpandAll:n,groupedColumnMode:r,positionExpandColumn:i,renderDetailPanel:a,state:{grouping:o}}=e,s=i===`last`?{align:`right`}:void 0;return Object.assign({Cell:({cell:e,column:t,row:n,staticRowIndex:i,table:a})=>{var o;let s={row:n,staticRowIndex:i,table:a},c=n.subRows?.length;return r===`remove`&&n.groupingColumnId?(0,J.jsxs)(Cb,{alignItems:`center`,flexDirection:`row`,gap:`0.25rem`,children:[(0,J.jsx)(UU,Object.assign({},s)),(0,J.jsx)(pT,Object.assign({},NU(`right`),{title:a.getColumn(n.groupingColumnId).columnDef.header,children:(0,J.jsx)(`span`,{children:n.groupingValue})})),!!c&&(0,J.jsxs)(`span`,{children:[`(`,c,`)`]})]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(UU,Object.assign({},s)),(o=t.columnDef).GroupedCell?.call(o,{cell:e,column:t,row:n,table:a})]})},Header:n?({table:e})=>(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(HU,{table:e}),r===`remove`&&(o?.map(t=>e.getColumn(t).columnDef.header))?.join(`, `)]}):void 0,muiTableBodyCellProps:s,muiTableHeadCellProps:s},ZH({header:`expand`,id:`mrt-row-expand`,size:r===`remove`?t?.size??180:a?n?60:70:100,tableOptions:e}))},GU=e=>{let{localization:t,rowNumberDisplayMode:n}=e,{pagination:{pageIndex:r,pageSize:i}}=e.state;return Object.assign({Cell:({row:e,staticRowIndex:t})=>((n===`static`?(t||0)+(i||0)*(r||0):e.index)??0)+1,Header:()=>t.rowNumber,grow:!1},ZH({header:`rowNumbers`,id:`mrt-row-numbers`,size:50,tableOptions:e}))},KU=e=>{var{pinningPosition:t,row:n,table:r}=e,i=wU(e,[`pinningPosition`,`row`,`table`]);let{options:{icons:{CloseIcon:a,PushPinIcon:o},localization:s,rowPinningDisplayMode:c}}=r,l=n.getIsPinned(),[u,d]=(0,K.useState)(!1);return(0,J.jsx)(pT,Object.assign({},NU(),{open:u,title:l?s.unpin:s.pin,children:(0,J.jsx)(Sb,Object.assign({"aria-label":s.pin,onBlur:()=>d(!1),onClick:e=>{d(!1),e.stopPropagation(),n.pin(!l&&t)},onFocus:()=>d(!0),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),size:`small`},i,{sx:e=>Object.assign({height:`24px`,width:`24px`},$(i?.sx,e)),children:l?(0,J.jsx)(a,{}):(0,J.jsx)(o,{fontSize:`small`,style:{transform:`rotate(${c===`sticky`?135:t===`top`?180:0}deg)`}})}))}))},qU=e=>{var{row:t,table:n}=e,r=wU(e,[`row`,`table`]);let{getState:i,options:{enableRowPinning:a,rowPinningDisplayMode:o}}=n,{density:s}=i();if(!$(a,t))return null;let c=Object.assign({row:t,table:n},r);return o===`top-and-bottom`&&!t.getIsPinned()?(0,J.jsxs)(Q,{sx:{display:`flex`,flexDirection:s===`compact`?`row`:`column`},children:[(0,J.jsx)(KU,Object.assign({pinningPosition:`top`},c)),(0,J.jsx)(KU,Object.assign({pinningPosition:`bottom`},c))]}):(0,J.jsx)(KU,Object.assign({pinningPosition:o===`bottom`?`bottom`:`top`},c))},JU=e=>Object.assign({Cell:({row:e,table:t})=>(0,J.jsx)(qU,{row:e,table:t}),grow:!1},ZH({header:`pin`,id:`mrt-row-pin`,size:60,tableOptions:e})),YU=e=>{var{row:t,staticRowIndex:n,table:r}=e,i=wU(e,[`row`,`staticRowIndex`,`table`]);let{getState:a,options:{enableMultiRowSelection:o,localization:s,muiSelectAllCheckboxProps:c,muiSelectCheckboxProps:l,selectAllMode:u}}=r,{density:d,isLoading:f}=a(),p=!t,m=p?u===`page`?r.getIsAllPageRowsSelected():r.getIsAllRowsSelected():void 0,h=p?m:WH({row:t,table:r}),g=Object.assign(Object.assign({},p?$(c,{table:r}):$(l,{row:t,staticRowIndex:n,table:r})),i),_=t?GH({row:t,staticRowIndex:n,table:r}):void 0,v=KH({table:r}),y=Object.assign(Object.assign({"aria-label":p?s.toggleSelectAll:s.toggleSelectRow,checked:h,disabled:f||t&&!t.getCanSelect()||t?.id===`mrt-row-create`,inputProps:{"aria-label":p?s.toggleSelectAll:s.toggleSelectRow},onChange:e=>{e.stopPropagation(),p?v(e):_(e)},size:d===`compact`?`small`:`medium`},g),{onClick:e=>{var t;e.stopPropagation(),(t=g?.onClick)==null||t.call(g,e)},sx:e=>Object.assign({height:d===`compact`?`1.75rem`:`2.5rem`,m:d===`compact`?void 0:`-0.4rem`,width:d===`compact`?`1.75rem`:`2.5rem`,zIndex:0},$(g?.sx,e)),title:void 0});return(0,J.jsx)(pT,Object.assign({},NU(),{title:g?.title??(p?s.toggleSelectAll:s.toggleSelectRow),children:o===!1?(0,J.jsx)(vE,Object.assign({},y)):(0,J.jsx)(Eh,Object.assign({indeterminate:!h&&p?r.getIsSomeRowsSelected():t?.getIsSomeSelected()&&t.getCanSelectSubRows()},y))}))},XU=e=>{let{enableMultiRowSelection:t,enableSelectAll:n}=e;return Object.assign({Cell:({row:e,staticRowIndex:t,table:n})=>(0,J.jsx)(YU,{row:e,staticRowIndex:t,table:n}),Header:n&&t?({table:e})=>(0,J.jsx)(YU,{table:e}):void 0,grow:!1},ZH({header:`select`,id:`mrt-row-select`,size:n?60:70,tableOptions:e}))},ZU={ArrowDownwardIcon:eB,ArrowRightIcon:tB,CancelIcon:nB,ChevronLeftIcon:rB,ChevronRightIcon:iB,ClearAllIcon:aB,CloseIcon:Pb,ContentCopy:mT,DensityLargeIcon:oB,DensityMediumIcon:sB,DensitySmallIcon:cB,DragHandleIcon:lB,DynamicFeedIcon:uB,EditIcon:dB,ExpandMoreIcon:fB,FilterAltIcon:pB,FilterListIcon:cR,FilterListOffIcon:mB,FirstPageIcon:hB,FullscreenExitIcon:_B,FullscreenIcon:gB,KeyboardDoubleArrowDownIcon:vB,LastPageIcon:yB,MoreHorizIcon:bB,MoreVertIcon:xB,PushPinIcon:SB,RestartAltIcon:CB,SaveIcon:wB,SearchIcon:Nb,SearchOffIcon:TB,SortIcon:EB,SyncAltIcon:DB,ViewColumnIcon:OB,VisibilityOffIcon:kB},QU={language:`en`,actions:`Actions`,and:`and`,cancel:`Cancel`,changeFilterMode:`Change filter mode`,changeSearchMode:`Change search mode`,clearFilter:`Clear filter`,clearSearch:`Clear search`,clearSelection:`Clear selection`,clearSort:`Clear sort`,clickToCopy:`Click to copy`,copy:`Copy`,collapse:`Collapse`,collapseAll:`Collapse all`,columnActions:`Column Actions`,copiedToClipboard:`Copied to clipboard`,dropToGroupBy:`Drop to group by {column}`,edit:`Edit`,expand:`Expand`,expandAll:`Expand all`,filterArrIncludes:`Includes`,filterArrIncludesAll:`Includes all`,filterArrIncludesSome:`Includes`,filterBetween:`Between`,filterBetweenInclusive:`Between Inclusive`,filterByColumn:`Filter by {column}`,filterContains:`Contains`,filterEmpty:`Empty`,filterEndsWith:`Ends With`,filterEquals:`Equals`,filterEqualsString:`Equals`,filterFuzzy:`Fuzzy`,filterGreaterThan:`Greater Than`,filterGreaterThanOrEqualTo:`Greater Than Or Equal To`,filterInNumberRange:`Between`,filterIncludesString:`Contains`,filterIncludesStringSensitive:`Contains`,filterLessThan:`Less Than`,filterLessThanOrEqualTo:`Less Than Or Equal To`,filterMode:`Filter Mode: {filterType}`,filterNotEmpty:`Not Empty`,filterNotEquals:`Not Equals`,filterStartsWith:`Starts With`,filterWeakEquals:`Equals`,filteringByColumn:`Filtering by {column} - {filterType} {filterValue}`,goToFirstPage:`Go to first page`,goToLastPage:`Go to last page`,goToNextPage:`Go to next page`,goToPreviousPage:`Go to previous page`,grab:`Grab`,groupByColumn:`Group by {column}`,groupedBy:`Grouped by `,hideAll:`Hide all`,hideColumn:`Hide {column} column`,max:`Max`,min:`Min`,move:`Move`,noRecordsToDisplay:`No records to display`,noResultsFound:`No results found`,of:`of`,or:`or`,pin:`Pin`,pinToLeft:`Pin to left`,pinToRight:`Pin to right`,resetColumnSize:`Reset column size`,resetOrder:`Reset order`,rowActions:`Row Actions`,rowNumber:`#`,rowNumbers:`Row Numbers`,rowsPerPage:`Rows per page`,save:`Save`,search:`Search`,selectedCountOfRowCountRowsSelected:`{selectedCount} of {rowCount} row(s) selected`,select:`Select`,showAll:`Show all`,showAllColumns:`Show all columns`,showHideColumns:`Show/Hide columns`,showHideFilters:`Show/Hide filters`,showHideSearch:`Show/Hide search`,sortByColumnAsc:`Sort by {column} ascending`,sortByColumnDesc:`Sort by {column} descending`,sortedByColumnAsc:`Sorted by {column} ascending`,sortedByColumnDesc:`Sorted by {column} descending`,thenBy:`, then by `,toggleDensity:`Toggle density`,toggleFullScreen:`Toggle full screen`,toggleSelectAll:`Toggle select all`,toggleSelectRow:`Toggle select row`,toggleVisibility:`Toggle visibility`,ungroupByColumn:`Ungroup by {column}`,unpin:`Unpin`,unpinAll:`Unpin all`},$U={filterVariant:`text`,maxSize:1e3,minSize:40,size:180},eW={columnDefType:`display`,enableClickToCopy:!1,enableColumnActions:!1,enableColumnDragging:!1,enableColumnFilter:!1,enableColumnOrdering:!1,enableEditing:!1,enableGlobalFilter:!1,enableGrouping:!1,enableHiding:!1,enableResizing:!1,enableSorting:!1},tW=e=>{var{aggregationFns:t,autoResetExpanded:n=!1,columnFilterDisplayMode:r=`subheader`,columnResizeDirection:i,columnResizeMode:a=`onChange`,createDisplayMode:o=`modal`,defaultColumn:s,defaultDisplayColumn:c,editDisplayMode:l=`modal`,enableBatchRowSelection:u=!0,enableBottomToolbar:d=!0,enableColumnActions:f=!0,enableColumnFilters:p=!0,enableColumnOrdering:m=!1,enableColumnPinning:h=!1,enableColumnResizing:g=!1,enableColumnVirtualization:_,enableDensityToggle:v=!0,enableExpandAll:y=!0,enableExpanding:b,enableFacetedValues:x=!1,enableFilterMatchHighlighting:S=!0,enableFilters:C=!0,enableFullScreenToggle:w=!0,enableGlobalFilter:T=!0,enableGlobalFilterRankedResults:E=!0,enableGrouping:D=!1,enableHiding:O=!0,enableKeyboardShortcuts:k=!0,enableMultiRowSelection:A=!0,enableMultiSort:j=!0,enablePagination:M=!0,enableRowPinning:N=!1,enableRowSelection:P=!1,enableRowVirtualization:F,enableSelectAll:I=!0,enableSorting:L=!0,enableStickyHeader:R=!1,enableTableFooter:z=!0,enableTableHead:ee=!0,enableToolbarInternalActions:te=!0,enableTopToolbar:B=!0,filterFns:V,icons:ne,id:re=(0,K.useId)(),layoutMode:ie,localization:H,manualFiltering:U,manualGrouping:W,manualPagination:ae,manualSorting:oe,mrtTheme:se,paginationDisplayMode:ce=`default`,positionActionsColumn:G=`first`,positionCreatingRow:le=`top`,positionExpandColumn:ue=`first`,positionGlobalFilter:de=`right`,positionPagination:fe=`bottom`,positionToolbarAlertBanner:pe=`top`,positionToolbarDropZone:me=`top`,rowNumberDisplayMode:he=`static`,rowPinningDisplayMode:ge=`sticky`,selectAllMode:_e=`page`,sortingFns:ve}=e,ye=wU(e,`aggregationFns.autoResetExpanded.columnFilterDisplayMode.columnResizeDirection.columnResizeMode.createDisplayMode.defaultColumn.defaultDisplayColumn.editDisplayMode.enableBatchRowSelection.enableBottomToolbar.enableColumnActions.enableColumnFilters.enableColumnOrdering.enableColumnPinning.enableColumnResizing.enableColumnVirtualization.enableDensityToggle.enableExpandAll.enableExpanding.enableFacetedValues.enableFilterMatchHighlighting.enableFilters.enableFullScreenToggle.enableGlobalFilter.enableGlobalFilterRankedResults.enableGrouping.enableHiding.enableKeyboardShortcuts.enableMultiRowSelection.enableMultiSort.enablePagination.enableRowPinning.enableRowSelection.enableRowVirtualization.enableSelectAll.enableSorting.enableStickyHeader.enableTableFooter.enableTableHead.enableToolbarInternalActions.enableTopToolbar.filterFns.icons.id.layoutMode.localization.manualFiltering.manualGrouping.manualPagination.manualSorting.mrtTheme.paginationDisplayMode.positionActionsColumn.positionCreatingRow.positionExpandColumn.positionGlobalFilter.positionPagination.positionToolbarAlertBanner.positionToolbarDropZone.rowNumberDisplayMode.rowPinningDisplayMode.selectAllMode.sortingFns`.split(`.`));let be=Ru();return ne=(0,K.useMemo)(()=>Object.assign(Object.assign({},ZU),ne),[ne]),H=(0,K.useMemo)(()=>Object.assign(Object.assign({},QU),H),[H]),se=(0,K.useMemo)(()=>DU(se,be),[se,be]),t=(0,K.useMemo)(()=>Object.assign(Object.assign({},cU),t),[]),V=(0,K.useMemo)(()=>Object.assign(Object.assign({},CU),V),[]),ve=(0,K.useMemo)(()=>Object.assign(Object.assign({},RH),ve),[]),s=(0,K.useMemo)(()=>Object.assign(Object.assign({},$U),s),[s]),c=(0,K.useMemo)(()=>Object.assign(Object.assign({},eW),c),[c]),[_,F]=(0,K.useMemo)(()=>[_,F],[]),i||=be.direction||`ltr`,ie||=g?`grid-no-grow`:`semantic`,ie===`semantic`&&(F||_)&&(ie=`grid`),F&&(R=!0),M===!1&&ae===void 0&&(ae=!0),ye.data?.length||(U=!0,W=!0,ae=!0,oe=!0),Object.assign({aggregationFns:t,autoResetExpanded:n,columnFilterDisplayMode:r,columnResizeDirection:i,columnResizeMode:a,createDisplayMode:o,defaultColumn:s,defaultDisplayColumn:c,editDisplayMode:l,enableBatchRowSelection:u,enableBottomToolbar:d,enableColumnActions:f,enableColumnFilters:p,enableColumnOrdering:m,enableColumnPinning:h,enableColumnResizing:g,enableColumnVirtualization:_,enableDensityToggle:v,enableExpandAll:y,enableExpanding:b,enableFacetedValues:x,enableFilterMatchHighlighting:S,enableFilters:C,enableFullScreenToggle:w,enableGlobalFilter:T,enableGlobalFilterRankedResults:E,enableGrouping:D,enableHiding:O,enableKeyboardShortcuts:k,enableMultiRowSelection:A,enableMultiSort:j,enablePagination:M,enableRowPinning:N,enableRowSelection:P,enableRowVirtualization:F,enableSelectAll:I,enableSorting:L,enableStickyHeader:R,enableTableFooter:z,enableTableHead:ee,enableToolbarInternalActions:te,enableTopToolbar:B,filterFns:V,getCoreRowModel:wz(),getExpandedRowModel:b||D?Tz():void 0,getFacetedMinMaxValues:x?Dz():void 0,getFacetedRowModel:x?jz():void 0,getFacetedUniqueValues:x?Mz():void 0,getFilteredRowModel:(p||T||C)&&!U?Nz():void 0,getGroupedRowModel:D&&!W?Pz():void 0,getPaginationRowModel:M&&!ae?Iz():void 0,getSortedRowModel:L&&!oe?Lz():void 0,getSubRows:e=>e?.subRows,icons:ne,id:re,layoutMode:ie,localization:H,manualFiltering:U,manualGrouping:W,manualPagination:ae,manualSorting:oe,mrtTheme:se,paginationDisplayMode:ce,positionActionsColumn:G,positionCreatingRow:le,positionExpandColumn:ue,positionGlobalFilter:de,positionPagination:fe,positionToolbarAlertBanner:pe,positionToolbarDropZone:me,rowNumberDisplayMode:he,rowPinningDisplayMode:ge,selectAllMode:_e,sortingFns:ve},ye)},nW={children:null,sx:{minWidth:0,p:0,width:0}},rW=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ZH({id:`mrt-row-spacer`,size:0,tableOptions:e})),{grow:!0}),eW),{muiTableBodyCellProps:nW,muiTableFooterCellProps:nW,muiTableHeadCellProps:nW}),iW=e=>{let{getIsSomeRowsPinned:t,getPrePaginationRowModel:n,getState:r,options:{enablePagination:i,enableRowPinning:a,rowCount:o}}=e,{columnOrder:s,density:c,globalFilter:l,isFullScreen:u,isLoading:d,pagination:f,showSkeletons:p,sorting:m}=r(),h=e.options.columns.length,g=o??n().rows.length,_=(0,K.useReducer)(()=>({}),{})[1],v=(0,K.useRef)(null),y=(0,K.useRef)(null);(0,K.useEffect)(()=>{typeof window<`u`&&(v.current=document.body.style.height)},[]),(0,K.useEffect)(()=>{if(typeof window<`u`){if(u)y.current=document.body.getBoundingClientRect().top,document.body.style.height=`100dvh`;else{if(document.body.style.height=v.current,!y.current)return;window.scrollTo({behavior:`instant`,top:-1*y.current})}}},[u]),(0,K.useEffect)(()=>{h!==s.length&&e.setColumnOrder(sU(e.options))},[h]),(0,K.useEffect)(()=>{if(!i||d||p)return;let{pageIndex:t,pageSize:n}=f,r=g>0?Math.ceil(g/n):1;(t<0||t>=r)&&e.setPageIndex(r-1)},[g,i,d,p]);let b=(0,K.useRef)(m);(0,K.useEffect)(()=>{m.length&&(b.current=m)},[m]),(0,K.useEffect)(()=>{HH(e)&&(l?e.setSorting([]):e.setSorting(()=>b.current||[]))},[l]),(0,K.useEffect)(()=>{a&&t()&&setTimeout(()=>{_()},150)},[c])},aW=e=>{let t=(0,K.useRef)(null),n=(0,K.useRef)(null),r=(0,K.useRef)(null),i=(0,K.useRef)({}),a=(0,K.useRef)({}),o=(0,K.useRef)(null),s=(0,K.useRef)(null),c=(0,K.useRef)({}),l=(0,K.useRef)(null),u=(0,K.useRef)(null),d=(0,K.useRef)(null),f=(0,K.useRef)(null),p=(0,K.useMemo)(()=>{let t=e.initialState??{};return t.columnOrder=t.columnOrder??sU(Object.assign(Object.assign({},e),{state:Object.assign(Object.assign({},e.initialState),e.state)})),t.globalFilterFn=e.globalFilterFn??`fuzzy`,t},[]);e.initialState=p;let[m,h]=(0,K.useState)(p.actionCell??null),[g,_]=(0,K.useState)(p.creatingRow??null),[v,y]=(0,K.useState)(()=>Object.assign({},...jH(e.columns).map(e=>({[AH(e)]:e.filterFn instanceof Function?e.filterFn.name??`custom`:e.filterFn??p?.columnFilterFns?.[AH(e)]??PH(e)})))),[b,x]=(0,K.useState)(p.columnOrder??[]),[S,C]=(0,K.useState)(p.columnSizingInfo??{}),[w,T]=(0,K.useState)(p?.density??`comfortable`),[E,D]=(0,K.useState)(p.draggingColumn??null),[O,k]=(0,K.useState)(p.draggingRow??null),[A,j]=(0,K.useState)(p.editingCell??null),[M,N]=(0,K.useState)(p.editingRow??null),[P,F]=(0,K.useState)(p.globalFilterFn??`fuzzy`),[I,L]=(0,K.useState)(p.grouping??[]),[R,z]=(0,K.useState)(p.hoveredColumn??null),[ee,te]=(0,K.useState)(p.hoveredRow??null),[B,V]=(0,K.useState)(p?.isFullScreen??!1),[ne,re]=(0,K.useState)(p?.pagination??{pageIndex:0,pageSize:10}),[ie,H]=(0,K.useState)(p?.showAlertBanner??!1),[U,W]=(0,K.useState)(p?.showColumnFilters??!1),[ae,oe]=(0,K.useState)(p?.showGlobalFilter??!1),[se,ce]=(0,K.useState)(p?.showToolbarDropZone??!1);e.state=Object.assign({actionCell:m,columnFilterFns:v,columnOrder:b,columnSizingInfo:S,creatingRow:g,density:w,draggingColumn:E,draggingRow:O,editingCell:A,editingRow:M,globalFilterFn:P,grouping:I,hoveredColumn:R,hoveredRow:ee,isFullScreen:B,pagination:ne,showAlertBanner:ie,showColumnFilters:U,showGlobalFilter:ae,showToolbarDropZone:se},e.state);let G=e,le=(0,K.useRef)([]);G.columns=G.state.columnSizingInfo.isResizingColumn||G.state.draggingColumn||G.state.draggingRow?le.current:MH({columnDefs:[...[QH(G)&&JU(G),$H(G)&&VU(G),tU(G)&&RU(G),eU(G)&&WU(G),nU(G)&&XU(G),rU(G)&&GU(G)].filter(Boolean),...G.columns,...[iU(G)&&rW(G)].filter(Boolean)],tableOptions:G}),le.current=G.columns,G.data=(0,K.useMemo)(()=>(G.state.isLoading||G.state.showSkeletons)&&!G.data.length?[...Array(Math.min(G.state.pagination.pageSize,20)).fill(null)].map(()=>Object.assign({},...jH(G.columns).map(e=>({[AH(e)]:null})))):G.data,[G.data,G.state.isLoading,G.state.showSkeletons]);let ue=Rz(Object.assign(Object.assign({onColumnOrderChange:x,onColumnSizingInfoChange:C,onGroupingChange:L,onPaginationChange:re},G),{globalFilterFn:G.filterFns?.[P??`fuzzy`]}));return ue.refs={actionCellRef:n,bottomToolbarRef:r,editInputRefs:i,filterInputRefs:a,lastSelectedRowId:t,searchInputRef:o,tableContainerRef:s,tableFooterRef:f,tableHeadCellRefs:c,tableHeadRef:d,tablePaperRef:l,topToolbarRef:u},ue.setActionCell=G.onActionCellChange??h,ue.setCreatingRow=e=>{let t=e;e===!0&&(t=LH(ue)),(G?.onCreatingRowChange)?.call(G,t)??_(t)},ue.setColumnFilterFns=G.onColumnFilterFnsChange??y,ue.setDensity=G.onDensityChange??T,ue.setDraggingColumn=G.onDraggingColumnChange??D,ue.setDraggingRow=G.onDraggingRowChange??k,ue.setEditingCell=G.onEditingCellChange??j,ue.setEditingRow=G.onEditingRowChange??N,ue.setGlobalFilterFn=G.onGlobalFilterFnChange??F,ue.setHoveredColumn=G.onHoveredColumnChange??z,ue.setHoveredRow=G.onHoveredRowChange??te,ue.setIsFullScreen=G.onIsFullScreenChange??V,ue.setShowAlertBanner=G.onShowAlertBannerChange??H,ue.setShowColumnFilters=G.onShowColumnFiltersChange??W,ue.setShowGlobalFilter=G.onShowGlobalFilterChange??oe,ue.setShowToolbarDropZone=G.onShowToolbarDropZoneChange??ce,iW(ue),ue},oW=e=>aW(tW(e)),sW=(e,t)=>{let n=FB(e);return t===void 0?n:(t>=0&&t<Math.max(e.startIndex-e.overscan,0)&&n.unshift(t),t>=0&&t>e.endIndex+e.overscan&&n.push(t),n)},cW=e=>{let{getState:t,options:{columnVirtualizerInstanceRef:n,columnVirtualizerOptions:r,enableColumnPinning:i,enableColumnVirtualization:a},refs:{tableContainerRef:o}}=e,{columnPinning:s,columnVisibility:c,draggingColumn:l}=t();if(!a)return;let u=$(r,{table:e}),d=e.getVisibleLeafColumns(),[f,p]=(0,K.useMemo)(()=>i?[e.getLeftVisibleLeafColumns().map(e=>e.getPinnedIndex()),e.getRightVisibleLeafColumns().map(e=>d.length-e.getPinnedIndex()-1).sort((e,t)=>e-t)]:[[],[]],[s,c,i]),m=f.length,h=p.length,g=(0,K.useMemo)(()=>l?.id?d.findIndex(e=>e.id===l?.id):void 0,[l?.id]),_=qB(Object.assign({count:d.length,estimateSize:e=>d[e].getSize(),getScrollElement:()=>o.current,horizontal:!0,overscan:3,rangeExtractor:(0,K.useCallback)(e=>{let t=sW(e,g);return!m&&!h?t:[...new Set([...f,...t,...p])]},[f,p,g])},u)),v=_.getVirtualItems();_.virtualColumns=v;let y=v.length;if(y){let e=_.getTotalSize(),t=v[m]?.start||0,n=v[f.length-1]?.end||0,r=v[y-h]?.start||0,i=v[y-h-1]?.end||0;_.virtualPaddingLeft=t-n,_.virtualPaddingRight=e-i-(h?e-r:0)}return n&&(n.current=_),_},lW=(e,t)=>{let{getRowModel:n,getState:r,options:{enableRowVirtualization:i,renderDetailPanel:a,rowVirtualizerInstanceRef:o,rowVirtualizerOptions:s},refs:{tableContainerRef:c}}=e,{density:l,draggingRow:u,expanded:d}=r();if(!i)return;let f=$(s,{table:e}),p=t??n().rows,m=(0,K.useMemo)(()=>u?.id?p.findIndex(e=>e.id===u?.id):void 0,[p,u?.id]),h=p.length,g=l===`compact`?37:l===`comfortable`?58:73,_=qB(Object.assign({count:a?h*2:h,estimateSize:e=>a&&e%2==1?d===!0?100:0:g,getScrollElement:()=>c.current,measureElement:typeof window<`u`&&navigator.userAgent.indexOf(`Firefox`)===-1?e=>e?.getBoundingClientRect().height:void 0,overscan:4,rangeExtractor:(0,K.useCallback)(e=>sW(e,m),[m])},f));return _.virtualRows=_.getVirtualItems(),o&&(o.current=_),_},uW=e=>{let{getRowModel:t,getState:n,options:{data:r,enableGlobalFilterRankedResults:i,positionCreatingRow:a}}=e,{creatingRow:o,expanded:s,globalFilter:c,pagination:l,rowPinning:u,sorting:d}=n();return(0,K.useMemo)(()=>VH(e),[o,r,i,s,t().rows,c,l.pageIndex,l.pageSize,a,u,d])},dW=[`string`,`number`],fW=({cell:e,rowRef:t,staticColumnIndex:n,staticRowIndex:r,table:i})=>{let{getState:a,options:{enableFilterMatchHighlighting:o,mrtTheme:{matchHighlightColor:s}}}=i,{column:c,row:l}=e,{columnDef:u}=c,{globalFilter:d,globalFilterFn:f}=a(),p=c.getFilterValue(),m=e.getIsAggregated()&&u.AggregatedCell?u.AggregatedCell({cell:e,column:c,row:l,table:i,staticColumnIndex:n,staticRowIndex:r}):l.getIsGrouped()&&!e.getIsGrouped()?null:e.getIsGrouped()&&u.GroupedCell?u.GroupedCell({cell:e,column:c,row:l,table:i,staticColumnIndex:n,staticRowIndex:r}):void 0,h=m!==void 0;if(h||(m=e.renderValue()),o&&u.enableFilterMatchHighlighting!==!1&&String(m)&&dW.includes(typeof m)&&(p&&dW.includes(typeof p)&&[`autocomplete`,`text`].includes(u.filterVariant)||d&&dW.includes(typeof d)&&c.getCanGlobalFilter())){let e=NV?.({matchExactly:(p?u._filterFn:f)!==`fuzzy`,query:(p??d??``).toString(),text:m?.toString()});(e?.length>1||e?.[0]?.match)&&(m=(0,J.jsx)(`span`,{"aria-label":m,role:`note`,children:e?.map(({key:e,match:t,text:n})=>(0,J.jsx)(Q,{"aria-hidden":`true`,component:`span`,sx:t?{backgroundColor:s,borderRadius:`2px`,color:e=>e.palette.mode===`dark`?e.palette.common.white:e.palette.common.black,padding:`2px 1px`}:void 0,children:n},e))??m}))}return u.Cell&&!h&&(m=u.Cell({cell:e,column:c,renderedCellValue:m,row:l,rowRef:t,staticColumnIndex:n,staticRowIndex:r,table:i})),m},pW=e=>{var{cell:t,table:n}=e,r=wU(e,[`cell`,`table`]);let{options:{localization:i,muiCopyButtonProps:a}}=n,{column:o,row:s}=t,{columnDef:c}=o,[l,u]=(0,K.useState)(!1),d=(e,t)=>{e.stopPropagation(),navigator.clipboard.writeText(t),u(!0),setTimeout(()=>u(!1),4e3)},f=Object.assign(Object.assign(Object.assign({},$(a,{cell:t,column:o,row:s,table:n})),$(c.muiCopyButtonProps,{cell:t,column:o,row:s,table:n})),r);return(0,J.jsx)(pT,Object.assign({},NU(`top`),{title:f?.title??(l?i.copiedToClipboard:i.clickToCopy),children:(0,J.jsx)(ah,Object.assign({onClick:e=>d(e,t.getValue()),size:`small`,type:`button`,variant:`text`},f,{sx:e=>Object.assign({backgroundColor:`transparent`,border:`none`,color:`inherit`,cursor:`copy`,fontFamily:`inherit`,fontSize:`inherit`,letterSpacing:`inherit`,m:`-0.25rem`,minWidth:`unset`,py:0,textAlign:`inherit`,textTransform:`inherit`},$(f?.sx,e)),title:void 0}))}))},mW=e=>{var{cell:t,table:n}=e,r=wU(e,[`cell`,`table`]);let{getState:i,options:{createDisplayMode:a,editDisplayMode:o,muiEditTextFieldProps:s},refs:{editInputRefs:c},setCreatingRow:l,setEditingCell:u,setEditingRow:d}=n,{column:f,row:p}=t,{columnDef:m}=f,{creatingRow:h,editingRow:g}=i(),{editSelectOptions:_,editVariant:v}=m,y=h?.id===p.id,b=g?.id===p.id,[x,S]=(0,K.useState)(()=>t.getValue()),[C,w]=(0,K.useState)(!0),T=Object.assign(Object.assign(Object.assign({},$(s,{cell:t,column:f,row:p,table:n})),$(m.muiEditTextFieldProps,{cell:t,column:f,row:p,table:n})),r),E=$(_,{cell:t,column:f,row:p,table:n}),D=v===`select`||T?.select,O=e=>{p._valuesCache[f.id]=e,y?l(p):b&&d(p)};return m.Edit?(0,J.jsx)(J.Fragment,{children:m.Edit?.call(m,{cell:t,column:f,row:p,table:n})}):(0,J.jsx)(fy,Object.assign({disabled:$(m.enableEditing,p)===!1,fullWidth:!0,inputRef:e=>{e&&(c.current[f.id]=D?e.node:e,T.inputRef&&=e)},label:[`custom`,`modal`].includes(y?a:o)?m.header:void 0,margin:`none`,name:f.id,placeholder:[`custom`,`modal`].includes(y?a:o)?void 0:m.header,select:D,size:`small`,value:x??``,variant:`standard`},T,{InputProps:Object.assign(Object.assign(Object.assign({},T.variant===`outlined`?{}:{disableUnderline:o===`table`}),T.InputProps),{sx:e=>Object.assign({mb:0},$(T?.InputProps?.sx,e))}),SelectProps:Object.assign({MenuProps:{disableScrollLock:!0}},T.SelectProps),inputProps:Object.assign({autoComplete:`off`},T.inputProps),onBlur:e=>{var t;(t=T.onBlur)==null||t.call(T,e),O(x),u(null)},onChange:e=>{var t;(t=T.onChange)==null||t.call(T,e),S(e.target.value),D&&O(e.target.value)},onClick:e=>{var t;e.stopPropagation(),(t=T?.onClick)==null||t.call(T,e)},onKeyDown:e=>{var t,n;(t=T.onKeyDown)==null||t.call(T,e),e.key===`Enter`&&!e.shiftKey&&C&&((n=c.current?.[f.id])==null||n.blur())},onCompositionStart:()=>w(!1),onCompositionEnd:()=>w(!0),children:T.children??E?.map(e=>{let{label:t,value:n}=BH(e);return(0,J.jsx)(Ry,{sx:{alignItems:`center`,display:`flex`,gap:`0.5rem`,m:0},value:n,children:t},n)})}))},hW=e=>{var{cell:t,numRows:n,rowRef:r,staticColumnIndex:i,staticRowIndex:a,table:o}=e,s=wU(e,[`cell`,`numRows`,`rowRef`,`staticColumnIndex`,`staticRowIndex`,`table`]);let c=Ru(),{getState:l,options:{columnResizeDirection:u,columnResizeMode:d,createDisplayMode:f,editDisplayMode:p,enableCellActions:m,enableClickToCopy:h,enableColumnOrdering:g,enableColumnPinning:_,enableGrouping:v,enableKeyboardShortcuts:y,layoutMode:b,mrtTheme:{draggingBorderColor:x},muiSkeletonProps:S,muiTableBodyCellProps:C},setHoveredColumn:w}=o,{actionCell:T,columnSizingInfo:E,creatingRow:D,density:O,draggingColumn:k,draggingRow:A,editingCell:j,editingRow:M,hoveredColumn:N,hoveredRow:P,isLoading:F,showSkeletons:I}=l(),{column:L,row:R}=t,{columnDef:z}=L,{columnDefType:ee}=z,te={cell:t,column:L,row:R,table:o},B=Object.assign(Object.assign(Object.assign({},$(C,te)),$(z.muiTableBodyCellProps,te)),s),V=$(S,{cell:t,column:L,row:R,table:o}),[ne,re]=(0,K.useState)(100);(0,K.useEffect)(()=>{if(!F&&!I||ne!==100)return;let e=L.getSize();re(ee===`display`?e/2:Math.round(Math.random()*(e-e/3)+e/3))},[F,I]);let ie=(0,K.useMemo)(()=>{let e=k?.id===L.id,t=N?.id===L.id,r=A?.id===R.id,i=P?.id===R.id,o=L.getIsFirstColumn(),s=L.getIsLastColumn(),l=n&&a===n-1,f=E.isResizingColumn===L.id,p=f&&d===`onChange`,m=p?`2px solid ${x} !important`:e||r?`1px dashed ${c.palette.grey[500]} !important`:t||i||f?`2px dashed ${x} !important`:void 0;return p?u===`ltr`?{borderRight:m}:{borderLeft:m}:m?{borderBottom:r||i||l&&!f?m:void 0,borderLeft:e||t||(r||i)&&o?m:void 0,borderRight:e||t||(r||i)&&s?m:void 0,borderTop:r||i?m:void 0}:void 0},[E.isResizingColumn,k,A,N,P,a]),H=_&&z.columnDefType!==`group`&&L.getIsPinned(),U=JH({cell:t,table:o}),W=U&&![`custom`,`modal`].includes(p)&&(p===`table`||M?.id===R.id||j?.id===t.id)&&!R.getIsGrouped(),ae=U&&f===`row`&&D?.id===R.id,oe=($(h,t)===!0||$(z.enableClickToCopy,t)===!0)&&![`context-menu`,!1].includes($(z.enableClickToCopy,t)),se=$(m,t),ce={cell:t,table:o,staticColumnIndex:i,staticRowIndex:a};return(0,J.jsx)(xV,Object.assign({align:c.direction===`rtl`?`right`:`left`,"data-index":i,"data-pinned":!!H||void 0,tabIndex:y?0:void 0},B,{onKeyDown:e=>{var n;(n=B?.onKeyDown)==null||n.call(B,e),XH({cell:t,cellValue:t.getValue(),event:e,table:o})},onContextMenu:e=>{var n;(n=B?.onContextMenu)==null||n.call(B,e),se&&(e.preventDefault(),o.setActionCell(t),o.refs.actionCellRef.current=e.currentTarget)},onDoubleClick:e=>{var n;(n=B?.onDoubleClick)==null||n.call(B,e),YH({cell:t,table:o})},onDragEnter:e=>{var t;(t=B?.onDragEnter)==null||t.call(B,e),v&&N?.id===`drop-zone`&&w(null),g&&k&&w(z.enableColumnOrdering===!1?null:L)},onDragOver:e=>{z.enableColumnOrdering!==!1&&e.preventDefault()},sx:e=>Object.assign(Object.assign({"&:hover":{outline:T?.id===t.id||p===`cell`&&U||p===`table`&&(ae||W)?`1px solid ${e.palette.grey[500]}`:void 0,textOverflow:`clip`},alignItems:b?.startsWith(`grid`)?`center`:void 0,cursor:se?`context-menu`:U&&p===`cell`?`pointer`:`inherit`,outline:T?.id===t.id?`1px solid ${e.palette.grey[500]}`:void 0,outlineOffset:`-1px`,overflow:`hidden`,p:O===`compact`?ee===`display`?`0 0.5rem`:`0.5rem`:O===`comfortable`?ee===`display`?`0.5rem 0.75rem`:`1rem`:ee===`display`?`1rem 1.25rem`:`1.5rem`,textOverflow:ee===`display`?void 0:`ellipsis`,whiteSpace:R.getIsPinned()||O===`compact`?`nowrap`:`normal`},AU({column:L,table:o,tableCellProps:B,theme:e})),ie),children:B.children??(0,J.jsxs)(J.Fragment,{children:[t.getIsPlaceholder()?z.PlaceholderCell?.call(z,{cell:t,column:L,row:R,table:o})??null:I!==!1&&(F||I)?(0,J.jsx)(YT,Object.assign({animation:`wave`,height:20,width:ne},V)):ee===`display`&&([`mrt-row-expand`,`mrt-row-numbers`,`mrt-row-select`].includes(L.id)||!R.getIsGrouped())?z.Cell?.call(z,{cell:t,column:L,renderedCellValue:t.renderValue(),row:R,rowRef:r,staticColumnIndex:i,staticRowIndex:a,table:o}):ae||W?(0,J.jsx)(mW,{cell:t,table:o}):oe&&z.enableClickToCopy!==!1?(0,J.jsx)(pW,{cell:t,table:o,children:(0,J.jsx)(fW,Object.assign({},ce))}):(0,J.jsx)(fW,Object.assign({},ce)),t.getIsGrouped()&&!z.GroupedCell&&(0,J.jsxs)(J.Fragment,{children:[` (`,R.subRows?.length,`)`]})]})}))},gW=(0,K.memo)(hW,(e,t)=>t.cell===e.cell),_W=e=>{var{parentRowRef:t,row:n,rowVirtualizer:r,staticRowIndex:i,table:a,virtualRow:o}=e,s=wU(e,[`parentRowRef`,`row`,`rowVirtualizer`,`staticRowIndex`,`table`,`virtualRow`]);let{getState:c,getVisibleLeafColumns:l,options:{layoutMode:u,mrtTheme:{baseBackgroundColor:d},muiDetailPanelProps:f,muiTableBodyRowProps:p,renderDetailPanel:m}}=a,{isLoading:h}=c(),g=$(p,{isDetailPanel:!0,row:n,staticRowIndex:i,table:a}),_=Object.assign(Object.assign({},$(f,{row:n,table:a})),s),v=!h&&m?.({row:n,table:a});return(0,J.jsx)(gV,Object.assign({className:`Mui-TableBodyCell-DetailPanel`,"data-index":m?i*2+1:i,ref:e=>{var t;e&&((t=r?.measureElement)==null||t.call(r,e))}},g,{sx:e=>Object.assign({display:u?.startsWith(`grid`)?`flex`:void 0,position:o?`absolute`:void 0,top:o?`${t.current?.getBoundingClientRect()?.height}px`:void 0,transform:o?`translateY(${o?.start}px)`:void 0,width:`100%`},$(g?.sx,e)),children:(0,J.jsx)(xV,Object.assign({className:`Mui-TableBodyCell-DetailPanel`,colSpan:l().length},_,{sx:e=>Object.assign({backgroundColor:o?d:void 0,borderBottom:n.getIsExpanded()?void 0:`none`,display:u?.startsWith(`grid`)?`flex`:void 0,py:v&&n.getIsExpanded()?`1rem`:0,transition:o?void 0:`all 150ms ease-in-out`,width:`100%`},$(_?.sx,e)),children:o?n.getIsExpanded()&&v:(0,J.jsx)(sR,{in:n.getIsExpanded(),mountOnEnter:!0,unmountOnExit:!0,children:v})}))}))},vW=e=>{var{columnVirtualizer:t,numRows:n,pinnedRowIds:r,row:i,rowVirtualizer:a,staticRowIndex:o,table:s,virtualRow:c}=e,l=wU(e,[`columnVirtualizer`,`numRows`,`pinnedRowIds`,`row`,`rowVirtualizer`,`staticRowIndex`,`table`,`virtualRow`]);let u=Ru(),{getState:d,options:{enableRowOrdering:f,enableRowPinning:p,enableStickyFooter:m,enableStickyHeader:h,layoutMode:g,memoMode:_,mrtTheme:{baseBackgroundColor:v,pinnedRowBackgroundColor:y,selectedRowBackgroundColor:b},muiTableBodyRowProps:x,renderDetailPanel:S,rowPinningDisplayMode:C},refs:{tableFooterRef:w,tableHeadRef:T},setHoveredRow:E}=s,{density:D,draggingColumn:O,draggingRow:k,editingCell:A,editingRow:j,hoveredRow:M,isFullScreen:N,rowPinning:P}=d(),F=i.getVisibleCells(),{virtualColumns:I,virtualPaddingLeft:L,virtualPaddingRight:R}=t??{},z=WH({row:i,table:s}),ee=p&&i.getIsPinned(),te=k?.id===i.id,B=M?.id===i.id,V=Object.assign(Object.assign({},$(x,{row:i,staticRowIndex:o,table:s})),l),[ne,re]=(0,K.useMemo)(()=>!p||!C?.includes(`sticky`)||!r||!i.getIsPinned()?[]:[[...r].reverse().indexOf(i.id),r.indexOf(i.id)],[r,P]),ie=(h||N)&&T.current?.clientHeight||0,H=m&&w.current?.clientHeight||0,U=$(V?.sx,u),W=D===`compact`?37:D===`comfortable`?53:69,ae=parseInt(V?.style?.height??U?.height,10)||W,oe=e=>{f&&k&&E(i)},se=e=>{e.preventDefault()},ce=(0,K.useRef)(null),G=z?b:ee?y:void 0,le=V?.hover===!1?void 0:z?G:u.palette.mode===`dark`?`${uc(v,.3)}`:`${cc(v,.3)}`;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(gV,Object.assign({"data-index":S?o*2:o,"data-pinned":!!ee||void 0,"data-selected":z||void 0,onDragEnter:oe,onDragOver:se,ref:e=>{e&&(ce.current=e,a?.measureElement(e))},selected:z},V,{style:Object.assign({transform:c?`translateY(${c.start}px)`:void 0},V?.style),sx:e=>Object.assign({"&:hover td:after":le?Object.assign({backgroundColor:oc(le,.3)},OU):void 0,backgroundColor:`${v} !important`,bottom:!c&&ne!==void 0&&ee?`${ne*ae+(m?H-1:0)}px`:void 0,boxSizing:`border-box`,display:g?.startsWith(`grid`)?`flex`:void 0,opacity:ee?.97:te||B?.5:1,position:c?`absolute`:C?.includes(`sticky`)&&ee?`sticky`:`relative`,td:Object.assign({},kU({table:s,theme:e})),"td:after":G?Object.assign({backgroundColor:G},OU):void 0,top:c?0:re!==void 0&&ee?`${re*ae+(h||N?ie-1:0)}px`:void 0,transition:c?`none`:`all 150ms ease-in-out`,width:`100%`,zIndex:C?.includes(`sticky`)&&ee?2:0},U),children:[L?(0,J.jsx)(`td`,{style:{display:`flex`,width:L}}):null,(I??F).map((e,r)=>{let a=e;t&&(r=e.index,a=F[r]);let c={cell:a,numRows:n,rowRef:ce,staticColumnIndex:r,staticRowIndex:o,table:s},l=`${a.id}-${o}`;return a?_===`cells`&&a.column.columnDef.columnDefType===`data`&&!O&&!k&&A?.id!==a.id&&j?.id!==i.id?(0,J.jsx)(gW,Object.assign({},c),l):(0,J.jsx)(hW,Object.assign({},c),l):null}),R?(0,J.jsx)(`td`,{style:{display:`flex`,width:R}}):null]})),S&&!i.getIsGrouped()&&(0,J.jsx)(_W,{parentRowRef:ce,row:i,rowVirtualizer:a,staticRowIndex:o,table:s,virtualRow:c})]})},yW=(0,K.memo)(vW,(e,t)=>e.row===t.row&&e.staticRowIndex===t.staticRowIndex),bW=e=>{var{columnVirtualizer:t,table:n}=e,r=wU(e,[`columnVirtualizer`,`table`]);let{getBottomRows:i,getIsSomeRowsPinned:a,getRowModel:o,getState:s,getTopRows:c,options:{enableStickyFooter:l,enableStickyHeader:u,layoutMode:d,localization:f,memoMode:p,muiTableBodyProps:m,renderDetailPanel:h,renderEmptyRowsFallback:g,rowPinningDisplayMode:_},refs:{tableFooterRef:v,tableHeadRef:y,tablePaperRef:b}}=n,{columnFilters:x,globalFilter:S,isFullScreen:C,rowPinning:w}=s(),T=Object.assign(Object.assign({},$(m,{table:n})),r),E=(u||C)&&y.current?.clientHeight||0,D=l&&v.current?.clientHeight||0,O=(0,K.useMemo)(()=>!w.bottom?.length&&!w.top?.length?[]:o().rows.filter(e=>e.getIsPinned()).map(e=>e.id),[w,o().rows]),k=uW(n),A=lW(n,k),{virtualRows:j}=A??{},M={columnVirtualizer:t,numRows:k.length,table:n};return(0,J.jsxs)(J.Fragment,{children:[!_?.includes(`sticky`)&&a(`top`)&&(0,J.jsx)(uV,Object.assign({},T,{sx:e=>Object.assign({display:d?.startsWith(`grid`)?`grid`:void 0,position:`sticky`,top:E-1,zIndex:1},$(T?.sx,e)),children:c().map((e,t)=>{let n=Object.assign(Object.assign({},M),{row:e,staticRowIndex:t});return p===`rows`?(0,J.jsx)(yW,Object.assign({},n),e.id):(0,J.jsx)(vW,Object.assign({},n),e.id)})})),(0,J.jsx)(uV,Object.assign({},T,{sx:e=>Object.assign({display:d?.startsWith(`grid`)?`grid`:void 0,height:A?`${A.getTotalSize()}px`:void 0,minHeight:k.length?void 0:`100px`,position:`relative`},$(T?.sx,e)),children:T?.children??(k.length?(0,J.jsx)(J.Fragment,{children:(j??k).map((e,t)=>{let n=e;if(A){if(h){if(e.index%2==1)return null;t=e.index/2}else t=e.index;n=k[t]}let r=Object.assign(Object.assign({},M),{pinnedRowIds:O,row:n,rowVirtualizer:A,staticRowIndex:t,virtualRow:A?e:void 0}),i=`${n.id}-${n.index}`;return p===`rows`?(0,J.jsx)(yW,Object.assign({},r),i):(0,J.jsx)(vW,Object.assign({},r),i)})}):(0,J.jsx)(`tr`,{style:{display:d?.startsWith(`grid`)?`grid`:void 0},children:(0,J.jsx)(`td`,{colSpan:n.getVisibleLeafColumns().length,style:{display:d?.startsWith(`grid`)?`grid`:void 0},children:g?.({table:n})??(0,J.jsx)(ky,{sx:{color:`text.secondary`,fontStyle:`italic`,maxWidth:`min(100vw, ${b.current?.clientWidth??360}px)`,py:`2rem`,textAlign:`center`,width:`100%`},children:S||x.length?f.noResultsFound:f.noRecordsToDisplay})})}))})),!_?.includes(`sticky`)&&a(`bottom`)&&(0,J.jsx)(uV,Object.assign({},T,{sx:e=>Object.assign({bottom:D-1,display:d?.startsWith(`grid`)?`grid`:void 0,position:`sticky`,zIndex:1},$(T?.sx,e)),children:i().map((e,t)=>{let n=Object.assign(Object.assign({},M),{row:e,staticRowIndex:t});return p===`rows`?(0,J.jsx)(yW,Object.assign({},n),e.id):(0,J.jsx)(vW,Object.assign({},n),e.id)})}))]})},xW=(0,K.memo)(bW,(e,t)=>e.table.options.data===t.table.options.data),SW=e=>{var{footer:t,staticColumnIndex:n,table:r}=e,i=wU(e,[`footer`,`staticColumnIndex`,`table`]);let a=Ru(),{getState:o,options:{enableColumnPinning:s,muiTableFooterCellProps:c,enableKeyboardShortcuts:l}}=r,{density:u}=o(),{column:d}=t,{columnDef:f}=d,{columnDefType:p}=f,m=s&&f.columnDefType!==`group`&&d.getIsPinned(),h={column:d,table:r},g=Object.assign(Object.assign(Object.assign({},$(c,h)),$(f.muiTableFooterCellProps,h)),i);return(0,J.jsx)(xV,Object.assign({align:p===`group`?`center`:a.direction===`rtl`?`right`:`left`,colSpan:t.colSpan,"data-index":n,"data-pinned":!!m||void 0,tabIndex:l?0:void 0,variant:`footer`},g,{onKeyDown:e=>{var n;(n=g?.onKeyDown)==null||n.call(g,e),XH({event:e,cellValue:t.column.columnDef.footer,table:r})},sx:e=>Object.assign(Object.assign({fontWeight:`bold`,p:u===`compact`?`0.5rem`:u===`comfortable`?`1rem`:`1.5rem`,verticalAlign:`top`},AU({column:d,header:t,table:r,tableCellProps:g,theme:e})),$(g?.sx,e)),children:g.children??(t.isPlaceholder?null:$(f.Footer,{column:d,footer:t,table:r})??f.footer??null)}))},CW=e=>{var{columnVirtualizer:t,footerGroup:n,table:r}=e,i=wU(e,[`columnVirtualizer`,`footerGroup`,`table`]);let{options:{layoutMode:a,mrtTheme:{baseBackgroundColor:o},muiTableFooterRowProps:s}}=r,{virtualColumns:c,virtualPaddingLeft:l,virtualPaddingRight:u}=t??{};if(!n.headers?.some(e=>typeof e.column.columnDef.footer==`string`&&!!e.column.columnDef.footer||e.column.columnDef.Footer))return null;let d=Object.assign(Object.assign({},$(s,{footerGroup:n,table:r})),i);return(0,J.jsxs)(gV,Object.assign({},d,{sx:e=>Object.assign({backgroundColor:o,display:a?.startsWith(`grid`)?`flex`:void 0,position:`relative`,width:`100%`},$(d?.sx,e)),children:[l?(0,J.jsx)(`th`,{style:{display:`flex`,width:l}}):null,(c??n.headers).map((e,i)=>{let a=e;return t&&(i=e.index,a=n.headers[i]),a?(0,J.jsx)(SW,{footer:a,staticColumnIndex:i,table:r},a.id):null}),u?(0,J.jsx)(`th`,{style:{display:`flex`,width:u}}):null]}))},wW=e=>{var{columnVirtualizer:t,table:n}=e,r=wU(e,[`columnVirtualizer`,`table`]);let{getState:i,options:{enableStickyFooter:a,layoutMode:o,muiTableFooterProps:s},refs:{tableFooterRef:c}}=n,{isFullScreen:l}=i(),u=Object.assign(Object.assign({},$(s,{table:n})),r),d=(l||a)&&a!==!1,f=n.getFooterGroups();return f.some(e=>e.headers?.some(e=>typeof e.column.columnDef.footer==`string`&&!!e.column.columnDef.footer||e.column.columnDef.Footer))?(0,J.jsx)(zV,Object.assign({},u,{ref:e=>{c.current=e,u?.ref&&(u.ref.current=e)},sx:e=>Object.assign({bottom:d?0:void 0,display:o?.startsWith(`grid`)?`grid`:void 0,opacity:d?.97:void 0,outline:d?e.palette.mode===`light`?`1px solid ${e.palette.grey[300]}`:`1px solid ${e.palette.grey[700]}`:void 0,position:d?`sticky`:`relative`,zIndex:d?1:void 0},$(u?.sx,e)),children:f.map(e=>(0,J.jsx)(CW,{columnVirtualizer:t,footerGroup:e,table:n},e.id))})):null},TW=e=>[{divider:!1,label:e.filterFuzzy,option:`fuzzy`,symbol:`≈`},{divider:!1,label:e.filterContains,option:`contains`,symbol:`*`},{divider:!1,label:e.filterStartsWith,option:`startsWith`,symbol:`a`},{divider:!0,label:e.filterEndsWith,option:`endsWith`,symbol:`z`},{divider:!1,label:e.filterEquals,option:`equals`,symbol:`=`},{divider:!0,label:e.filterNotEquals,option:`notEquals`,symbol:`≠`},{divider:!1,label:e.filterBetween,option:`between`,symbol:`⇿`},{divider:!0,label:e.filterBetweenInclusive,option:`betweenInclusive`,symbol:`⬌`},{divider:!1,label:e.filterGreaterThan,option:`greaterThan`,symbol:`>`},{divider:!1,label:e.filterGreaterThanOrEqualTo,option:`greaterThanOrEqualTo`,symbol:`≥`},{divider:!1,label:e.filterLessThan,option:`lessThan`,symbol:`<`},{divider:!0,label:e.filterLessThanOrEqualTo,option:`lessThanOrEqualTo`,symbol:`≤`},{divider:!1,label:e.filterEmpty,option:`empty`,symbol:`∅`},{divider:!1,label:e.filterNotEmpty,option:`notEmpty`,symbol:`!∅`}],EW=[`between`,`betweenInclusive`,`inNumberRange`],DW=[`empty`,`notEmpty`],OW=[`arrIncludesSome`,`arrIncludesAll`,`arrIncludes`],kW=[`range-slider`,`date-range`,`datetime-range`,`range`],AW=e=>{var{anchorEl:t,header:n,onSelect:r,setAnchorEl:i,setFilterValue:a,table:o}=e,s=wU(e,[`anchorEl`,`header`,`onSelect`,`setAnchorEl`,`setFilterValue`,`table`]);let{getState:c,options:{columnFilterModeOptions:l,globalFilterModeOptions:u,localization:d,mrtTheme:{menuBackgroundColor:f},renderColumnFilterModeMenuItems:p,renderGlobalFilterModeMenuItems:m},setColumnFilterFns:h,setGlobalFilterFn:g}=o,{density:_,globalFilterFn:v}=c(),{column:y}=n??{},{columnDef:b}=y??{},x=y?.getFilterValue(),S=b?.columnFilterModeOptions??l;kW.includes(b?.filterVariant)&&(S=[...EW,...S??[]].filter(e=>EW.includes(e)));let C=(0,K.useMemo)(()=>TW(d).filter(e=>b?S===void 0||S?.includes(e.option):(!u||u.includes(e.option))&&[`contains`,`fuzzy`,`startsWith`].includes(e.option)),[]),w=e=>{let t=b?._filterFn??``;!n||!y?g(e):e!==t&&(h(t=>Object.assign(Object.assign({},t),{[n.id]:e})),DW.includes(e)?x!==` `&&!DW.includes(t)?y.setFilterValue(` `):x&&y.setFilterValue(x):b?.filterVariant===`multi-select`||OW.includes(e)?x instanceof String||x?.length?(y.setFilterValue([]),a?.([])):x&&y.setFilterValue(x):(b?.filterVariant)?.includes(`range`)||EW.includes(e)?!Array.isArray(x)||!x?.every(e=>e===``)&&!EW.includes(t)?(y.setFilterValue([``,``]),a?.(``)):y.setFilterValue(x):Array.isArray(x)?(y.setFilterValue(``),a?.(``)):x===` `&&DW.includes(t)?y.setFilterValue(void 0):y.setFilterValue(x)),i(null),r?.()},T=n&&b?b._filterFn:v;return(0,J.jsx)(Ev,Object.assign({MenuListProps:{dense:_===`compact`,sx:{backgroundColor:f}},anchorEl:t,anchorOrigin:{horizontal:`right`,vertical:`center`},disableScrollLock:!0,onClose:()=>i(null),open:!!t},s,{children:(n&&y&&b?b.renderColumnFilterModeMenuItems?.call(b,{column:y,internalFilterOptions:C,onSelectFilterMode:w,table:o})??p?.({column:y,internalFilterOptions:C,onSelectFilterMode:w,table:o}):m?.({internalFilterOptions:C,onSelectFilterMode:w,table:o}))??C.map(({divider:e,label:t,option:n,symbol:r},i)=>(0,J.jsx)(PU,{divider:e,icon:r,label:t,onClick:()=>w(n),selected:n===T,table:o,value:n},i))}))},jW=e=>{var{anchorEl:t,header:n,setAnchorEl:r,table:i}=e,a=wU(e,[`anchorEl`,`header`,`setAnchorEl`,`table`]);let{getAllLeafColumns:o,getState:s,options:{columnFilterDisplayMode:c,columnFilterModeOptions:l,enableColumnFilterModes:u,enableColumnFilters:d,enableColumnPinning:f,enableColumnResizing:p,enableGrouping:m,enableHiding:h,enableSorting:g,enableSortingRemoval:_,icons:{ClearAllIcon:v,DynamicFeedIcon:y,FilterListIcon:b,FilterListOffIcon:x,PushPinIcon:S,RestartAltIcon:C,SortIcon:w,ViewColumnIcon:T,VisibilityOffIcon:E},localization:D,mrtTheme:{menuBackgroundColor:O},renderColumnActionsMenuItems:k},refs:{filterInputRefs:A},setColumnFilterFns:j,setColumnOrder:M,setColumnSizingInfo:N,setShowColumnFilters:P}=i,{column:F}=n,{columnDef:I}=F,{columnSizing:L,columnVisibility:R,density:z,showColumnFilters:ee}=s(),te=F.getFilterValue(),[B,V]=(0,K.useState)(null),ne=()=>{F.clearSorting(),r(null)},re=()=>{F.toggleSorting(!1),r(null)},ie=()=>{F.toggleSorting(!0),r(null)},H=()=>{N(e=>Object.assign(Object.assign({},e),{isResizingColumn:!1})),F.resetSize(),r(null)},U=()=>{F.toggleVisibility(!1),r(null)},W=e=>{F.pin(e),r(null)},ae=()=>{F.toggleGrouping(),M(e=>[`mrt-row-expand`,...e]),r(null)},oe=()=>{F.setFilterValue(void 0),r(null),[`empty`,`notEmpty`].includes(I._filterFn)&&j(e=>Object.assign(Object.assign({},e),{[n.id]:ue?.[0]??`fuzzy`}))},se=()=>{P(!0),queueMicrotask(()=>(A.current?.[`${F.id}-0`])?.focus()),r(null)},ce=()=>{o().filter(e=>e.columnDef.enableHiding!==!1).forEach(e=>e.toggleVisibility(!0)),r(null)},G=e=>{e.stopPropagation(),V(e.currentTarget)},le=!!I.filterSelectOptions,ue=I?.columnFilterModeOptions??l,de=u&&I.enableColumnFilterModes!==!1&&!le&&(ue===void 0||!!ue?.length),fe=[...g&&F.getCanSort()?[_!==!1&&(0,J.jsx)(PU,{disabled:F.getIsSorted()===!1,icon:(0,J.jsx)(v,{}),label:D.clearSort,onClick:ne,table:i},0),(0,J.jsx)(PU,{disabled:F.getIsSorted()===`asc`,icon:(0,J.jsx)(w,{style:{transform:`rotate(180deg) scaleX(-1)`}}),label:D.sortByColumnAsc?.replace(`{column}`,String(I.header)),onClick:re,table:i},1),(0,J.jsx)(PU,{disabled:F.getIsSorted()===`desc`,divider:d||m||h,icon:(0,J.jsx)(w,{}),label:D.sortByColumnDesc?.replace(`{column}`,String(I.header)),onClick:ie,table:i},2)]:[],...d&&F.getCanFilter()?[(0,J.jsx)(PU,{disabled:!te||Array.isArray(te)&&!te.filter(e=>e).length,icon:(0,J.jsx)(x,{}),label:D.clearFilter,onClick:oe,table:i},3),c===`subheader`&&(0,J.jsx)(PU,{disabled:ee&&!u,divider:m||h,icon:(0,J.jsx)(b,{}),label:D.filterByColumn?.replace(`{column}`,String(I.header)),onClick:ee?G:se,onOpenSubMenu:de?G:void 0,table:i},4),de&&(0,J.jsx)(AW,{anchorEl:B,header:n,onSelect:se,setAnchorEl:V,table:i},5)].filter(Boolean):[],...m&&F.getCanGroup()?[(0,J.jsx)(PU,{divider:f,icon:(0,J.jsx)(y,{}),label:D[F.getIsGrouped()?`ungroupByColumn`:`groupByColumn`]?.replace(`{column}`,String(I.header)),onClick:ae,table:i},6)]:[],...f&&F.getCanPin()?[(0,J.jsx)(PU,{disabled:F.getIsPinned()===`left`||!F.getCanPin(),icon:(0,J.jsx)(S,{style:{transform:`rotate(90deg)`}}),label:D.pinToLeft,onClick:()=>W(`left`),table:i},7),(0,J.jsx)(PU,{disabled:F.getIsPinned()===`right`||!F.getCanPin(),icon:(0,J.jsx)(S,{style:{transform:`rotate(-90deg)`}}),label:D.pinToRight,onClick:()=>W(`right`),table:i},8),(0,J.jsx)(PU,{disabled:!F.getIsPinned(),divider:h,icon:(0,J.jsx)(S,{}),label:D.unpin,onClick:()=>W(!1),table:i},9)]:[],...p&&F.getCanResize()?[(0,J.jsx)(PU,{disabled:L[F.id]===void 0,icon:(0,J.jsx)(C,{}),label:D.resetColumnSize,onClick:H,table:i},10)]:[],...h?[(0,J.jsx)(PU,{disabled:!F.getCanHide(),icon:(0,J.jsx)(E,{}),label:D.hideColumn?.replace(`{column}`,String(I.header)),onClick:U,table:i},11),(0,J.jsx)(PU,{disabled:!Object.values(R).filter(e=>!e).length,icon:(0,J.jsx)(T,{}),label:D.showAllColumns?.replace(`{column}`,String(I.header)),onClick:ce,table:i},12)]:[]].filter(Boolean);return(0,J.jsx)(Ev,Object.assign({MenuListProps:{dense:z===`compact`,sx:{backgroundColor:O}},anchorEl:t,disableScrollLock:!0,onClose:()=>r(null),open:!!t},a,{children:I.renderColumnActionsMenuItems?.call(I,{closeMenu:()=>r(null),column:F,internalColumnMenuItems:fe,table:i})??k?.({closeMenu:()=>r(null),column:F,internalColumnMenuItems:fe,table:i})??fe}))},MW=e=>{var{header:t,table:n}=e,r=wU(e,[`header`,`table`]);let{options:{icons:{MoreVertIcon:i},localization:a,muiColumnActionsButtonProps:o}}=n,{column:s}=t,{columnDef:c}=s,[l,u]=(0,K.useState)(null),d=e=>{e.stopPropagation(),e.preventDefault(),u(e.currentTarget)},f=Object.assign(Object.assign(Object.assign({},$(o,{column:s,table:n})),$(c.muiColumnActionsButtonProps,{column:s,table:n})),r);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(pT,Object.assign({},NU(`top`),{title:f?.title??a.columnActions,children:(0,J.jsx)(Sb,Object.assign({"aria-label":a.columnActions,onClick:d,size:`small`},f,{sx:e=>Object.assign({"&:hover":{opacity:1},height:`2rem`,m:`-8px -4px`,opacity:.3,transition:`all 150ms`,width:`2rem`},$(f?.sx,e)),title:void 0,children:f?.children??(0,J.jsx)(i,{style:{transform:`scale(0.9)`}})}))})),l&&(0,J.jsx)(jW,{anchorEl:l,header:t,setAnchorEl:u,table:n})]})},NW=e=>{var{column:t,table:n}=e,r=wU(e,[`column`,`table`]);let{getState:i,options:{localization:a,muiFilterCheckboxProps:o}}=n,{density:s}=i(),{columnDef:c}=t,l=Object.assign(Object.assign(Object.assign({},$(o,{column:t,table:n})),$(c.muiFilterCheckboxProps,{column:t,table:n})),r),u=a.filterByColumn?.replace(`{column}`,c.header);return(0,J.jsx)(pT,Object.assign({},NU(),{title:l?.title??u,children:(0,J.jsx)(Db,{control:(0,J.jsx)(Eh,Object.assign({checked:t.getFilterValue()===`true`,color:t.getFilterValue()===void 0?`default`:`primary`,indeterminate:t.getFilterValue()===void 0,size:s===`compact`?`small`:`medium`},l,{onChange:(e,n)=>{var r;t.setFilterValue(t.getFilterValue()===void 0?`true`:t.getFilterValue()===`true`?`false`:void 0),(r=l?.onChange)==null||r.call(l,e,n)},onClick:e=>{var t;e.stopPropagation(),(t=l?.onClick)==null||t.call(l,e)},sx:e=>Object.assign({height:`2.5rem`,width:`2.5rem`},$(l?.sx,e))})),disableTypography:!0,label:l.title??u,sx:{color:`text.secondary`,fontWeight:`normal`,mt:`-4px`},title:void 0})}))},PW=e=>{var{header:t,rangeFilterIndex:n,table:r}=e,i=wU(e,[`header`,`rangeFilterIndex`,`table`]);let{options:{enableColumnFilterModes:a,icons:{CloseIcon:o,FilterListIcon:s},localization:c,manualFiltering:l,muiFilterAutocompleteProps:u,muiFilterDatePickerProps:d,muiFilterDateTimePickerProps:f,muiFilterTextFieldProps:p,muiFilterTimePickerProps:m},refs:{filterInputRefs:h},setColumnFilterFns:g}=r,{column:_}=t,{columnDef:v}=_,{filterVariant:y}=v,b={column:_,rangeFilterIndex:n,table:r},x=Object.assign(Object.assign(Object.assign({},$(p,b)),$(v.muiFilterTextFieldProps,b)),i),S=Object.assign(Object.assign({},$(u,b)),$(v.muiFilterAutocompleteProps,b)),C=Object.assign(Object.assign({},$(d,b)),$(v.muiFilterDatePickerProps,b)),w=Object.assign(Object.assign({},$(f,b)),$(v.muiFilterDateTimePickerProps,b)),T=Object.assign(Object.assign({},$(m,b)),$(v.muiFilterTimePickerProps,b)),{allowedColumnFilterOptions:E,currentFilterOption:D,facetedUniqueValues:O,isAutocompleteFilter:k,isDateFilter:A,isMultiSelectFilter:j,isRangeFilter:M,isSelectFilter:N,isTextboxFilter:P}=FH({header:t,table:r}),F=IH({header:t,table:r}),I=[`empty`,`notEmpty`].includes(D)?c[`filter${((D?.charAt)?.call(D,0))?.toUpperCase()+D?.slice(1)}`]:``,L=M?n===0?c.min:n===1?c.max:``:x?.placeholder??c.filterByColumn?.replace(`{column}`,String(v.header)),R=!(!a||v.enableColumnFilterModes===!1||n||E!==void 0&&!E?.length),[z,ee]=(0,K.useState)(null),[te,B]=(0,K.useState)(()=>j?_.getFilterValue()||[]:M?_.getFilterValue()?.[n]||``:k?typeof _.getFilterValue()==`string`?_.getFilterValue():``:_.getFilterValue()??``),[V,ne]=(0,K.useState)(()=>k&&_.getFilterValue()||null),re=(0,K.useCallback)(cd(e=>{M?_.setFilterValue(t=>{let r=t??[``,``];return r[n]=e??void 0,r}):_.setFilterValue(e??void 0)},P?l?400:200:1),[]),ie=e=>{B(e??``),re(e)},H=e=>{var t;let n=x.type===`date`?e.target.valueAsDate:x.type===`number`?e.target.valueAsNumber:e.target.value;ie(n),(t=x?.onChange)==null||t.call(x,e)},U=(e,t,n)=>{ie(t)},W=e=>{ne(e),re(BH(e).value)},ae=()=>{j?(B([]),_.setFilterValue([])):M?(B(``),_.setFilterValue(e=>{let t=Array.isArray(e)&&e||[``,``];return t[n]=void 0,t})):k?(ne(null),B(``)):(B(``),_.setFilterValue(void 0))},oe=()=>{B(``),_.setFilterValue(void 0),g(e=>Object.assign(Object.assign({},e),{[t.id]:E?.[0]??`fuzzy`}))},se=e=>{ee(e.currentTarget)},ce=(0,K.useRef)(!1);if((0,K.useEffect)(()=>{if(ce.current){let e=_.getFilterValue();e===void 0?ae():B(M&&n!==void 0?e[n]:e)}ce.current=!0},[_.getFilterValue()]),v.Filter)return(0,J.jsx)(J.Fragment,{children:v.Filter?.call(v,{column:_,header:t,rangeFilterIndex:n,table:r})});let G=!k&&!A&&!I?(0,J.jsx)(Mb,{position:`end`,sx:{mr:N||j?`20px`:void 0,visibility:(te?.length??0)>0?`visible`:`hidden`},children:(0,J.jsx)(pT,{placement:`right`,title:c.clearFilter??``,children:(0,J.jsx)(`span`,{children:(0,J.jsx)(Sb,{"aria-label":c.clearFilter,disabled:!te?.toString()?.length,onClick:ae,size:`small`,sx:{height:`2rem`,transform:`scale(0.9)`,width:`2rem`},children:(0,J.jsx)(o,{})})})})}):null,le=R?(0,J.jsxs)(Mb,{position:`start`,children:[(0,J.jsx)(pT,{title:c.changeFilterMode,children:(0,J.jsx)(`span`,{children:(0,J.jsx)(Sb,{"aria-label":c.changeFilterMode,onClick:se,size:`small`,sx:{height:`1.75rem`,width:`1.75rem`},children:(0,J.jsx)(s,{})})})}),I&&(0,J.jsx)(QS,{label:I,onDelete:oe})]}):null,ue=Object.assign(Object.assign({fullWidth:!0,helperText:R?(0,J.jsx)(`label`,{children:c.filterMode.replace(`{filterType}`,c[`filter${(D?.charAt(0))?.toUpperCase()+D?.slice(1)}`])}):null,inputRef:e=>{h.current[`${_.id}-${n??0}`]=e,x.inputRef&&=e},margin:`none`,placeholder:I||N||j?void 0:L,variant:`standard`},x),{slotProps:Object.assign(Object.assign({},x.slotProps),{formHelperText:Object.assign({sx:{fontSize:`0.75rem`,lineHeight:`0.8rem`,whiteSpace:`nowrap`}},x.slotProps?.formHelperText),input:Object.assign(G?{endAdornment:G,startAdornment:le}:{startAdornment:le},x.slotProps?.input),htmlInput:Object.assign({"aria-label":L,autoComplete:`off`,disabled:!!I,sx:{textOverflow:`ellipsis`,width:I?0:void 0},title:L},x.slotProps?.htmlInput)}),onKeyDown:e=>{var t;e.stopPropagation(),(t=x.onKeyDown)==null||t.call(x,e)},sx:e=>Object.assign({minWidth:A?`160px`:a&&n===0?`110px`:M?`100px`:I?`auto`:`120px`,mx:`-2px`,p:0,width:`calc(100% + 4px)`},$(x?.sx,e))}),de={onChange:e=>{ie(e)},value:te||null};return(0,J.jsxs)(J.Fragment,{children:[y?.startsWith(`time`)?(0,J.jsx)(nL,Object.assign({},de,T,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>ae()},T?.slotProps?.field),textField:Object.assign(Object.assign({},ue),T?.slotProps?.textField)}})):y?.startsWith(`datetime`)?(0,J.jsx)(SH,Object.assign({},de,w,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>ae()},w?.slotProps?.field),textField:Object.assign(Object.assign({},ue),w?.slotProps?.textField)}})):y?.startsWith(`date`)?(0,J.jsx)(aF,Object.assign({},de,C,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>ae()},C?.slotProps?.field),textField:Object.assign(Object.assign({},ue),C?.slotProps?.textField)}})):k?(0,J.jsx)(sD,Object.assign({freeSolo:!0,getOptionLabel:e=>BH(e).label,onChange:(e,t)=>W(t),options:F?.map(e=>BH(e))??[],inputValue:te,onInputChange:U},S,{renderInput:e=>(0,J.jsx)(fy,Object.assign({},ue,e,{slotProps:Object.assign(Object.assign(Object.assign({},e.slotProps),ue.slotProps),{input:Object.assign(Object.assign(Object.assign({},e.InputProps),e.slotProps?.input),{startAdornment:ue?.slotProps?.input?.startAdornment}),htmlInput:Object.assign(Object.assign(Object.assign({},e.inputProps),e.slotProps?.htmlInput),ue?.slotProps?.htmlInput)}),onClick:e=>e.stopPropagation()})),value:V})):(0,J.jsx)(fy,Object.assign({select:N||j},ue,{slotProps:Object.assign(Object.assign({},ue.slotProps),{inputLabel:Object.assign({shrink:N||j},ue.slotProps?.inputLabel),select:Object.assign({MenuProps:{disableScrollLock:!0},displayEmpty:!0,multiple:j,renderValue:j?e=>!Array.isArray(e)||e?.length===0?(0,J.jsx)(Q,{sx:{opacity:.5},children:L}):(0,J.jsx)(Q,{sx:{display:`flex`,flexWrap:`wrap`,gap:`2px`},children:e.map(e=>{let t=F?.find(t=>BH(t).value===e);return(0,J.jsx)(QS,{label:BH(t).label},e)})}):void 0},ue.slotProps?.select)}),onChange:H,onClick:e=>e.stopPropagation(),value:j?Array.isArray(te)?te:[]:te,children:(N||j)&&[(0,J.jsx)(Ry,{disabled:!0,divider:!0,hidden:!0,value:``,children:(0,J.jsx)(Q,{sx:{opacity:.5},children:L})},`p`),x.children??F?.map((e,t)=>{let{label:n,value:r}=BH(e);return(0,J.jsxs)(Ry,{sx:{alignItems:`center`,display:`flex`,gap:`0.5rem`,m:0},value:r,children:[j&&(0,J.jsx)(Eh,{checked:(_.getFilterValue()??[]).includes(r),sx:{mr:`0.5rem`}}),n,` `,!v.filterSelectOptions&&`(${O.get(r)})`]},`${t}-${r}`)})]})),(0,J.jsx)(AW,{anchorEl:z,header:t,setAnchorEl:ee,setFilterValue:B,table:r})]})},FW=e=>{var{header:t,table:n}=e,r=wU(e,[`header`,`table`]);return(0,J.jsx)(Q,Object.assign({},r,{sx:e=>Object.assign({display:`grid`,gap:`1rem`,gridTemplateColumns:`1fr 1fr`},$(r?.sx,e)),children:[0,1].map(e=>(0,J.jsx)(PW,{header:t,rangeFilterIndex:e,table:n},e))}))},IW=e=>{var{header:t,table:n}=e,r=wU(e,[`header`,`table`]);let{options:{enableColumnFilterModes:i,localization:a,muiFilterSliderProps:o},refs:{filterInputRefs:s}}=n,{column:c}=t,{columnDef:l}=c,u=l._filterFn,d=i&&l.enableColumnFilterModes!==!1,f=Object.assign(Object.assign(Object.assign({},$(o,{column:c,table:n})),$(l.muiFilterSliderProps,{column:c,table:n})),r),[p,m]=f.min!==void 0&&f.max!==void 0?[f.min,f.max]:c.getFacetedMinMaxValues()??[0,1];Array.isArray(p)&&(p=p[0]),Array.isArray(m)&&(m=m[0]),p===null&&(p=0),m===null&&(m=1);let[h,g]=(0,K.useState)([p,m]),_=c.getFilterValue(),v=(0,K.useRef)(!1);return(0,K.useEffect)(()=>{v.current&&(_===void 0?g([p,m]):Array.isArray(_)&&g(_)),v.current=!0},[_,p,m]),(0,J.jsxs)(Cb,{children:[(0,J.jsx)(gb,Object.assign({disableSwap:!0,max:m,min:p,onChange:(e,t)=>{g(t)},onChangeCommitted:(e,t)=>{Array.isArray(t)&&(t[0]<=p&&t[1]>=m?c.setFilterValue(void 0):c.setFilterValue(t))},onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&e.stopPropagation()},value:h,valueLabelDisplay:`auto`},f,{slotProps:{input:{ref:e=>{e&&(s.current[`${c.id}-0`]=e,f?.slotProps?.input?.ref&&(f.slotProps.input.ref=e))}}},sx:e=>Object.assign({m:`auto`,minWidth:`${c.getSize()-50}px`,mt:d?`6px`:`10px`,px:`4px`,width:`calc(100% - 8px)`},$(f?.sx,e))})),d?(0,J.jsx)(gg,{sx:{fontSize:`0.75rem`,lineHeight:`0.8rem`,m:`-3px -6px`,whiteSpace:`nowrap`},children:a.filterMode.replace(`{filterType}`,a[`filter${(u?.charAt(0))?.toUpperCase()+u?.slice(1)}`])}):null]})},LW=e=>{var{header:t,table:n}=e,r=wU(e,[`header`,`table`]);let{getState:i,options:{columnFilterDisplayMode:a}}=n,{showColumnFilters:o}=i(),{column:s}=t,{columnDef:c}=s,{isRangeFilter:l}=FH({header:t,table:n});return(0,J.jsx)(sR,Object.assign({in:o||a===`popover`,mountOnEnter:!0,unmountOnExit:!0},r,{children:c.filterVariant===`checkbox`?(0,J.jsx)(NW,{column:s,table:n}):c.filterVariant===`range-slider`?(0,J.jsx)(IW,{header:t,table:n}):l?(0,J.jsx)(FW,{header:t,table:n}):(0,J.jsx)(PW,{header:t,table:n})}))},RW=e=>{var{header:t,table:n}=e,r=wU(e,[`header`,`table`]);let{options:{columnFilterDisplayMode:i,icons:{FilterAltIcon:a},localization:o},refs:{filterInputRefs:s},setShowColumnFilters:c}=n,{column:l}=t,{columnDef:u}=l,d=l.getFilterValue(),[f,p]=(0,K.useState)(null),{currentFilterOption:m,isMultiSelectFilter:h,isRangeFilter:g,isSelectFilter:_}=FH({header:t,table:n}),v=IH({header:t,table:n}),y=e=>BH(v?.find(t=>BH(t).value===(e===void 0?d:d[e]))).label,b=Array.isArray(d)&&d.some(Boolean)||!!d&&!Array.isArray(d),x=i===`popover`&&!b?o.filterByColumn?.replace(`{column}`,String(u.header)):o.filteringByColumn.replace(`{column}`,String(u.header)).replace(`{filterType}`,m?o[`filter${m.charAt(0).toUpperCase()+m.slice(1)}`]:``).replace(`{filterValue}`,`"${Array.isArray(d)?d.map((e,t)=>h?y(t):e).join(`" ${g?o.and:o.or} "`):_?y():d}"`).replace(`" "`,``);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(b_,{in:i===`popover`||!!d&&!g||g&&(!!d?.[0]||!!d?.[1]),unmountOnExit:!0,children:(0,J.jsx)(Q,{component:`span`,sx:{flex:`0 0`},children:(0,J.jsx)(pT,{placement:`top`,title:x,children:(0,J.jsx)(Sb,Object.assign({disableRipple:!0,onClick:e=>{i===`popover`?p(e.currentTarget):c(!0),queueMicrotask(()=>{var e,t,n,r;(t=(e=s.current?.[`${l.id}-0`])?.focus)==null||t.call(e),(r=(n=s.current?.[`${l.id}-0`])?.select)==null||r.call(n)}),e.stopPropagation()},size:`small`},r,{sx:e=>Object.assign({height:`16px`,ml:`4px`,opacity:b?1:.3,p:`8px`,transform:`scale(0.75)`,transition:`all 150ms ease-in-out`,width:`16px`},$(r?.sx,e)),children:(0,J.jsx)(a,{})}))})})}),i===`popover`&&(0,J.jsx)(vv,{anchorEl:f,anchorOrigin:{horizontal:`center`,vertical:`top`},disableScrollLock:!0,onClick:e=>e.stopPropagation(),onClose:e=>{e.stopPropagation(),p(null)},onKeyDown:e=>e.key===`Enter`&&p(null),open:!!f,slotProps:{paper:{sx:{overflow:`visible`}}},transformOrigin:{horizontal:`center`,vertical:`bottom`},children:(0,J.jsx)(Q,{sx:{p:`1rem`},children:(0,J.jsx)(LW,{header:t,table:n})})})]})},zW=e=>{var{column:t,table:n,tableHeadCellRef:r}=e,i=wU(e,[`column`,`table`,`tableHeadCellRef`]);let{getState:a,options:{enableColumnOrdering:o,muiColumnDragHandleProps:s},setColumnOrder:c,setColumnPinning:l,setDraggingColumn:u,setHoveredColumn:d}=n,{columnDef:f}=t,{columnOrder:p,draggingColumn:m,hoveredColumn:h}=a(),g=Object.assign(Object.assign(Object.assign({},$(s,{column:t,table:n})),$(f.muiColumnDragHandleProps,{column:t,table:n})),i);return(0,J.jsx)(zU,Object.assign({},g,{onDragEnd:e=>{var n;if((n=g?.onDragEnd)==null||n.call(g,e),h?.id===`drop-zone`)t.toggleGrouping();else if(o&&h&&h?.id!==m?.id){let e=NH(t,h,p);c(e),l(({left:t=[],right:n=[]})=>({left:e.filter(e=>t.includes(e)),right:e.filter(e=>n.includes(e))}))}u(null),d(null)},onDragStart:e=>{var n;(n=g?.onDragStart)==null||n.call(g,e),u(t);try{e.dataTransfer.setDragImage(r.current,0,0)}catch(e){console.error(e)}},table:n}))},BW=e=>{var{header:t,table:n}=e,r=wU(e,[`header`,`table`]);let{getState:i,options:{columnResizeDirection:a,columnResizeMode:o},setColumnSizingInfo:s}=n,{density:c}=i(),{column:l}=t,u=t.getResizeHandler(),d=c===`compact`?`-8px`:c===`comfortable`?`-16px`:`-24px`,f=l.columnDef.columnDefType===`display`?`4px`:`0`;return(0,J.jsx)(Q,{className:`Mui-TableHeadCell-ResizeHandle-Wrapper`,onDoubleClick:()=>{s(e=>Object.assign(Object.assign({},e),{isResizingColumn:!1})),l.resetSize()},onMouseDown:u,onTouchStart:u,style:{transform:l.getIsResizing()&&o===`onEnd`?`translateX(${(a===`rtl`?-1:1)*(i().columnSizingInfo.deltaOffset??0)}px)`:void 0},sx:e=>({"&:active > hr":{backgroundColor:e.palette.info.main,opacity:t.subHeaders.length||o===`onEnd`?1:0},cursor:`col-resize`,left:a===`rtl`?f:void 0,ml:a===`rtl`?d:void 0,mr:a===`ltr`?d:void 0,position:`absolute`,px:`4px`,right:a===`ltr`?f:void 0}),children:(0,J.jsx)(vy,{className:`Mui-TableHeadCell-ResizeHandle-Divider`,flexItem:!0,orientation:`vertical`,sx:e=>Object.assign({borderRadius:`2px`,borderWidth:`2px`,height:`24px`,touchAction:`none`,transform:`translateX(4px)`,transition:l.getIsResizing()?void 0:`all 150ms ease-in-out`,userSelect:`none`,zIndex:4},$(r?.sx,e))})})},VW=e=>{var{header:t,table:n}=e,r=wU(e,[`header`,`table`]);let{getState:i,options:{icons:{ArrowDownwardIcon:a,SyncAltIcon:o},localization:s}}=n,{column:c}=t,{columnDef:l}=c,{isLoading:u,showSkeletons:d,sorting:f}=i(),p=!!c.getIsSorted(),m=u||d?``:c.getIsSorted()?c.getIsSorted()===`desc`?s.sortedByColumnDesc.replace(`{column}`,l.header):s.sortedByColumnAsc.replace(`{column}`,l.header):c.getNextSortingOrder()===`desc`?s.sortByColumnDesc.replace(`{column}`,l.header):s.sortByColumnAsc.replace(`{column}`,l.header),h=p?c.getIsSorted():void 0;return(0,J.jsx)(pT,{placement:`top`,title:m,children:(0,J.jsx)(kE,{badgeContent:f.length>1?c.getSortIndex()+1:0,overlap:`circular`,children:(0,J.jsx)(kH,Object.assign({IconComponent:p?a:e=>(0,J.jsx)(o,Object.assign({},e,{direction:h,style:{transform:`rotate(-90deg) scaleX(0.9) translateX(-1px)`}})),active:!0,"aria-label":m,direction:h,onClick:e=>{var n;e.stopPropagation(),(n=t.column.getToggleSortingHandler())==null||n(e)}},r,{sx:e=>Object.assign({".MuiTableSortLabel-icon":{color:`${e.palette.mode===`dark`?e.palette.text.primary:e.palette.text.secondary} !important`},flex:`0 0`,opacity:p?1:.3,transition:`all 150ms ease-in-out`,width:`3ch`},$(r?.sx,e))}))})})},HW=e=>{var{columnVirtualizer:t,header:n,staticColumnIndex:r,table:i}=e,a=wU(e,[`columnVirtualizer`,`header`,`staticColumnIndex`,`table`]);let o=Ru(),{getState:s,options:{columnFilterDisplayMode:c,columnResizeDirection:l,columnResizeMode:u,enableKeyboardShortcuts:d,enableColumnActions:f,enableColumnDragging:p,enableColumnOrdering:m,enableColumnPinning:h,enableGrouping:g,enableMultiSort:_,layoutMode:v,mrtTheme:{draggingBorderColor:y},muiTableHeadCellProps:b},refs:{tableHeadCellRefs:x},setHoveredColumn:S}=i,{columnSizingInfo:C,density:w,draggingColumn:T,grouping:E,hoveredColumn:D,showColumnFilters:O}=s(),{column:k}=n,{columnDef:A}=k,{columnDefType:j}=A,M=Object.assign(Object.assign(Object.assign({},$(b,{column:k,table:i})),$(A.muiTableHeadCellProps,{column:k,table:i})),a),N=h&&A.columnDefType!==`group`&&k.getIsPinned(),P=(f||A.enableColumnActions)&&A.enableColumnActions!==!1,F=p!==!1&&A.enableColumnDragging!==!1&&(p||m&&A.enableColumnOrdering!==!1||g&&A.enableGrouping!==!1&&!E.includes(k.id)),I=(0,K.useMemo)(()=>{let e=0;return k.getCanSort()&&(e+=1),P&&(e+=1.75),F&&(e+=1.5),e},[P,F]),L=(0,K.useMemo)(()=>{let e=C.isResizingColumn===k.id&&u===`onChange`&&!n.subHeaders.length,t=e?`2px solid ${y} !important`:T?.id===k.id?`1px dashed ${o.palette.grey[500]}`:D?.id===k.id?`2px dashed ${y}`:void 0;return e?l===`ltr`?{borderRight:t}:{borderLeft:t}:t?{borderLeft:t,borderRight:t,borderTop:t}:void 0},[T,D,C.isResizingColumn]),R=e=>{g&&D?.id===`drop-zone`&&S(null),m&&T&&j!==`group`&&S(A.enableColumnOrdering===!1?null:k)},z=e=>{A.enableColumnOrdering!==!1&&e.preventDefault()},ee=e=>{var t;(t=M?.onKeyDown)==null||t.call(M,e),XH({event:e,cellValue:n.column.columnDef.header,table:i,header:n})},te=$(A.Header,{column:k,header:n,table:i})??A.header;return(0,J.jsxs)(xV,Object.assign({align:j===`group`?`center`:o.direction===`rtl`?`right`:`left`,"aria-sort":k.getIsSorted()?k.getIsSorted()===`asc`?`ascending`:`descending`:`none`,colSpan:n.colSpan,"data-can-sort":k.getCanSort()||void 0,"data-index":r,"data-pinned":!!N||void 0,"data-sort":k.getIsSorted()||void 0,onDragEnter:R,onDragOver:z,ref:e=>{var n;e&&(x.current[k.id]=e,j!==`group`&&((n=t?.measureElement)==null||n.call(t,e)))},tabIndex:d?0:void 0},M,{onKeyDown:ee,sx:e=>Object.assign(Object.assign({"& :hover":{".MuiButtonBase-root":{opacity:1}},flexDirection:v?.startsWith(`grid`)?`column`:void 0,fontWeight:`bold`,overflow:`visible`,p:w===`compact`?`0.5rem`:w===`comfortable`?j===`display`?`0.75rem`:`1rem`:j===`display`?`1rem 1.25rem`:`1.5rem`,pb:j===`display`?0:O||w===`compact`?`0.4rem`:`0.6rem`,pt:j===`group`||w===`compact`?`0.25rem`:w===`comfortable`?`.75rem`:`1.25rem`,userSelect:_&&k.getCanSort()?`none`:void 0,verticalAlign:`top`},AU({column:k,header:n,table:i,tableCellProps:M,theme:e})),L),children:[n.isPlaceholder?null:M.children??(0,J.jsxs)(Q,{className:`Mui-TableHeadCell-Content`,sx:{alignItems:`center`,display:`flex`,flexDirection:M?.align===`right`?`row-reverse`:`row`,justifyContent:j===`group`||M?.align===`center`?`center`:k.getCanResize()?`space-between`:`flex-start`,position:`relative`,width:`100%`},children:[(0,J.jsxs)(Q,{className:`Mui-TableHeadCell-Content-Labels`,onClick:k.getToggleSortingHandler(),sx:{alignItems:`center`,cursor:k.getCanSort()&&j!==`group`?`pointer`:void 0,display:`flex`,flexDirection:M?.align===`right`?`row-reverse`:`row`,overflow:j===`data`?`hidden`:void 0,pl:M?.align===`center`?`${I}rem`:void 0},children:[(0,J.jsx)(Q,{className:`Mui-TableHeadCell-Content-Wrapper`,sx:{"&:hover":{textOverflow:`clip`},minWidth:`${Math.min(A.header?.length??0,4)}ch`,overflow:j===`data`?`hidden`:void 0,textOverflow:`ellipsis`,whiteSpace:(A.header?.length??0)<20?`nowrap`:`normal`},children:te}),k.getCanFilter()&&(0,J.jsx)(RW,{header:n,table:i}),k.getCanSort()&&(0,J.jsx)(VW,{header:n,table:i})]}),j!==`group`&&(0,J.jsxs)(Q,{className:`Mui-TableHeadCell-Content-Actions`,sx:{whiteSpace:`nowrap`},children:[F&&(0,J.jsx)(zW,{column:k,table:i,tableHeadCellRef:{current:x.current?.[k.id]}}),P&&(0,J.jsx)(MW,{header:n,table:i})]}),k.getCanResize()&&(0,J.jsx)(BW,{header:n,table:i})]}),c===`subheader`&&k.getCanFilter()&&(0,J.jsx)(LW,{header:n,table:i})]}))},UW=e=>{var{columnVirtualizer:t,headerGroup:n,table:r}=e,i=wU(e,[`columnVirtualizer`,`headerGroup`,`table`]);let{options:{enableStickyHeader:a,layoutMode:o,mrtTheme:{baseBackgroundColor:s},muiTableHeadRowProps:c}}=r,{virtualColumns:l,virtualPaddingLeft:u,virtualPaddingRight:d}=t??{},f=Object.assign(Object.assign({},$(c,{headerGroup:n,table:r})),i);return(0,J.jsxs)(gV,Object.assign({},f,{sx:e=>Object.assign({backgroundColor:s,boxShadow:`4px 0 8px ${oc(e.palette.common.black,.1)}`,display:o?.startsWith(`grid`)?`flex`:void 0,position:a&&o===`semantic`?`sticky`:`relative`,top:0},$(f?.sx,e)),children:[u?(0,J.jsx)(`th`,{style:{display:`flex`,width:u}}):null,(l??n.headers).map((e,i)=>{let a=e;return t&&(i=e.index,a=n.headers[i]),a?(0,J.jsx)(HW,{columnVirtualizer:t,header:a,staticColumnIndex:i,table:r},a.id):null}),d?(0,J.jsx)(`th`,{style:{display:`flex`,width:d}}):null]}))},WW=e=>{var{stackAlertBanner:t,table:n}=e,r=wU(e,[`stackAlertBanner`,`table`]);let{getFilteredSelectedRowModel:i,getCoreRowModel:a,getState:o,options:{enableRowSelection:s,enableSelectAll:c,localization:l,manualPagination:u,muiToolbarAlertBannerChipProps:d,muiToolbarAlertBannerProps:f,positionToolbarAlertBanner:p,renderToolbarAlertBannerContent:m,rowCount:h},refs:{tablePaperRef:g}}=n,{density:_,grouping:v,rowSelection:y,showAlertBanner:b}=o(),x=Object.assign(Object.assign({},$(f,{table:n})),r),S=$(d,{table:n}),C=h??a().rows.length,w=i().rows.length,T=(0,K.useMemo)(()=>u?Object.values(y).filter(Boolean).length:w,[y,C,u,w]),E=T>0?(0,J.jsxs)(Cb,{alignItems:`center`,direction:`row`,gap:`16px`,children:[(l.selectedCountOfRowCountRowsSelected?.replace(`{selectedCount}`,T.toLocaleString(l.language)))?.replace(`{rowCount}`,C.toLocaleString(l.language)),(0,J.jsx)(ah,{onClick:e=>KH({table:n})(e,!1,!0),size:`small`,sx:{p:`2px`},children:l.clearSelection})]}):null,D=v.length>0?(0,J.jsxs)(`span`,{children:[l.groupedBy,` `,v.map((e,t)=>(0,J.jsxs)(K.Fragment,{children:[t>0?l.thenBy:``,(0,J.jsx)(QS,Object.assign({label:n.getColumn(e).columnDef.header,onDelete:()=>n.getColumn(e).toggleGrouping()},S))]},`${t}-${e}`))]}):null;return(0,J.jsx)(sR,{in:b||!!E||!!D,timeout:t?200:0,children:(0,J.jsx)(hL,Object.assign({color:`info`,icon:!1},x,{sx:e=>Object.assign({"& .MuiAlert-message":{maxWidth:`calc(${g.current?.clientWidth??360}px - 1rem)`,width:`100%`},borderRadius:0,fontSize:`1rem`,left:0,mb:t?0:p===`bottom`?`-1rem`:void 0,p:0,position:`relative`,right:0,top:0,width:`100%`,zIndex:2},$(x?.sx,e)),children:m?.({groupedAlert:D,selectedAlert:E,table:n})??(0,J.jsxs)(J.Fragment,{children:[x?.title&&(0,J.jsx)(yL,{children:x.title}),(0,J.jsxs)(Cb,{sx:{p:p===`head-overlay`?_===`spacious`?`0.75rem 1.25rem`:_===`comfortable`?`0.5rem 0.75rem`:`0.25rem 0.5rem`:`0.5rem 1rem`},children:[x?.children,x?.children&&(E||D)&&(0,J.jsx)(`br`,{}),(0,J.jsxs)(Q,{sx:{display:`flex`},children:[s&&c&&p===`head-overlay`&&(0,J.jsx)(YU,{table:n}),` `,E]}),E&&D&&(0,J.jsx)(`br`,{}),D]})]})}))})},GW=e=>{var{columnVirtualizer:t,table:n}=e,r=wU(e,[`columnVirtualizer`,`table`]);let{getState:i,options:{enableStickyHeader:a,layoutMode:o,muiTableHeadProps:s,positionToolbarAlertBanner:c},refs:{tableHeadRef:l}}=n,{isFullScreen:u,showAlertBanner:d}=i(),f=Object.assign(Object.assign({},$(s,{table:n})),r),p=a||u;return(0,J.jsx)(GV,Object.assign({},f,{ref:e=>{l.current=e,f?.ref&&(f.ref.current=e)},sx:e=>Object.assign({display:o?.startsWith(`grid`)?`grid`:void 0,opacity:.97,position:p?`sticky`:`relative`,top:p&&o?.startsWith(`grid`)?0:void 0,zIndex:p?2:void 0},$(f?.sx,e)),children:c===`head-overlay`&&(d||n.getSelectedRowModel().rows.length>0)?(0,J.jsx)(`tr`,{style:{display:o?.startsWith(`grid`)?`grid`:void 0},children:(0,J.jsx)(`th`,{colSpan:n.getVisibleLeafColumns().length,style:{display:o?.startsWith(`grid`)?`grid`:void 0,padding:0},children:(0,J.jsx)(WW,{table:n})})}):n.getHeaderGroups().map(e=>(0,J.jsx)(UW,{columnVirtualizer:t,headerGroup:e,table:n},e.id))}))},KW=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getFlatHeaders:r,getState:i,options:{columns:a,enableStickyHeader:o,enableTableFooter:s,enableTableHead:c,layoutMode:l,memoMode:u,muiTableProps:d,renderCaption:f}}=t,{columnSizing:p,columnSizingInfo:m,columnVisibility:h,isFullScreen:g}=i(),_=Object.assign(Object.assign({},$(d,{table:t})),n),v=$(f,{table:t}),y=(0,K.useMemo)(()=>{let e=r(),t={};for(let n=0;n<e.length;n++){let r=e[n],i=r.getSize();t[`--header-${EU(r.id)}-size`]=i,t[`--col-${EU(r.column.id)}-size`]=i}return t},[a,p,m,h]),b={columnVirtualizer:cW(t),table:t};return(0,J.jsxs)(rV,Object.assign({stickyHeader:o||g},_,{style:Object.assign(Object.assign({},y),_?.style),sx:e=>Object.assign({borderCollapse:`separate`,display:l?.startsWith(`grid`)?`grid`:void 0,position:`relative`},$(_?.sx,e)),children:[!!v&&(0,J.jsx)(`caption`,{children:v}),c&&(0,J.jsx)(GW,Object.assign({},b)),u===`table-body`||m.isResizingColumn?(0,J.jsx)(xW,Object.assign({},b)):(0,J.jsx)(bW,Object.assign({},b)),s&&(0,J.jsx)(wW,Object.assign({},b))]}))},qW=e=>{var{table:t}=e,n=wU(e,[`table`]);let{options:{id:r,localization:i,mrtTheme:{baseBackgroundColor:a},muiCircularProgressProps:o}}=t,s=Object.assign(Object.assign({},$(o,{table:t})),n);return(0,J.jsx)(Q,{sx:{alignItems:`center`,backgroundColor:oc(a,.5),bottom:0,display:`flex`,justifyContent:`center`,left:0,maxHeight:`100vh`,position:`absolute`,right:0,top:0,width:`100%`,zIndex:3},children:s?.Component??(0,J.jsx)(qm,Object.assign({"aria-label":i.noRecordsToDisplay,id:`mrt-progress-${r}`},s))})},JW=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getState:r,options:{editDisplayMode:i,enableClickToCopy:a,enableEditing:o,icons:{ContentCopy:s,EditIcon:c},localization:l,mrtTheme:{menuBackgroundColor:u},renderCellActionMenuItems:d},refs:{actionCellRef:f}}=t,{actionCell:p,density:m}=r(),h=p,{row:g}=h,{column:_}=h,{columnDef:v}=_,y=e=>{e?.stopPropagation(),t.setActionCell(null),f.current=null},b=[($(a,h)===`context-menu`||$(v.enableClickToCopy,h)===`context-menu`)&&(0,J.jsx)(PU,{icon:(0,J.jsx)(s,{}),label:l.copy,onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(h.getValue()),y()},table:t},`mrt-copy`),$(o,g)&&i===`cell`&&(0,J.jsx)(PU,{icon:(0,J.jsx)(c,{}),label:l.edit,onClick:()=>{YH({cell:h,table:t}),y()},table:t},`mrt-edit`)].filter(Boolean),x={cell:h,closeMenu:y,column:_,internalMenuItems:b,row:g,table:t},S=v.renderCellActionMenuItems?.call(v,x)??d?.(x);return(!!S?.length||!!b?.length)&&(0,J.jsx)(Ev,Object.assign({MenuListProps:{dense:m===`compact`,sx:{backgroundColor:u}},anchorEl:f.current,disableScrollLock:!0,onClick:e=>e.stopPropagation(),onClose:y,open:!!h,transformOrigin:{horizontal:-100,vertical:8}},n,{children:S??b}))},YW=e=>{var{open:t,table:n}=e,r=wU(e,[`open`,`table`]);let{getState:i,options:{localization:a,muiCreateRowModalProps:o,muiEditRowDialogProps:s,onCreatingRowCancel:c,onEditingRowCancel:l,renderCreateRowDialogContent:u,renderEditRowDialogContent:d},setCreatingRow:f,setEditingRow:p}=n,{creatingRow:m,editingRow:h}=i(),g=m??h,_=Object.assign(Object.assign(Object.assign({},$(s,{row:g,table:n})),m&&$(o,{row:g,table:n})),r),v=g.getAllCells().filter(e=>e.column.columnDef.columnDefType===`data`).map(e=>(0,J.jsx)(mW,{cell:e,table:n},e.id));return(0,J.jsx)(vx,Object.assign({fullWidth:!0,maxWidth:`xs`,onClose:(e,t)=>{var r;m?(c?.({row:g,table:n}),f(null)):(l?.({row:g,table:n}),p(null)),g._valuesCache={},(r=_.onClose)==null||r.call(_,e,t)},open:t},_,{children:(m&&u?.({internalEditComponents:v,row:g,table:n})||d?.({internalEditComponents:v,row:g,table:n}))??(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Dx,{sx:{textAlign:`center`},children:a.edit}),(0,J.jsx)(jx,{children:(0,J.jsx)(`form`,{onSubmit:e=>e.preventDefault(),children:(0,J.jsx)(Cb,{sx:{gap:`32px`,paddingTop:`16px`,width:`100%`},children:v})})}),(0,J.jsx)(Sx,{sx:{p:`1.25rem`},children:(0,J.jsx)(TU,{row:g,table:n,variant:`text`})})]})}))},XW=typeof window<`u`?K.useLayoutEffect:K.useEffect,ZW=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getState:r,options:{createDisplayMode:i,editDisplayMode:a,enableCellActions:o,enableStickyHeader:s,muiTableContainerProps:c},refs:{bottomToolbarRef:l,tableContainerRef:u,topToolbarRef:d}}=t,{actionCell:f,creatingRow:p,editingRow:m,isFullScreen:h,isLoading:g,showLoadingOverlay:_}=r(),v=_!==!1&&(g||_),[y,b]=(0,K.useState)(0),x=Object.assign(Object.assign({},$(c,{table:t})),n);XW(()=>{let e=typeof document<`u`?d.current?.offsetHeight??0:0,t=typeof document<`u`?l?.current?.offsetHeight??0:0;b(e+t)});let S=i===`modal`&&p,C=a===`modal`&&m;return(0,J.jsxs)(ZB,Object.assign({"aria-busy":v,"aria-describedby":v?`mrt-progress`:void 0},x,{ref:e=>{e&&(u.current=e,x?.ref&&(x.ref.current=e))},style:Object.assign({maxHeight:h?`calc(100vh - ${y}px)`:void 0},x?.style),sx:e=>Object.assign({maxHeight:s?`clamp(350px, calc(100vh - ${y}px), 9999px)`:void 0,maxWidth:`100%`,overflow:`auto`,position:`relative`},$(x?.sx,e)),children:[v?(0,J.jsx)(qW,{table:t}):null,(0,J.jsx)(KW,{table:t}),(S||C)&&(0,J.jsx)(YW,{open:!0,table:t}),o&&f&&(0,J.jsx)(JW,{table:t})]}))},QW=e=>{var{isTopToolbar:t,table:n}=e,r=wU(e,[`isTopToolbar`,`table`]);let{getState:i,options:{muiLinearProgressProps:a}}=n,{isSaving:o,showProgressBars:s}=i(),c=Object.assign(Object.assign({},$(a,{isTopToolbar:t,table:n})),r);return(0,J.jsx)(sR,{in:s!==!1&&(s||o),mountOnEnter:!0,sx:{bottom:t?0:void 0,position:`absolute`,top:t?void 0:0,width:`100%`},unmountOnExit:!0,children:(0,J.jsx)(FL,Object.assign({"aria-busy":`true`,"aria-label":`Loading`,sx:{position:`relative`}},c))})},$W=[5,10,15,20,25,30,50,100],eG=e=>{var{position:t=`bottom`,table:n}=e,r=wU(e,[`position`,`table`]);let i=Ru(),a=lD(`(max-width: 720px)`),{getState:o,options:{enableToolbarInternalActions:s,icons:{ChevronLeftIcon:c,ChevronRightIcon:l,FirstPageIcon:u,LastPageIcon:d},id:f,localization:p,muiPaginationProps:m,paginationDisplayMode:h}}=n,{pagination:{pageIndex:g=0,pageSize:_=10}}=o(),v=Object.assign(Object.assign({},$(m,{table:n})),r),y=n.getRowCount(),b=n.getPageCount(),x=b>2,S=g*_,C=Math.min(g*_+_,y),w=v??{},{SelectProps:T={},disabled:E=!1,rowsPerPageOptions:D=$W,showFirstButton:O=x,showLastButton:k=x,showRowsPerPage:A=!0}=w,j=wU(w,[`SelectProps`,`disabled`,`rowsPerPageOptions`,`showFirstButton`,`showLastButton`,`showRowsPerPage`]),M=g<=0||E,N=C>=y||E;a&&T?.native!==!1&&(T.native=!0);let P=NU();return(0,J.jsxs)(Q,{className:`MuiTablePagination-root`,sx:{alignItems:`center`,display:`flex`,flexWrap:`wrap`,gap:`8px`,justifyContent:{md:`space-between`,sm:`center`},justifySelf:`flex-end`,mt:t===`top`&&s?`3rem`:void 0,position:`relative`,px:`8px`,py:`12px`,zIndex:2},children:[A&&(0,J.jsxs)(Q,{sx:{alignItems:`center`,display:`flex`,gap:`8px`},children:[(0,J.jsx)(cg,{htmlFor:`mrt-rows-per-page-${f}`,sx:{mb:0},children:p.rowsPerPage}),(0,J.jsx)(sy,Object.assign({MenuProps:{disableScrollLock:!0},disableUnderline:!0,disabled:E,inputProps:{"aria-label":p.rowsPerPage,id:`mrt-rows-per-page-${f}`},label:p.rowsPerPage,onChange:e=>n.setPageSize(+e.target.value),sx:{mb:0},value:_,variant:`standard`},T,{children:D.map(e=>{let t=typeof e==`number`?e:e.value,n=typeof e==`number`?`${e}`:e.label;return T?.children??(T?.native?(0,J.jsx)(`option`,{value:t,children:n},t):(0,J.jsx)(Ry,{sx:{m:0},value:t,children:n},t))})}))]}),h===`pages`?(0,J.jsx)(eR,Object.assign({count:b,disabled:E,onChange:(e,t)=>n.setPageIndex(t-1),page:g+1,renderItem:e=>(0,J.jsx)(YL,Object.assign({slots:{first:u,last:d,next:l,previous:c}},e)),showFirstButton:O,showLastButton:k},j)):h==="default"?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(ky,{align:`center`,component:`span`,sx:{m:`0 4px`,minWidth:`8ch`},variant:`body2`,children:`${C===0?0:(S+1).toLocaleString(p.language)}-${C.toLocaleString(p.language)} ${p.of} ${y.toLocaleString(p.language)}`}),(0,J.jsxs)(Q,{gap:`xs`,children:[O&&(0,J.jsx)(pT,Object.assign({},P,{title:p.goToFirstPage,children:(0,J.jsx)(`span`,{children:(0,J.jsx)(Sb,{"aria-label":p.goToFirstPage,disabled:M,onClick:()=>n.firstPage(),size:`small`,children:(0,J.jsx)(u,Object.assign({},MU(i)))})})})),(0,J.jsx)(pT,Object.assign({},P,{title:p.goToPreviousPage,children:(0,J.jsx)(`span`,{children:(0,J.jsx)(Sb,{"aria-label":p.goToPreviousPage,disabled:M,onClick:()=>n.previousPage(),size:`small`,children:(0,J.jsx)(c,Object.assign({},MU(i)))})})})),(0,J.jsx)(pT,Object.assign({},P,{title:p.goToNextPage,children:(0,J.jsx)(`span`,{children:(0,J.jsx)(Sb,{"aria-label":p.goToNextPage,disabled:N,onClick:()=>n.nextPage(),size:`small`,children:(0,J.jsx)(l,Object.assign({},MU(i)))})})})),k&&(0,J.jsx)(pT,Object.assign({},P,{title:p.goToLastPage,children:(0,J.jsx)(`span`,{children:(0,J.jsx)(Sb,{"aria-label":p.goToLastPage,disabled:N,onClick:()=>n.lastPage(),size:`small`,children:(0,J.jsx)(d,Object.assign({},MU(i)))})})}))]})]}):null]})},tG=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getState:r,options:{enableGrouping:i,localization:a},setHoveredColumn:o,setShowToolbarDropZone:s}=t,{draggingColumn:c,grouping:l,hoveredColumn:u,showToolbarDropZone:d}=r();return(0,K.useEffect)(()=>{t.options.state?.showToolbarDropZone!==void 0&&s(!!i&&!!c&&c.columnDef.enableGrouping!==!1&&!l.includes(c.id))},[i,c,l]),(0,J.jsx)(G_,{in:d,children:(0,J.jsx)(Q,Object.assign({className:`Mui-ToolbarDropZone`,onDragEnter:e=>{o({id:`drop-zone`})},onDragOver:e=>{e.preventDefault()}},n,{sx:e=>Object.assign({alignItems:`center`,backdropFilter:`blur(4px)`,backgroundColor:oc(e.palette.info.main,u?.id===`drop-zone`?.2:.1),border:`dashed ${e.palette.info.main} 2px`,boxSizing:`border-box`,display:`flex`,height:`100%`,justifyContent:`center`,position:`absolute`,width:`100%`,zIndex:4},$(n?.sx,e)),children:(0,J.jsx)(ky,{fontStyle:`italic`,children:a.dropToGroupBy.replace(`{column}`,c?.columnDef?.header??``)})}))})},nG=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getState:r,options:{enablePagination:i,muiBottomToolbarProps:a,positionPagination:o,positionToolbarAlertBanner:s,positionToolbarDropZone:c,renderBottomToolbarCustomActions:l},refs:{bottomToolbarRef:u}}=t,{isFullScreen:d}=r(),f=lD(`(max-width:720px)`),p=Object.assign(Object.assign({},$(a,{table:t})),n),m=f||!!l;return(0,J.jsxs)(Q,Object.assign({},p,{ref:e=>{e&&(u.current=e,p?.ref&&(p.ref.current=e))},sx:e=>Object.assign(Object.assign(Object.assign({},jU({table:t,theme:e})),{bottom:d?`0`:void 0,boxShadow:`0 1px 2px -1px ${oc(e.palette.grey[700],.5)} inset`,left:0,position:d?`fixed`:`relative`,right:0}),$(p?.sx,e)),children:[(0,J.jsx)(QW,{isTopToolbar:!1,table:t}),s===`bottom`&&(0,J.jsx)(WW,{stackAlertBanner:m,table:t}),[`both`,`bottom`].includes(c??``)&&(0,J.jsx)(tG,{table:t}),(0,J.jsxs)(Q,{sx:{alignItems:`center`,boxSizing:`border-box`,display:`flex`,justifyContent:`space-between`,p:`0.5rem`,width:`100%`},children:[l?l({table:t}):(0,J.jsx)(`span`,{}),(0,J.jsx)(Q,{sx:{display:`flex`,justifyContent:`flex-end`,position:m?`relative`:`absolute`,right:0,top:0},children:i&&[`both`,`bottom`].includes(o??``)&&(0,J.jsx)(eG,{position:`bottom`,table:t})})]})]}))},rG=e=>{var{column:t,table:n}=e,r=wU(e,[`column`,`table`]);let{options:{icons:{PushPinIcon:i},localization:a}}=n,o=e=>{t.pin(e)};return(0,J.jsx)(Q,Object.assign({},r,{sx:e=>Object.assign({minWidth:`70px`,textAlign:`center`},$(r?.sx,e)),children:t.getIsPinned()?(0,J.jsx)(pT,{title:a.unpin,children:(0,J.jsx)(Sb,{onClick:()=>o(!1),size:`small`,children:(0,J.jsx)(i,{})})}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(pT,{title:a.pinToLeft,children:(0,J.jsx)(Sb,{onClick:()=>o(`left`),size:`small`,children:(0,J.jsx)(i,{style:{transform:`rotate(90deg)`}})})}),(0,J.jsx)(pT,{title:a.pinToRight,children:(0,J.jsx)(Sb,{onClick:()=>o(`right`),size:`small`,children:(0,J.jsx)(i,{style:{transform:`rotate(-90deg)`}})})})]})}))},iG=e=>{var{allColumns:t,column:n,hoveredColumn:r,isNestedColumns:i,setHoveredColumn:a,table:o}=e,s=wU(e,[`allColumns`,`column`,`hoveredColumn`,`isNestedColumns`,`setHoveredColumn`,`table`]);let{getState:c,options:{enableColumnOrdering:l,enableColumnPinning:u,enableHiding:d,localization:f,mrtTheme:{draggingBorderColor:p}},setColumnOrder:m,setColumnPinning:h}=o,{columnOrder:g}=c(),{columnDef:_}=n,{columnDefType:v}=_,y=n.getIsVisible(),b=e=>{var t,n;v===`group`?(n=(t=e?.columns)?.forEach)==null||n.call(t,e=>{e.toggleVisibility(!y)}):e.toggleVisibility()},x=(0,K.useRef)(null),[S,C]=(0,K.useState)(!1);return!_.header||_.visibleInShowHideMenu===!1?null:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ry,Object.assign({disableRipple:!0,onDragEnter:e=>{!S&&_.enableColumnOrdering!==!1&&a(n)},ref:x},s,{sx:e=>Object.assign({alignItems:`center`,justifyContent:`flex-start`,my:0,opacity:S?.5:1,outline:S?`2px dashed ${e.palette.grey[500]}`:r?.id===n.id?`2px dashed ${p}`:`none`,outlineOffset:`-2px`,pl:`${(n.depth+.5)*2}rem`,py:`6px`},$(s?.sx,e)),children:(0,J.jsxs)(Q,{sx:{display:`flex`,flexWrap:`nowrap`,gap:`8px`},children:[v!==`group`&&l&&!i&&(_.enableColumnOrdering===!1?(0,J.jsx)(Q,{sx:{width:`28px`}}):(0,J.jsx)(zU,{onDragEnd:e=>{if(C(!1),a(null),r){let e=NH(n,r,g);m(e),h(({left:t=[],right:n=[]})=>({left:e.filter(e=>t.includes(e)),right:e.filter(e=>n.includes(e))}))}},onDragStart:e=>{C(!0);try{e.dataTransfer.setDragImage(x.current,0,0)}catch(e){console.error(e)}},table:o})),u&&(n.getCanPin()?(0,J.jsx)(rG,{column:n,table:o}):(0,J.jsx)(Q,{sx:{width:`70px`}})),d?(0,J.jsx)(Db,{checked:y,componentsProps:{typography:{sx:{mb:0,opacity:v===`display`?.5:1}}},control:(0,J.jsx)(pT,Object.assign({},NU(),{title:f.toggleVisibility,children:(0,J.jsx)(Ph,{})})),disabled:!n.getCanHide(),label:_.header,onChange:()=>b(n)}):(0,J.jsx)(ky,{sx:{alignSelf:`center`},children:_.header})]})})),n.columns?.map((e,n)=>(0,J.jsx)(iG,{allColumns:t,column:e,hoveredColumn:r,isNestedColumns:i,setHoveredColumn:a,table:o},`${n}-${e.id}`))]})},aG=e=>{var{anchorEl:t,setAnchorEl:n,table:r}=e,i=wU(e,[`anchorEl`,`setAnchorEl`,`table`]);let{getAllColumns:a,getAllLeafColumns:o,getCenterLeafColumns:s,getIsAllColumnsVisible:c,getIsSomeColumnsPinned:l,getIsSomeColumnsVisible:u,getLeftLeafColumns:d,getRightLeafColumns:f,getState:p,initialState:m,options:{enableColumnOrdering:h,enableColumnPinning:g,enableHiding:_,localization:v,mrtTheme:{menuBackgroundColor:y}}}=r,{columnOrder:b,columnPinning:x,density:S}=p(),C=e=>{o().filter(e=>e.columnDef.enableHiding!==!1).forEach(t=>t.toggleVisibility(e))},w=(0,K.useMemo)(()=>{let e=a();return b.length>0&&!e.some(e=>e.columnDef.columnDefType===`group`)?[...d(),...Array.from(new Set(b)).map(e=>s().find(t=>t?.id===e)),...f()].filter(Boolean):e},[b,x,a(),s(),d(),f()]),T=w.some(e=>e.columnDef.columnDefType===`group`),E=(0,K.useMemo)(()=>b.length!==m.columnOrder.length||!b.every((e,t)=>e===m.columnOrder[t]),[b,m.columnOrder]),[D,O]=(0,K.useState)(null);return(0,J.jsxs)(Ev,Object.assign({MenuListProps:{dense:S===`compact`,sx:{backgroundColor:y}},anchorEl:t,disableScrollLock:!0,onClose:()=>n(null),open:!!t},i,{children:[(0,J.jsxs)(Q,{sx:{display:`flex`,justifyContent:`space-between`,p:`0.5rem`,pt:0},children:[_&&(0,J.jsx)(ah,{disabled:!u(),onClick:()=>C(!1),children:v.hideAll}),h&&(0,J.jsx)(ah,{onClick:()=>r.setColumnOrder(sU(r.options,!0)),disabled:!E,children:v.resetOrder}),g&&(0,J.jsx)(ah,{disabled:!l(),onClick:()=>r.resetColumnPinning(!0),children:v.unpinAll}),_&&(0,J.jsx)(ah,{disabled:c(),onClick:()=>C(!0),children:v.showAll})]}),(0,J.jsx)(vy,{}),w.map((e,t)=>(0,J.jsx)(iG,{allColumns:w,column:e,hoveredColumn:D,isNestedColumns:T,setHoveredColumn:O,table:r},`${t}-${e.id}`))]}))},oG=e=>{var{table:t}=e,n=wU(e,[`table`]);let{options:{icons:{ViewColumnIcon:r},localization:i}}=t,[a,o]=(0,K.useState)(null);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(pT,{title:n?.title??i.showHideColumns,children:(0,J.jsx)(Sb,Object.assign({"aria-label":i.showHideColumns,onClick:e=>{o(e.currentTarget)}},n,{title:void 0,children:(0,J.jsx)(r,{})}))}),a&&(0,J.jsx)(aG,{anchorEl:a,setAnchorEl:o,table:t})]})},sG=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getState:r,options:{icons:{DensityLargeIcon:i,DensityMediumIcon:a,DensitySmallIcon:o},localization:s},setDensity:c}=t,{density:l}=r();return(0,J.jsx)(pT,{title:n?.title??s.toggleDensity,children:(0,J.jsx)(Sb,Object.assign({"aria-label":s.toggleDensity,onClick:()=>{c(l===`comfortable`?`compact`:l===`compact`?`spacious`:`comfortable`)}},n,{title:void 0,children:l===`compact`?(0,J.jsx)(o,{}):l===`comfortable`?(0,J.jsx)(a,{}):(0,J.jsx)(i,{})}))})},cG=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getState:r,options:{icons:{FilterListIcon:i,FilterListOffIcon:a},localization:o},setShowColumnFilters:s}=t,{showColumnFilters:c}=r();return(0,J.jsx)(pT,{title:n?.title??o.showHideFilters,children:(0,J.jsx)(Sb,Object.assign({"aria-label":o.showHideFilters,onClick:()=>{s(!c)}},n,{title:void 0,children:c?(0,J.jsx)(a,{}):(0,J.jsx)(i,{})}))})},lG=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getState:r,options:{icons:{FullscreenExitIcon:i,FullscreenIcon:a},localization:o},setIsFullScreen:s}=t,{isFullScreen:c}=r(),[l,u]=(0,K.useState)(!1);return(0,J.jsx)(pT,{open:l,title:n?.title??o.toggleFullScreen,children:(0,J.jsx)(Sb,Object.assign({"aria-label":o.toggleFullScreen,onBlur:()=>u(!1),onClick:()=>{u(!1),s(!c)},onFocus:()=>u(!0),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)},n,{title:void 0,children:c?(0,J.jsx)(i,{}):(0,J.jsx)(a,{})}))})},uG=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getState:r,options:{icons:{SearchIcon:i,SearchOffIcon:a},localization:o},refs:{searchInputRef:s},setShowGlobalFilter:c}=t,{globalFilter:l,showGlobalFilter:u}=r();return(0,J.jsx)(pT,{title:n?.title??o.showHideSearch,children:(0,J.jsx)(Sb,Object.assign({"aria-label":n?.title??o.showHideSearch,disabled:!!l&&u,onClick:()=>{c(!u),queueMicrotask(()=>s.current?.focus())}},n,{title:void 0,children:u?(0,J.jsx)(a,{}):(0,J.jsx)(i,{})}))})},dG=e=>{var{table:t}=e,n=wU(e,[`table`]);let{options:{columnFilterDisplayMode:r,enableColumnFilters:i,enableColumnOrdering:a,enableColumnPinning:o,enableDensityToggle:s,enableFilters:c,enableFullScreenToggle:l,enableGlobalFilter:u,enableHiding:d,initialState:f,renderToolbarInternalActions:p}}=t;return(0,J.jsx)(Q,Object.assign({},n,{sx:e=>Object.assign({alignItems:`center`,display:`flex`,zIndex:3},$(n?.sx,e)),children:p?.({table:t})??(0,J.jsxs)(J.Fragment,{children:[c&&u&&!f?.showGlobalFilter&&(0,J.jsx)(uG,{table:t}),c&&i&&r!==`popover`&&(0,J.jsx)(cG,{table:t}),(d||a||o)&&(0,J.jsx)(oG,{table:t}),s&&(0,J.jsx)(sG,{table:t}),l&&(0,J.jsx)(lG,{table:t})]})}))},fG=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getState:r,options:{enableGlobalFilterModes:i,icons:{CloseIcon:a,SearchIcon:o},localization:s,manualFiltering:c,muiSearchTextFieldProps:l},refs:{searchInputRef:u},setGlobalFilter:d}=t,{globalFilter:f,showGlobalFilter:p}=r(),m=Object.assign(Object.assign({},$(l,{table:t})),n),h=(0,K.useRef)(!1),[g,_]=(0,K.useState)(null),[v,y]=(0,K.useState)(f??``),b=(0,K.useCallback)(cd(e=>{d(e.target.value??void 0)},c?500:250),[]),x=e=>{y(e.target.value),b(e)},S=e=>{_(e.currentTarget)},C=()=>{y(``),d(void 0)};return(0,K.useEffect)(()=>{h.current&&(f===void 0?C():y(f)),h.current=!0},[f]),(0,J.jsxs)(sR,{in:p,mountOnEnter:!0,orientation:`horizontal`,unmountOnExit:!0,children:[(0,J.jsx)(fy,Object.assign({inputProps:Object.assign({autoComplete:`off`},m.inputProps),onChange:x,placeholder:s.search,size:`small`,value:v??``,variant:`outlined`},m,{InputProps:Object.assign(Object.assign({endAdornment:(0,J.jsx)(Mb,{position:`end`,children:(0,J.jsx)(pT,{title:s.clearSearch??``,children:(0,J.jsx)(`span`,{children:(0,J.jsx)(Sb,{"aria-label":s.clearSearch,disabled:!v?.length,onClick:C,size:`small`,children:(0,J.jsx)(a,{})})})})}),startAdornment:i?(0,J.jsx)(Mb,{position:`start`,children:(0,J.jsx)(pT,{title:s.changeSearchMode,children:(0,J.jsx)(Sb,{"aria-label":s.changeSearchMode,onClick:S,size:`small`,sx:{height:`1.75rem`,width:`1.75rem`},children:(0,J.jsx)(o,{})})})}):(0,J.jsx)(o,{style:{marginRight:`4px`}})},m.InputProps),{sx:e=>Object.assign({mb:0},$(m?.InputProps?.sx,e))}),inputRef:e=>{u.current=e,m?.inputRef&&(m.inputRef=e)}})),(0,J.jsx)(AW,{anchorEl:g,onSelect:C,setAnchorEl:_,table:t})]})},pG=({table:e})=>{let{getState:t,options:{enableGlobalFilter:n,enablePagination:r,enableToolbarInternalActions:i,muiTopToolbarProps:a,positionGlobalFilter:o,positionPagination:s,positionToolbarAlertBanner:c,positionToolbarDropZone:l,renderTopToolbarCustomActions:u},refs:{topToolbarRef:d}}=e,{isFullScreen:f,showGlobalFilter:p}=t(),m=lD(`(max-width:720px)`),h=lD(`(max-width:1024px)`),g=$(a,{table:e}),_=m||!!u||p&&h,v={sx:h?void 0:{zIndex:2},table:e};return(0,J.jsxs)(Q,Object.assign({},g,{ref:e=>{d.current=e,g?.ref&&(g.ref.current=e)},sx:t=>Object.assign(Object.assign(Object.assign({},jU({table:e,theme:t})),{position:f?`sticky`:`relative`,top:f?`0`:void 0}),$(g?.sx,t)),children:[c===`top`&&(0,J.jsx)(WW,{stackAlertBanner:_,table:e}),[`both`,`top`].includes(l??``)&&(0,J.jsx)(tG,{table:e}),(0,J.jsxs)(Q,{sx:{alignItems:`flex-start`,boxSizing:`border-box`,display:`flex`,gap:`0.5rem`,justifyContent:`space-between`,p:`0.5rem`,position:_?`relative`:`absolute`,right:0,top:0,width:`100%`},children:[n&&o===`left`&&(0,J.jsx)(fG,Object.assign({},v)),u?.({table:e})??(0,J.jsx)(`span`,{}),i?(0,J.jsxs)(Q,{sx:{alignItems:`center`,display:`flex`,flexWrap:`wrap-reverse`,gap:`0.5rem`,justifyContent:`flex-end`},children:[n&&o===`right`&&(0,J.jsx)(fG,Object.assign({},v)),(0,J.jsx)(dG,{table:e})]}):n&&o===`right`&&(0,J.jsx)(fG,Object.assign({},v))]}),r&&[`both`,`top`].includes(s??``)&&(0,J.jsx)(eG,{position:`top`,table:e}),(0,J.jsx)(QW,{isTopToolbar:!0,table:e})]}))},mG=e=>{var{table:t}=e,n=wU(e,[`table`]);let{getState:r,options:{enableBottomToolbar:i,enableTopToolbar:a,mrtTheme:{baseBackgroundColor:o},muiTablePaperProps:s,renderBottomToolbar:c,renderTopToolbar:l},refs:{tablePaperRef:u}}=t,{isFullScreen:d}=r(),f=Object.assign(Object.assign({},$(s,{table:t})),n),p=Ru();return(0,J.jsxs)(lv,Object.assign({elevation:2,onKeyDown:e=>e.key===`Escape`&&t.setIsFullScreen(!1)},f,{ref:e=>{u.current=e,f?.ref&&(f.ref.current=e)},style:Object.assign(Object.assign({},d?{bottom:0,height:`100dvh`,left:0,margin:0,maxHeight:`100dvh`,maxWidth:`100dvw`,padding:0,position:`fixed`,right:0,top:0,width:`100dvw`,zIndex:p.zIndex.modal}:{}),f?.style),sx:e=>Object.assign({backgroundColor:o,backgroundImage:`unset`,overflow:`hidden`,transition:`all 100ms ease-in-out`},$(f?.sx,e)),children:[a&&($(l,{table:t})??(0,J.jsx)(pG,{table:t})),(0,J.jsx)(ZW,{table:t}),i&&($(c,{table:t})??(0,J.jsx)(nG,{table:t}))]}))},hG=e=>e.table!==void 0,gG=e=>{let t;return t=hG(e)?e.table:oW(e),(0,J.jsx)(mG,{table:t})},_G={hide:-1,base:0,docked:10,sticky:1100,appBar:1100,banner:1150,overlay:1200,drawer:1200,modal:1300,popover:1400,snackbar:1400,tooltip:1500},vG={narrow:360,compact:480,regular:900,wide:1100};function yG(e){return`@container (max-width: ${(typeof e==`number`?e:vG[e])-.02}px)`}var bG={extraNarrow:300,narrow:400,medium:550,wide:700,extraWide:1040},xG={spacing:Ix,spacingUnit:8,radius:_,radiusRoles:v,baseRadius:y,hooks:P,typography:qe,zIndex:_G,drawerWidths:sr,controlHeights:cr,chipHeights:lr};lr.small,Ue.xs,lr.medium,Ue.base,{...LT};function SG(e,{min:t,max:n}){return Math.round(Math.min(n,Math.max(t,e)))}function CG({edge:e,from:t,start:n,at:r},i){return SG(t+(e===`start`?n-r:r-n),i)}function wG(e,t,{orientation:n,edge:r,value:i,min:a,max:o,step:s,largeStep:c}){let l=t?c:s,u=n===`vertical`,d=u?`ArrowLeft`:`ArrowUp`,f=u?`ArrowRight`:`ArrowDown`;return e===(r===`start`?d:f)?SG(i+l,{min:a,max:o}):e===(r===`start`?f:d)?SG(i-l,{min:a,max:o}):e===`Home`?a:e===`End`?o:null}var TG=6,EG=2,DG=(0,K.forwardRef)(function({orientation:e,edge:t=`start`,value:n,min:r,max:i,onChange:a,onChangeCommitted:o,label:s,step:c=16,largeStep:l=48,...u},d){let f=e===`vertical`,p={min:r,max:i},m=(0,K.useRef)(null),h=e=>{e.button===0&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),m.current={start:f?e.clientX:e.clientY,from:n,last:n})},g=e=>{let n=m.current;if(!n)return;let r=f?e.clientX:e.clientY,i=CG({edge:t,from:n.from,start:n.start,at:r},p);i!==n.last&&(n.last=i,a(i))},_=e=>{let t=m.current;t&&(m.current=null,e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),t.last!==t.from&&o?.(t.last))},v=s=>{let u=wG(s.key,s.shiftKey,{orientation:e,edge:t,value:n,min:r,max:i,step:c,largeStep:l});u!==null&&(s.preventDefault(),u!==n&&(a(u),o?.(u)))},y=f?{top:0,bottom:0,width:TG,cursor:`col-resize`,...t===`start`?{left:-3}:{right:-3}}:{left:0,right:0,height:TG,cursor:`row-resize`,...t===`start`?{top:-3}:{bottom:-3}},b=(TG-EG)/2,x=f?{left:b,top:0,bottom:0,width:EG}:{top:b,left:0,right:0,height:EG};return(0,J.jsx)(Q,{ref:d,role:`separator`,tabIndex:0,"aria-label":s,"aria-orientation":e,"aria-valuenow":n,"aria-valuemin":r,"aria-valuemax":i,...u,onPointerDown:h,onPointerMove:g,onPointerUp:_,onPointerCancel:_,onKeyDown:v,sx:{position:`absolute`,zIndex:_G.docked,...y,touchAction:`none`,outline:`none`,"&::after":{content:`""`,position:`absolute`,...x,backgroundColor:`transparent`,transition:$n(`background-color`,`fast`)},"&:hover::after, &:focus-visible::after, &:active::after":{backgroundColor:`primary.main`}}})});[`M29.7902 17.3372H1.71132C0.570597 17.3372 0 18.037 0 19.4366`,`C0 20.7067 0.570597 21.3417 1.71132 21.3417H10.9844L4.69897 27.6274`,`C3.83135 28.4953 3.87734 29.4092 4.8374 30.3694C5.76603 31.2978 6.66133 31.3282 7.52379 30.4603`,`L13.7741 24.2097V33.1589C13.7741 34.3863 14.4305 35 15.7435 35`,`C17.0991 35 17.7767 34.3863 17.7767 33.1589V23.9225L24.3123 30.4582`,`C25.1804 31.3261 26.0757 31.2958 26.9987 30.3673C27.963 29.403 28.0089 28.4891 27.1371 27.6253`,`L20.8596 21.3396H29.7817C31.0093 21.3396 31.623 20.6833 31.623 19.3705`,`C31.6287 18.015 31.0177 17.3372 29.7902 17.3372Z`].join(``),[`M15.8444 3.94869C14.9631 3.94351 14.0946 4.15647 13.3152 4.56859`,`C12.5813 4.9495 11.9708 5.53234 11.5569 6.24849C10.6954 7.83129 11.9351 11.2779 12.059 11.8916`,`C12.1829 12.5052 11.8732 12.995 11.3566 13.5136C10.5133 14.3546 9.50915 14.5158 8.78793 13.8133`,`C7.94095 12.9867 6.89127 9.13925 7.2981 6.67001C7.7054 4.20078 9.77803 1.61583 12.5841 0.566147`,`C14.6928 -0.188716 16.9982 -0.188716 19.1075 0.566147C21.9093 1.61583 23.988 4.21111 24.393 6.67001`,`C24.7979 9.12892 23.7501 12.9888 22.9031 13.8133C22.18 14.5158 21.1754 14.3546 20.3345 13.5136`,`C19.816 12.995 19.5082 12.5032 19.6321 11.8916C19.756 11.28 20.9938 7.83129 20.1342 6.24849`,`C19.7194 5.53295 19.1093 4.95025 18.3759 4.56859C17.596 4.1567 16.7265 3.94377 15.8444 3.94869Z`].join(``),`${R(`radiusScale`,String(z))}${R(`countRadius`,String(v.kbd))}`,vG.regular,vG.wide;var OG=`12rem`,kG=`compact`,AG=e=>e!=null&&e!==!1;function jG({start:e,center:t,end:n}){let r={[yG(kG)]:{flex:`1 1 100%`,minWidth:0,ml:0}};return(0,J.jsx)(Q,{"data-bar":!0,sx:{containerType:`inline-size`,minWidth:0},children:(0,J.jsxs)(Q,{sx:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,columnGap:2,rowGap:1},children:[AG(e)?(0,J.jsx)(Q,{"data-bar-start":!0,sx:{flex:`0 0 auto`,maxWidth:`100%`,...r},children:e}):null,AG(t)?(0,J.jsx)(Q,{"data-bar-center":!0,sx:{flex:`1 1 0`,minWidth:`min(100%, ${OG})`,...r},children:t}):null,AG(n)?(0,J.jsx)(Q,{"data-bar-end":!0,sx:{flex:`0 0 auto`,maxWidth:`100%`,ml:`auto`,...r},children:n}):null]})})}bG.narrow,bG.narrow,Be.emphasis,ve(v.control),ye(`subnav`);var MG=10;function NG({children:e,selected:t=!1,href:n,icon:r,sx:i,style:a,...o}){let s=t&&o.role!==`option`?n===void 0?`true`:`page`:void 0,c=h(`rowSelectedInk`);return(0,J.jsxs)(jm,{...o,...n===void 0?{}:{component:`a`,href:n},"aria-current":s,style:t?{[m.textQuiet]:c,...a}:a,sx:[{position:`relative`,display:`flex`,width:`100%`,justifyContent:`flex-start`,alignItems:`center`,gap:`${MG}px`,textAlign:`left`,px:1.5,py:1,borderRadius:ve(v.control),color:h(`textQuiet`),fontSize:Ue.base,transition:$n([`background-color`,`box-shadow`],`base`),"&:hover":{backgroundImage:`linear-gradient(var(--ds-hover), var(--ds-hover))`},"&.Mui-focusVisible":{outline:`1.5px solid var(--ds-focus-ring)`,outlineOffset:-1},...t&&{color:h(`text`),fontWeight:500,backgroundColor:h(`rowSelected`),boxShadow:`var(--ds-elevation-raised)`}},...Array.isArray(i)?i:[i]],children:[r?(0,J.jsx)(Q,{component:`span`,"aria-hidden":!0,"data-row-icon":!0,sx:{display:`inline-flex`,flexShrink:0,fontSize:R(`rowIconSize`,re),mr:`calc(${R(`rowIconGap`,`8px`)} - ${MG}px)`,"& .MuiSvgIcon-root":{fontSize:`inherit`}},children:r}):null,e]})}[`#`,`000000`].join(``);function PG({title:e,description:t,actions:n}){return(0,J.jsx)(jG,{start:(0,J.jsxs)(Q,{sx:{minWidth:0},children:[(0,J.jsx)(ky,{variant:`h4`,component:`h1`,children:e}),t===void 0?null:(0,J.jsx)(ky,{variant:`caption`,component:`p`,sx:{m:0,mt:.75,color:`var(--ds-text-quiet)`},children:t})]}),end:n===void 0?void 0:(0,J.jsx)(Q,{sx:{display:`flex`,flexWrap:`wrap`,gap:1.5},children:n})})}Le(`${cr.medium}px`);function FG(e,t){return t<=0?-1:e<0?0:Math.min(e,t-1)}function IG(e,t,n,{homeEnd:r=!1}={}){if(e!==`ArrowDown`&&e!==`ArrowUp`&&(!r||e!==`Home`&&e!==`End`))return null;if(n<=0)return-1;if(e===`Home`)return 0;if(e===`End`)return n-1;let i=e===`ArrowDown`?1:-1;return t<0?i===1?0:n-1:(FG(t,n)+i+n)%n}function LG(e,t){return`${e}-option-${t}`}function RG(e){return e.flatMap(e=>e.items)}var zG=(0,J.jsx)(Q,{component:`span`,"data-icon-spacer":!0,sx:{display:`block`,width:`1em`,height:`1em`}}),BG={minWidth:0,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`};function VG({id:e,label:t,groups:n,activeIndex:r,onActiveChange:i,onActivate:a,sx:o}){let s=(0,K.useRef)(null);(0,K.useEffect)(()=>{r<0||(s.current?.ownerDocument.getElementById(LG(e,r)))?.scrollIntoView?.({block:`nearest`})},[e,r]);let c=n.map((e,t)=>n.slice(0,t).reduce((e,t)=>e+t.items.length,0));return(0,J.jsx)(Q,{ref:s,id:e,role:`listbox`,"aria-label":t,sx:[{display:`grid`,gap:.5},...Array.isArray(o)?o:[o]],children:n.map((t,n)=>{let o=`${e}-group-${t.id}`,s=t.items.some(e=>e.icon);return(0,J.jsxs)(Q,{role:`group`,"aria-labelledby":o,sx:{display:`grid`,gap:.25},children:[(0,J.jsxs)(Q,{sx:{display:`flex`,alignItems:`baseline`,justifyContent:`space-between`,gap:1,px:1.5,pt:1,pb:.5},children:[(0,J.jsx)(VS,{id:o,sx:BG,children:t.label}),t.note===void 0?null:(0,J.jsx)(ky,{component:`span`,variant:`caption`,color:`textQuiet`,sx:{flexShrink:0},children:t.note})]}),t.items.map((t,o)=>{let l=c[n]+o,u=l===r;return(0,J.jsx)(NG,{id:LG(e,l),role:`option`,"aria-selected":u,selected:u,icon:t.icon||(s?zG:void 0),tabIndex:-1,onMouseDown:e=>e.preventDefault(),onMouseMove:()=>{u||i(l)},onClick:()=>a(t,l),sx:{minHeight:cr.medium,py:.5},children:(0,J.jsxs)(Q,{component:`span`,sx:{flex:1,minWidth:0,display:`flex`,alignItems:`baseline`,gap:1},children:[(0,J.jsx)(Q,{component:`span`,sx:BG,children:t.label}),t.summary===void 0?null:(0,J.jsx)(ky,{component:`span`,variant:`caption`,color:`textQuiet`,sx:BG,children:t.summary})]})},t.id)})]},t.id)})})}var HG=[`Enter`];function UG({count:e,onActivate:t,activeIndex:n,onActiveChange:r,resetKey:i,homeEnd:a=!1,activateKeys:o=HG,id:s}){let c=(0,K.useId)(),l=s??`listbox-${c.replace(/:/g,``)}`,[u,d]=(0,K.useState)(0),[f,p]=(0,K.useState)(i),m=n??u;n===void 0&&!Object.is(f,i)&&(p(i),d(0),m=0);let h=FG(m,e),g=(0,K.useCallback)(e=>{n===void 0&&d(e),r?.(e)},[n,r]);return{listboxId:l,activeIndex:h,setActiveIndex:g,optionId:e=>LG(l,e),onKeyDown:n=>{if(n.nativeEvent?.isComposing)return!1;let r=IG(n.key,h,e,{homeEnd:a});return r!==null&&r!==-1?(n.preventDefault(),g(r),!0):o.includes(n.key)&&h!==-1?(n.preventDefault(),t?.(h),!0):!1},fieldProps:{"aria-controls":l,"aria-expanded":e>0,"aria-activedescendant":h===-1?void 0:LG(l,h),"aria-autocomplete":`list`}}}var WG={gap:Ix.sm,maxHeight:260};function GG({id:e,open:t,anchorEl:n,groups:r,activeIndex:i,onActiveChange:a,onActivate:o,searching:s=!1,searchingText:c=`Searching…`,label:l=`Reference something`,placement:u=`top-start`}){let d=zS();return(0,J.jsx)(tT,{open:t&&n!==null&&(RG(r).length>0||s),anchorEl:n,placement:u,modifiers:[{name:`offset`,options:{offset:[0,WG.gap]}}],style:{width:n?.clientWidth,zIndex:_G.popover},children:(0,J.jsxs)(BS,{rung:d,"data-mention-picker":``,sx:{maxHeight:WG.maxHeight,overflowY:`auto`,p:.5,borderRadius:ve(v.card),border:`1px solid var(--ds-border)`,boxShadow:`var(--ds-elevation-raised)`},children:[(0,J.jsx)(VG,{id:e,label:l,groups:r,activeIndex:i,onActiveChange:a,onActivate:o}),(0,J.jsx)(Q,{role:`status`,children:s?(0,J.jsxs)(Q,{sx:{display:`flex`,alignItems:`center`,gap:1,px:1.5,py:1},children:[(0,J.jsx)(Q,{component:`span`,"aria-hidden":!0,sx:{display:`inline-flex`},children:(0,J.jsx)(rE,{status:`running`,size:`sm`})}),(0,J.jsx)(ky,{component:`span`,variant:`body2`,color:`textQuiet`,children:c})]}):null})]})})}function KG({value:e,onChange:t,onSubmit:n,onStop:r,running:i=!1,placeholder:a,top:o,footer:s,inputRef:c,maxHeight:l=180,inputProps:u,label:d=`Message`,labels:f}){let p=Ru(),m=e.trim()===``,h=f?.send??`Send`,g=f?.stop??`Stop`,_=()=>{!m&&!i&&n()},y=e=>{u?.onKeyDown?.(e),!e.defaultPrevented&&e.key===`Enter`&&!e.shiftKey&&!e.nativeEvent.isComposing&&(e.preventDefault(),_())};return(0,J.jsxs)(Q,{"data-running":i||void 0,sx:[{display:`flex`,flexDirection:`column`,gap:1,px:1.5,pt:1.25,pb:1,borderRadius:ve(v.card),border:`1px solid`,borderColor:ir(`var(--ds-border)`),boxShadow:`var(--ds-shadow-inset)`,transition:$n(`border-color`),"&:focus-within":{borderColor:`var(--ds-outline)`}},rr(p),p.applyStyles(`dark`,{borderColor:`var(--ds-border)`,"&:focus-within":{borderColor:`var(--ds-outline)`}})],children:[o,(0,J.jsx)(Q,{component:`textarea`,rows:2,"aria-label":d,placeholder:a,...u,ref:c,value:e,onChange:e=>t(e.target.value),onKeyDown:y,sx:{width:`100%`,minWidth:0,resize:`none`,border:0,outline:0,p:0,m:0,background:`transparent`,color:`var(--ds-text)`,typography:`body1`,maxHeight:l,"&::placeholder":{color:`var(--ds-text-quiet)`,opacity:1}}}),(0,J.jsxs)(Q,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[s,(0,J.jsx)(Q,{sx:{ml:`auto`},children:i?(0,J.jsx)(BT,{label:g,tooltip:g,icon:(0,J.jsx)(tf,{}),onClick:r,disabled:!r}):(0,J.jsx)(BT,{label:h,tooltip:(0,J.jsxs)(J.Fragment,{children:[h,` `,(0,J.jsx)(kS,{children:`⏎`})]}),icon:(0,J.jsx)(Qd,{}),onClick:_,disabled:m})})]})]})}var qG=[`auto`,`ask`,`plan`,`agent`],JG={auto:`Auto`,ask:`Ask`,plan:`Plan`,agent:`Agent`},YG={auto:`Answers questions, makes one small change directly, plans anything larger`,ask:`Answers only; never changes anything`,plan:`Proposes every change and waits for you to approve it`,agent:`Makes the changes you ask for, and reports what it did`},XG={auto:Cf,ask:wf,plan:Tf,agent:Nd};function ZG(e){return e===`auto`?`var(--ds-text-quiet)`:`var(--ds-mode-${e}-ink)`}function QG(e){return e===`auto`?`var(--ds-child)`:`var(--ds-mode-${e}-fill)`}var $G=qG.map(e=>({mode:e}));function eK({value:e,onChange:t,options:n=$G,placement:r=`top`,label:i=`Working mode`}){let[a,o]=(0,K.useState)(null),s=(0,K.useId)(),c=e=>n.find(t=>t.mode===e)?.label??JG[e],l=XG[e],u=ZG(e),d=QG(e),f=r===`top`,p=e=>{o(null),t(e)};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(FS,{variant:`ghost`,size:`small`,startIcon:(0,J.jsx)(l,{}),endIcon:(0,J.jsx)(Kd,{}),"aria-label":`${i}: ${c(e)}`,"aria-haspopup":`menu`,"aria-expanded":!!a,"aria-controls":a?s:void 0,"data-mode":e,onClick:e=>o(e.currentTarget),sx:{borderRadius:`${_.pill}px`,color:u,backgroundColor:d,fontWeight:Be.emphasis,transition:$n([`background-color`,`color`]),"&:hover":{backgroundColor:`color-mix(in oklab, ${d}, ${u} 10%)`}},children:c(e)}),(0,J.jsx)(Ev,{id:s,anchorEl:a,open:!!a,onClose:()=>o(null),anchorOrigin:{vertical:f?`top`:`bottom`,horizontal:`left`},transformOrigin:{vertical:f?`bottom`:`top`,horizontal:`left`},slotProps:{list:{"aria-label":i}},children:n.map(t=>{let n=XG[t.mode],r=t.mode===e;return(0,J.jsx)(pT,{title:t.hint??YG[t.mode],placement:`right`,describeChild:!0,children:(0,J.jsxs)(Ry,{role:`menuitemradio`,"aria-checked":r,selected:r,onClick:()=>p(t.mode),children:[(0,J.jsx)(Cy,{children:(0,J.jsx)(n,{"aria-hidden":!0,sx:{fontSize:or.md,color:ZG(t.mode)}})}),(0,J.jsx)(Py,{children:t.label??JG[t.mode]}),(0,J.jsx)(rf,{"aria-hidden":!0,sx:{ml:2,fontSize:or.md,color:`text.quiet`,visibility:r?`visible`:`hidden`}})]})},t.mode)})})]})}function tK({text:e}){return(0,J.jsx)(J.Fragment,{children:e.split(/\n{2,}/).map((e,t)=>(0,J.jsx)(ky,{variant:`body2`,sx:{m:0,whiteSpace:`pre-wrap`,color:`var(--ds-text)`},children:e},t))})}function nK({children:e,attachments:t,label:n=`You said`}){return(0,J.jsxs)(Q,{role:`group`,"aria-label":n,sx:{alignSelf:`flex-end`,ml:`auto`,maxWidth:`88%`,display:`grid`,gridTemplateColumns:`minmax(0, 1fr)`,gap:.75,justifyItems:`end`,"& > *":{maxWidth:`100%`,minWidth:0}},children:[(0,J.jsx)(Q,{sx:{display:`grid`,gap:1,px:1.5,py:1,borderRadius:ve(v.card),backgroundColor:`var(--ds-child)`,overflowWrap:`anywhere`},children:typeof e==`string`?(0,J.jsx)(tK,{text:e}):e}),t?(0,J.jsx)(Q,{sx:{display:`flex`,flexWrap:`wrap`,gap:.5,justifyContent:`flex-end`,"& > *":{minWidth:0}},children:t}):null]})}var rK={title:`Plan`,hint:`Nothing changes until you run it.`,run:`Run plan`,cancel:`Cancel`,approved:`Approved`,declined:`Cancelled`};function iK({steps:e,state:t,onRun:n,onCancel:r,labels:i}){let a={...rK,...i},o=t===`proposed`;return(0,J.jsxs)(Q,{role:`group`,"aria-label":a.title,"data-state":t,sx:{display:`grid`,gap:1,p:1.5,border:`1px solid var(--ds-border)`,borderRadius:ve(v.card),backgroundColor:`var(--ds-child)`},children:[(0,J.jsxs)(Q,{sx:{display:`flex`,alignItems:`center`,gap:.75,color:ZG(`plan`)},children:[(0,J.jsx)(Tf,{"aria-hidden":!0,sx:{fontSize:or.md}}),(0,J.jsx)(VS,{component:`h3`,sx:{m:0,color:`inherit`},children:a.title}),o?null:(0,J.jsx)(ky,{variant:`caption`,color:`textQuiet`,sx:{ml:`auto`},children:t===`approved`?a.approved:a.declined})]}),o?(0,J.jsx)(ky,{variant:`caption`,color:`textQuiet`,children:a.hint}):null,(0,J.jsx)(Q,{component:`ol`,sx:{m:0,p:0,listStyle:`none`,display:`grid`,gap:.75},children:e.map((e,t)=>(0,J.jsxs)(Q,{component:`li`,"data-status":e.status,sx:{display:`grid`,gridTemplateColumns:`auto 1fr`,columnGap:1,alignItems:`start`},children:[(0,J.jsx)(Q,{sx:{display:`flex`,alignItems:`center`,height:`1.5em`,typography:`body2`},children:(0,J.jsx)(rE,{status:e.status})}),(0,J.jsx)(ky,{variant:`body2`,component:`div`,sx:{minWidth:0,color:`var(--ds-text)`},children:e.label}),e.detail===void 0?null:(0,J.jsx)(ky,{variant:`caption`,component:`code`,color:`textQuiet`,sx:{gridColumn:2,display:`block`,fontFamily:ze.mono,overflowWrap:`anywhere`},children:e.detail})]},t))}),o?(0,J.jsxs)(Q,{sx:{display:`flex`,gap:1},children:[(0,J.jsx)(FS,{variant:`primary`,size:`small`,onClick:n,children:a.run}),(0,J.jsx)(FS,{variant:`secondary`,size:`small`,onClick:r,children:a.cancel})]}):null]})}(0,K.createContext)({layout:`ruled`,dividers:!0}),vG.narrow;var aK=(0,K.createContext)(null),oK=120,sK={cursor:`help`},cK={display:`flex`,alignItems:`center`,gap:1,minWidth:0},lK={inline:cK,stacked:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,gap:`3px`,minWidth:0}},uK={boxSizing:`border-box`,px:1,borderRadius:ve(v.control)},dK={outlined:{...uK,border:`1px solid ${h(`border`)}`},filled:{...uK,bgcolor:`color-mix(in srgb, var(--ds-text) 5%, transparent)`},glass:{...uK,bgcolor:`color-mix(in srgb, ${h(`raised`)} ${R(`metaGlassOpacity`,W.dark)}, transparent)`,'[data-ds-mode="light"] &':{bgcolor:`color-mix(in srgb, ${h(`raised`)} ${R(`metaGlassOpacity`,W.light)}, transparent)`}},card:{...uK,bgcolor:h(`raised`),boxShadow:`var(--ds-elevation-raised)`,borderRadius:ve(v.card)},flat:{}};function fK(e){return e===`neutral`?{}:{backgroundImage:`linear-gradient(${xS(e)}, ${xS(e)})`,border:`1px solid ${SS(e)}`}}function pK(e,t){let n=t!==`flat`,r=e===`inline`?{minHeight:n?cr.medium:cr.small}:n?{py:.75}:{};return{...lK[e],...dK[t],...r}}var mK=2;function hK(e){let t=getComputedStyle(e);if(!e.classList.contains(`MuiButton-root`)||!/^(transparent|rgba\(0, 0, 0, 0\))$/.test(t.backgroundColor))return null;let n=e.querySelector(`:scope > .MuiButton-startIcon`),r=n?parseFloat(getComputedStyle(n).marginLeft):0;return parseFloat(t.borderLeftWidth)+parseFloat(t.paddingLeft)+r}function gK(e){let t=e?.firstElementChild??null;for(;t instanceof HTMLElement&&!t.matches(`.MuiChip-root, .MuiButton-root`);)t=t.firstElementChild;return t instanceof HTMLElement?t:null}function _K(e,t){let n=gK(e);if(n===null)return 0;n.style.transform=``,n.style.marginRight=``,n.style.maxWidth=``;let r=t?hK(n):null;return r===null||r<=0?0:(n.style.transform=`translateX(-${String(r)}px)`,n.style.marginRight=`-${String(r)}px`,n.style.maxWidth=`none`,r)}function vK(e,t,n){if(!e)return;e.style.paddingLeft=``;let r=Math.max(0,...t.map(e=>_K(e,n))),i=r+mK;r>0&&i>parseFloat(getComputedStyle(e).paddingLeft)&&(e.style.paddingLeft=`${String(i)}px`)}function yK(e){let t=t=>e?.querySelector(t)??null;(t(`input`)??t(`[aria-current="true"]`)??t(`button, [tabindex="0"]`))?.focus()}var bK=es`from { opacity: 0; transform: translateY(-2px); }`;function xK({label:e,hint:t,children:n,secondary:r,secondaryPlacement:i=`after`,tooltip:a,popover:o,layout:s=`inline`,variant:c=`outlined`,tone:l=`neutral`,grow:u=!1,sx:d}){let[f,p]=(0,K.useState)(`closed`),m=(0,K.useRef)(null),[h,g]=(0,K.useState)(null),_=(0,K.useRef)(null),y=(0,K.useRef)(null),b=(0,K.useRef)(null),x=(0,K.useRef)(void 0),S=(0,K.useId)(),C=(0,K.useId)(),w=zS(),T=a!==void 0||o!==void 0,E=()=>{window.clearTimeout(x.current),a!==void 0&&p(e=>e===`closed`?`tooltip`:e)},D=()=>{x.current=window.setTimeout(()=>p(e=>e===`tooltip`?`closed`:e),oK)},O=e=>{let t=e.relatedTarget;!m.current?.contains(t)&&!_.current?.contains(t)&&D()},k=e=>{e.key!==`Escape`||f===`closed`||(e.stopPropagation(),f===`popover`&&m.current?.querySelector(`[aria-haspopup]`)?.focus(),p(`closed`))};(0,K.useEffect)(()=>()=>window.clearTimeout(x.current),[]),(0,K.useLayoutEffect)(()=>{let e=[y.current,b.current],t=()=>vK(m.current,e,s===`stacked`);t();let n=new ResizeObserver(t);return e.map(gK).forEach(e=>e&&n.observe(e)),()=>n.disconnect()}),(0,K.useEffect)(()=>{if(f!==`popover`)return;let e=requestAnimationFrame(()=>yK(_.current));return()=>cancelAnimationFrame(e)},[f]);let A=o===void 0?null:{open:f===`popover`,toggle:()=>p(e=>e===`popover`?`closed`:`popover`),close:()=>{m.current?.querySelector(`[aria-haspopup]`)?.focus(),p(`closed`)}},j=f===`popover`?o:f===`tooltip`?a:void 0,M=s===`stacked`,N=i===`labelEnd`&&!M?`end`:i,P=e=>r!==void 0&&N===e?r:null,F=e=>e&&(0,J.jsx)(Q,{sx:{ml:`auto`,display:`flex`},children:e}),I=(0,J.jsx)(VS,{sx:{whiteSpace:`nowrap`,flexShrink:0},children:(0,J.jsxs)(Q,{component:`span`,"data-meta-field-label":!0,id:C,tabIndex:a===void 0?void 0:0,"aria-describedby":f===`tooltip`?S:void 0,sx:{display:`inline-flex`,alignItems:`center`,gap:.75,"& svg":{fontSize:`1.15em`},...a!==void 0&&sK},children:[e,t]})}),L=(0,J.jsxs)(J.Fragment,{children:[n!==void 0&&(0,J.jsx)(Q,{ref:y,"data-meta-field-value":!0,sx:{display:`flex`,alignItems:`center`,gap:.5,minWidth:0,typography:`body1`},children:n}),P(`after`),F(P(`end`))]}),R=P(`below`),z=R&&(M?(0,J.jsxs)(Q,{sx:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,gap:`3px`,minWidth:0,alignSelf:`stretch`},children:[(0,J.jsx)(Q,{sx:{...cK,alignSelf:`stretch`},children:L}),(0,J.jsx)(Q,{ref:b,sx:{display:`flex`},children:R})]}):(0,J.jsxs)(Q,{sx:{display:`grid`,gridTemplateColumns:`auto 1fr`,columnGap:1,rowGap:`3px`,alignItems:`center`,minWidth:0,flex:1,py:.5},children:[I,(0,J.jsx)(Q,{sx:cK,children:L}),(0,J.jsx)(Q,{sx:{gridColumn:2,display:`flex`},children:R})]}));return(0,J.jsxs)(aK.Provider,{value:A,children:[(0,J.jsxs)(Q,{ref:e=>{m.current=e,g(e)},"data-meta-field":s,"data-meta-field-variant":c,...T&&{onMouseEnter:E,onMouseLeave:D,onFocus:E,onBlur:O,onKeyDown:k},sx:[pK(s,l!==`neutral`&&c===`flat`?`outlined`:c),fK(l),{flex:u?`1 1 200px`:`0 0 auto`},...Array.isArray(d)?d:[d]],children:[M&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(Q,{sx:{...cK,alignSelf:`stretch`},children:[I,F(P(`labelEnd`))]}),z||(0,J.jsx)(Q,{sx:{...cK,alignSelf:`stretch`},children:L})]}),!M&&(z||(0,J.jsxs)(J.Fragment,{children:[I,L]}))]}),(0,J.jsx)(tT,{open:j!==void 0,anchorEl:h,id:f===`tooltip`?S:void 0,role:f===`tooltip`?`tooltip`:`dialog`,"aria-labelledby":f===`popover`?C:void 0,placement:`bottom-start`,modifiers:[{name:`offset`,options:{offset:[0,6]}}],style:{zIndex:_G.popover},children:(0,J.jsx)(Lb,{mouseEvent:f===`popover`&&`onMouseDown`,touchEvent:f===`popover`&&`onTouchStart`,onClickAway:e=>{m.current?.contains(e.target)||p(`closed`)},children:(0,J.jsx)(BS,{ref:_,rung:w,"data-meta-field-surface":f,onMouseEnter:E,onMouseLeave:D,onBlur:O,onKeyDown:k,sx:{p:f===`popover`?.5:2,maxWidth:360,borderRadius:ve(v.card),border:`1px solid var(--ds-border)`,boxShadow:`var(--ds-elevation-raised)`,typography:`body2`,transition:$n(`padding`,`slow`)},children:(0,J.jsx)(Q,{sx:{animation:`${bK} ${String(Qn.duration.slow)}ms ${Qn.easing.standard}`},children:j},f)})})})]})}es`
269
+ 0%, 100% { opacity: 1; }
270
+ 50% { opacity: 0.35; }
271
+ `;var SK=(0,K.createContext)(null);cr.small;function CK(e,t,n){try{let r=e?.getItem(t);if(!r)return null;let i=JSON.parse(r);if(typeof i!=`object`||!i)return null;let{width:a,collapsed:o}=i;return{...typeof a==`number`&&Number.isFinite(a)?{width:Math.round(Math.min(n.max,Math.max(n.min,a)))}:{},...typeof o==`boolean`?{collapsed:o}:{}}}catch{return null}}function wK(e,t,n){try{e?.setItem(t,JSON.stringify(n))}catch{}}function TK(){try{return typeof window>`u`?void 0:window.localStorage}catch{return}}var EK=`data-plane-panes`;Qn.duration.slow,R(`railWidth`,`64px`),`${R(`railIcon`,`22px`)}${R(`railPad`,`12px`)}`,R(`railGap`,`8px`),R(`railFoot`,ie);var DK=.35,OK=.75,kK=`button, input, label, .Mui-TableHeadCell-ResizeHandle-Wrapper`;function AK(e){let[t,n]=(0,K.useState)(null);return{index:t,headProps:(0,K.useCallback)(t=>({onPointerDown:r=>{if(!e||r.button!==0||r.pointerType===`touch`)return;let i=r.target;if(i.closest(kK))return;let a=i.closest(`th`),o=a&&MK(t,a);!a||!o||!jK(o)||IK(t,o,a,r.clientX,n)},onKeyDownCapture:n=>{if(!e||!n.altKey||n.key!==`ArrowLeft`&&n.key!==`ArrowRight`)return;let r=n.target.closest(`th`),i=r&&MK(t,r);!i||!jK(i)||(n.preventDefault(),n.stopPropagation(),PK(t,i,NK(t,i)+(n.key===`ArrowLeft`?-1:1)))}}),[e])}}function jK(e){return e.columnDef.enableColumnOrdering!==!1}function MK(e,t){let n=e.refs.tableHeadCellRefs.current??{},r=Object.keys(n).find(e=>n[e]===t);return r===void 0?null:e.getColumn(r)}function NK(e,t){return e.getVisibleLeafColumns().findIndex(e=>e.id===t.id)}function PK(e,t,n){let r=e.getVisibleLeafColumns(),i=r.findIndex(e=>e.id===t.id),a=n>i?1:-1,o=a>0?Math.min(n,r.length-1):Math.max(n,0),s=i;for(let e=i+a;(a>0?e<=o:e>=o)&&jK(r[e]);e+=a)s=e;if(s===i)return i;let c=r.map(e=>e.id);c.splice(s,0,...c.splice(i,1));let l=e.getState().columnOrder,u=l.length?l:e.getAllLeafColumns().map(e=>e.id),d=new Set(r.map(e=>e.id)),f=0;return e.setColumnOrder(u.map(e=>d.has(e)?c[f++]:e)),s}function FK(e,t,n){let r=e.getVisibleLeafColumns(),i=e.refs.tableHeadCellRefs.current??{},a=r.findIndex(e=>e.id===t.id),o=a;for(let e=0;e<r.length;e+=1){let t=i[r[e].id]?.getBoundingClientRect();if(e===a||!t)continue;let s=t.left+t.width/2;if(e<a&&n<s)return e;e>a&&n>s&&(o=e)}return o}function IK(e,t,n,r,i){let a=null,o=NK(e,t),s=s=>{if(!a){if(Math.abs(s.clientX-r)<4)return;a=LK(n),document.body.style.userSelect=`none`,document.body.style.cursor=`grabbing`,i(o)}a.style.transform=`translateX(${s.clientX-r}px)`;let c=FK(e,t,s.clientX);c!==o&&(o=PK(e,t,c),i(o))},c=()=>{document.removeEventListener(`pointermove`,s),document.removeEventListener(`pointerup`,c),document.removeEventListener(`pointercancel`,c),a&&(a.remove(),document.body.style.userSelect=``,document.body.style.cursor=``,i(null),zK())};document.addEventListener(`pointermove`,s),document.addEventListener(`pointerup`,c),document.addEventListener(`pointercancel`,c)}function LK(e){let t=e.getBoundingClientRect(),n=e.cloneNode(!0);for(let e of[`tabindex`,`aria-sort`,`data-can-sort`,`data-index`,`data-sort`])n.removeAttribute(e);n.setAttribute(`aria-hidden`,`true`),n.setAttribute(`data-column-ghost`,``),Object.assign(n.style,{position:`fixed`,left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,boxSizing:`border-box`,margin:`0`,opacity:String(OK),pointerEvents:`none`,zIndex:`3`,backgroundColor:RK(e)}),(e.closest(`.MuiPaper-root`)??e.closest(`table`)?.parentElement??document.body).appendChild(n);let r=n.getBoundingClientRect();return n.style.left=`${t.left+(t.left-r.left)}px`,n.style.top=`${t.top+(t.top-r.top)}px`,n}function RK(e){for(let t=e;t;t=t.parentElement){let e=getComputedStyle(t).backgroundColor;if(e&&e!==`transparent`&&!/^rgba\(.*,\s*0\)$/.test(e))return e}return`transparent`}function zK(){let e=e=>{e.stopPropagation(),e.preventDefault()};window.addEventListener(`click`,e,{capture:!0,once:!0}),setTimeout(()=>window.removeEventListener(`click`,e,{capture:!0}),0)}var BK=6,VK=24,HK=50,UK={comfortable:{y:R(`rowPad`,te),x:`${Ix.sm+Ix.xs}px`},compact:{y:`${Ix.sm}px`,x:`${Ix.sm+Ix.xs}px`}},WK=`ds-group`,GK=`mrt-row-expand`,KK=`mrt-row-spacer`;function qK(e,t){let n=typeof e==`function`?e(t):t[e];return String(n??``)}function JK(e,t){let n={[yG(t)]:{display:`none`}},r=e=>t=>{let r=typeof e==`function`?e(t):e,i=r?.sx;return{...r,sx:typeof i==`function`?e=>({...i(e),...n}):{...i,...n}}};return{...e,muiTableHeadCellProps:r(e.muiTableHeadCellProps),muiTableBodyCellProps:r(e.muiTableBodyCellProps)}}function YK(e){return(0,J.jsx)(OS,{children:(0,J.jsx)(XK,{...e})})}function XK({columns:e,data:t,onRowClick:n,selectedRowId:r,isRowDimmed:i,isRowHighlighted:a,loading:o=!1,empty:s,sticky:c=!1,fit:l=`fill`,maxHeight:u,density:f=`comfortable`,toolbar:p=!1,pagination:m=!1,sortable:g=!0,hideBelow:_,columnActions:y=!1,filterable:b=!1,reorderable:x=!0,surface:S,bordered:C=!0,groupBy:w,groupLabel:T,collapsedGroups:E,onToggleGroup:D,...O}){let k=RS(),A=Ru(),j=k.depth+1>3?k.rung:d(k.rung),M=C&&S===void 0,N=(0,K.useMemo)(()=>({depth:k.depth+1,rung:j}),[k.depth,j]),P=S===`transparent`?`transparent`:`var(--ds-bg)`,F=M?j:S!==void 0&&S!==`transparent`?S:void 0,I={y:UK[f].y,x:C?UK[f].x:`${Ix.lg}px`},L=M?`calc(${I.x} + ${BK}px)`:I.x,R=!!n,z=AK(x),ee=(0,K.useMemo)(()=>{let t=e.map(e=>e.accessorKey!==void 0||e.accessorFn!==void 0||e.columnDefType===`display`?e:{enableSorting:!1,enableColumnFilter:!1,...e}).map(e=>{let t=_?.[e.id??String(e.accessorKey)];return t===void 0?e:JK(e,t)});return w===void 0?t:[...t.map(e=>{let{sortingFn:t}=e;return{...e,enableGrouping:!1,aggregationFn:()=>null,...typeof t==`function`?{sortingFn:(...e)=>e[0].getIsGrouped()||e[1].getIsGrouped()?0:t(...e)}:{}}}),{id:WK,header:``,accessorFn:e=>qK(w,e),enableGrouping:!0,enableSorting:!1,enableColumnFilter:!1,enableGlobalFilter:!1,enableColumnOrdering:!1,enableColumnActions:!1,enableHiding:!1}]},[e,w,_]),te=w!==void 0,[B,V]=(0,K.useState)(()=>new Set),ne=(0,K.useMemo)(()=>E===void 0?B:new Set(E),[E,B]),re=e=>{D?.(e),E===void 0&&V(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},ie=(0,K.useMemo)(()=>{if(w===void 0)return;let e={};for(let n of t){let t=qK(w,n);ne.has(t)||(e[`${WK}:${t}`]=!0)}return e},[t,w,ne]),[H,U]=(0,K.useState)(()=>O.initialState?.columnVisibility??{}),W=O.state?.columnVisibility??H,ae=[...te?[GK]:[],...l===`content`?[KK]:[]],oe=oW({columns:ee,data:t,getRowId:(e,t)=>e.id==null?String(t):String(e.id),enableTopToolbar:p,enableBottomToolbar:m,enablePagination:m,enableSorting:g,enableColumnActions:y,enableColumnFilters:b,columnFilterDisplayMode:`popover`,enableColumnOrdering:x,enableColumnDragging:!1,muiTableHeadProps:({table:e})=>z.headProps(e),enableDensityToggle:!1,enableStickyHeader:c,layoutMode:l===`content`?`grid-no-grow`:`grid`,...s?{renderEmptyRowsFallback:()=>(0,J.jsx)(J.Fragment,{children:s})}:{},muiTablePaperProps:{elevation:0,...F?{"data-surface":F}:{},sx:{..._&&l!==`content`?{containerType:`inline-size`}:{},...l===`content`?{width:`max-content`,maxWidth:`100%`}:{},backgroundColor:P,backgroundImage:`none`,border:C&&!M?`1px solid ${h(`border`)}`:`none`,boxShadow:M?`var(--ds-elevation-raised)`:`none`,borderRadius:C?ve(v.card):0,padding:0,overflow:`hidden`,"& thead th, & tbody td":{boxSizing:`border-box`},"& thead th":{...Vx(),backgroundImage:`none`,paddingLeft:I.x,paddingRight:I.x,"&:first-of-type":{paddingLeft:L},"&:last-of-type":{paddingRight:L},justifyContent:`center`,"& .MuiTableSortLabel-root, & .MuiIconButton-root":{color:h(`textQuiet`),opacity:0,transition:$n(`opacity`,`fast`)},"&:hover, &:focus-within":{"& .MuiTableSortLabel-root, & .MuiIconButton-root":{opacity:.7}},'&[aria-sort="ascending"], &[aria-sort="descending"]':{"& .MuiTableSortLabel-root":{opacity:1}},"& .MuiTableSortLabel-root":{height:Bx},"& .MuiTableSortLabel-icon":{color:`${h(`textQuiet`)} !important`,fontSize:Bx,margin:0,marginLeft:`${Ix.xxs}px`},"& .MuiIconButton-root, & .MuiCheckbox-root":{padding:0,height:VK,width:VK,margin:`${(Bx-VK)/2}px 0`,verticalAlign:`top`},"& .MuiIconButton-root svg":{fontSize:Bx},"& .MuiCheckbox-root svg":{fontSize:Bx+Ix.xs}},"& thead .MuiTableCell-head, & thead .MuiTableCell-head.MuiTableCell-stickyHeader":{borderBottom:`none`},"& thead":{...c?{}:{position:`relative`},zIndex:2,boxShadow:`var(--ds-shadow-table-header)`},"& thead tr":{backgroundColor:`transparent`,boxShadow:`none`},"& thead .MuiTableCell-head.MuiTableCell-stickyHeader":{backgroundColor:P},"& thead th .Mui-TableHeadCell-Content":{alignItems:`center`},"& thead th .Mui-TableHeadCell-Content-Labels":{alignItems:`center`},"& thead th .Mui-TableHeadCell-Content-Actions":{display:`flex`,alignItems:`center`},"& tbody td":{color:h(`text`),fontSize:`${Ue.base}px`,lineHeight:1.3,paddingTop:I.y,paddingBottom:I.y,paddingLeft:I.x,paddingRight:I.x,"&:first-of-type":{paddingLeft:L},"&:last-of-type":{paddingRight:L},borderBottom:`1px solid ${h(`separator`)}`},"& tbody tr:last-of-type td":{borderBottom:`none`},"& tbody tr[data-group] td":{backgroundColor:h(`tableHeader`),"&:first-of-type":{flex:`1 1 100%`,width:`100%`,minWidth:0,padding:0},"&:not(:first-of-type)":{display:`none`}},...z.index===null?{}:{[`& th[data-index="${z.index}"], & td[data-index="${z.index}"]`]:{opacity:DK}}}},muiTableContainerProps:{sx:{backgroundColor:`transparent`,...u?{maxHeight:u}:{}}},muiTopToolbarProps:{sx:{backgroundColor:`transparent`}},muiBottomToolbarProps:{sx:{backgroundColor:`transparent`,boxShadow:`none`}},muiTableBodyRowProps:({row:e})=>{if(e.getIsGrouped())return{hover:!1,"data-group":String(e.groupingValue),sx:{backgroundColor:P}};let t=e.original,o=R,s=r!=null&&String(r)===e.id,c=i?.(t)??!1,l=s||(a?.(t)??!1),u=h(`selected`),d={backgroundColor:`transparent`,"& td":{backgroundColor:`color-mix(in srgb, ${u} ${HK}%, ${P})`,...A.applyStyles(`dark`,{backgroundColor:u,borderBottomColor:P})}};return{hover:!1,selected:s,...o?{onClick:()=>n?.(t),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n?.(t))},tabIndex:0,"aria-selected":s,"data-peek-trigger":``}:{},sx:{backgroundColor:P,opacity:c?.72:1,transition:$n(`background-color`,`fast`),...o?{cursor:`pointer`}:{},...l?{"&, &.Mui-selected, &.Mui-selected:hover":d}:{},...o?{...l?{}:{"&:hover":{backgroundColor:h(`hover`)}},"&:focus-visible":{outline:`2px solid var(--ds-focus-ring)`,outlineOffset:`-2px`}}:{}}}},...O,...ae.length>0?{onColumnVisibilityChange:e=>{U(t=>typeof e==`function`?e(t):e),O.onColumnVisibilityChange?.(e)}}:{},...te?{enableGrouping:!0,groupedColumnMode:`remove`,...O.enableRowSelection?{enableRowSelection:e=>!e.getIsGrouped()&&(typeof O.enableRowSelection!=`function`||O.enableRowSelection(e))}:{},muiTableBodyCellProps:e=>{let t=typeof O.muiTableBodyCellProps==`function`?O.muiTableBodyCellProps(e):O.muiTableBodyCellProps,{row:n,cell:r}=e,i=n.getVisibleCells();if(!n.getIsGrouped()||i[0]?.id!==r.id)return t??{};let a=String(n.groupingValue),o=(n.subRows??[]).map(e=>e.original);return{...t,colSpan:i.length,children:(0,J.jsx)(ZK,{label:T?T(a,o):a,count:o.length,expanded:!ne.has(a),onToggle:()=>re(a),padY:UK.compact.y,padStart:L,padEnd:I.x})}}}:{},state:{isLoading:o,...O.state??{},...te?{grouping:[WK],expanded:ie}:{},...ae.length>0?{columnVisibility:{...W,...Object.fromEntries(ae.map(e=>[e,!1]))}}:{}},initialState:{density:`compact`,...O.initialState??{}}});return M?(0,J.jsx)(IS.Provider,{value:N,children:(0,J.jsx)(gG,{table:oe})}):(0,J.jsx)(gG,{table:oe})}function ZK({label:e,count:t,expanded:n,onToggle:r,padY:i,padStart:a,padEnd:o}){return(0,J.jsxs)(jm,{disableRipple:!0,"aria-expanded":n,onClick:r,sx:{display:`flex`,alignItems:`center`,justifyContent:`flex-start`,gap:`${Ix.sm}px`,width:`100%`,paddingTop:i,paddingBottom:i,paddingLeft:a,paddingRight:o,textAlign:`left`,font:`inherit`,fontSize:`${Ue.base}px`,lineHeight:1.3,color:h(`text`),transition:$n(`background-color`,`fast`),"&:hover":{backgroundColor:h(`hover`)},"&.Mui-focusVisible":{outline:`2px solid var(--ds-focus-ring)`,outlineOffset:`-2px`}},children:[(0,J.jsx)(vT,{kind:`section`,expanded:n,sx:{fontSize:or.md,color:h(`textQuiet`)}}),(0,J.jsxs)(`span`,{children:[(0,J.jsx)(`span`,{style:{fontWeight:Be.emphasis},children:e}),` `,(0,J.jsx)(_T,{children:t})]})]})}var QK=2.5;function $K({title:e,description:t,actions:n,flush:r=!1,tone:i=`neutral`,children:a,sx:o,...s}){let c=e!==void 0||n!==void 0,l=(0,K.useId)();return(0,J.jsxs)(BS,{component:`section`,"aria-labelledby":e===void 0?void 0:l,...s,sx:[{display:`grid`,gap:2,p:r?0:QK,pt:r&&c?QK:void 0,overflow:r?`hidden`:void 0,borderRadius:ve(v.card),boxShadow:`var(--ds-elevation-raised)`},i!==`neutral`&&{backgroundImage:`linear-gradient(${xS(i)}, ${xS(i)})`,border:`1px solid ${SS(i)}`},...Array.isArray(o)?o:[o]],children:[c?(0,J.jsxs)(Q,{sx:{display:`flex`,alignItems:`flex-start`,gap:2,px:r?QK:0},children:[(0,J.jsxs)(Q,{sx:{flex:1,minWidth:0},children:[e===void 0?null:(0,J.jsx)(ky,{id:l,variant:`subtitle1`,component:`h2`,children:e}),t===void 0?null:(0,J.jsx)(ky,{variant:`body1`,sx:{color:`var(--ds-text-quiet)`,mt:.5},children:t})]}),n]}):null,a]})}R(`topbarHeight`,pe.height),R(`commandWidth`,pe.commandWidth),Le(pe.control),R(`railWidth`,`64px`),cr.medium;var eq=.5;function tq(e,t=320,n=eq){return Math.max(t,Math.round(e*n))}function nq(e,t=320,n=eq){return{min:t,max:tq(e,t,n)}}function rq(e,{min:t,max:n}){return Number.isFinite(e)?Math.round(Math.min(n,Math.max(t,e))):t}var iq=`(prefers-reduced-motion: no-preference)`,aq=()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(iq).matches;function oq(e,t){let[n,r]=(0,K.useState)(e),[i,a]=(0,K.useState)(!1),[o,s]=(0,K.useState)(e),[c,l]=(0,K.useState)(!1);if(e!==n){let t=aq();r(e),l(t),a(!e&&t),s(e&&!t)}let u=(0,K.useCallback)(()=>{l(!1),a(!1)},[]);return(0,K.useLayoutEffect)(()=>{e&&!o&&(t.current?.getBoundingClientRect(),s(!0))},[e,o,t]),(0,K.useEffect)(()=>{if(!c)return;let e=window.setTimeout(u,Qn.duration.slow+600);return()=>window.clearTimeout(e)},[e,c,u]),{shown:e||i,expanded:o,moving:c,settle:u}}function sq(e,t){typeof e==`function`?e(t):e&&(e.current=t)}(0,K.forwardRef)(function({open:e,width:t,onWidthChange:n,onWidthCommit:r,minWidth:i=320,maxShare:a=eq,label:o,children:s},c){let l=(0,K.useRef)(null),{shown:u,expanded:d,moving:f,settle:p}=oq(e,l),[m,h]=(0,K.useState)(e);e&&!m&&h(!0);let[g,_]=(0,K.useState)(()=>typeof window>`u`?1440:window.innerWidth);(0,K.useLayoutEffect)(()=>{if(!u)return;let e=()=>_(window.innerWidth);return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[u]);let v=nq(g,i,a),y=rq(t,v);return(0,K.useLayoutEffect)(()=>{let e=l.current?.parentElement;if(e)return e.style.setProperty(`--ds-docked-pane-width`,`${String(d?y:0)}px`),()=>{e.style.removeProperty(`--ds-docked-pane-width`)}},[d,y]),(0,J.jsxs)(Q,{component:`aside`,"aria-label":o,hidden:!u,ref:e=>{l.current=e,sq(c,e)},"data-docked-pane":``,"data-docked-pane-moving":f?e?`opening`:`closing`:void 0,style:{width:d?y:0},onTransitionEnd:e=>{e.target===e.currentTarget&&e.propertyName===`width`&&p()},sx:{position:`relative`,flexShrink:0,minHeight:0,display:u?`block`:`none`,transition:f?$n(`width`,`slow`):`none`},children:[(0,J.jsx)(DG,{orientation:`vertical`,edge:`start`,value:y,min:v.min,max:v.max,onChange:n,onChangeCommitted:r,label:`Resize ${o}`}),(0,J.jsx)(Q,{"data-docked-pane-clip":``,sx:{position:`absolute`,inset:0,overflow:`hidden`},children:(0,J.jsxs)(Q,{"data-docked-pane-sheet":``,sx:{position:`absolute`,top:0,bottom:0,left:0,display:`flex`,flexDirection:`column`},style:{width:y},children:[(0,J.jsx)(Q,{"aria-hidden":!0,"data-docked-pane-glass":``,sx:{position:`absolute`,inset:0,pointerEvents:`none`,backgroundColor:`var(--ds-glass-pane)`,backdropFilter:ye(`pane`)}}),(0,J.jsx)(Q,{"data-docked-pane-body":``,sx:{position:`relative`,flex:1,minHeight:0,display:`flex`,flexDirection:`column`,overflow:`hidden`},children:m?s:null}),(0,J.jsx)(Q,{"aria-hidden":!0,"data-docked-pane-seam":``,sx:{position:`absolute`,inset:0,pointerEvents:`none`,zIndex:1,boxShadow:`var(--ds-shadow-seam)`}})]})})]})}),R(`cardPad`,ne),G(`12px`),cr.medium;var cq=`12px`;`${cq}`,yG(`compact`),`${cq}`,`${cq}`,`${cq}`,yG(`compact`),`${cq}`,yG(`compact`);var lq={min:200,max:420};function uq(e){return`octopus.planeLayout.left.${e}`}function dq(e){return{min:Math.min(lq.min,e),max:Math.max(lq.max,e)}}function fq(e,t,n){return CK(e,uq(t),n)}function pq(e,t,n){wK(e,uq(t),n)}function mq(){return Object.fromEntries(Object.entries(ce).map(([e,t])=>[P[e],t]))}var hq=(0,K.createContext)(!1),gq=Fe(`tabs`);function _q({left:e,leftLabel:t=`Section`,leftWidth:n=260,leftResizable:r=!0,leftCollapsible:i=!1,persistKey:a,masthead:o,mastheadLabel:s=`Header`,tabs:c,pageWidth:l=`standard`,children:u}){let d=(0,K.useContext)(IS),f=(0,K.useMemo)(()=>({depth:(d?.depth??0)+1,rung:`primary`}),[d?.depth]),p=(0,K.useContext)(hq),m=(0,K.useId)(),h=dq(n),g=a??t,[_]=(0,K.useState)(()=>fq(TK(),g,h)),[v,y]=(0,K.useState)(_?.width??n),[b,x]=(0,K.useState)(_?.collapsed??!1),S=r?v:n,C=typeof l==`number`?l+(e!==void 0&&!(i&&b)?S:0):void 0;(0,K.useEffect)(()=>{if(C===void 0)return;let e=document.documentElement;return e.style.setProperty(`--ds-page-custom`,`${String(C)}px`),()=>{e.style.removeProperty(`--ds-page-custom`)}},[C]);let w=i&&b,T=(0,K.useMemo)(()=>({collapsible:i}),[i]),E=(0,K.useRef)(!1),D=(0,K.useRef)(null),O=(0,K.useRef)(null);(0,K.useEffect)(()=>{E.current&&(E.current=!1,(w?O:D).current?.focus())},[w]);let k=e=>pq(TK(),g,{width:v,collapsed:b,...e}),A=()=>{E.current=!0,x(!w),k({collapsed:!w})},j=p?{}:{backgroundColor:`var(--ds-glass-plane)`,backdropFilter:ye(`plane`)},M=p?{}:{backgroundColor:`var(--ds-glass-subnav)`,backdropFilter:ye(`subnav`)};return(0,J.jsx)(IS.Provider,{value:f,children:(0,J.jsx)(hq.Provider,{value:!0,children:(0,J.jsxs)(Q,{"data-surface":`primary`,...p?{}:{[EK]:``},...l===`standard`?{}:{[Ee]:typeof l==`number`?`custom`:l},sx:{...e!==void 0&&!w?{"--ds-left-shown":`${String(S)}px`}:{},flex:1,display:`flex`,height:`100%`,minHeight:0,minWidth:0,color:`var(--ds-text)`,[`html[${F.density}="compact"] &`]:{"--ds-space-scale":se.compact,...mq()}},children:[e&&!w?(0,J.jsxs)(Q,{id:m,component:`nav`,"aria-label":t,style:ar(),sx:{position:`relative`,width:S,flexShrink:0,display:`flex`,minHeight:0,...M},children:[r?(0,J.jsx)(DG,{orientation:`vertical`,edge:`end`,value:v,min:h.min,max:h.max,onChange:y,onChangeCommitted:e=>k({width:e}),label:`Resize ${t}`}):null,i?(0,J.jsx)(BT,{ref:D,icon:(0,J.jsx)(df,{}),label:`Collapse ${t}`,"aria-expanded":!0,"aria-controls":m,size:`small`,onClick:A,sx:{position:`absolute`,top:8,right:8,zIndex:_G.docked}}):null,(0,J.jsx)(Q,{sx:{flex:1,minWidth:0,overflowY:`auto`},children:(0,J.jsx)(SK.Provider,{value:T,children:e})})]}):null,(0,J.jsxs)(Q,{sx:{position:`relative`,flex:1,minWidth:0,minHeight:0,display:`flex`,flexDirection:`column`,containerType:`inline-size`},children:[e&&w?(0,J.jsx)(BT,{ref:O,icon:(0,J.jsx)(df,{}),label:`Expand ${t}`,"aria-expanded":!1,size:`small`,onClick:A,sx:{position:`absolute`,top:8,left:8,zIndex:_G.docked}}):null,o?(0,J.jsx)(Q,{component:`section`,"aria-label":s,style:ar(),sx:{flexShrink:0,pl:ge(),pr:ge(),pt:R(`mastheadPadY`,oe),pb:c?`calc(${R(`mastheadPadY`,oe)} - 8px)`:R(`mastheadPadY`,oe),...M},children:o}):null,c?(0,J.jsx)(Q,{"data-plane-tabs":!0,sx:{flexShrink:0,minWidth:0},children:c}):null,(0,J.jsx)(Q,{"data-plane-main":!0,sx:{flex:1,minWidth:0,minHeight:0,display:`flex`,...j},children:(0,J.jsx)(Q,{sx:{flex:1,minWidth:0,overflow:`auto`,...c?{maskImage:gq,WebkitMaskImage:gq}:{}},children:u})})]})]})})})}function vq({title:e,description:t,actions:n,maxWidth:r,children:i,...a}){return(0,J.jsx)(_q,{...a,children:(0,J.jsxs)(Q,{sx:{pl:ge(),pr:_e(),py:3,display:`grid`,gap:2.5,alignContent:`start`,maxWidth:r,boxSizing:`content-box`},children:[(0,J.jsx)(PG,{title:e,description:t,actions:n}),i]})})}var yq=/^[a-z0-9-]+$/;function bq(e){return`${e.domain}:${e.type}:${e.id}`}var xq=e=>e===void 0||typeof e==`string`,Sq=e=>typeof e==`string`&&e!==``;function Cq(e){if(typeof e!=`object`||!e)return!1;let{domain:t,type:n,id:r,label:i,href:a,summary:o}=e;return Sq(t)&&Sq(r)&&typeof i==`string`&&typeof n==`string`&&yq.test(n)&&xq(a)&&xq(o)}function wq(e,t){return`${e}__${t}`}function Tq(e){let t=e.indexOf(`__`);return t<=0||t+2>=e.length?null:{domain:e.slice(0,t),name:e.slice(t+2)}}var Eq=`__aistrikeTitlePath`;function Dq(e){document.title=e,globalThis[Eq]=globalThis.location.pathname}function Oq(e,t){history.pushState(null,``,e),globalThis.__aistrikeHistoryPatched!==!0&&dispatchEvent(new PopStateEvent(`popstate`)),t?.title!==void 0&&Dq(t.title)}var kq=/[\x00-\x20\x7f\\]/;function Aq(e){return!e.startsWith(`/`)||e.startsWith(`//`)?!1:!kq.test(e)}var jq={session:`aistrike.session`,tenant:`aistrike.tenant`,theme:`aistrike.theme`,brand:`aistrike.brand`,domains:`aistrike.shell.domains`,settings:`aistrike.shell.settings`,route:`aistrike.shell.route`};function Mq(){return{local:globalThis.localStorage,session:globalThis.sessionStorage}}function Nq(e,t){try{let n=e.getItem(t);return n===null?null:JSON.parse(n)}catch{return null}}function Pq(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function Fq(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.sub==`string`&&Pq(t.permissions)&&Pq(t.modules)&&Pq(t.tenants)}function Iq(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.accessToken==`string`&&typeof t.expiresAt==`number`&&Fq(t.claims)}function Lq(e=Mq(),t=Date.now()){let n=Nq(e.local,jq.session);return Iq(n)&&n.expiresAt>t?n:null}function Rq(e,t){return Lq(e,t)?.accessToken??null}function zq(e,t){return Lq(e,t)?.claims??null}function Bq(e=Mq()){let t=Nq(e.session,jq.tenant);return typeof t?.tenantId==`string`?t.tenantId:null}var Vq=[`tab`,`browser`,`user`],Hq=/^[a-z0-9-]+(?:\.[a-z0-9-]+){2,}$/,Uq=`__aistrikeTabId`;function Wq(){if(typeof crypto.randomUUID==`function`)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint8Array(16));e[6]=64+e[6]%16,e[8]=128+e[8]%64;let t=[...e].map(e=>e.toString(16).padStart(2,`0`)).join(``);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}function Gq(){let e=globalThis;return typeof e[Uq]!=`string`&&(e[Uq]=Wq()),e[Uq]}function Kq(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.id==`string`&&typeof t.topic==`string`&&typeof t.scope==`string`&&Vq.includes(t.scope)&&typeof t.source==`string`&&typeof t.tabId==`string`&&typeof t.ts==`number`&&`payload`in t}function qq(e,t){return e.endsWith(`.*`)?t.startsWith(e.slice(0,-1)):t===e}function Jq(e){let{source:t}=e,n=e.tabId??Gq(),r=(e.createChannel??(e=>new BroadcastChannel(e)))(e.channelName??`aistrike`),i=new Set;return r.onmessage=e=>{let t=e.data;if(Kq(t)&&(t.scope!==`tab`||t.tabId===n)){for(let{pattern:e,handler:n}of[...i])if(qq(e,t.topic))try{n(t)}catch(e){typeof reportError==`function`?reportError(e):console.error(e)}}},{source:t,tabId:n,publish(e,i,a){if(!Hq.test(e))throw Error(`Invalid topic "${e}": use <source>.<noun>.<verb>`);if(!e.startsWith(`${t}.`))throw Error(`"${t}" may only publish topics starting with "${t}."`);let o={id:Wq(),topic:e,scope:a.scope,source:t,tabId:n,ts:Date.now(),payload:i};return r.postMessage(o),o},subscribe(e,t){let n={pattern:e,handler:t};return i.add(n),()=>{i.delete(n)}},close(){i.clear(),r.close()}}}var Yq={sessionChanged:`shell.session.changed`,sessionIdleWarning:`shell.session.idle.warning`,sessionActivity:`shell.session.activity`,sessionEnded:`shell.session.ended`,tenantChanged:`shell.tenant.changed`,themeChanged:`shell.theme.changed`,brandChanged:`shell.brand.changed`,mfeStatus:`shell.mfe.status`,settingsChanged:`shell.settings.changed`,assistantFocused:`shell.assistant.focused`,locationChanged:`shell.location.changed`,contextChanged:`shell.context.changed`,toolInvoked:`shell.tool.invoked`,commandCompleted:`shell.command.completed`,commandInvoked:`shell.command.invoked`,toolCompleted:`shell.tool.completed`,detailsRequested:`shell.details.requested`,detailsResolved:`shell.details.resolved`,assistantAsked:`shell.assistant.asked`},Xq={paneDismissed:`assistant.pane.dismissed`,contextRequested:`assistant.context.requested`,toolRequested:`assistant.tool.requested`,commandRequested:`assistant.command.requested`,askAccepted:`assistant.ask.accepted`,detailsRequested:`assistant.details.requested`,sessionRequested:`assistant.session.requested`},Zq={session:`aistrike.assistant.session`},Qq=yq,$q=async t=>e(()=>import(t),[],import.meta.url),eJ=new Map;async function tJ(e,t){let n,r=new Promise((...[,e])=>{n=setTimeout(()=>{e(Error(`the module did not load within ${t} ms`))},t)});try{return await Promise.race([e,r])}finally{clearTimeout(n)}}async function nJ(e,t,n){let r=await tJ(t(e),n);if(typeof r!=`object`||!r||typeof r.mount!=`function`)throw Error(`the module does not export mount`);return r}async function rJ(e,t={}){let n=eJ.get(e);if(n!==void 0)return n;let r=nJ(e,t.importModule??$q,t.timeoutMs??5e3);return eJ.set(e,r),r.catch(()=>{eJ.delete(e)}),r}var iJ=e=>typeof e==`object`&&!!e&&!Array.isArray(e),aJ=e=>e===`\\`||e===`[`||e===`]`,oJ=/\s/;function sJ(e,t){let n=``;for(let r=t;r<e.length;r+=1){let t=e[r];if(t===`]`)return{label:n,next:r+1};if(t===`[`)return null;if(t===`\\`){if(!aJ(e[r+1]??``))return null;r+=1,n+=e[r]}else n+=t}return null}function cJ(e,t){if(e[t]!==`(`)return null;let n=e.indexOf(`)`,t+1);if(n<0)return null;let r=e.slice(t+1,n);return r===``||oJ.test(r)?null:{ref:r,next:n+1}}function lJ(e,t){let n=sJ(e,t+1);if(n===null||n.label===``)return null;let r=cJ(e,n.next);return r===null?null:{segment:{kind:`ref`,label:n.label,ref:r.ref},next:r.next}}function uJ(e,t){let n=e[t];if(n===`[`)return lJ(e,t);if(n===`]`)return null;if(n!==`\\`)return{segment:{kind:`text`,text:n},next:t+1};let r=e[t+1]??``;return aJ(r)?{segment:{kind:`text`,text:r},next:t+2}:null}function dJ(e){let t=[],n=0;for(;n<e.length;){let r=uJ(e,n);if(r===null)return null;let i=t.at(-1);r.segment.kind===`text`&&i?.kind===`text`?i.text+=r.segment.text:t.push(r.segment),n=r.next}return t}function fJ(e,t){let n=e.split(`:`);if(n.length!==2&&n.length!==3)return null;let[r,i,a]=n.length===3?n:[t,...n];if(!yq.test(r)||!yq.test(i))return null;try{let e=decodeURIComponent(a);return e===``?null:{domain:r,type:i,id:e}}catch{return null}}function pJ(e){let t=dJ(e);return t===null?e:t.map(e=>e.kind===`text`?e.text:e.label).join(``)}function mJ(e){return e.replace(/[\\[\]]/g,`\\$&`)}var hJ=e=>typeof e==`string`&&e.trim()!==``,gJ=e=>typeof e==`string`&&Aq(e),_J=(e,t)=>e===void 0||t(e);function vJ(e){if(!Array.isArray(e)||e.length>12)return null;let t=[];for(let n of e){if(!iJ(n)||typeof n.label!=`string`||typeof n.value!=`string`)return null;t.push({label:n.label,value:n.value})}return t}function yJ(e){if(!iJ(e)||!hJ(e.title))return null;let{icon:t,fields:n,href:r}=e,i=n===void 0?void 0:vJ(n);return i===null||!_J(t,hJ)||!_J(r,gJ)?null:{title:e.title,...typeof t==`string`?{icon:t}:{},...i===void 0?{}:{fields:i},...typeof r==`string`?{href:r}:{}}}var bJ=15e3,xJ=15e3,SJ=uF(),CJ=e=>typeof e==`object`&&!!e&&!Array.isArray(e),wJ=e=>typeof e==`string`,TJ=e=>typeof e==`number`&&Number.isFinite(e),EJ=e=>Number.isInteger(e)&&e>=0,DJ=e=>wJ(e)&&e!==``,OJ=e=>wJ(e)?e:null,kJ=(e,t)=>Array.isArray(e)?e.flatMap(e=>t(e)??[]):[],AJ=new Set([`awaiting-approval`,`running`,`done`,`error`,`declined`]),jJ=new Set([`end`,`page_tool`,`approval`]),MJ=new Set([`memory`,`connector`,`agent`,`workflow`]),NJ=new Set([`source`,`action`]),PJ=new Set([`used`,`running`,`done`,`error`]),FJ=new Set([`proposed`,`approved`,`declined`]);function IJ(e){if(!CJ(e)||!DJ(e.id)||!wJ(e.name)||!wJ(e.mime)||!TJ(e.size)||!wJ(e.createdAt)||!wJ(e.url))return null;let{id:t,name:n,mime:r,size:i,createdAt:a,url:o}=e;return{id:t,name:n,mime:r,size:i,createdAt:a,url:o}}var LJ=e=>Array.isArray(e)&&e.every(CJ),RJ=e=>Array.isArray(e)&&e.every(e=>CJ(e)&&wJ(e.id)&&wJ(e.label)),zJ={chart:e=>CJ(e.config)&&LJ(e.rows)?{config:e.config,rows:e.rows}:null,table:e=>RJ(e.columns)&&LJ(e.rows)&&(e.downloadUrl===void 0||wJ(e.downloadUrl))?{columns:e.columns,rows:e.rows,...wJ(e.downloadUrl)?{downloadUrl:e.downloadUrl}:{}}:null,document:e=>wJ(e.markdown)?{markdown:e.markdown}:null,image:e=>wJ(e.url)&&wJ(e.mime)?{url:e.url,mime:e.mime,...TJ(e.width)?{width:e.width}:{},...TJ(e.height)?{height:e.height}:{}}:null,file:e=>wJ(e.url)&&wJ(e.mime)&&TJ(e.size)?{url:e.url,mime:e.mime,size:e.size}:null};function BJ(e){if(!CJ(e)||!DJ(e.id)||!DJ(e.turnId)||!wJ(e.kind)||!wJ(e.title))return null;let{id:t,turnId:n,kind:r,title:i}=e;if(!Object.hasOwn(zJ,r))return{...e,id:t,turnId:n,kind:r,title:i};let a=zJ[r](e);return a===null?null:{id:t,turnId:n,kind:r,title:i,...a}}var VJ=e=>MJ.has(e.kind)&&NJ.has(e.use)&&PJ.has(e.state);function HJ(e){if(!CJ(e)||!DJ(e.id)||!DJ(e.turnId)||!VJ(e)||!wJ(e.label)||e.detail!==void 0&&!wJ(e.detail))return null;let{id:t,turnId:n,label:r}=e;return{id:t,turnId:n,kind:e.kind,use:e.use,label:r,state:e.state,...wJ(e.detail)?{detail:e.detail}:{}}}function UJ(e,t){if(!CJ(e)||!DJ(e.id)||!wJ(e.route)||!wJ(e.label))return null;let n=DJ(e.turnId)?e.turnId:t,{id:r,route:i,label:a,reason:o}=e;return n===void 0||o!==void 0&&!wJ(o)?null:{id:r,turnId:n,route:i,label:a,...wJ(o)?{reason:o}:{}}}function WJ(e){return CJ(e)&&wJ(e.domainId)&&wJ(e.id)&&(e.source===`page`||e.source===`domain`)?{domainId:e.domainId,id:e.id,source:e.source}:void 0}var GJ=e=>CJ(e)&&wJ(e.id)&&wJ(e.title)?{id:e.id,title:e.title}:void 0;function KJ(e){return!DJ(e.id)||!wJ(e.tool)||!AJ.has(e.state)?null:{id:e.id,tool:e.tool,input:e.input??{},state:e.state,...`result`in e?{result:e.result}:{},...wJ(e.error)?{error:e.error}:{}}}function qJ(e){if(!CJ(e))return null;if(e.kind===`text`)return wJ(e.text)?{kind:`text`,text:e.text}:null;if(e.kind===`artifact`||e.kind===`view`)return DJ(e.id)?{kind:e.kind,id:e.id}:null;let t=e.kind===`step`?KJ(e):null;return t===null?null:{kind:`step`,...t}}function JJ(e,t){if(!wJ(e.text))return null;let n=WJ(e.suggestion),r=GJ(e.skill);return{role:`user`,...t,text:e.text,refs:Array.isArray(e.refs)?e.refs.filter(Cq):[],...e.markup===!0?{markup:!0}:{},...n===void 0?{}:{suggestion:n},...r===void 0?{}:{skill:r},attachments:kJ(e.attachments,IJ)}}function YJ(e,t){let n=e.acting===`ask`||e.acting===`plan`||e.acting===`agent`?e.acting:void 0,r=CJ(e.approval)&&DJ(e.approval.id)&&FJ.has(e.approval.state)?{id:e.approval.id,state:e.approval.state}:void 0;return{role:`assistant`,...t,...n===void 0?{}:{acting:n},...wJ(e.reason)?{reason:e.reason}:{},blocks:kJ(e.blocks,qJ),...r===void 0?{}:{approval:r}}}function XJ(e){if(!CJ(e)||!DJ(e.id)||!DJ(e.turnId))return null;let t={id:e.id,turnId:e.turnId,createdAt:wJ(e.createdAt)?e.createdAt:``};return e.role===`user`?JJ(e,t):e.role===`assistant`?YJ(e,t):null}function ZJ(e){return CJ(e)?e.kind===`approval`?DJ(e.id)&&Array.isArray(e.steps)&&e.steps.every(wJ)?{kind:`approval`,id:e.id,steps:e.steps}:null:e.kind===`page_tool`?{kind:`page_tool`,calls:kJ(e.calls,e=>CJ(e)&&DJ(e.id)&&wJ(e.domainId)&&wJ(e.name)?{id:e.id,domainId:e.domainId,name:e.name,input:e.input??{}}:null)}:null:null}function QJ(e){return!CJ(e)||!DJ(e.id)?null:{id:e.id,title:OJ(e.title),createdAt:wJ(e.createdAt)?e.createdAt:``,updatedAt:wJ(e.updatedAt)?e.updatedAt:``,archivedAt:OJ(e.archivedAt),lastEventId:EJ(e.lastEventId)?e.lastEventId:0}}function $J(e){let t=QJ(e);return t===null?null:{...t,waiting:ZJ(e.waiting)}}function eY(e){let t=$J(e);if(t===null)return null;let n=e;return{...t,messages:kJ(n.messages,XJ),artifacts:kJ(n.artifacts,BJ),resources:kJ(n.resources,HJ),views:kJ(n.views,e=>UJ(e)),truncated:n.truncated===!0}}var tY=new Map([[`turn`,e=>{if(!DJ(e.messageId))return null;let t=e.message===void 0?null:XJ(e.message);return{type:`turn`,messageId:e.messageId,...t===null?{}:{message:t}}}],[`text`,e=>wJ(e.delta)?{type:`text`,delta:e.delta}:null],[`mode`,e=>e.acting===`ask`||e.acting===`plan`||e.acting===`agent`?{type:`mode`,acting:e.acting,...wJ(e.reason)?{reason:e.reason}:{}}:null],[`step`,e=>{let t=KJ(e);return t===null?null:{type:`step`,...t}}],[`page_tool`,e=>wJ(e.id)&&wJ(e.domainId)&&wJ(e.name)?{type:`page_tool`,id:e.id,domainId:e.domainId,name:e.name,input:e.input??{}}:null],[`approval`,e=>wJ(e.id)&&Array.isArray(e.steps)&&e.steps.every(wJ)?{type:`approval`,id:e.id,steps:e.steps}:null],[`title`,e=>wJ(e.title)?{type:`title`,title:e.title}:null],[`artifact`,e=>{let t=BJ(e);return t===null?null:{type:`artifact`,...t}}],[`resource`,e=>{let t=HJ(e);return t===null?null:{type:`resource`,...t}}],[`view`,e=>{let t=UJ(e,``);if(t===null)return null;let{id:n,route:r,label:i,reason:a}=t;return{type:`view`,id:n,route:r,label:i,...a===void 0?{}:{reason:a}}}],[`session`,e=>wJ(e.updatedAt)?{type:`session`,updatedAt:e.updatedAt,...`title`in e?{title:OJ(e.title)}:{},...`archivedAt`in e?{archivedAt:OJ(e.archivedAt)}:{}}:null],[`session.deleted`,e=>wJ(e.id)?{type:`session.deleted`,id:e.id}:null],[`done`,e=>({type:`done`,stop:jJ.has(e.stop)?e.stop:`end`})]]),nY=new Set([`session`,`session.deleted`]);function rY(e,t){let n;try{n=JSON.parse(t)}catch{return null}if(!CJ(n))return null;let r=DJ(n.turnId)&&EJ(n.seq);if(!r&&!nY.has(e))return null;let i=tY.get(e)?.(n)??null;return i===null||!r?i:{...i,turnId:n.turnId,seq:n.seq}}function iY(e){let t=`message`,n=null,r=[];for(let i of e.split(`
272
+ `))if(i.startsWith(`event:`))t=i.slice(6).trim();else if(i.startsWith(`data:`))r.push(i.slice(5).trimStart());else if(i.startsWith(`id:`)){let e=Number(i.slice(3).trim());n=Number.isInteger(e)&&e>=0?e:null}let i=r.length===0?null:rY(t,r.join(`
273
+ `));return i===null?null:{id:n,event:i}}async function*aY(e,t){let n=e.getReader(),r=()=>{n.cancel().catch(()=>void 0)};t?.addEventListener(`abort`,r,{once:!0});let i=new TextDecoder,a=``;try{for(;;){let{done:e,value:t}=await n.read();a+=i.decode(t,{stream:!e}).replace(/\r\n/g,`
274
+ `);let r=a.indexOf(`
275
+
276
+ `);for(;r!==-1;){let e=iY(a.slice(0,r));a=a.slice(r+2),e!==null&&(yield e),r=a.indexOf(`
277
+
278
+ `)}if(e){let e=a.trim()===``?null:iY(a);e!==null&&(yield e);return}}}finally{t?.removeEventListener(`abort`,r)}}async function*oY(e,t){for await(let{event:n}of aY(e,t))yield n}var sY=`application/vnd.aistrike.sessions+json; version=1.0`,cY=class extends Error{status;id;constructor(e,t){super(`The assistant's API answered ${e}${t===null?``:` (${t})`}`),this.name=`ApiError`,this.status=e,this.id=t}};function lY(e){let t=CJ(e)&&Array.isArray(e.errors)?e.errors[0]:void 0;return CJ(t)&&wJ(t.id)?t.id:null}function uY(e){try{return JSON.parse(e)}catch{return null}}async function dY(e){try{return await e.json()}catch{return null}}async function fY(e){return new cY(e.status,lY(await dY(e)))}function pY(e,t){let n=new Headers([[`Accept`,t]]),r=e();return r!==null&&n.set(`Authorization`,`Bearer ${r}`),n}var mY=e=>e.fetch??globalThis.fetch.bind(globalThis),hY=(e,t,n=``)=>`${e.apiBase}sessions/${encodeURIComponent(t)}${n}`;async function gY(e,t,n,r,i){let a=pY(e.token,sY);for(let[e,t]of n.headers??[])a.set(e,t);n.body!==void 0&&a.set(`Content-Type`,`application/json`);let o=await mY(e)(t,{method:n.method??`GET`,headers:a,...n.body===void 0?{}:{body:JSON.stringify(n.body)},signal:e.signal});if(!r.includes(o.status))throw await fY(o);let s=await dY(o),c=i(CJ(s)?s.data:void 0);if(c===null)throw new cY(o.status,null);return c}async function _Y(e){return gY(e,`${e.apiBase}sessions`,{method:`POST`,body:e.scope},[201],$J)}function vY(e,t){let n=`all`in e.tenantScope?[[`all`,`true`]]:e.tenantScope.tenantIds.slice(0,1).map(e=>[`tenantId`,e]),r=[[`limit`,t.limit?.toString()],[`cursor`,t.cursor],[`archived`,t.archived?.toString()],[`sort`,t.sort],[`ids`,t.ids?.join(`,`)]];return new URLSearchParams([[`orgId`,e.orgId],...n,...r.flatMap(([e,t])=>t===void 0?[]:[[e,t]])])}async function yY(e){let t=vY(e.scope,e.params??{}),n=pY(e.token,sY),r=await mY(e)(`${e.apiBase}sessions?${t.toString()}`,{headers:n,signal:e.signal});if(r.status!==200)throw await fY(r);let i=await dY(r);if(!CJ(i)||!Array.isArray(i.data))throw new cY(r.status,null);let a=wJ(i.nextCursor)&&i.nextCursor!==``?i.nextCursor:null;return{sessions:i.data.flatMap(e=>QJ(e)??[]),nextCursor:a,hasMore:i.hasMore===!0&&a!==null}}async function bY(e){return gY(e,hY(e,e.sessionId),{},[200],eY)}async function xY(e){let t={method:`PATCH`,body:e.body,headers:[[`If-Unmodified-Since`,e.updatedAt]]};return gY(e,hY(e,e.sessionId),t,[200],$J)}async function SY(e){await gY(e,hY(e,e.sessionId),{method:`DELETE`},[200],()=>!0)}async function*CY(e){let t=pY(e.token,`text/event-stream, ${sY}`);t.set(`Content-Type`,`application/json`);let n=await mY(e)(hY(e,e.sessionId,`/turns`),{method:`POST`,headers:t,body:JSON.stringify(e.request),signal:e.signal});if(!n.ok)throw await fY(n);if(n.body===null)throw new cY(n.status,null);yield*oY(n.body,e.signal)}async function wY(e){return new Promise((t,n)=>{let r=e.xhr?.()??new XMLHttpRequest,{signal:i}=e;if(i?.aborted===!0){n(new DOMException(`Stopped`,`AbortError`));return}r.open(`POST`,hY(e,e.sessionId,`/attachments`)),r.setRequestHeader(`Accept`,sY);let a=e.token();a!==null&&r.setRequestHeader(`Authorization`,`Bearer ${a}`),r.upload.onprogress=t=>{t.lengthComputable&&t.total>0&&e.onProgress?.(Math.min(1,t.loaded/t.total))},r.onload=()=>{let e=uY(r.responseText),i=r.status===201&&CJ(e)?IJ(e.data):null;i===null?n(new cY(r.status,lY(e))):t(i)},r.onerror=()=>n(TypeError(`The upload failed`)),r.onabort=()=>n(new DOMException(`Stopped`,`AbortError`)),i?.addEventListener(`abort`,()=>r.abort(),{once:!0});let o=new FormData;o.append(`file`,e.file,e.file.name),r.send(o)})}async function TY(e){await gY(e,hY(e,e.sessionId,`/attachments/${encodeURIComponent(e.attachmentId)}`),{method:`DELETE`},[200],()=>!0)}function EY(e,t){try{let n=new URL(e,globalThis.location?.href),r=new URL(t,n);return r.origin===n.origin&&r.pathname.startsWith(`${n.pathname}sessions/`)&&r.hash===``?r.href:null}catch{return null}}async function DY(e){let t=EY(e.apiBase,e.path);if(t===null)throw new cY(400,`invalid_request`);let n=await mY(e)(t,{headers:pY(e.token,e.accept??`*/*`),signal:e.signal});if(n.status!==200)throw await fY(n);return n.blob()}function OY(e){return Math.min(1e3*2**e,3e4)}async function kY(e,t){await new Promise(n=>{let r=setTimeout(n,e);t.addEventListener(`abort`,()=>{clearTimeout(r),n()},{once:!0})})}function AY(e){let t=new AbortController,{signal:n}=t;e.signal?.addEventListener(`abort`,()=>t.abort(),{once:!0});let r=e.delay??kY,i=e.after,a=0,o=null,s=(t,n)=>{o!==t&&(o=t,e.onState(t,n))},c=async t=>{if(t.status===410)return{next:`stop`,closed:`gone`};if(t.status===404)return{next:`stop`,closed:`not_found`};if(t.status!==409||(await fY(t)).id!==`events_expired`)return{next:`retry`};let n=await e.onExpired();return n===null?{next:`stop`,closed:`stopped`}:(i=n,{next:`reopen`})},l=async t=>{let r=pY(e.token,`text/event-stream`);t&&i!==null&&r.set(`Last-Event-ID`,String(i));let o=i===null?``:`?after=${i}`,l=await mY(e)(hY(e,e.sessionId,`/events${o}`),{headers:r,signal:n});if(l.status!==200||l.body===null)return c(l);a=0,s(`connected`);for await(let{id:t,event:r}of aY(l.body,n))if(t!==null&&(i=i===null?t:Math.max(i,t)),e.onEvent(r,t),r.type===`session.deleted`)return{next:`stop`,closed:`deleted`};return{next:`retry`}};return(async()=>{let e=!1;for(;!n.aborted;){let t;try{t=await l(e)}catch{t={next:`retry`}}if(n.aborted)break;if(t.next===`stop`){s(`closed`,t.closed);return}t.next===`retry`?(s(`reconnecting`),await r(OY(a),n),a+=1,e=!0):(a=0,e=!1)}s(`closed`,`stopped`)})().catch(()=>void 0),{close(){t.abort()}}}var jY=200,MY=40,NY=(e,t)=>wJ(e)&&e.trim()!==``&&e.length<=t;function PY(e){if(!CJ(e)||!wJ(e.id)||!Qq.test(e.id)||!NY(e.text,jY))return null;let{id:t,text:n,label:r}=e;return r===void 0?{id:t,text:n}:NY(r,MY)?{id:t,text:n,label:r}:null}async function FY(e){let t=mY(e),n=new URLSearchParams([[`domain`,e.domainId],[`mode`,e.mode]]),r=await t(`${e.apiBase}prompts?${n.toString()}`,{headers:pY(e.token,sY),signal:e.signal});if(r.status!==200)return[];let i=await dY(r),a=CJ(i)?i.data:void 0;return(CJ(a)&&Array.isArray(a.prompts)?a.prompts:[]).flatMap(e=>{let t=PY(e);return t===null?[]:[t]})}var IY=50,LY=4,RY=/^[a-z0-9][a-z0-9-]*$/,zY=40,BY=200;function VY(e){if(!CJ(e)||!wJ(e.id)||!RY.test(e.id)||!NY(e.title,zY))return null;let{id:t,title:n,description:r}=e;return wJ(r)&&r.length<=BY?{id:t,title:n,description:r}:null}async function HY(e,t){let n=new URLSearchParams([[`limit`,String(IY)],...t===null?[]:[[`cursor`,t]]]),r;try{let t=await mY(e)(`${e.apiBase}skills?${n.toString()}`,{headers:pY(e.token,sY),signal:e.signal});if(t.status!==200)return null;r=await t.json()}catch{return null}if(!CJ(r)||!Array.isArray(r.data))return null;let i=r.hasMore===!0&&wJ(r.nextCursor)&&r.nextCursor!==``?r.nextCursor:null;return{skills:r.data.flatMap(e=>VY(e)??[]),next:i}}async function UY(e){let t=new Map,n=null;for(let r=0;r<LY;r+=1){let r=await HY(e,n);if(r===null)break;for(let e of r.skills)t.has(e.id)||t.set(e.id,e);if(r.next===null)break;n=r.next}return[...t.values()]}function WY(e){let{route:t,title:n,screen:r,domains:i,pageTools:a,suggestions:o}=e;return{route:t,title:n,screen:r,domains:i,pageTools:a,suggestions:o}}function GY(){return{revision:0,route:{path:location.pathname,domainId:null},title:``,screen:null,domains:[],pageTools:[],pageCommands:[],suggestions:[]}}var KY=e=>typeof e==`object`&&!!e;function qY(e){if(!KY(e))return!1;let{revision:t,route:n,title:r,screen:i,domains:a,pageTools:o,suggestions:s}=e;return typeof t==`number`&&KY(n)&&typeof r==`string`&&(i===null||KY(i))&&[a,o,s].every(e=>Array.isArray(e))}function JY(e){if(!KY(e))return!1;let{id:t,title:n,domainId:r,keywords:i,icon:a}=e;return typeof t==`string`&&typeof n==`string`&&typeof r==`string`&&Array.isArray(i)&&i.every(e=>typeof e==`string`)&&(a===null||typeof a==`string`)}var YY=e=>{let t=e.pageCommands;return{...e,pageCommands:Array.isArray(t)?t.filter(JY):[]}};function XY(e){let t=GY(),n=new Set,r=e.subscribe(Yq.contextChanged,e=>{let r=e.payload;if(!(e.source!==`shell`||!qY(r)||r.revision<=t.revision)){t=YY(r);for(let e of[...n])e()}});return e.publish(Xq.contextRequested,void 0,{scope:`tab`}),{get:()=>t,subscribe(e){return n.add(e),()=>{n.delete(e)}},dispose(){r(),n.clear()}}}var ZY=[{mode:`auto`,label:`Auto`,hint:`Answers questions, makes one small change directly, plans anything larger`},{mode:`ask`,label:`Ask`,hint:`Answers only; never changes anything`},{mode:`plan`,label:`Plan`,hint:`Proposes every change and waits for you to approve it`},{mode:`agent`,label:`Agent`,hint:`Makes the changes you ask for, and reports what it did`}],QY={auto:`Auto`,ask:`Ask`,plan:`Plan`,agent:`Agent`};function $Y(e,t,n){return e===`auto`?`Auto → ${QY[t]}${n===void 0||n===``?``:` · ${n}`}`:`${QY[t]} mode`}var eX=new Set([`pending`,`awaiting-approval`,`running`]);function tX(e,t){let n=e.at(-1);return n?.kind===`text`?[...e.slice(0,-1),{kind:`text`,text:n.text+t}]:[...e,{kind:`text`,text:t}]}function nX(e,t){for(let n=e.length-1;n>=0;--n)if(t(e[n]))return n;return-1}function rX(e){return{id:e.id,tool:e.tool,input:e.input,state:e.state,...`result`in e?{result:e.result}:{},...e.error===void 0?{}:{error:e.error}}}var iX=(e,t)=>e.role===`assistant`&&e.blocks.some(e=>e.kind===`tool`&&e.call.id===t),aX=e=>e?.role===`assistant`&&e.blocks.length===0&&e.caption===void 0&&e.note===void 0&&e.plan===void 0;function oX(e,t,n=()=>!0){let r=e.map(e=>{if(e.role!==`assistant`||!n(e))return e;let r=e.blocks.map(e=>e.kind===`tool`&&eX.has(e.call.state)?{kind:`tool`,call:{...e.call,state:`error`,error:t}}:e);return{...e,blocks:r,...e.plan===`proposed`?{plan:`declined`}:{}}});return aX(r.at(-1))?r.slice(0,-1):r}function sX(e,t){let{id:n,turnId:r,createdAt:i,text:a,refs:o,markup:s,suggestion:c,skill:l,attachments:u}=e;return{role:`user`,id:n,turnId:r,at:i,text:a,refs:o,...s===!0?{markup:s}:{},...c===void 0?{}:{suggestion:c},...l===void 0?{}:{skill:l},attachments:u,...t===void 0?{}:{origin:t}}}function cX(e,t){let n=e.blocks.map(e=>e.kind===`step`?{kind:`tool`,call:rX({...e,type:`step`})}:e),{acting:r,approval:i}=e;return{role:`assistant`,id:e.id,turnId:e.turnId,at:e.createdAt,blocks:n,...r===void 0?{}:{acting:r,caption:$Y(t,r,e.reason)},...i===void 0?{}:{plan:i.state,approval:i.id}}}var lX=e=>nX(e,e=>e.role===`assistant`);function uX(e,t){let n=[...e],r=t.steps.map(e=>nX(n,t=>iX(t,e))).find(e=>e!==-1)??lX(n),i=n[r];return i?.role===`assistant`&&(n[r]={...i,plan:`proposed`,approval:t.id}),n}function dX(e,t){let n=[...e];for(let e of t){let t=nX(n,t=>iX(t,e.id)),r=t===-1?lX(n):t,i=n[r];if(i?.role===`assistant`){let a={id:e.id,tool:`${e.domainId}__${e.name}`,input:e.input,state:`running`},o=t===-1?[...i.blocks,{kind:`tool`,call:a}]:i.blocks.map(t=>t.kind===`tool`&&t.call.id===e.id?{kind:`tool`,call:{...t.call,state:`running`}}:t);n[r]={...i,blocks:o}}}return n}function fX(e,t){return t===null?e:t.kind===`approval`?uX(e,t):dX(e,t.calls)}function pX(e,t){return fX(e.messages.map(e=>e.role===`user`?sX(e):cX(e,t)),e.waiting)}function mX(e){let t=e.markup===!0?pJ(e.text):e.text;return(e.skill===void 0?t:`/${e.skill.id} ${t}`.trimEnd()).slice(0,60)}function hX(e){return e.flatMap(e=>e.role===`user`&&e.turnId!==``?[{id:e.turnId,at:e.at,excerpt:mX(e)}]:[])}function gX(e,t,n,r){let i=e.filter(e=>e.role===`user`&&e.turnId!==``),a=new Set,o=[];for(let e of[...i].reverse())for(let t of[...e.refs].reverse()){let n=bq(t);a.has(n)||(a.add(n),o.push({kind:`reference`,turnId:e.turnId,ref:t}))}return[...t,...o,...n.map(e=>({kind:`artifact`,turnId:e.turnId,artifact:e})),...i.flatMap(e=>e.attachments.map(t=>({kind:`attachment`,turnId:e.turnId,attachment:t}))),...r.map(e=>({kind:`resource`,turnId:e.turnId,resource:e}))]}var _X=e=>Object.fromEntries(Object.entries(e).filter(([e])=>e!==`type`&&e!==`seq`)),vX=`aistrike.assistant.mode`,yX=20971520,bX=`The assistant's answer was cut off`,xX=`Session is not active`,SX={start:`Couldn't start the session`,open:`Couldn't open this session`,noOrg:`Your sign-in has no organization, so the assistant can't start`,scope:`You can't use the assistant in this tenant`,gone:`This session is no longer available`,busy:`A turn is running on another device`,tooLong:`This message is too long`,uploading:`Wait for the upload to finish`,tooBig:`Files over 20 MB can't be attached`,tooMany:`At most 10 files per message`,fileType:`This file type isn't accepted`,upload:`Couldn't upload`},CX=new Set([`auto`,`ask`,`plan`,`agent`]);function wX(e){try{let t=JSON.parse(e.getItem(Zq.session)??`{}`);if(typeof t!=`object`||!t||Array.isArray(t))return{};let n={};for(let[e,r]of Object.entries(t)){let t=typeof r==`object`&&r?r.mode:void 0;CX.has(t)&&(n[e]={mode:t})}return n}catch{return{}}}function TX(e){let t=e.getItem(vX);return t!==null&&CX.has(t)?t:`auto`}function EX(e,t,n){try{e.setItem(vX,n),t!==null&&e.setItem(Zq.session,JSON.stringify({...wX(e),[t]:{mode:n}}))}catch{}}var DX=0,OX=e=>(DX+=1,`local-${e}${DX}`),kX=()=>new Date().toISOString();function AX(e,t,n,r){let{screen:i,suggestion:a,skill:o}=n,s={role:`user`,id:OX(`u`),turnId:``,at:kX(),text:e,refs:t,...i===void 0?{}:{screen:i}},c=r.length===0?{}:{attachments:r.map(e=>e.id)};if(o!==void 0)return{message:{...s,skill:{id:o.id,title:o.title},attachments:r},input:{kind:`message`,text:e,refs:t,skill:{id:o.id},...c}};let l=n.markup===!0?{markup:!0}:{},u=a===void 0?{}:{suggestion:a};return{message:{...s,...u,...l,attachments:r},input:{kind:`message`,text:e,refs:t,...l,...u,...c}}}var jX=e=>e instanceof Error?e.message:String(e),MX=e=>e instanceof DOMException&&e.name===`AbortError`,NX=()=>new DOMException(`Stopped`,`AbortError`),PX=class extends Error{reason;constructor(e,t){super(e===`create`?SX.start:SX.noOrg,{cause:t}),this.reason=e}},FX=e=>({error:e,canRetry:!0,closed:null}),IX=e=>({error:e,canRetry:!1,closed:null}),LX=e=>e instanceof cY&&e.id===`scope_not_permitted`?IX(SX.scope):FX(SX.start);function RX(e){return e.status===404?{error:SX.gone,canRetry:!1,closed:`not_found`}:e.id===`not_waiting`?{error:null,canRetry:!1,closed:null}:e.id===`turn_in_progress`?FX(SX.busy):e.status===413?IX(SX.tooLong):null}var zX=e=>e instanceof cY&&e.id===`turn_in_progress`;function BX(e,t){return MX(e)||t.aborted?{error:null,canRetry:!1,closed:null}:e instanceof PX?e.reason===`noOrg`?IX(SX.noOrg):LX(e.cause):(e instanceof cY?RX(e):null)??FX(jX(e))}function VX(e,t){return e.type===`page_tool`?{stop:`page_tool`,calls:[...t.stop===`page_tool`?t.calls:[],{id:e.id,domainId:e.domainId,name:e.name,input:e.input}]}:e.type===`approval`?{stop:`approval`,id:e.id,at:-1}:t}function HX(e){return e===`declined`?`declined`:e===`running`||e===`done`?`approved`:null}function UX(e,t){if(!t||e.screen===null)return null;let n=e.route.path;return{kind:`context`,route:n,title:e.title,summary:e.screen.summary??null,view:{route:n,label:e.title===``?n:e.title}}}var WX=(e,t)=>e.some(e=>e.id===t.id)?e.map(e=>e.id===t.id?t:e):[...e,t],GX={ok:!1,error:`Interrupted`};function KX(e){let{api:t,storage:n}=e,r=e.sessionId!==null&&e.sessionId!==``?e.sessionId:null,i=(e,t)=>({sessionId:e,title:null,archivedAt:null,updatedAt:null,lastEventId:null,messages:[],artifacts:[],resources:[],views:[],attachments:[],mode:t,running:!1,runningElsewhere:!1,loading:e!==null,error:null,canRetry:!1,notice:null,unsent:null,closed:null,connection:`closed`,truncated:!1,collected:[]}),a=i(r,(r===null?void 0:wX(n)[r]?.mode)??e.mode??TX(n)),o=new Set,s=new Map,c=new Set,l=new AbortController,u=0,d=null,f=null,p=!1,m=new Map,h=new Set,g=new Map,_=null,v=null,y=null,b=null,x=[],S=null,C=null,w=null,T=-1,E=new Map,D=new Map,O=!1,k=()=>{if(O=!1,l.signal.aborted)return;let t=[...a.sessionId===null?[]:[{kind:`identity`,sessionId:a.sessionId,title:a.title}],{kind:`turns`,turns:hX(a.messages)},{kind:`collected`,items:a.collected},{kind:`running`,running:a.running||a.runningElsewhere},...a.closed===null?[]:[{kind:`closed`,reason:a.closed}]];for(let n of t){let t=JSON.stringify(n);D.get(n.kind)!==t&&(D.set(n.kind,t),e.report(n))}},A=e=>{let t=`messages`in e||`artifacts`in e||`resources`in e;if(a={...a,...e},!l.signal.aborted){t&&(a={...a,collected:gX(a.messages,x,a.artifacts,a.resources)}),O||(O=!0,queueMicrotask(k));for(let e of[...o])e()}},j=(e,t)=>{let n=a.messages[e];if(n?.role===`assistant`){let r=[...a.messages];r[e]=t(n),A({messages:r})}},M=e=>{let t=g.get(e),n=t===void 0?-1:a.messages.findIndex(e=>e.id===t);if(n!==-1)return n;let r={role:`assistant`,id:OX(`a`),turnId:e,at:kX(),blocks:[]};return g.set(e,r.id),A({messages:[...a.messages,r]}),a.messages.length-1},N=e=>{let t=g.get(e);g.delete(e);let n=t===void 0?-1:a.messages.findIndex(e=>e.id===t);n!==-1&&aX(a.messages[n])&&A({messages:[...a.messages.slice(0,n),...a.messages.slice(n+1)]})},P=e=>nX(a.messages,t=>iX(t,e)),F=(e,t)=>j(P(e),n=>{let r=n.blocks.map(n=>n.kind===`tool`&&n.call.id===e?{kind:`tool`,call:{...n.call,...t}}:n);return{...n,blocks:r}}),I=(e,t)=>{let n=P(t.id);if(n===-1){j(M(e),e=>({...e,blocks:[...e.blocks,{kind:`tool`,call:t}]}));return}let r={state:t.state};`result`in t&&(r.result=t.result),t.error!==void 0&&(r.error=t.error);let i=a.messages[n],o=i?.role===`assistant`&&i.plan!==void 0&&i.blocks.some(e=>e.kind===`tool`&&e.call.id===t.id&&e.call.state===`awaiting-approval`);F(t.id,r);let s=o?HX(t.state):null;s!==null&&j(n,e=>({...e,plan:s}))},L=(e,t,n)=>{a.messages.some(e=>e.role===`assistant`&&e.blocks.some(e=>e.kind===t&&e.id===n))||j(M(e),e=>({...e,blocks:[...e.blocks,{kind:t,id:n}]}))},R=(e,t,n=y)=>{_=e,h.add(e);let r=n===null?-1:a.messages.findIndex(e=>e.id===n),i=a.messages[r];if(i?.role!==`user`)return;let o=t??i.id;y===n&&(y=o),f?.userId===n&&(f={...f,userId:o}),b!==null&&(x=[...x.filter(t=>t.turnId!==e),{...b,turnId:e}],b=null);let s=[...a.messages];s[r]={...i,id:o,turnId:e},A({messages:s})},z=(e,t)=>{if(h.has(e))return null;let n=new Set([y,f?.input.kind===`message`?f.userId:null]);return a.messages.find(e=>n.has(e.id)&&e.role===`user`&&e.turnId===``&&(e.id===t.id||e.text===t.text))?.id??null},ee={turn:(e,t)=>{let n=t.message,r=n?.role===`user`?z(e,n):null;if(n!==void 0&&r!==null){R(e,n.id,r),h.delete(e),v=e,f=null,A({runningElsewhere:!0,error:null,canRetry:!1});return}if(h.has(e)){R(e,t.messageId);return}let i=a.messages.some(e=>e.id===t.messageId);A({runningElsewhere:!0,...n?.role===`user`&&!i?{messages:[...a.messages,sX(n,`elsewhere`)]}:{}})},text:(e,t)=>j(M(e),e=>({...e,blocks:tX(e.blocks,t.delta)})),mode:(e,t)=>j(M(e),e=>({...e,acting:t.acting,caption:$Y(a.mode,t.acting,t.reason)})),step:(e,t)=>I(e,rX(t)),page_tool:(e,t)=>I(e,{id:t.id,tool:wq(t.domainId,t.name),input:t.input,state:`running`}),approval:(e,t)=>{let n=t.steps.map(P).find(e=>e!==-1)??M(e);j(n,e=>({...e,plan:`proposed`,approval:t.id}))},title:(...[,e])=>A({title:e.title}),artifact:(e,t)=>{A({artifacts:WX(a.artifacts,_X(t))}),L(e,`artifact`,t.id)},resource:(...[,e])=>A({resources:WX(a.resources,_X(e))}),view:(e,t)=>{let{id:n,route:r,label:i,reason:o}=t;A({views:WX(a.views,{id:n,turnId:e,route:r,label:i,...o===void 0?{}:{reason:o}})}),L(e,`view`,n)},session:()=>void 0,"session.deleted":()=>void 0,done:(e,t)=>{N(e),!h.has(e)&&a.runningElsewhere&&t.stop===`end`&&A({runningElsewhere:!1})}},te=(e,t)=>{!h.has(e)&&t.type!==`turn`&&t.type!==`done`&&!a.runningElsewhere&&A({runningElsewhere:!0}),ee[t.type](e,t)},B=(e,t,n)=>{let r=m.get(e)??-1;return n.type!==`page_tool`&&t<=r?!1:(m.set(e,Math.max(t,r)),te(e,n),!0)},V=e=>{h.delete(e);for(let[e,t]of s)c.add(e),t(null);s.clear()},ne=(e,t,n)=>s.size>0&&e===_&&n.type!==`title`&&t>(m.get(e)??-1),re=e=>_!==null&&e.turnId===_,ie=()=>{C?.close(),C=null},H=e=>{ie(),d?.abort(),A({closed:e,connection:`closed`,error:SX.gone,canRetry:!1,running:!1,runningElsewhere:!1})},U=e=>{if(e.type===`session.deleted`){H(`deleted`);return}A({updatedAt:e.updatedAt,...e.title===void 0?{}:{title:e.title},...e.archivedAt===void 0?{}:{archivedAt:e.archivedAt}})},W=(e,t)=>{(t===null||t>T)&&(T=t??T,U(e))},ae=(e,t)=>{if(t!==null&&t>(a.lastEventId??-1)&&A({lastEventId:t}),e.type===`session`||e.type===`session.deleted`){W(e,t);return}if(S!==null){S.push({event:e,id:t});return}e.turnId!==void 0&&e.seq!==void 0&&(ne(e.turnId,e.seq,e)&&V(e.turnId),B(e.turnId,e.seq,e))},oe=()=>{let e=S??[];S=null;for(let{event:t,id:n}of e)ae(t,n)},se=e=>{let t={title:e.title,archivedAt:e.archivedAt,updatedAt:e.updatedAt,lastEventId:e.lastEventId,truncated:e.truncated};if(a.running){A({...t,artifacts:e.artifacts,resources:e.resources,views:e.views});return}m.clear(),g.clear();let n=pX(e,a.mode),r=n.at(-1);e.waiting===null&&r?.role===`assistant`&&g.set(r.turnId,r.id),A({...t,messages:n,artifacts:e.artifacts,resources:e.resources,views:e.views})},ce=(e,n)=>{ie();let r=u,i=()=>r===u&&!l.signal.aborted;A({connection:`connected`}),C=t.openEvents(e,{after:n,onEvent:(e,t)=>{i()&&ae(e,t)},onState:(e,t)=>{i()&&(t===`gone`||t===`deleted`?H(`deleted`):t===`not_found`?H(`not_found`):A({connection:e}))},onExpired:async()=>{try{let n=await t.readSession(e,l.signal);return i()?(se(n),n.lastEventId):null}catch(e){if(e instanceof cY&&e.status===404)return i()&&H(`not_found`),null;throw e}}})},G=async e=>{let n=u;p=!1,A({loading:!0,error:null,canRetry:!1});try{let r=await t.readSession(e,l.signal);if(n!==u||l.signal.aborted)return;se(r),A({loading:!1}),ce(e,r.lastEventId)}catch(e){if(n!==u||l.signal.aborted)return;if(e instanceof cY&&e.status===404){H(`not_found`),A({loading:!1});return}p=!0,A({loading:!1,error:SX.open,canRetry:!0})}},le=async r=>{if(a.sessionId!==null)return a.sessionId;let i=u;w??=(async()=>{let r=e.scope();if(r===null)throw new PX(`noOrg`);let o;try{o=await t.createSession(r,l.signal)}catch(e){throw new PX(`create`,e)}if(i!==u)throw NX();return A({sessionId:o.id,title:o.title,archivedAt:o.archivedAt,updatedAt:o.updatedAt,lastEventId:o.lastEventId}),EX(n,o.id,a.mode),ce(o.id,o.lastEventId),o.id})().finally(()=>{w=null});let o=await w;if(r.aborted)throw NX();return o},ue=(e,t,n)=>{n.type===`turn`&&t<=(m.get(e)??-1)&&m.delete(e),R(e,n.type===`turn`?n.messageId:null),B(e,t,n),oe()},de=(e,t)=>{let{turnId:n,seq:r}=e;if(n!==void 0&&r!==void 0){if(e.type===`turn`||_===null){if(ue(n,r,e),e.type===`turn`)return}else B(n,r,e);if(e.type===`done`){t.stop=e.stop,t.at=r,N(n);return}t.seen.add(e.type),t.ending=VX(e,t.ending)}},fe=({ending:e,stop:t,at:n,seen:r})=>{if(t===null)throw Error(bX);return e.stop!==t||r.has(`page_tool`)&&r.has(`approval`)?(A({messages:oX(a.messages,`Stopped`,re)}),{stop:`end`}):e.stop===`approval`?{...e,at:n}:e},pe=async(n,r,i,o,s)=>{let c=e.environment(),l={...WY(c),screen:o?c.screen:null},u={...r,mode:a.mode,context:l,input:i},d=i.kind===`message`;d&&(S??=[],b=UX(c,o));let f={ending:{stop:`end`},stop:null,at:-1,seen:new Set};try{for await(let e of t.postTurn(n,u,s)){if(s.aborted)throw NX();de(e,f)}}finally{d&&oe()}return fe(f)},me=async(t,n)=>{let r=[];for(let{id:i,...a}of t){let t=new AbortController,o=()=>t.abort();n.addEventListener(`abort`,o,{once:!0}),l.signal.addEventListener(`abort`,o,{once:!0});let s=l.signal.aborted?GX:await e.runPageTool(a,t.signal);if(n.removeEventListener(`abort`,o),l.signal.removeEventListener(`abort`,o),n.aborted)throw NX();let c=l.signal.aborted?GX:s;F(i,c.ok?{state:`done`,result:c.result}:{state:`error`,error:c.error}),r.push(c.ok?{id:i,ok:!0,result:c.result}:{id:i,ok:!1,error:c.error})}return{kind:`page_tool_results`,results:r}},he=(e,t)=>{let n=nX(a.messages,t=>t.role===`assistant`&&t.approval===e);j(n,e=>({...e,plan:t?`approved`:`declined`}))},ge=async(e,t,n)=>{if(l.signal.aborted)return null;let r=()=>void 0,i=new Promise(e=>{r=e}),a=()=>r(!1),o=()=>r(null);s.set(e,r),n.addEventListener(`abort`,a,{once:!0}),l.signal.addEventListener(`abort`,o,{once:!0}),_!==null&&(m.get(_)??-1)>t&&V(_);let c=await i;if(n.removeEventListener(`abort`,a),l.signal.removeEventListener(`abort`,o),s.delete(e),n.aborted)throw NX();return c===null?null:(he(e,c),{kind:`approval`,id:e,approve:c})},_e=()=>{let e=oX(a.messages,`Stopped`,re),t=nX(e,e=>e.role===`assistant`);t!==-1&&(e[t]={...e[t],note:`Stopped after 8 steps. Ask again to continue.`}),A({messages:e})},ve=()=>{let e=a.messages.find(e=>e.id===y);if(f=null,e?.role!==`user`){A({...IX(SX.busy)});return}let{text:t,refs:n,screen:r,suggestion:i,markup:o,skill:s}=e,c=e.attachments.map(e=>({id:OX(`f`),name:e.name,size:e.size,mime:e.mime,state:`ready`,progress:1,error:null,canRetry:!1,attachment:e}));A({messages:a.messages.filter(t=>t!==e),attachments:[...c,...a.attachments],unsent:{text:t,refs:n,options:{...r===void 0?{}:{screen:r},...i===void 0?{}:{suggestion:i},...o===!0?{markup:o}:{},...s===void 0?{}:{skill:s}}},...IX(SX.busy)})},ye=()=>v!==null&&_===v&&!h.has(v),be=(e,t)=>{if(ye())return;_!==null&&N(_);let n=BX(e,t);if(n.error!==null&&zX(e)&&f?.input.kind===`message`){ve();return}if(n.error===null){f=null,A({messages:oX(a.messages,`Stopped`,re)});return}n.canRetry||(f=null),A({messages:oX(a.messages,`Interrupted`,re),...n}),n.closed!==null&&H(n.closed)},xe=async(t,n,r,i)=>{f={input:t,screen:r,turnId:_,userId:y};let a=e.scope();if(a===null)throw new PX(`noOrg`);let o=await le(i),s=await pe(o,a,t,r,i);return s.stop===`end`?null:n===8?(_e(),null):s.stop===`page_tool`?me(s.calls,i):ge(s.id,s.at,i)},Se=async(e,t,n)=>{let r=u,i=new AbortController;d=i;let{signal:a}=i;_=n,n!==null&&h.add(n),A({running:!0,error:null,canRetry:!1,notice:null,unsent:null});try{let n=e;for(let e=1;n!==null;e+=1)n=await xe(n,e,t,a);f=null}catch(e){r===u&&be(e,a)}finally{s.clear(),r===u&&d===i&&(d=null,y=null,S=null,A({running:!1}))}},Ce=(e,t)=>t===u&&a.attachments.some(t=>t.id===e),we=async e=>{let n=E.get(e);if(n===void 0)return;let r=u,i=new AbortController;n.controller=i;let o=t=>{Ce(e,r)&&A({attachments:a.attachments.map(n=>n.id===e?{...n,...t}:n)})};o({state:`uploading`,progress:0,error:null,canRetry:!1});try{let a=await le(i.signal),s=await t.uploadAttachment(a,n.file,{onProgress:e=>o({progress:e}),signal:i.signal});if(!Ce(e,r)){t.deleteAttachment(a,s.id).catch(()=>void 0);return}o({state:`ready`,progress:1,attachment:s})}catch(e){if(i.signal.aborted||MX(e))return;let t=e instanceof cY&&e.status===415;o({state:`error`,error:t?SX.fileType:SX.upload,canRetry:!t})}},Te={get:()=>a,subscribe(e){return o.add(e),()=>{o.delete(e)}},async send(e,t,n={}){if(a.running||a.closed!==null||a.loading||p)return;if(a.attachments.some(e=>e.state===`uploading`)){A({notice:SX.uploading});return}let{message:r,input:i}=AX(e,t,n,a.attachments.flatMap(e=>e.state===`ready`&&e.attachment!==null?[e.attachment]:[]));y=r.id,A({messages:[...a.messages,r],attachments:a.attachments.filter(e=>e.state!==`ready`)}),await Se(i,n.screen!==void 0,null)},async retry(){if(!(a.running||a.closed!==null)){if(p&&a.sessionId!==null){await G(a.sessionId);return}f!==null&&(y=f.input.kind===`message`?f.userId:null,await Se(f.input,f.screen,f.input.kind===`message`?null:f.turnId))}},stop(){d?.abort()},decide(e,t){let n=s.get(e);if(n!==void 0){s.delete(e),n(t);return}let r=a.messages.find(t=>t.role===`assistant`&&t.approval===e&&t.plan===`proposed`);r===void 0||c.has(e)||a.running||a.closed!==null||(he(e,t),A({runningElsewhere:!1}),Se({kind:`approval`,id:e,approve:t},!1,r.turnId).catch(()=>void 0))},setMode(e){CX.has(e)&&(A({mode:e}),EX(n,a.sessionId,e))},attach(e){if(a.closed!==null||a.loading)return;let t=Math.max(0,10-a.attachments.length),n=e.filter(e=>e.size<=yX),r=n.slice(0,t),i=r.length<n.length?SX.tooMany:null,o=n.length<e.length?SX.tooBig:i,s=r.map(e=>{let t=OX(`f`);E.set(t,{file:e,controller:null});let{name:n,size:r,type:i}=e;return{id:t,name:n,size:r,mime:i,state:`uploading`,progress:0,error:null,canRetry:!1,attachment:null}});A({attachments:[...a.attachments,...s],notice:o,error:null});for(let e of s)we(e.id).catch(()=>void 0)},detach(e){let n=a.attachments.find(t=>t.id===e);n!==void 0&&(E.get(e)?.controller?.abort(),E.delete(e),A({attachments:a.attachments.filter(t=>t.id!==e),notice:null}),n.attachment!==null&&a.sessionId!==null&&t.deleteAttachment(a.sessionId,n.attachment.id).catch(()=>void 0))},retryUpload(e){let t=a.attachments.find(t=>t.id===e);t?.state===`error`&&t.canRetry&&we(e).catch(()=>void 0)},dismissNotice(){a.notice!==null&&A({notice:null})},reset(){u+=1,d?.abort(),d=null,ie();for(let e of E.values())e.controller?.abort();E.clear(),s.clear(),c.clear(),m.clear(),h.clear(),g.clear(),x=[],f=null,p=!1,_=null,v=null,y=null,b=null,S=null,w=null,T=-1,A({...i(null,a.mode),messages:[]})},applyEvent:B,dispose(){ie();for(let e of E.values())e.controller?.abort();l.abort(),o.clear()}};return r===null?A({}):G(r).catch(()=>void 0),Te}var qX=bJ+5e3,JX=xJ+5e3,YX=`The shell did not answer`,XX=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function ZX(){return[...crypto.getRandomValues(new Uint8Array(16))].map(e=>e.toString(16).padStart(2,`0`)).join(``)}async function QX(e){return new Promise(t=>{let n=[],r=e=>{for(let e of n.splice(0))e();t(e)},{signal:i,stopped:a}=e;if(i!==void 0&&a!==void 0){if(i.aborted){r(a());return}let e=()=>r(a());i.addEventListener(`abort`,e,{once:!0}),n.push(()=>i.removeEventListener(`abort`,e))}n.push(e.bus.subscribe(e.topic,t=>{t.source===`shell`&&XX(t.payload)&&e.matches(t.payload)&&r(e.read(t.payload))}));let o=setTimeout(()=>r(e.timedOut()),e.timeoutMs);n.push(()=>clearTimeout(o)),e.send()})}async function $X(e){let t=ZX();return QX({bus:e.bus,topic:Yq.toolCompleted,matches:e=>e.callId===t,read:e=>e.ok===!0?{ok:!0,result:e.result}:{ok:!1,error:String(e.error)},timeoutMs:qX,timedOut:()=>({ok:!1,error:`The shell did not answer within ${qX} ms`}),...e.signal===void 0?{}:{signal:e.signal},stopped:()=>({ok:!1,error:`Stopped`}),send:()=>{let n={callId:t,domainId:e.domainId,name:e.name,input:e.input};e.bus.publish(Xq.toolRequested,n,{scope:`tab`})}})}async function eZ(e){let t=ZX();return QX({bus:e.bus,topic:Yq.commandCompleted,matches:e=>e.callId===t,read:e=>e.ok===!0?{ok:!0}:{ok:!1,error:String(e.error)},timeoutMs:JX,timedOut:()=>({ok:!1,error:YX}),...e.signal===void 0?{}:{signal:e.signal},stopped:()=>({ok:!1,error:`Stopped`}),send:()=>{let n={callId:t,domainId:e.domainId,id:e.id};e.bus.publish(Xq.commandRequested,n,{scope:`tab`})}})}async function tZ(e){let t=ZX();return QX({bus:e.bus,topic:Yq.detailsResolved,matches:e=>e.requestId===t,read:e=>e.ok===!0?yJ(e.details):null,timeoutMs:e.timeoutMs??5e3,timedOut:()=>null,send:()=>{let{domainId:n,suggestionId:r,ref:i}=e,a={requestId:t,domainId:n,suggestionId:r,ref:i};e.bus.publish(Xq.detailsRequested,a,{scope:`tab`})}})}function nZ(e){let t=new Map;return async(n,r)=>{let i=`${r} ${n}`,a=t.get(i);return a===void 0&&(a=e(n,r).catch(()=>(t.delete(i),[])),t.set(i,a)),a}}function rZ(e){return e.screen!==null}function iZ(e){return e.route.domainId}var aZ=(e,t,n)=>({id:e,text:mJ(t),prompt:t,refs:[],details:{},domainId:n,source:`assistant`});function oZ(e,t){return[...rZ(e)?[aZ(`summarise-screen`,`Summarise what's on screen`,t)]:[],...rZ(e)&&e.screen.selection.length>0?[aZ(`explain-selection`,`Explain the selection`,t)]:[],aZ(`what-can-you-do`,`What can you do here?`,t)]}var sZ=(e,t)=>({id:e.id,text:mJ(e.text),...e.label===void 0?{}:{label:mJ(e.label)},refs:[],details:{},domainId:t,source:`domain`});function cZ(e,t){return(e.expects??[]).some(n=>t.pageTools.some(t=>t.domainId===e.domainId&&t.name===n.tool&&t.effect===`write`))}function lZ(e,t,n){let r=iZ(e),i=[...e.suggestions.map(e=>({...e,source:`page`})),...r===null?[]:t.map(e=>sZ(e,r)),...oZ(e,r??`assistant`)],a=new Set((e.screen?.selection??[]).map(bq)),o=new Set,s=new Set,c=!1;return i.filter(t=>{let r=pJ(t.text).trim().toLowerCase(),i=t.source===`assistant`&&(s.has(t.id)||t.id===`explain-selection`&&c);return o.has(r)||i||n===`ask`&&cZ(t,e)?!1:(o.add(r),s.add(t.id),c||=t.source===`page`&&t.refs.some(e=>a.has(bq(e))),!0)})}function uZ(e){if(typeof e!=`object`||!e)return null;let{id:t,prompt:n,refs:r}=e;return typeof t==`string`?{id:t,...typeof n==`string`?{prompt:n}:{},refs:Array.isArray(r)?r.filter(Cq):[]}:null}function dZ(e,t){let n=new Set,r=null,i=t=>{let n={id:t};e.publish(Xq.askAccepted,n,{scope:`tab`})},a=e=>{n.add(e.id);for(let n of[...t()])n(e);i(e.id)};return{offer(){let e=r;e!==null&&t().size>0&&(r=null,n.has(e.id)||a(e))},dispose:e.subscribe(Yq.assistantAsked,e=>{let o=e.source===`shell`?uZ(e.payload):null;o!==null&&(n.has(o.id)?i(o.id):t().size===0?r=o:a(o))})}}function fZ(){let e=zq();if(e===null||typeof e.orgId!=`string`||e.orgId===``)return null;let t=Bq()??e.defaultTenant??e.tenants[0];return{orgId:e.orgId,tenantScope:t===void 0?{all:!0}:{tenantIds:[t]}}}var pZ=()=>Error(`Your sign-in has no organization`);function mZ(e){let t=Jq({source:`assistant`,...e.channelName===void 0?{}:{channelName:e.channelName}}),n=new Set,r={host:{active:!0,subscribe:()=>()=>void 0,report:()=>void 0},activatedAt:0,wasActive:!0,asks:new Set,focus:new Set,session:null,off:()=>void 0};n.add(r);let i=0,a=()=>{let e=r;for(let t of n)t.host.active&&t.activatedAt>e.activatedAt&&(e=t);return e},o=dZ(t,()=>a().asks),s=XY(t),c=new AbortController,l=e.fetch===void 0?{}:{fetch:e.fetch},u={apiBase:e.apiBase,token:()=>Rq(),...l},d=e.storage??sessionStorage,f=t.subscribe(Yq.assistantFocused,()=>{for(let e of[...a().focus])e()}),p=null,m=nZ(async(e,t)=>FY({...u,domainId:e,mode:t,signal:c.signal})),h={createSession:async(e,t)=>_Y({...u,scope:e,signal:t}),readSession:async(e,t)=>bY({...u,sessionId:e,signal:t}),postTurn:(e,t,n)=>CY({...u,sessionId:e,request:t,signal:n}),openEvents:(t,n)=>AY({...u,sessionId:t,...n,signal:c.signal,...e.eventsDelay===void 0?{}:{delay:e.eventsDelay}}),uploadAttachment:async(t,n,{onProgress:r,signal:i})=>wY({...u,sessionId:t,file:n,onProgress:r,signal:i,...e.xhr===void 0?{}:{xhr:e.xhr}}),deleteAttachment:async(e,t)=>TY({...u,sessionId:e,attachmentId:t})},g=(e,n)=>{let r=()=>a()===e,i=KX({api:h,scope:fZ,environment:s.get,runPageTool:async(e,n)=>r()?$X({bus:t,...e,signal:n}):{ok:!1,error:xX},sessionId:n,storage:d,report:t=>e.host.report(t)});return Object.assign(i,{onAsk(t){return e.asks.add(t),o.offer(),()=>{e.asks.delete(t)}},onFocus(t){return e.focus.add(t),()=>{e.focus.delete(t)}},runCommand:async(e,n)=>r()?eZ({bus:t,domainId:e,id:n,signal:c.signal}):{ok:!1,error:xX},requestDetails:async(e,n,i)=>r()?tZ({bus:t,domainId:e,suggestionId:n,ref:i}):null})};return{sessions:{open({sessionId:e,host:t}){let r={host:t,activatedAt:-1,wasActive:!1,asks:new Set,focus:new Set,session:null,off:()=>void 0},a=()=>{t.active&&!r.wasActive&&(i+=1,r.activatedAt=i),r.wasActive=t.active,o.offer()};return r.session=g(r,e),n.add(r),r.off=t.subscribe(a),a(),r.session},close(e){for(let t of n)t!==r&&t.session===e&&(t.off(),n.delete(t),e.dispose(),o.offer())},active(){let e=a();return e===r?null:e.session},async list(e,t){let n=fZ();if(n===null)throw pZ();return yY({...u,scope:n,params:e,...t===void 0?{}:{signal:t}})},patch:async(e,t,n)=>xY({...u,sessionId:e,body:t,updatedAt:n}),remove:async e=>SY({...u,sessionId:e}),bytes:async(e,t)=>DY({...u,path:e,...t===void 0?{}:{accept:t}}),request(e){let n={sessionId:e};t.publish(Xq.sessionRequested,n,{scope:`tab`})}},prompts:async(e,t,n)=>FY({...u,domainId:e,mode:t,signal:n}),promptsFor:m,async skills(){return p??=UY({...u,signal:c.signal}),p},runCommand:async(e,n)=>eZ({bus:t,domainId:e,id:n,signal:c.signal}),environment:s.get,subscribe:s.subscribe,requestDetails:async(e,n,r)=>tZ({bus:t,domainId:e,suggestionId:n,ref:r}),dispose(){for(let e of n)e.off(),e.session?.dispose(),e.asks.clear(),e.focus.clear();n.clear(),c.abort(),f(),o.dispose(),s.dispose(),t.close()}}}var hZ=null;function gZ(e){hZ?.apiBase!==e&&(hZ={apiBase:e,runtime:mZ({apiBase:e}),holders:0});let t=hZ;t.holders+=1;let n=!1;return{runtime:t.runtime,release(){n||(n=!0,--t.holders,t.holders===0&&(t.runtime.dispose(),hZ===t&&(hZ=null)))}}}var _Z=1024,vZ=_Z*_Z;function yZ(e){if(!Number.isFinite(e)||e<0)return``;if(e<_Z)return`${Math.round(e)} B`;let[t,n]=e<vZ?[e/_Z,`KB`]:[e/vZ,`MB`];return`${t<10?t.toFixed(1).replace(/\.0$/,``):Math.round(t)} ${n}`}var bZ=6e4,xZ=60*bZ,SZ=24*xZ,CZ=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?null:t};function wZ(e){let t=CZ(e);return t===null?e:new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`}).format(t)}function TZ(e,t=new Date){let n=CZ(e);if(n===null)return e;let r=t.getTime()-n.getTime();return r<bZ?`Just now`:r<xZ?`${Math.floor(r/bZ)} min ago`:r<SZ?`${Math.floor(r/xZ)} h ago`:r<30*SZ?`${Math.floor(r/SZ)} d ago`:new Intl.DateTimeFormat(void 0,{dateStyle:`medium`}).format(n)}var EZ=[`Today`,`Previous 7 days`,`Older`];function DZ(e,t=new Date){let n=CZ(e);if(n===null)return`Older`;let r=new Date(t.getFullYear(),t.getMonth(),t.getDate());if(n.getTime()>=r.getTime())return`Today`;let i=new Date(r.getFullYear(),r.getMonth(),r.getDate()-7);return n.getTime()>=i.getTime()?`Previous 7 days`:`Older`}function OZ(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.rel=`noopener`,document.body.append(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),0)}var kZ=`aria-label`,AZ=8e3,jZ={untitled:`New session`,emptyRecent:`No sessions yet`,emptyArchived:`No archived sessions`,loadFailed:`Couldn't load sessions`,changed:`This session changed; check the title and save again`,badTitle:`A title has 1 to 80 characters`,renameFailed:`Couldn't rename the session`,archiveFailed:`Couldn't archive the session`,unarchiveFailed:`Couldn't unarchive the session`,deleteFailed:`Couldn't delete the session`,archived:`Session archived`},MZ=e=>{let{id:t,title:n,createdAt:r,updatedAt:i,archivedAt:a,lastEventId:o}=e;return{id:t,title:n,createdAt:r,updatedAt:i,archivedAt:a,lastEventId:o}};function NZ(e){let{row:t,filter:n,now:r,renaming:i,onOpen:a,onRename:o,onArchive:s,onDelete:c,onEdit:l,onSave:u,onCancel:d,rowRef:f}=e,[p,m]=(0,K.useState)(null),h=(0,K.useId)(),g=(0,K.useId)(),_=t.title??jZ.untitled,v=()=>m(null);if(i!==null)return(0,J.jsx)(Q,{component:`li`,sx:{listStyle:`none`,py:.5},children:(0,J.jsx)(fy,{id:g,size:`small`,autoFocus:!0,value:i.value,disabled:i.saving,error:i.error!==null,helperText:i.error??`Enter to save, Escape to cancel`,onChange:e=>l(e.target.value),onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),u()):e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),d())},slotProps:{htmlInput:{[kZ]:`Session title`}}})});let y=n===`archived`;return(0,J.jsxs)(Q,{component:`li`,sx:{listStyle:`none`,display:`flex`,alignItems:`center`,gap:.5},children:[(0,J.jsx)(NG,{ref:f,onClick:a,sx:{flex:1,minWidth:0},children:(0,J.jsxs)(Q,{sx:{display:`flex`,alignItems:`baseline`,gap:1,minWidth:0,width:`100%`},children:[(0,J.jsx)(ky,{variant:`body2`,noWrap:!0,sx:{minWidth:0,flex:1,textAlign:`start`},children:_}),(0,J.jsx)(pT,{title:wZ(t.updatedAt),describeChild:!0,children:(0,J.jsx)(ky,{component:`time`,dateTime:t.updatedAt,variant:`caption`,color:`textQuiet`,noWrap:!0,children:TZ(t.updatedAt,r)})})]})}),(0,J.jsx)(BT,{size:`small`,label:`Actions for ${_}`,icon:(0,J.jsx)(vf,{}),onClick:e=>m(e.currentTarget),"aria-haspopup":`menu`,"aria-expanded":p!==null,"aria-controls":p===null?void 0:h}),(0,J.jsxs)(Ev,{anchorEl:p,open:p!==null,onClose:v,anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`},slotProps:{list:{id:h,[kZ]:`Actions for ${_}`}},children:[(0,J.jsx)(Ry,{onClick:()=>{v(),o()},children:`Rename`}),(0,J.jsx)(Ry,{onClick:()=>{v(),s()},children:y?`Unarchive`:`Archive`}),(0,J.jsx)(Ry,{onClick:()=>{v(),c()},children:`Delete`})]})]})}function PZ(){return(0,J.jsx)(Q,{"aria-busy":`true`,"aria-label":`Loading sessions`,role:`status`,sx:{display:`grid`,gap:1,py:1},children:[0,1,2,3,4].map(e=>(0,J.jsx)(YT,{variant:`rounded`,height:32},e))})}var FZ=(e,t)=>({limit:20,archived:e===`archived`,...t===null?{}:{cursor:t}});function IZ({sessions:e,onOpen:t,now:n=()=>new Date}){let[r,i]=(0,K.useState)(`recent`),[a,o]=(0,K.useState)(null),[s,c]=(0,K.useState)(!1),[l,u]=(0,K.useState)(!1),[d,f]=(0,K.useState)(null),[p,m]=(0,K.useState)(null),[h,g]=(0,K.useState)(null),[_,v]=(0,K.useState)(0),y=(0,K.useRef)(new Map),b=(0,K.useRef)(null),x=(0,K.useRef)(!0),S=(0,K.useId)();(0,K.useEffect)(()=>(x.current=!0,()=>{x.current=!1,b.current!==null&&clearTimeout(b.current)}),[]),(0,K.useEffect)(()=>{let t=new AbortController;return o(null),c(!1),e.list(FZ(r,null),t.signal).then(e=>{t.signal.aborted||o({rows:e.sessions,cursor:e.nextCursor,hasMore:e.hasMore})},()=>{t.signal.aborted||c(!0)}),()=>t.abort()},[e,r,_]);let C=(0,K.useCallback)(e=>{b.current!==null&&(clearTimeout(b.current),b.current=null),f(e),e?.undo!==void 0&&(b.current=setTimeout(()=>{b.current=null,x.current&&f(null)},AZ))},[]),w=e=>{o(t=>t===null?t:{...t,rows:e(t.rows)})},T=e=>w(t=>t.filter(t=>t.id!==e)),E=e=>w(t=>t.map(t=>t.id===e.id?e:t)),D=e=>w(t=>[...t.filter(t=>t.id!==e.id),e].sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))),O=e=>{setTimeout(()=>y.current.get(e)?.focus(),0)},k=()=>{a!==null&&a.hasMore&&!l&&(u(!0),e.list(FZ(r,a.cursor)).then(e=>{x.current&&o(t=>{let n=new Set((t?.rows??[]).map(e=>e.id));return{rows:[...t?.rows??[],...e.sessions.filter(e=>!n.has(e.id))],cursor:e.nextCursor,hasMore:e.hasMore}})},()=>{x.current&&C({text:jZ.loadFailed,tone:`error`})}).finally(()=>{x.current&&u(!1)}))},A=t=>{if(p===null)return;let n=p.value.trim();if(n.length===0||n.length>80){m({...p,error:jZ.badTitle});return}if(n===t.title){m(null),O(t.id);return}m({...p,saving:!0,error:null}),e.patch(t.id,{title:n},t.updatedAt).then(e=>{x.current&&(E(MZ(e)),m(null),O(t.id))},async n=>{if(x.current){if(n instanceof cY&&n.status===412){let n=(await e.list({ids:[t.id],archived:`any`}).catch(()=>null))?.sessions.find(e=>e.id===t.id);n!==void 0&&E(n),m(e=>e===null?e:{...e,saving:!1,error:jZ.changed});return}m(null),O(t.id),C({text:jZ.renameFailed,tone:`error`})}})},j=t=>{let n=r===`recent`;e.patch(t.id,{archived:n},t.updatedAt).then(r=>{if(x.current){if(T(t.id),!n){C(null);return}C({text:jZ.archived,tone:`info`,undo:()=>{C(null),e.patch(t.id,{archived:!1},r.updatedAt).then(e=>{x.current&&D(MZ(e))},()=>{x.current&&C({text:jZ.unarchiveFailed,tone:`error`})})}})}},()=>{x.current&&C({text:n?jZ.archiveFailed:jZ.unarchiveFailed,tone:`error`})})},M=t=>{g(null),e.remove(t.id).then(()=>{x.current&&T(t.id)},()=>{x.current&&C({text:jZ.deleteFailed,tone:`error`})})},N=n(),P=EZ.map(e=>({group:e,rows:(a?.rows??[]).filter(t=>DZ(t.updatedAt,N)===e)})).filter(e=>e.rows.length>0),F=s?(0,J.jsx)(iE,{dense:!0,title:jZ.loadFailed,action:(0,J.jsx)(FS,{variant:`primary`,size:`small`,onClick:()=>v(e=>e+1),children:`Retry`})}):a===null?(0,J.jsx)(PZ,{}):a.rows.length===0?(0,J.jsx)(iE,{dense:!0,title:r===`recent`?jZ.emptyRecent:jZ.emptyArchived}):(0,J.jsxs)(Q,{sx:{display:`grid`,gap:2},children:[P.map(({group:e,rows:n})=>(0,J.jsxs)(Q,{component:`section`,"aria-label":e,sx:{display:`grid`,gap:.5},children:[(0,J.jsx)(ky,{component:`h3`,variant:`overline`,color:`textQuiet`,children:e}),(0,J.jsx)(Q,{component:`ul`,sx:{m:0,p:0,display:`grid`,gap:.25},children:n.map(e=>(0,J.jsx)(NZ,{row:e,filter:r,now:N,renaming:p?.id===e.id?p:null,onOpen:()=>t(e.id),onRename:()=>m({id:e.id,value:e.title??``,error:null,saving:!1}),onArchive:()=>j(e),onDelete:()=>g(e),onEdit:e=>m(t=>t===null?t:{...t,value:e,error:null}),onSave:()=>A(e),onCancel:()=>{m(null),O(e.id)},rowRef:t=>{t===null?y.current.delete(e.id):y.current.set(e.id,t)}},e.id))})]},e)),a.hasMore&&(0,J.jsx)(FS,{variant:`ghost`,size:`small`,disabled:l,onClick:k,sx:{justifySelf:`start`},children:`Show more`})]});return(0,J.jsxs)(Q,{sx:{display:`grid`,gap:1.5,alignContent:`start`,minHeight:0},children:[(0,J.jsxs)(Q,{role:`group`,"aria-label":`Show`,sx:{display:`flex`,gap:.5},children:[(0,J.jsx)(IT,{purpose:`select`,label:`Recent`,selected:r===`recent`,onToggle:()=>i(`recent`)}),(0,J.jsx)(IT,{purpose:`select`,label:`Archived`,selected:r===`archived`,onToggle:()=>i(`archived`)})]}),F,d!==null&&(0,J.jsxs)(Q,{role:d.tone===`error`?`alert`:`status`,sx:{display:`flex`,alignItems:`center`,gap:1,color:d.tone===`error`?`error.main`:`var(--ds-text)`},children:[(0,J.jsx)(ky,{variant:`body2`,sx:{color:`inherit`},children:d.text}),d.undo!==void 0&&(0,J.jsx)(FS,{variant:`ghost`,size:`small`,onClick:d.undo,children:`Undo`})]}),(0,J.jsxs)(HS,{open:h!==null,onClose:()=>g(null),"aria-labelledby":S,children:[(0,J.jsx)(Dx,{id:S,children:`Delete this session?`}),(0,J.jsx)(jx,{children:(0,J.jsx)(Fx,{children:`It can't be recovered.`})}),(0,J.jsxs)(WS,{children:[(0,J.jsx)(FS,{variant:`secondary`,onClick:()=>g(null),children:`Cancel`}),(0,J.jsx)(FS,{variant:`destructive`,onClick:()=>{h!==null&&M(h)},children:`Delete`})]})]})]})}function LZ(e,t,n){return e.domains.find(e=>e.id===t)?.entities.find(e=>e.type===n)}function RZ(e,t){let n=e.domains.find(e=>e.id===t.domain),r=n?.entities.find(e=>e.type===t.type)?.renderer??null;if(n===void 0||r===null)return null;try{let e=new URL(n.uiBase);return e.protocol===`http:`||e.protocol===`https:`?new URL(r,e).href:null}catch{return null}}function zZ(e,t){let n=t.trim().toLowerCase();return n===``||e.label.toLowerCase().includes(n)||e.id.toLowerCase().includes(n)}var BZ=e=>[...e.screen?.entities??[],...e.screen?.selection??[],...e.suggestions.flatMap(e=>e.refs)];function VZ(e,t){let n=new Set,r=new Map;for(let i of BZ(e)){let a=bq(i);if(n.has(a)||!zZ(i,t))continue;n.add(a);let o=LZ(e,i.domain,i.type)?.label??`On screen`;r.set(o,[...r.get(o)??[],i])}return[...r].map(([e,t])=>({label:e,refs:t}))}var HZ=(e,t)=>e.toLowerCase().includes(t);function UZ(e,t,n){let r=n.trim().toLowerCase();return{skills:e.filter(e=>HZ(e.id,r)||HZ(e.title,r)),commands:t.filter(e=>HZ(e.id,r)||HZ(e.title,r)||e.keywords.some(e=>HZ(e,r)))}}var WZ=/^\/([a-z0-9][a-z0-9-]*)(?:\s+([\s\S]*))?$/;function GZ(e,t){let n=WZ.exec(e),r=n===null?void 0:t.find(e=>e.id===n[1]);return n===null||r===void 0?null:{skill:r,text:(n[2]??``).trim()}}var KZ=new Map([[`alert`,`alert`],[`alerts`,`alert`],[`investigation`,`target`],[`investigations`,`target`],[`user`,`user`],[`host`,`shield`],[`tenant`,`building`],[`home`,`home`],[`settings`,`cog-filled`],[`profile`,`user`],[`lab`,`flask`],[`dashboard`,`grid`],[`hunt`,`search`],[`agents`,`bot`],[`reports`,`doc`]]),qZ=e=>kf(KZ.get(e.toLowerCase())??e);function JZ({icon:e,size:t}){let n=(e===void 0?void 0:qZ(e))??Pd;return(0,J.jsx)(n,{"aria-hidden":!0,sx:t===void 0?void 0:{fontSize:or[t]}})}var YZ=new Map([[`chart`,yf],[`table`,kd]]);function XZ({kind:e,size:t=`md`}){let n=YZ.get(e)??Pd;return(0,J.jsx)(n,{"aria-hidden":!0,sx:{fontSize:or[t]}})}var ZZ={display:`inline-flex`,alignItems:`center`,gap:.75,maxWidth:`100%`,minHeight:lr.small,px:1,borderRadius:`${_.pill}px`,border:`1px solid var(--ds-border)`,backgroundColor:`var(--ds-child)`,color:`var(--ds-text)`},QZ=`&:hover`,$Z={minWidth:0,lineHeight:1.2};function eQ({entity:e,icon:t,text:n,onRemove:r,tooltip:i=!0}){let a=n??e.label,o=e.href!==void 0&&Aq(e.href)?e.href:null,s=e.summary===void 0?a:`${a}: ${e.summary}`,c=(0,J.jsxs)(Q,{component:`span`,sx:ZZ,children:[(0,J.jsx)(JZ,{icon:t,size:`sm`}),o===null?(0,J.jsx)(ky,{variant:`body2`,component:`span`,noWrap:!0,sx:$Z,children:a}):(0,J.jsx)(ky,{variant:`body2`,component:`a`,noWrap:!0,href:o,onClick:e=>{e.preventDefault(),Oq(o)},sx:{...$Z,color:`inherit`,textDecoration:`none`,[QZ]:{textDecoration:`underline`}},children:a}),r&&(0,J.jsx)(BT,{size:`small`,label:`Remove ${a}`,icon:(0,J.jsx)(ef,{}),onClick:r,sx:{p:.25,mr:-.5,color:`var(--ds-text-quiet)`}})]});return i?(0,J.jsx)(pT,{title:s,describeChild:!0,children:c}):c}var tQ={minWidth:0,lineHeight:1.2},nQ=`aria-label`;function rQ({file:e,onRetry:t,onRemove:n}){let r=Math.round(e.progress*100);return(0,J.jsxs)(Q,{component:`span`,role:`group`,"aria-label":`${e.name}, ${yZ(e.size)}`,sx:{...ZZ,...e.state===`error`?{borderColor:`error.main`}:{}},children:[e.state===`uploading`?(0,J.jsx)(qm,{size:or.sm,variant:`determinate`,value:r,"aria-label":`Uploading ${e.name}: ${r}%`}):(0,J.jsx)(Pd,{"aria-hidden":!0,sx:{fontSize:or.sm}}),(0,J.jsx)(ky,{variant:`body2`,component:`span`,noWrap:!0,sx:tQ,children:e.name}),(0,J.jsx)(ky,{variant:`caption`,component:`span`,color:`textQuiet`,children:yZ(e.size)}),e.state===`error`&&(0,J.jsx)(ky,{variant:`caption`,component:`span`,role:`alert`,sx:{color:`error.main`},children:e.error}),e.state===`error`&&e.canRetry&&(0,J.jsx)(FS,{variant:`ghost`,size:`small`,"aria-label":`Retry ${e.name}`,onClick:t,sx:{minWidth:0,py:0},children:`Retry`}),(0,J.jsx)(BT,{size:`small`,label:`Remove ${e.name}`,icon:(0,J.jsx)(ef,{}),onClick:n,sx:{p:.25,mr:-.5,color:`var(--ds-text-quiet)`}})]})}function iQ({attachment:e}){return(0,J.jsxs)(Q,{component:`span`,sx:ZZ,children:[(0,J.jsx)(Pd,{"aria-hidden":!0,sx:{fontSize:or.sm}}),(0,J.jsx)(ky,{variant:`body2`,component:`span`,noWrap:!0,sx:tQ,children:e.name}),(0,J.jsx)(ky,{variant:`caption`,component:`span`,color:`textQuiet`,children:yZ(e.size)})]})}function aQ({onFiles:e,disabled:t=!1}){let[n,r]=(0,K.useState)(null),i=(0,K.useRef)(null),a=(0,K.useId)(),o=n!==null;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(BT,{size:`small`,label:`Attach`,tooltip:`Attach`,icon:(0,J.jsx)($d,{}),disabled:t,onClick:e=>r(e.currentTarget),"aria-haspopup":`menu`,"aria-expanded":o,"aria-controls":o?a:void 0}),(0,J.jsx)(Ev,{anchorEl:n,open:o,onClose:()=>r(null),anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`left`},slotProps:{list:{id:a,[nQ]:`Attach`}},children:(0,J.jsx)(Ry,{onClick:()=>{r(null),i.current?.click()},children:`Upload files…`})}),(0,J.jsx)(`input`,{ref:i,type:`file`,multiple:!0,hidden:!0,"aria-label":`Upload files`,onChange:t=>{let n=[...t.currentTarget.files??[]];t.currentTarget.value=``,n.length>0&&e(n)}})]})}function oQ({details:e,fallback:t,loading:n}){if(e===null)return(0,J.jsxs)(Q,{sx:{display:`grid`,gap:.5},children:[(0,J.jsx)(ky,{variant:`subtitle2`,component:`p`,sx:{m:0},children:t.label}),n&&(0,J.jsx)(ky,{variant:`caption`,color:`textQuiet`,children:`Loading…`}),!n&&t.summary!==void 0&&(0,J.jsx)(ky,{variant:`body2`,sx:{m:0,color:`var(--ds-text-quiet)`},children:t.summary})]});let r=e.href!==void 0&&Aq(e.href)?e.href:null;return(0,J.jsxs)(Q,{sx:{display:`grid`,gap:1},children:[(0,J.jsx)(ky,{variant:`subtitle2`,component:`p`,sx:{m:0},children:e.title}),(e.fields??[]).map((e,t)=>(0,J.jsx)(xK,{label:e.label,children:(0,J.jsx)(ky,{variant:`body2`,component:`span`,children:e.value})},t)),r!==null&&(0,J.jsx)(ky,{variant:`body2`,component:`a`,href:r,onClick:e=>{e.preventDefault(),Oq(r)},sx:{color:`var(--ds-accent)`},children:`Open`})]})}var sQ=new Set;function cQ({url:e,entity:t,details:n,presentation:r,fallback:i,importModule:a}){let o=(0,K.useRef)(null),[s,c]=(0,K.useState)(!1);return(0,K.useEffect)(()=>{let i=o.current;if(i===null)return;let s=!1,l,u=(t,n)=>{if(!sQ.has(e)){sQ.add(e);let r=n instanceof Error?n.message:String(n);console.warn(`Assistant: the renderer ${e} ${t}: ${r}`)}};return rJ(e,a===void 0?{}:{importModule:a}).then(e=>{if(!s){try{let a=e.mount(i,{ref:t,details:n,presentation:r});l=typeof a==`function`?a:void 0}catch(e){i.replaceChildren(),u(`failed to draw`,e),c(!1);return}c(!0)}},e=>{s||(u(`did not load`,e),c(!1))}),()=>{s=!0;try{l?.()}catch(e){u(`failed to clean up`,e)}}},[e,t,n,r,a]),(0,J.jsxs)(J.Fragment,{children:[!s&&i,(0,J.jsx)(`div`,{ref:o})]})}var lQ=(0,K.createContext)({urlOf:()=>null});function uQ(e,t,n){let r=fJ(e,n);return r===null?t.find(t=>{let n=fJ(e,t.domain);return n!==null&&bq(t)===bq(n)}):t.find(e=>bq(e)===bq(r))}function dQ(e,t,n,r=!1){let i=dJ(e);if(i===null)return null;let a=[];for(let e of i){if(e.kind===`text`){a.push(e);continue}let i=uQ(e.ref,t,n);if(i!==void 0)a.push({kind:`ref`,label:e.label,ref:e.ref,entity:i});else if(r)return null;else a.push({kind:`text`,text:e.label})}return a}function fQ(e){let t=new Set;return e.flatMap(e=>e.kind!==`ref`||t.has(e.ref)?[]:(t.add(e.ref),[e]))}var pQ={display:`inline-flex`,verticalAlign:`middle`,mr:.5,lineHeight:0};function mQ(e,t,n){let[r,i]=(0,K.useState)(void 0),a=(0,K.useRef)(!1),o=t!==void 0&&`hasDetails`in t;return(0,K.useEffect)(()=>{e&&o&&!a.current&&n!==void 0&&(a.current=!0,n().then(i,()=>i(null)))},[e,o,n]),{details:(t!==void 0&&!(`hasDetails`in t)?t:null)??r??null,loading:o&&r===void 0&&n!==void 0}}function hQ({part:e,icon:t,entry:n,load:r}){let{entity:i}=e,a=(0,K.useRef)(null),o=(0,K.useRef)(null),[s,c]=(0,K.useState)(!1),{details:l,loading:u}=mQ(s,n,r),d=(0,K.useContext)(lQ),f=d.urlOf(i),p=n!==void 0||i.summary!==void 0||f!==null,m=(0,J.jsx)(oQ,{details:l,fallback:i,loading:u}),h=f===null?m:(0,J.jsx)(cQ,{url:f,entity:i,details:l,presentation:`popover`,fallback:m,...d.importModule===void 0?{}:{importModule:d.importModule}}),g=e=>e instanceof Node&&o.current?.contains(e)===!0;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Q,{component:`span`,ref:a,role:`button`,tabIndex:0,"aria-label":e.label,"aria-haspopup":p?`dialog`:void 0,"aria-expanded":p?s:void 0,onFocus:()=>c(!0),onBlur:()=>c(!1),onPointerEnter:()=>c(!0),onPointerLeave:e=>{g(e.relatedTarget)||c(!1)},onKeyDown:e=>{e.key===`Escape`&&s&&(e.stopPropagation(),c(!1))},sx:{display:`inline-flex`,maxWidth:`100%`,borderRadius:`inherit`,outlineOffset:2,verticalAlign:`middle`},children:(0,J.jsx)(eQ,{entity:{...i,href:void 0},icon:t,text:e.label,tooltip:!1})}),p&&(0,J.jsx)(vv,{open:s,anchorEl:a.current,onClose:()=>c(!1),anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,disableScrollLock:!0,hideBackdrop:!0,sx:{pointerEvents:`none`},slotProps:{paper:{ref:o,onPointerLeave:e=>{a.current?.contains(e.relatedTarget)||c(!1)},sx:{pointerEvents:`auto`,maxWidth:320,p:1.5}}},children:h})]})}function gQ({text:e,refs:t,ownDomain:n,iconOf:r,details:i,loadDetails:a,inline:o=!1}){let s=dQ(e,t,n);return s===null?(0,J.jsx)(J.Fragment,{children:e}):(0,J.jsx)(J.Fragment,{children:s.map((e,t)=>e.kind===`text`?(0,J.jsx)(`span`,{children:e.text},t):o?(0,J.jsxs)(`span`,{children:[(0,J.jsx)(Q,{component:`span`,sx:pQ,children:(0,J.jsx)(JZ,{icon:r(e.entity),size:`sm`})}),e.label]},t):(0,J.jsx)(hQ,{part:e,icon:r(e.entity),entry:i?.(e.ref),load:a===void 0?void 0:async()=>a(e.ref)},t))})}var _Q=new Set([`line`,`area`,`bar`,`stackedBar`,`horizontalBar`,`pie`,`donut`,`scatter`,`heatmap`,`sankey`,`kpi`,`table`]),vQ={noLibrary:`Charts need the chart library; the data is shown as a table.`,invalid:`This chart can't be drawn, so its data is shown as a table.`},yQ=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function bQ(e){return!yQ(e)||typeof e.chartType!=`string`||!_Q.has(e.chartType)||!Array.isArray(e.series)?null:e.series.every(e=>yQ(e)&&typeof e.id==`string`&&typeof e.name==`string`&&yQ(e.fields))?e:null}var xQ=(0,K.createContext)(null);function SQ(e){return e==null?``:typeof e==`string`||typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}var CQ=e=>Array.isArray(e)?e.filter(yQ):[];function wQ({columns:e,rows:t,label:n}){let r=(0,K.useMemo)(()=>t.slice(0,50),[t]),i=(0,K.useMemo)(()=>(e??Object.keys(t[0]??{}).map(e=>({id:e,label:e}))).map(e=>({id:e.id,header:e.label,accessorFn:t=>SQ(t[e.id])})),[e,t]);return(0,J.jsxs)(Q,{role:`group`,"aria-label":n,sx:{display:`grid`,gap:.5,minWidth:0},children:[(0,J.jsx)(YK,{columns:i,data:r,density:`compact`,sortable:!1,reorderable:!1}),t.length>50&&(0,J.jsx)(ky,{variant:`caption`,color:`textQuiet`,children:`Showing 50 of ${t.length} rows`})]})}function TQ({name:e,size:t,download:n}){let[r,i]=(0,K.useState)(!1);return(0,J.jsxs)(Q,{sx:{display:`flex`,alignItems:`center`,gap:1,minWidth:0},children:[(0,J.jsx)(ky,{variant:`body2`,noWrap:!0,sx:{minWidth:0},children:e}),t===void 0?null:(0,J.jsx)(ky,{variant:`caption`,color:`textQuiet`,children:yZ(t)}),(0,J.jsx)(FS,{variant:`ghost`,size:`small`,"aria-label":`Download ${e}`,onClick:()=>{i(!1),n().catch(()=>i(!0))},sx:{ml:`auto`},children:`Download`}),r&&(0,J.jsx)(ky,{role:`alert`,variant:`caption`,sx:{color:`error.main`},children:`Couldn't download the file`})]})}async function EQ(e,t){return new Promise((n,r)=>{let i=new FileReader;i.onload=()=>n(typeof i.result==`string`?i.result:``),i.onerror=()=>r(i.error??Error(`Unreadable`)),i.readAsDataURL(new Blob([e],{type:t}))})}function DQ({artifact:e,bytes:t}){let[n,r]=(0,K.useState)({kind:`loading`});return(0,K.useEffect)(()=>{let n=!0,i=e.mime.startsWith(`image/`);return t(e.url).then(async t=>{let a=i&&t.size<=2097152?{kind:`image`,src:await EQ(t,e.mime)}:{kind:`row`,size:t.size};n&&r(a)}).catch(()=>{n&&r({kind:`row`})}),()=>{n=!1}},[e.url,e.mime,t]),n.kind===`loading`?(0,J.jsx)(YT,{variant:`rectangular`,height:160,"aria-label":`Loading ${e.title}`}):n.kind===`image`?(0,J.jsx)(Q,{component:`img`,src:n.src,alt:e.title,sx:{maxWidth:`100%`,height:`auto`,display:`block`}}):(0,J.jsx)(TQ,{name:e.title,...n.size===void 0?{}:{size:n.size},download:async()=>OZ(await t(e.url),e.title)})}function OQ({path:e,title:t,bytes:n}){let[r,i]=(0,K.useState)(!1);return(0,J.jsxs)(Q,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,J.jsx)(FS,{variant:`secondary`,size:`small`,onClick:()=>{i(!1),n(e,`text/csv`).then(e=>OZ(e,`${t}.csv`),()=>i(!0))},children:`Download CSV`}),r&&(0,J.jsx)(ky,{role:`alert`,variant:`caption`,sx:{color:`error.main`},children:`Couldn't download the CSV`})]})}function kQ({artifact:e}){let t=(0,K.useContext)(xQ),n=bQ(e.config),r=CQ(e.rows);return n!==null&&t!==null?(0,J.jsx)(t,{config:n,data:r,label:e.title}):(0,J.jsxs)(Q,{sx:{display:`grid`,gap:1},children:[(0,J.jsx)(ky,{variant:`caption`,color:`textQuiet`,children:n===null?vQ.invalid:vQ.noLibrary}),(0,J.jsx)(wQ,{rows:r,label:e.title})]})}function AQ({artifact:e,sessionId:t,bytes:n}){let r=e.downloadUrl??(t===null?null:`sessions/${t}/artifacts/${e.id}`);return(0,J.jsxs)(Q,{sx:{display:`grid`,gap:1},children:[(0,J.jsx)(wQ,{columns:e.columns,rows:CQ(e.rows),label:e.title}),r===null?null:(0,J.jsx)(OQ,{path:r,title:e.title,bytes:n})]})}function jQ({markdown:e}){return(0,J.jsx)(Q,{sx:{display:`grid`,gap:1},children:e.split(/\n{2,}/).map((e,t)=>(0,J.jsx)(ky,{variant:`body2`,sx:{m:0,whiteSpace:`pre-wrap`},children:(0,J.jsx)(gQ,{text:e,refs:[],ownDomain:``,iconOf:()=>void 0})},t))})}function MQ({artifact:e,bytes:t}){let{title:n,url:r,size:i}=yQ(e)?e:{},a=typeof n==`string`?n:`File`;return typeof r==`string`?(0,J.jsx)(TQ,{name:a,...typeof i==`number`?{size:i}:{},download:async()=>OZ(await t(r),a)}):(0,J.jsx)(ky,{variant:`body2`,children:a})}function NQ({artifact:e,sessionId:t,bytes:n}){switch(e.kind){case`chart`:return(0,J.jsx)(kQ,{artifact:e});case`table`:return(0,J.jsx)(AQ,{artifact:e,sessionId:t,bytes:n});case`document`:return(0,J.jsx)(jQ,{markdown:typeof e.markdown==`string`?e.markdown:``});case`image`:return(0,J.jsx)(DQ,{artifact:e,bytes:n});default:return(0,J.jsx)(MQ,{artifact:e,bytes:n})}}function PQ({view:e,onReveal:t}){return(0,J.jsx)($K,{title:e.label,...e.reason===void 0?{}:{description:e.reason},actions:(0,J.jsx)(FS,{variant:`secondary`,size:`small`,"aria-label":`View in UI: ${e.label}`,onClick:()=>t(e),children:`View in UI`})})}function FQ(e,t){return Array.isArray(e)?e.slice(0,3).map(e=>{let n=typeof e==`object`&&e?e:{};return(t??Object.keys(n)).slice(0,3).map(e=>{let t=n[e];return typeof t==`string`||typeof t==`number`?String(t):``}).join(` · `)}):[]}var IQ=e=>Array.isArray(e)?e.length:0;function LQ({artifact:e}){let t=(()=>{switch(e.kind){case`chart`:return[`Chart, ${IQ(e.rows)} rows`,...FQ(e.rows,null)];case`table`:return[`Table, ${IQ(e.rows)} rows`,...FQ(e.rows,e.columns.map(e=>e.id))];case`document`:return e.markdown.split(`
279
+ `).filter(e=>e.trim()!==``).slice(0,3);case`image`:return[`Image`];case`file`:return[`File, ${yZ(e.size)}`];default:return[]}})();return t.length===0?null:(0,J.jsx)(Q,{sx:{display:`grid`,gap:.25},children:t.map((e,t)=>(0,J.jsx)(ky,{variant:`caption`,color:`textQuiet`,noWrap:!0,children:e},t))})}function RQ({artifact:e,sessionId:t,bytes:n}){let[r,i]=(0,K.useState)(!1),a=(0,K.useId)();return(0,J.jsx)($K,{title:(0,J.jsxs)(Q,{component:`span`,sx:{display:`inline-flex`,alignItems:`center`,gap:.75},children:[(0,J.jsx)(XZ,{kind:e.kind}),e.title]}),actions:(0,J.jsx)(FS,{variant:`ghost`,size:`small`,"aria-expanded":r,"aria-controls":a,"aria-label":`${r?`Hide`:`Show`} ${e.title}`,onClick:()=>i(e=>!e),children:r?`Hide`:`Show`}),children:(0,J.jsx)(Q,{id:a,children:r?(0,J.jsx)(NQ,{artifact:e,sessionId:t,bytes:n}):(0,J.jsx)(LQ,{artifact:e})})})}var zQ=Symbol.for(`aistrike.experiments.read`),BQ=e=>e.split(`/`).filter(e=>e!==``);function VQ(e,t){let n=BQ(e),r=BQ(t);for(let[e,t]of n.entries()){if(t===`*`&&e===n.length-1)return!0;let i=r[e];if(i===void 0||!t.startsWith(`:`)&&t!==i)return!1}return r.length===n.length}var HQ=Symbol.for(`aistrike.experiments.v1`);function UQ(){let e=globalThis;return e[HQ]??={v:1,active:!1,paused:!1,values:{},definitions:new Map,listeners:new Set,revision:0},e[HQ]}var WQ=`aistrike.lab.experiments`,GQ=/^[A-Za-z0-9._-]+$/;function KQ(e){return Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`,`)}function qQ(e){let t={};for(let n of e.split(`,`)){let[e,r,i]=n.split(`:`);e!==void 0&&r!==void 0&&i===void 0&&GQ.test(e)&&GQ.test(r)&&(t[e]=r)}return t}var JQ=e=>e===`lab`||e.startsWith(`lab=`);function YQ(e){let t=e.replace(/^\?/,``).split(`&`).find(JQ);return t===void 0?void 0:decodeURIComponent(t.slice(4))}function XQ(e,t){let n=e.replace(/^\?/,``).split(`&`).filter(e=>e!==``&&!JQ(e));return t!==``&&n.push(`lab=${t}`),n.length===0?``:`?${n.join(`&`)}`}function ZQ(e){let{id:t,options:n,baseline:r}=e;if(!GQ.test(t))throw Error(`Lab ${e.kind} id "${t}" must match ${String(GQ)}`);if(n.length===0)throw Error(`Lab ${e.kind} "${t}" has no options`);let i=new Set;for(let r of n){if(!GQ.test(r.id)||i.has(r.id))throw Error(`Lab ${e.kind} "${t}" has a missing, malformed or repeated option id "${r.id}"`);i.add(r.id)}if(!i.has(r))throw Error(`Lab ${e.kind} "${t}" names a baseline, "${r}", that is not one of its options`)}var QQ=(e,t)=>e.base===void 0?t:`${e.base.replace(/\/$/,``)}/${t.replace(/^\//,``)}`,$Q=()=>typeof window>`u`?void 0:{storage:window.sessionStorage,location:window.location,history:window.history};function e$(e,t){let n=()=>t??$Q()??{},r=()=>{e.revision+=1;for(let t of[...e.listeners])t()},i=()=>{if(!e.active)return;let{storage:t,location:r,history:i}=n();try{t?.setItem(WQ,JSON.stringify({values:e.values,paused:e.paused}))}catch{}if(r!==void 0&&i!==void 0){let t=XQ(r.search,KQ(e.values));t!==r.search&&i.replaceState(i.state,``,`${r.pathname}${t}${r.hash}`)}},a=()=>{i(),r()},o=(e,t)=>t!==void 0&&e.options.some(e=>e.id===t)?t:e.baseline,s={shared:e,activate(){if(e.active)return;let{storage:t,location:r}=n(),i={};try{i=JSON.parse(t?.getItem(`aistrike.lab.experiments`)??`null`)??{}}catch{}let o=r===void 0?void 0:YQ(r.search),s=typeof i.values==`object`&&i.values!==null?qQ(KQ(i.values)):{};e.values={...e.values,...o===void 0?s:qQ(o)},e.paused=i.paused===!0,e.active=!0,a()},isActive:()=>e.active,isPaused:()=>e.paused,setPaused(t){e.paused!==t&&(e.paused=t,a())},register(t){ZQ(t);let n=e.definitions.get(t.id);if(n!==void 0&&n.kind!==t.kind)throw Error(`Lab id "${t.id}" is already registered as a ${n.kind}`);e.definitions.set(t.id,t),r()},unregister(t){e.definitions.delete(t)&&r()},definitions:t=>[...e.definitions.values()].filter(e=>t===void 0||e.kind===t),value(t){let n=e.definitions.get(t);if(n!==void 0)return!e.active||n.kind===`experiment`&&e.paused?n.baseline:o(n,e.values[t])},picked(t){let n=e.definitions.get(t);return n===void 0?void 0:o(n,e.values[t])},set(e,t){s.setMany({[e]:t??``})},setMany(t){let n=!1;for(let[r,i]of Object.entries(t)){let t=e.definitions.get(r);if(t===void 0||i!==``&&!t.options.some(e=>e.id===i))continue;let a=i===``||i===t.baseline?void 0:i;e.values[r]!==a&&(n=!0,a===void 0?delete e.values[r]:e.values[r]=a)}n&&a()},reset(t){let n=Object.keys(e.values).filter(n=>e.definitions.get(n)?.kind===t);if(n.length>0){for(let t of n)delete e.values[t];a()}},applies(e,t){let n=e.paths??[];return(n.length===0||n.some(n=>VQ(QQ(e,n),t)))&&Object.entries(e.when??{}).every(([e,t])=>s.picked(e)===t)},hrefOf:e=>e.href===void 0?void 0:QQ(e,e.href),subscribe(t){return e.listeners.add(t),()=>{e.listeners.delete(t)}}};return s}var t$;function n$(){return t$??=e$(UQ()),t$}function r$(e,t){return t.register(e),{kind:e.kind,id:e.id,baseline:e.baseline,unregister:()=>t.unregister(e.id)}}function i$(e,t=n$()){return r$({...e,kind:`experiment`},t)}function a$(e,t){return typeof e==`string`?t.value(e):t.value(e.id)??e.baseline}function o$(e,t){let n=(0,K.useMemo)(()=>Object.assign(()=>a$(e,t),{[zQ]:typeof e==`string`?e:e.id}),[e,t]);return(0,K.useSyncExternalStore)(t.subscribe,n,n)}function s$(e,t=n$()){return o$(e,t)}var c$=i$({id:`assistant.composer`,group:`Assistant`,title:`Composer`,description:`The message field on the pane's glass: a lighter pane of the glass lifted off it, or the runway's field as before (Preston and Luke, 2026-11-06: the input is not working visually).`,baseline:`glass`,options:[{id:`glass`,label:`On the glass`,description:`A lighter, translucent pane of the glass with a hairline edge and a soft lift instead of the recessed fill and inset shadow; one line at rest.`},{id:`field`,label:`Field`,description:`As before: the runway's field, white in light and recessed in dark, with an inset shadow; two lines at rest.`}]}),l$=`div:has(> textarea)`,u$={[`& ${l$}`]:{"--ds-field-fill":`color-mix(in srgb, #FFFFFF 72%, transparent)`,"--ds-border":`color-mix(in srgb, var(--ds-text) 8%, transparent)`,"--ds-field-edge-light":`1`,"--ds-shadow-inset":xe.medium},[`html[data-ds-mode="dark"] & ${l$}`]:{"--ds-field-fill":`color-mix(in srgb, var(--ds-text) 6%, transparent)`,"--ds-border":`color-mix(in srgb, var(--ds-text) 12%, transparent)`}};function d$(e,t){let n=/(?:^|\s)@([^\s@]*)$/.exec(e.slice(0,t));return n===null?null:{start:t-n[1].length-1,query:n[1]}}function f$(e,t){let n=/^\/(\S*)$/.exec(e.slice(0,t));return n===null?null:n[1]}function p$(e,t,n){return e.map(e=>({id:e.label,label:e.label,items:e.refs.map(e=>({id:bq(e),label:e.label,icon:(0,J.jsx)(JZ,{icon:t(e)}),...e.summary===void 0?{}:{summary:e.summary},choose:()=>n(e)}))}))}function m$(e,t){let n=e.skills.map(e=>({id:`skill:${e.id}`,label:`/${e.id}`,icon:(0,J.jsx)(Gd,{}),...e.description===``?{}:{summary:e.description},choose:()=>t.skill(e)})),r=e.commands.map(e=>({id:`command:${e.domainId}:${e.id}`,label:`/${e.id}`,icon:(0,J.jsx)(JZ,{icon:e.icon??`play`}),summary:e.title,choose:()=>t.command(e)}));return[{id:`skills`,label:`Skills`,items:n},{id:`commands`,label:`On this page`,items:r}].filter(e=>e.items.length>0)}function h$(e,t,n,r){let[i,a]=(0,K.useState)(null),[o,s]=(0,K.useState)(!1),c=f$(e.draft,t),l=d$(e.draft,t),u=(i,a=``)=>{let o=i+a.length;e.onDraft(e.draft.slice(0,i)+a+e.draft.slice(t)),n(o),r.current=o},d=t=>{(!t.startsWith(`/`)||!e.draft.startsWith(`/`))&&s(!1)};if(c!==null&&!o){let t=m$(e.slash(c),{skill:e=>u(0,`/${e.id} `),command:t=>{u(0),e.onCommand(t)}});return{kind:`slash`,groups:t,resetKey:`/${c}\n${RG(t).map(e=>e.id).join(`
280
+ `)}`,dismiss:()=>s(!0),edited:d}}return l!==null&&i!==l.start?{kind:`mention`,groups:p$(e.nearby(l.query),e.iconOf,t=>{e.onAttach(t),u(l.start)}),resetKey:`@${l.query}`,dismiss:()=>a(l.start),edited:d}:{kind:null,groups:[],resetKey:``,dismiss:()=>void 0,edited:d}}function g$(e){let[t,n]=(0,K.useState)(0),[r,i]=(0,K.useState)(null),a=(0,K.useRef)(null),o=h$(e,t,n,a),s=s$(c$)===`glass`,c=s?1:2;(0,K.useLayoutEffect)(()=>{let t=a.current,n=e.inputRef.current;t!==null&&n!==null&&(a.current=null,n.focus(),n.setSelectionRange(t,t))});let l=RG(o.groups),u=l.length>0,d=UG({count:l.length,resetKey:o.resetKey,activateKeys:[`Enter`,`Tab`],onActivate:e=>l[e].choose()}),f=t=>{if(!(u&&d.onKeyDown(t))){if(t.key===`Escape`&&(o.kind===`mention`||u)){t.preventDefault(),o.dismiss();return}t.key===`Enter`&&!t.shiftKey&&!t.nativeEvent.isComposing&&e.draft.trim()===``&&(t.preventDefault(),e.onSend())}};return(0,J.jsxs)(Q,{ref:i,sx:{"& textarea":{fieldSizing:`content`,minHeight:`${String(c)}lh`},...s?u$:{}},children:[(0,J.jsx)(GG,{id:d.listboxId,open:o.kind!==null,anchorEl:r,groups:o.groups,activeIndex:d.activeIndex,onActiveChange:d.setActiveIndex,onActivate:e=>e.choose(),...o.kind===`slash`?{label:`Skills and commands`}:{}}),(0,J.jsx)(KG,{value:e.draft,onChange:t=>{o.edited(t),e.onDraft(t),n(e.inputRef.current?.selectionStart??t.length)},onSubmit:e.onSend,onStop:e.onStop,running:e.running,label:`Message the assistant`,placeholder:`Ask anything… @ to reference, / for skills`,inputRef:e.inputRef,top:e.top,footer:e.footer,...e.sendLabel===void 0?{}:{labels:{send:e.sendLabel}},inputProps:{...d.fieldProps,rows:c,onKeyDown:f,onSelect:e=>n(e.currentTarget.selectionStart),onPaste:t=>{let n=[...t.clipboardData.files];n.length>0&&e.onPasteFiles!==void 0&&(t.preventDefault(),e.onPasteFiles(n))}}})]})}function _$({suggestion:e,onPick:t,iconOf:n,loadDetails:r}){let i=e.label??e.text,a=dQ(e.text,e.refs,e.domainId);return(0,J.jsxs)(Q,{role:`group`,"aria-label":pJ(e.text),sx:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,justifyContent:`center`,gap:.5},children:[(0,J.jsx)(FS,{variant:`secondary`,size:`small`,title:e.label===void 0?void 0:pJ(e.text),onClick:()=>t(e),sx:{flex:`1 1 auto`},children:(0,J.jsx)(`span`,{children:(0,J.jsx)(gQ,{text:i,refs:e.refs,ownDomain:e.domainId,iconOf:n,inline:!0})})}),fQ(a??[]).map(t=>(0,J.jsx)(hQ,{part:t,icon:n(t.entity),entry:e.details[t.ref],load:async()=>r(e,t.ref)},t.ref))]})}function v$({suggestions:e,...t}){let[n,r]=(0,K.useState)(!1),i=n?e:e.slice(0,4);return(0,J.jsxs)(Q,{sx:{m:`auto`,maxWidth:320,display:`grid`,gap:1.5,textAlign:`center`,py:4},children:[(0,J.jsx)(ky,{variant:`body2`,sx:{color:`var(--ds-text-quiet)`},children:`Ask about anything on screen, or type @ to reference something on it. I can look things up and act on the page for you; I ask before I change anything.`}),(0,J.jsxs)(Q,{role:`group`,"aria-label":`Suggestions`,sx:{display:`grid`,gap:.75},children:[i.map(e=>(0,J.jsx)(_$,{suggestion:e,...t},`${e.source}:${e.domainId}:${e.id}`)),e.length>4&&(0,J.jsx)(FS,{variant:`ghost`,size:`small`,onClick:()=>r(e=>!e),children:n?`Fewer`:`More suggestions`})]})]})}function y$(e,t,n){let r=`${n} ${t.map(e=>e.domainId).join(`,`)}`,[i,a]=(0,K.useState)(null);return(0,K.useEffect)(()=>{let i=!0;return Promise.all(t.map(async t=>[t.domainId,await e(t.domainId,n).catch(()=>[])])).then(e=>{i&&a({key:r,prompts:new Map(e)})},()=>void 0),()=>{i=!1}},[e,t,n,r]),i?.key===r?i.prompts:null}function b$({env:e,mode:t,sections:n,promptsFor:r,fallback:i,...a}){let o=y$(r,n,t),s=(0,K.useMemo)(()=>{let r=o===null?[]:n.flatMap(e=>(o.get(e.domainId)??[]).map(t=>sZ(t,e.domainId)));return r.length===0?i:[...lZ(e,[],t).filter(e=>e.source===`page`),...r]},[o,n,e,t,i]);return n.length>0&&o===null?(0,J.jsx)(Q,{"aria-busy":`true`,sx:{m:`auto`}}):(0,J.jsx)(v$,{suggestions:s,...a},t)}function x$(e){let t=e.replace(/_/g,` `).trim();return t.charAt(0).toUpperCase()+t.slice(1)}function S$(e,t){let n=Tq(e.tool);return n===null?e.tool:`${t(n.domain)} · ${x$(n.name)}`}var C$=new Map([[`pending`,`pending`],[`awaiting-approval`,`awaiting`],[`running`,`running`],[`done`,`done`],[`error`,`failed`],[`declined`,`declined`]]),w$=e=>C$.get(e)??`pending`,T$=new Map([[`pending`,`waiting`],[`awaiting-approval`,`needs your approval`],[`running`,`running`],[`done`,`done`],[`error`,`failed`],[`declined`,`declined`]]);function E$({call:e}){return e.state!==`error`&&e.state!==`declined`||e.error===void 0?null:(0,J.jsx)(ky,{variant:`caption`,component:`div`,sx:{color:`error.main`},children:e.error})}function D$({call:e,domainLabel:t}){return(0,J.jsxs)(Q,{sx:{display:`grid`,gridTemplateColumns:`auto 1fr`,columnGap:1,alignItems:`center`},children:[(0,J.jsx)(rE,{status:w$(e.state),size:`sm`,label:T$.get(e.state)??e.state}),(0,J.jsx)(ky,{variant:`body2`,component:`span`,color:`textQuiet`,children:S$(e,t)}),(0,J.jsx)(Q,{sx:{gridColumn:2},children:(0,J.jsx)(E$,{call:e})})]})}var O$=`data-block`;function k$({kind:e,measure:t,children:n}){return(0,J.jsx)(Q,{[O$]:e,sx:{display:`grid`,gap:1,...t},children:n})}function A$({text:e}){return(0,J.jsx)(J.Fragment,{children:e.split(/\n{2,}/).map((e,t)=>(0,J.jsx)(ky,{variant:`body1`,sx:{m:0,whiteSpace:`pre-wrap`,color:`var(--ds-text)`},children:e},t))})}function j$(e,t){return e.map(e=>({label:(0,J.jsxs)(J.Fragment,{children:[S$(e,t),(0,J.jsx)(E$,{call:e})]}),status:w$(e.state),detail:JSON.stringify(e.input)}))}function M$({skill:e,text:t,refs:n}){return(0,J.jsx)(nK,{attachments:n,children:(0,J.jsxs)(ky,{variant:`body1`,sx:{m:0,whiteSpace:`pre-wrap`,color:`var(--ds-text)`},children:[(0,J.jsxs)(Q,{component:`span`,title:e.title,sx:{fontFamily:xG.typography.fontFamily.mono,color:`var(--ds-accent-ai)`},children:[`/`,e.id]}),t===``?null:` ${t}`]})})}function N$({message:e,iconOf:t}){let n=e.markup===!0?dQ(e.text,e.refs,``,!0):null,r=new Set((n??[]).flatMap(e=>e.kind===`ref`?[bq(e.entity)]:[])),i=[...e.refs.filter(e=>!r.has(bq(e))).map(e=>(0,J.jsx)(eQ,{entity:e,icon:t(e)},`${e.domain}:${e.type}:${e.id}`)),...e.attachments.map(e=>(0,J.jsx)(iQ,{attachment:e},`file:${e.id}`))],a=i.length>0?i:void 0;return e.skill===void 0?(0,J.jsx)(nK,{attachments:a,children:n===null?e.text:(0,J.jsx)(ky,{variant:`body1`,sx:{m:0,whiteSpace:`pre-wrap`,color:`var(--ds-text)`},children:(0,J.jsx)(gQ,{text:e.text,refs:e.refs,ownDomain:``,iconOf:t})})}):(0,J.jsx)(M$,{skill:e.skill,text:e.text,refs:a})}function P$({message:e,iconOf:t}){return e.origin===`elsewhere`?(0,J.jsxs)(Q,{sx:{display:`grid`,gap:.5},children:[(0,J.jsx)(N$,{message:e,iconOf:t}),(0,J.jsx)(ky,{variant:`caption`,color:`textQuiet`,sx:{justifySelf:`end`},children:`From another device`})]}):(0,J.jsx)(N$,{message:e,iconOf:t})}function F$({message:e,domainLabel:t,iconOf:n,onDecide:r,card:i,measure:a}){if(e.role===`user`)return(0,J.jsx)(k$,{kind:`user`,measure:a,children:(0,J.jsx)(P$,{message:e,iconOf:n})});let{plan:o,approval:s}=e,c=e.blocks.flatMap(e=>e.kind===`tool`?[e.call]:[]),l=e=>{s!==void 0&&r(s,e)};return(0,J.jsxs)(Q,{sx:{display:`grid`,gap:1},children:[e.blocks.map((e,n)=>e.kind===`text`?(0,J.jsx)(k$,{kind:`text`,measure:a,children:(0,J.jsx)(A$,{text:e.text})},n):e.kind===`artifact`?i===void 0?null:(0,J.jsx)(Q,{[O$]:e.kind,children:i(e)},`${e.kind}:${e.id}`):e.kind===`view`?i===void 0?null:(0,J.jsx)(k$,{kind:e.kind,measure:a,children:i(e)},`${e.kind}:${e.id}`):o===void 0?(0,J.jsx)(k$,{kind:`tool`,measure:a,children:(0,J.jsx)(D$,{call:e.call,domainLabel:t})},e.call.id):null),o!==void 0&&(0,J.jsx)(k$,{kind:`plan`,measure:a,children:(0,J.jsx)(iK,{steps:j$(c,t),state:o,onRun:()=>l(!0),onCancel:()=>l(!1)})}),e.caption!==void 0&&(0,J.jsx)(k$,{kind:`caption`,measure:a,children:(0,J.jsx)(ky,{variant:`caption`,color:`textQuiet`,children:e.caption})}),e.note!==void 0&&(0,J.jsx)(k$,{kind:`caption`,measure:a,children:(0,J.jsx)(ky,{variant:`caption`,color:`textQuiet`,children:e.note})})]})}var I$=`aria-label`,L$=(e,t)=>{let{domainId:n,summary:r,entities:i,selection:a}=e;return{domainId:n,title:t,...r===void 0?{}:{summary:r},entities:i,selection:a}};function R$(e,t){let n=e.entities.length,r=new Set(e.entities.map(e=>e.type));return`${n} ${(r.size===1?LZ(t,e.domainId,[...r][0])?.label.toLowerCase():void 0)??`item`}${n===1?``:`s`}`}var z$=Fe(`assistant`,`both`),B$=Fe(`assistant`,`bottom`),V$=16,H$={width:`100%`,maxWidth:820,mx:`auto`};function U$({session:e,state:t}){return(0,J.jsxs)(Q,{role:`alert`,sx:{display:`flex`,alignItems:`center`,gap:1,color:`error.main`,typography:`body1`},children:[(0,J.jsx)(`span`,{children:t.error}),t.canRetry&&(0,J.jsx)(FS,{variant:`secondary`,size:`small`,onClick:()=>{e.retry().catch(()=>void 0)},children:`Retry`})]})}function W$(e){return{sections:(0,K.useSyncExternalStore)(e.subscribe,()=>e.sections,()=>e.sections),insetTop:(0,K.useSyncExternalStore)(e.subscribe,()=>e.insets.top,()=>e.insets.top)}}function G$(e){let t=(0,K.useSyncExternalStore)(e.subscribe,e.environment,e.environment),n=(0,K.useCallback)(e=>t.domains.find(t=>t.id===e)?.label??e,[t]);return{env:t,screen:t.screen,label:n}}var K$=new Set;function q$(e,t,n,r){let[i,a]=(0,K.useState)({key:``,prompts:[]}),o=t===null||!r?``:`${t}:${n}`;return(0,K.useEffect)(()=>{if(t===null||!r)return;let i=new AbortController,o=e=>{i.signal.aborted||a({key:`${t}:${n}`,prompts:e})};return e.prompts(t,n,i.signal).then(o,e=>{if(!i.signal.aborted&&!K$.has(t)){K$.add(t);let n=e instanceof Error?e.message:String(e);console.warn(`Assistant: the backend's prompts for ${t} did not load: ${n}`)}o([])}),()=>i.abort()},[e,t,n,r]),o!==``&&i.key===o?i.prompts:[]}function J$(e){let[t,n]=(0,K.useState)([]);return(0,K.useEffect)(()=>{let t=!0;return e.skills().then(e=>{t&&n(e)},()=>void 0),()=>{t=!1}},[e]),t}function Y$(e){let[t,n]=(0,K.useState)(null),r=(0,K.useRef)(0);return{failure:t,run:(0,K.useCallback)(t=>{r.current+=1;let i=r.current;e.runCommand(t.domainId,t.id).then(e=>{!e.ok&&i===r.current&&n(`${t.title} didn't run: ${e.error}`)},()=>void 0)},[e]),clear:(0,K.useCallback)(()=>{r.current+=1,n(null)},[])}}function X$({children:e}){let t=e.filter(e=>e!==null&&e!==!1);return t.length===0?null:(0,J.jsx)(Q,{"aria-label":`Attached to your next message`,role:`group`,sx:{display:`flex`,flexWrap:`wrap`,gap:.5},children:t})}function Z$(e,t,n){let r=GZ(e,t),i=n===void 0?{}:{screen:n};return r===null?{text:e.trim(),options:i}:{text:r.text,options:{...i,skill:{id:r.skill.id,title:r.skill.title}}}}function Q$({text:e,tone:t=`quiet`,onDismiss:n}){return(0,J.jsxs)(Q,{role:`status`,sx:{display:`flex`,alignItems:`center`,gap:.5,pb:1},children:[(0,J.jsx)(ky,{variant:`body2`,sx:{color:t===`error`?`error.main`:`var(--ds-text-quiet)`},children:e}),n!==void 0&&(0,J.jsx)(BT,{size:`small`,label:`Dismiss`,icon:(0,J.jsx)(ef,{}),onClick:n,sx:{p:.25}})]})}function $$(e){let t=[];for(let n of e){let e=t.at(-1);if(n.role===`user`||e===void 0){let e=n.turnId===``?null:n.turnId;t.push({key:e??n.id,turnId:e,messages:[n]})}else e.messages.push(n)}return t}var e1=e=>`turn-${e}`;function t1(e,t,n,r){let i=(0,K.useRef)(void 0),a=t.join(` `);(0,K.useEffect)(()=>{let a=(e,t)=>{let n=`${e??``}|${t.join(` `)}`;i.current!==n&&(i.current=n,r({kind:`current`,turnId:e,visible:t}))};if(t.length===0){a(null,[]);return}if(e===null||typeof IntersectionObserver>`u`){let e=t.at(-1)??null;a(e,e===null?[]:[e]);return}let o=[...e.querySelectorAll(`[data-turn-start]`)],s=[...e.querySelectorAll(`section[id]`)],c=t.flatMap(e=>{let t=o.find(t=>t.dataset.turnStart===e),n=s.find(t=>t.id===e1(e));return t===void 0||n===void 0?[]:[{id:e,start:t,section:n}]}),l=()=>{let t=e.getBoundingClientRect(),r=t.top+n,i=c[0]?.id??null,o=[];for(let{id:e,start:n,section:a}of c){n.getBoundingClientRect().top<=r+1&&(i=e);let s=a.getBoundingClientRect();s.bottom>r&&s.top<t.bottom&&o.push(e)}a(i,o)},u=new IntersectionObserver(l,{root:e,rootMargin:`-${n}px 0px 0px 0px`,threshold:[0,1]});for(let{start:e,section:t}of c)u.observe(e),u.observe(t);return l(),()=>u.disconnect()},[e,a,n,r])}function n1(e,t,n){let r=(0,K.useRef)(void 0);(0,K.useEffect)(()=>{let i=e=>{r.current!==e&&(r.current=e,n({kind:`layout`,composerHeight:e}))};if(e===null){t&&i(0);return}if(typeof ResizeObserver>`u`){i(Math.round(e.getBoundingClientRect().height));return}let a=new ResizeObserver(t=>{let n=t.at(-1);i(Math.round(n?.borderBoxSize?.[0]?.blockSize??e.getBoundingClientRect().height))});return a.observe(e,{box:`border-box`}),i(Math.round(e.getBoundingClientRect().height)),()=>a.disconnect()},[e,t,n])}function r1(e){let t=(0,K.useRef)(null),[n,r]=(0,K.useState)({text:``,n:0});return(0,K.useEffect)(()=>{let n=e.filter(e=>e.role===`user`&&e.origin===`elsewhere`).map(e=>e.id);if(t.current===null){t.current=new Set(n);return}let i=n.filter(e=>!t.current?.has(e));for(let e of i)t.current.add(e);i.length>0&&r(e=>({text:`New message from another device`,n:e.n+1}))},[e]),n.text}var i1=e=>{let t=e.options.skill;return t===void 0?e.text:`/${t.id} ${e.text}`};function a1(e,t,n){let[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)([]),[s,c]=(0,K.useState)(!0),l=(0,K.useRef)(null),u=(0,K.useCallback)(e=>{o(t=>t.some(t=>bq(t)===bq(e))?t:[...t,e])},[]);return(0,K.useEffect)(()=>e.onAsk(e=>{e.refs.forEach(u),e.prompt!==void 0&&i(e.prompt),l.current?.focus()}),[e,u]),(0,K.useEffect)(()=>e.onFocus(()=>l.current?.focus()),[e]),(0,K.useEffect)(()=>c(!0),[t.route.path,t.title]),(0,K.useEffect)(()=>{n!==null&&(i(e=>e.trim()===``?i1(n):e),n.refs.forEach(u))},[n,u]),{draft:r,setDraft:i,refs:a,attach:u,detachRef:e=>o(t=>t.filter(t=>bq(t)!==bq(e))),clearRefs:()=>o([]),includeScreen:s,dropScreen:()=>c(!1),inputRef:l}}function o1(e,t,n,r){(0,K.useEffect)(()=>{t.active&&r.current?.focus()},[t,r]),(0,K.useEffect)(()=>{e!==void 0&&(e.scrollToTurn=e=>{let t=e1(e);[...n?.querySelectorAll(`section[id]`)??[]].find(e=>e.id===t)?.scrollIntoView({block:`start`})})},[e,n])}function s1({turns:e,draw:t}){let n=0;return(0,J.jsx)(J.Fragment,{children:e.map(e=>{let r=e.messages[0]?.role===`user`;return n+=+!!r,(0,J.jsxs)(Q,{component:`section`,...e.turnId===null?{}:{id:e1(e.turnId)},...r?{[I$]:`Turn ${n}`}:{},sx:{display:`grid`,gap:2},children:[e.turnId===null?null:(0,J.jsx)(`span`,{"data-turn-start":e.turnId}),e.messages.map(t)]},e.key)})})}function c1(){return(0,J.jsxs)(Q,{role:`status`,sx:{display:`flex`,alignItems:`center`,gap:1,...H$},children:[(0,J.jsx)(qm,{size:or.sm,"aria-hidden":!0}),(0,J.jsx)(ky,{variant:`body2`,sx:{color:`var(--ds-text-quiet)`},children:`Answering on another device…`})]})}function l1({failure:e,state:t,session:n}){return(0,J.jsxs)(J.Fragment,{children:[e!==null&&(0,J.jsx)(Q$,{text:e,tone:`error`}),t.connection===`reconnecting`&&(0,J.jsx)(Q$,{text:`Reconnecting…`}),t.notice!==null&&(0,J.jsx)(Q$,{text:t.notice,onDismiss:()=>n.dismissNotice()})]})}var u1=e=>{[...e.dataTransfer.types].includes(`Files`)&&e.preventDefault()};function d1(e,t,n,r){if(t===null||!n)return null;let i=e.title===``?``:`: ${e.title}`;return(0,J.jsx)(eQ,{entity:{domain:t.domainId,type:`screen`,id:`screen`,label:e.title},icon:`screen`,text:`On screen${i} · ${R$(t,e)}`,onRemove:r},`screen`)}var f1=`24px`,p1={flex:1,minHeight:0,overflowY:`auto`,px:f1,pb:2,display:`flex`,flexDirection:`column`,gap:2,maskImage:z$,WebkitMaskImage:z$},m1={...p1,maskImage:B$,WebkitMaskImage:B$},h1={px:f1,pb:2,pt:1};function g1(e){return{paddingTop:e+V$,scrollPaddingTop:e}}function _1(e,t,n){if(e.kind===`view`){let r=t.views.find(t=>t.id===e.id);if(r===void 0)return null;let{route:i,label:a,reason:o}=r;return(0,J.jsx)(PQ,{view:{route:i,label:a,...o===void 0?{}:{reason:o}},onReveal:n.onReveal})}let r=t.artifacts.find(t=>t.id===e.id);return r===void 0?null:(0,J.jsx)(RQ,{artifact:r,sessionId:t.sessionId,bytes:n.bytes})}function v1(e){return{empty:e.messages.length===0&&!e.loading&&e.closed===null,opening:e.loading&&e.messages.length===0,elsewhere:e.runningElsewhere&&!e.running,uploading:e.attachments.some(e=>e.state===`uploading`)}}function y1({runtime:e,session:t,host:n,controls:r,importModule:i}){let a=(0,K.useSyncExternalStore)(t.subscribe,t.get,t.get),{sections:o,insetTop:s}=W$(n),{env:c,screen:l,label:u}=G$(e),{empty:d,opening:f,elsewhere:p,uploading:m}=v1(a),h=q$(e,c.route.domainId,a.mode,d),g=(0,K.useMemo)(()=>lZ(c,h,a.mode),[c,h,a.mode]),_=a1(t,c,a.unsent),v=J$(e),y=Y$(t),[b,x]=(0,K.useState)(null),[S,C]=(0,K.useState)(null),w=r1(a.messages),T=(0,K.useMemo)(()=>$$(a.messages),[a.messages]),E=(0,K.useCallback)(e=>n.report(e),[n]);t1(b,T.flatMap(e=>e.turnId===null?[]:[e.turnId]),s,E),n1(S,a.closed!==null,E),o1(r,n,b,_.inputRef),(0,K.useEffect)(()=>{b?.scrollTo?.({top:b.scrollHeight})},[b,a.messages]);let D=e=>{_.setDraft(e),y.clear()},O=()=>_.includeScreen&&l!==null?L$(l,c.title):void 0,k=()=>{let e=a.attachments.some(e=>e.state!==`error`);if(a.running||_.draft.trim()===``&&_.refs.length===0&&!e)return;let n=Z$(_.draft,v,O());t.send(n.text,_.refs,n.options).catch(()=>void 0),m||(_.setDraft(``),_.clearRefs(),y.clear())},A=e=>{if(a.running)return;y.clear();let n=[..._.refs,...e.refs.filter(e=>!_.refs.some(t=>bq(t)===bq(e)))],r=O(),i=e.source===`assistant`?void 0:{domainId:e.domainId,id:e.id,source:e.source};t.send(e.prompt??e.text,n,{...r===void 0?{}:{screen:r},...i===void 0?{}:{suggestion:i},markup:e.prompt===void 0}).catch(()=>void 0),_.clearRefs()},j=e=>LZ(c,e.domain,e.type)?.icon??void 0,M=(0,K.useMemo)(()=>({urlOf:e=>RZ(c,e),...i===void 0?{}:{importModule:i}}),[c,i]),N=(0,K.useCallback)(e=>VZ(c,e),[c]),P=(0,K.useCallback)(e=>UZ(v,c.pageCommands,e),[v,c]),F=(0,K.useCallback)(async(t,n)=>e.sessions.bytes(t,n),[e]),I=e=>_1(e,a,{onReveal:e=>n.reveal(e),bytes:F}),L=e=>{e.length>0&&t.attach(e)},R=e=>{let t=[...e.dataTransfer.files];t.length>0&&(e.preventDefault(),L(t))},z=(0,J.jsx)(X$,{children:[d1(c,l,_.includeScreen,_.dropScreen),..._.refs.map(e=>(0,J.jsx)(eQ,{entity:e,icon:j(e),onRemove:()=>_.detachRef(e)},bq(e))),...a.attachments.map(e=>(0,J.jsx)(rQ,{file:e,onRetry:()=>t.retryUpload(e.id),onRemove:()=>t.detach(e.id)},e.id))]});return(0,J.jsx)(lQ.Provider,{value:M,children:(0,J.jsxs)(Q,{sx:{height:`100%`,minHeight:0,display:`flex`,flexDirection:`column`},children:[(0,J.jsxs)(Q,{ref:x,role:`log`,"aria-label":`Session`,"aria-live":`polite`,style:g1(s),sx:s>0?m1:p1,children:[f&&(0,J.jsx)(iE,{title:`Opening the session…`,loading:!0,dense:!0}),d&&(0,J.jsx)(b$,{env:c,mode:a.mode,sections:o,promptsFor:e.promptsFor,fallback:g,onPick:A,iconOf:j,loadDetails:async(e,n)=>t.requestDetails(e.domainId,e.id,n)}),(0,J.jsx)(s1,{turns:T,draw:e=>(0,J.jsx)(F$,{message:e,domainLabel:u,iconOf:j,onDecide:(e,n)=>t.decide(e,n),card:I,measure:H$},e.id)}),p&&(0,J.jsx)(c1,{}),a.error!==null&&(0,J.jsx)(Q,{sx:H$,children:(0,J.jsx)(U$,{session:t,state:a})})]}),(0,J.jsx)(VT,{"aria-live":`polite`,children:w}),a.closed===null&&(0,J.jsx)(Q,{ref:C,sx:h1,children:(0,J.jsxs)(Q,{onDragOver:u1,onDrop:R,sx:H$,children:[(0,J.jsx)(l1,{failure:y.failure,state:a,session:t}),(0,J.jsx)(g$,{draft:_.draft,onDraft:D,running:a.running,onSend:k,onStop:()=>t.stop(),onAttach:_.attach,nearby:N,iconOf:j,slash:P,onCommand:y.run,inputRef:_.inputRef,top:z,onPasteFiles:L,...m?{sendLabel:SX.uploading}:{},footer:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(aQ,{onFiles:L,disabled:a.loading}),(0,J.jsx)(eK,{value:a.mode,options:ZY,onChange:e=>t.setMode(e)})]})})]})})]})})}var b1=vo({key:`assistant`,container:document.head}),x1=`/sessions`,S1=0;function C1(e,t){S1+=1;let n=(0,SJ.createRoot)(e,{identifierPrefix:`assistant-${S1}-`});return n.render((0,J.jsx)(K.StrictMode,{children:(0,J.jsx)(Uo,{value:b1,children:(0,J.jsx)(CS,{theme:yS,children:t})})})),()=>n.unmount()}function w1({children:e}){return(0,J.jsx)(BS,{rung:`primary`,sx:{height:`100%`,display:`flex`,flexDirection:`column`,backgroundColor:`transparent`},children:e})}function T1(e,t,n){let{runtime:r,release:i}=gZ(t.domain.apiBase);if(n.view.kind===`list`){let t=C1(e,(0,J.jsx)(w1,{children:(0,J.jsx)(Q,{sx:{p:2,minHeight:0,overflowY:`auto`},children:(0,J.jsx)(IZ,{sessions:r.sessions,onOpen:e=>n.openSession(e)})})}));return{unmount(){t(),i()},scrollToTurn:()=>void 0,acceptFiles:()=>void 0}}let a=r.sessions.open({sessionId:n.view.sessionId,host:n}),o={scrollToTurn:()=>void 0},s=C1(e,(0,J.jsx)(w1,{children:(0,J.jsx)(y1,{runtime:r,session:a,host:n,controls:o})}));return{unmount(){s(),r.sessions.close(a),i()},scrollToTurn:e=>o.scrollToTurn(e),acceptFiles(e){if(e.length===0)return;if(!a.get().loading){a.attach(e);return}let t=a.subscribe(()=>{a.get().loading||(t(),a.attach(e))})}}}function E1(e,t){let n=`${t.domain.route}${x1}`;location.pathname!==n&&(location.pathname===t.domain.route||location.pathname.startsWith(`${t.domain.route}/`))&&history.replaceState(history.state,``,n);let{runtime:r,release:i}=gZ(t.domain.apiBase),a=C1(e,(0,J.jsx)(vq,{title:`Sessions`,maxWidth:720,children:(0,J.jsx)(IZ,{sessions:r.sessions,onOpen:e=>r.sessions.request(e)})}));return()=>{a(),i()}}export{E1 as mountPage,T1 as mountSession};