1import{c as e,n as t,r as n,t as r}from"./clsx-f_0-YPbz.js";import{A as i,C as a,d as o,f as s,j as c,p as l,w as u}from"./Box-BTS9B_NF.js";import{n as d,r as f}from"./emotion-react.browser.esm-BsZ_lOPk.js";import{i as p,n as m,r as h,t as g}from"./isFocusVisible-CvGwr1W8.js";var _=e(n(),1);function v(e){let t=_.useRef(e);return p(()=>{t.current=e}),_.useRef((...e)=>(0,t.current)(...e)).current}var y=h,b=v,x={};function S(e,t){let n=_.useRef(x);return n.current===x&&(n.current=e(t)),n}var C=t(),w=`(prefers-reduced-motion: reduce)`,T=0,E=`0ms`,D=()=>{},O=()=>!1,k=()=>!0,A=()=>D;function j(e){let[t,n]=_.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),p(()=>{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(w),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var M={..._}.useSyncExternalStore;function ee(e){let t=e?k:O,[n,r]=_.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[O,A];let t=window.matchMedia(w);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return M(r,n,t)}var N=M===void 0?j:ee;function P(e,t){let n=N(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return _.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:T,delay:E}:e}}),[r])}function te(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return _.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 ne={};function re(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=_.useRef(null),m=l===!0,h=te({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=_.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),v=_.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:_.useCallback((e=ne)=>{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{...v,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[v,a,m,h,g,d,f,u]),rootRef:p}}var F=class e{static create(){return new e}static use(){let t=S(e.create).current,[n,r]=_.useState(!1);return t.shouldMount=n,t.setShouldMount=r,_.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=ae(),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 ie(){return F.use()}function ae(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var I=[];function L(e){_.useEffect(e,I)}var R=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)};
1disposeEffect=()=>this.clear};function z(){let e=S(R.create).current;return L(e.disposeEffect),e}function B(e){let{className:t,classes:n,pulsate:i=!1,rippleX:a,rippleY:o,rippleSize:s,in:c,onExited:l,timeout:u}=e,[d,f]=_.useState(!1),p=z(),m=_.useRef(!1),h=_.useRef(l);h.current=l;let g=l!=null,v=r(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+o,left:-(s/2)+a},b=r(n.child,d&&n.childLeaving,i&&n.childPulsate);return!c&&!d&&f(!0),_.useEffect(()=>{!c&&g?m.current||(m.current=!0,p.start(u,()=>{m.current=!1,h.current?.()})):(m.current=!1,p.clear())},[p,g,c,u]),(0,C.jsx)(`span`,{className:v,style:y,children:(0,C.jsx)(`span`,{className:b})})}var V=i(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),H=550,U={},W=[],G=()=>{};function K(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 q({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 J=f` 2 0% { 3 transform: scale(0); 4 opacity: 0.1; 5 } 6 7 100% { 8 transform: scale(1); 9 opacity: 0.3; 10 } 11`,Y=f` 12 0% { 13 opacity: 1; 14 } 15 16 100% { 17 opacity: 0; 18 } 19`,oe=f` 20 0% { 21 transform: scale(1); 22 } 23 24 50% { 25 transform: scale(0.92); 26 } 27 28 100% { 29 transform: scale(1); 30 } 31`;function se(e){if(e.motion.reducedMotion===`always`)return null;let t=d` 32 &.${V.rippleVisible} { 33 animation-name: ${J}; 34 animation-duration: ${H}ms; 35 animation-timing-function: ${e.transitions.easing.easeInOut}; 36 } 37 38 &.${V.ripplePulsate} { 39 animation-duration: ${e.transitions.duration.shorter}ms; 40 } 41 42 & .${V.childLeaving} { 43 animation-name: ${Y}; 44 animation-duration: ${H}ms; 45 animation-timing-function: ${e.transitions.easing.easeInOut}; 46 } 47 48 & .${V.childPulsate} { 49 animation-name: ${oe}; 50 animation-duration: 2500ms; 51 animation-timing-function: ${e.transitions.easing.easeInOut}; 52 animation-iteration-count: infinite; 53 animation-delay: 200ms; 54 } 55 `;return e.motion.reducedMotion===`system`?d` 56 @media (prefers-reduced-motion: no-preference) { 57 ${t} 58 } 59 `:t}var ce=l(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),X=l(B,{name:`MuiTouchRipple`,slot:`Ripple`})` 60 opacity: 0; 61 position: absolute; 62 63 &.${V.rippleVisible} { 64 opacity: 0.3; 65 transform: scale(1); 66 } 67 68 /* 69 * Order matters: 'child', 'childLeaving' and 'childPulsate' apply to the same 70 * element with equal specificity, so the later rule wins. 'child' must come 71 * before 'childLeaving' so the leaving 'opacity: 0' takes precedence. A focus 72 * (pulsate) ripple keeps 'pulsateKeyframe' (no opacity animation) on exit, so 73 * it relies on this static 'opacity: 0' to disappear on blur instead of 74 * lingering until removal. 75 */ 76 & .${V.child} { 77 opacity: 1; 78 display: block; 79 width: 100%; 80 height: 100%; 81 border-radius: 50%; 82 background-color: currentColor; 83 } 84 85 & .${V.childLeaving} { 86 opacity: 0; 87 } 88 89 & .${V.childPulsate} { 90 position: absolute; 91 /* @noflip */ 92 left: 0px; 93 top: 0; 94 } 95 96 ${({theme:e})=>se(e)} 97`,le=_.forwardRef(function(e,t){let n=o({props:e,name:`MuiTouchRipple`}),i=P(m().motion.reducedMotion,!1),{center:a=!1,classes:s=U,className:c,...l}=n,[u,d]=_.useState({items:W,order:W}),f=u.items,p=_.useRef(0),h=_.useRef(null),g=_.useRef(!1);L(()=>(g.current=!0,()=>{g.current=!1})),_.useEffect(()=>{h.current&&=(h.current(),null)},[f]);let v=_.useRef(!1),y=z(),x=_.useRef(null),S=_.useRef(null),w=b(e=>{g.current&&d(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:K(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),T=b(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=p.current;p.current+=1,d(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:K(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),h.current=a}),E=b((e=U,t=U,n=G)=>{let{pulsate:r=!1,center:i=a||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&v.current){v.current=!1;return}e?.type===`touchstart`&&(v.current=!0);
97let{rippleX:s,rippleY:c,rippleSize:l}=q({event:e,element:o?null:S.current,center:i});e?.touches?x.current===null&&(x.current=()=>{T({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},y.start(80,()=>{x.current&&=(x.current(),null)})):T({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),D=b(()=>{E(U,{pulsate:!0})}),O=b((e,t)=>{if(y.clear(),e?.type===`touchend`&&x.current){x.current(),x.current=null,y.start(0,()=>{O(e,t)});return}x.current=null,d(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:K(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),h.current=t});_.useImperativeHandle(t,()=>({pulsate:D,start:E,stop:O}),[D,E,O]);let k=new Map(f.map(e=>[e.key,e])),A=u.order.map(e=>k.get(e)).filter(Boolean);return(0,C.jsx)(ce,{className:r(V.root,s.root,c),ref:S,...l,children:A.map(e=>(0,C.jsx)(X,{classes:{ripple:r(s.ripple,V.ripple),rippleVisible:r(s.rippleVisible,V.rippleVisible),ripplePulsate:r(s.ripplePulsate,V.ripplePulsate),child:r(s.child,V.child),childLeaving:r(s.childLeaving,V.childLeaving),childPulsate:r(s.childPulsate,V.childPulsate)},timeout:i.shouldReduceMotion?0:H,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>w(e.key)},e.key))})});function ue(e){return c(`MuiButtonBase`,e)}var Z=i(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),de=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=u({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},ue,a);return n&&!i&&r&&(o.root+=` ${r}`),o},fe=l(`button`,{name:`MuiButtonBase`,slot:`Root`})(s(({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`},[`&.${Z.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`},variants:[{props:{internalDisabledThemeFocusVisible:!1},style:e.focusVisible&&{...a,[`&.${Z.focusVisible}`]:e.focusVisible}}]}))),pe=_.forwardRef(function(e,t){let n=o({props:e,name:`MuiButtonBase`}),{action:i,centerRipple:a=!1,children:s,className:c,component:l=`button`,disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:m,focusableWhenDisabled:h,suppressFocusVisible:v=!1,internalNativeButton:x,internalDisabledThemeFocusVisible:S=!1,LinkComponent:w=`a`,nativeButton:T,onBlur:E,onClick:D,onContextMenu:O,onDragLeave:k,onFocus:A,onFocusVisible:j,onKeyDown:M,onKeyUp:ee,onMouseDown:N,onMouseLeave:P,onMouseUp:te,onTouchEnd:ne,onTouchMove:F,onTouchStart:ae,tabIndex:I=0,TouchRippleProps:L,touchRippleRef:R,type:z,...B}=n,V=!!(B.href||B.to),H=!!B.formAction,U=l;U===`button`&&V&&(U=w);let W=typeof U==`string`?U===`button`:x??!1,G=T??W,K=ie(),q=y(K.ref,R),[J,Y]=_.useState(!1);(u||v)&&J&&Y(!1);let oe=b(e=>{p&&!e.repeat&&J&&e.key===` `&&K.stop(e,()=>{K.start(e)})}),se=b(e=>{p&&e.key===` `&&J&&!e.defaultPrevented&&K.stop(e,()=>{K.pulsate(e)})}),{getButtonProps:ce,rootRef:X}=re({nativeButton:G,nativeButtonProp:T,internalNativeButton:W,allowInferredHostMismatch:V||typeof U==`string`,disabled:u,type:z,hasFormAction:H,tabIndex:I,onBeforeKeyDown:oe,onBeforeKeyUp:se}),{onClick:ue,onKeyDown:Z,onKeyUp:pe,...me}=ce({onClick:D,onKeyDown:M,onKeyUp:ee});_.useImperativeHandle(i,()=>({focusVisible:()=>{Y(!0),X.current.focus()}}),[X]);let he=K.shouldMount&&!d&&!u;_.useEffect(()=>{J&&p&&!d&&K.pulsate()},[d,p,J,K]);let ge=Q(K,`start`,N,f),_e=Q(K,`stop`,O,f),ve=Q(K,`stop`,k,f),ye=Q(K,`stop`,te,f),be=Q(K,`stop`,e=>{J&&e.preventDefault(),P&&P(e)},f),xe=Q(K,`start`,ae,f),Se=Q(K,`stop`,ne,f),Ce=Q(K,`stop`,F,f),we=Q(K,`stop`,e=>{g(e.target)||Y(!1),E&&E(e)},!1),Te=b(e=>{X.current||=e.currentTarget,!v&&g(e.target)&&(Y(!0),j&&j(e)),A&&A(e)}),$={};V&&($.tabIndex=u?-1:I,u&&($[`aria-disabled`]=u),$.type=z);let Ee=y(t,X),De={...n,centerRipple:a,component:l,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,suppressFocusVisible:v,tabIndex:I,focusVisible:J,internalDisabledThemeFocusVisible:S},Oe=de(De);return(0,C.jsxs)(fe,{as:U,className:r(Oe.root,c),ownerState:De,onBlur:we,onClick:ue,onContextMenu:_e,onFocus:Te,onKeyDown:Z,onKeyUp:pe,onMouseDown:ge,onMouseLeave:be,onMouseUp:ye,onDragLeave:ve,onTouchEnd:Se,onTouchMove:Ce,onTouchStart:xe,ref:Ee,...V?$:me,...B,children:[s,he?(0,C.jsx)(le,{ref:q,center:a,...L}):null]})});function Q(e,t,n,r=!1){return b(i=>(n&&n(i),r||e[t](i),!0))}export{P as a,y as c,z as i,v as l,Z as n,S as o,R as r,b as s,pe as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.