1import{n as e}from"./rolldown-runtime-Bh1tDfsg.js";import{D as t,E as n,T as r,U as i,X as a,a as o,o as s,u as c,v as l}from"./Box-MSuTR1Ko.js";import{a as u,i as d,n as f,o as p,r as m,s as h,t as g}from"./getReactElementRef-mSfAJLzk.js";import{f as _,l as v,p as y,u as b}from"./CircularProgress-DumcnWce.js";import{t as x}from"./Portal-BN9H4xIr.js";import{r as S,t as C}from"./useSlot-CIpxX5b5.js";import{t as w}from"./contains-NFpkzM7h.js";function T(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function E(e){return h(e).defaultView||window}function D(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var O=e(a()),k=i(),A=D,j={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},M={opacity:0,visibility:`hidden`},N=O.forwardRef(function(e,t){let n=y(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:h,onEntering:_,onExit:b,onExited:x,onExiting:S,style:C,timeout:w=r,...T}=e,E=O.useRef(null),D=v(E,g(o),t),A=d(E,_),N=d(E,(e,t)=>{u(e);let r=m({style:C,timeout:w,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),P=d(E,h),F=d(E,S),I=d(E,e=>{let t=m({style:C,timeout:w,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),b&&b(e)}),L=d(E,e=>{e.style.transition=``,x&&x(e)});return(0,k.jsx)(p,{appear:a,in:c,nodeRef:E,onEnter:N,onEntered:P,onEntering:A,onExit:I,onExited:L,onExiting:F,addEndListener:e=>{i&&i(E.current,e)},timeout:w,...T,children:(e,{ownerState:t,...n})=>{let r=f(e,c,j,M,C,o.props.style);return O.cloneElement(o,{style:r,ref:D,...n})}})});function P(e){return n(`MuiBackdrop`,e)}r(`MuiBackdrop`,[`root`,`invisible`]);var F=e=>{let{classes:t,invisible:n}=e;return l({root:[`root`,n&&`invisible`]},P,t)},I=c(`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`}}]}),L=O.forwardRef(function(e,n){let r=o({props:e,name:`MuiBackdrop`}),{children:i,className:a,component:s=`div`,invisible:c=!1,open:l,components:u={},componentsProps:d={},slotProps:f={},slots:p={},TransitionComponent:m,transitionDuration:h,...g}
vendor: 10,133 bytes, line 1
1=r,_={...r,component:s,invisible:c},v=F(_),y={component:s,slots:{transition:m,root:u.Root,...p},slotProps:{...d,...f}},[b,x]=C(`root`,{elementType:I,externalForwardedProps:y,className:t(v.root,a),ownerState:_}),[S,w]=C(`transition`,{elementType:N,externalForwardedProps:y,ownerState:_});return(0,k.jsx)(S,{in:l,timeout:h,...g,...w,children:(0,k.jsx)(b,{"aria-hidden":!0,...x,ref:n,children:i})})});function R(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function z(e){let t=h(e);return t.body===e?E(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function B(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function V(e){return parseFloat(E(e).getComputedStyle(e).paddingRight)||0}function H(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 U(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!H(e);t&&n&&B(e,i)})}function W(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function G(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(z(r)){let e=R(E(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${V(r)+e}px`;let t=h(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${V(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=h(r).body;else{let t=r.parentElement,n=E(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}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 K(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var q=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&&B(e.modalRef,!1);let r=K(t);U(t,e.mount,e.modalRef,r,!0);let i=W(this.containers,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=W(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=G(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=W(this.containers,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&&B(e.modalRef,t),U(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&&B(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},J=w,Y=`data-mui-focusable`;function X(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Y}]`):null}var Z=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function ee(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 te(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 ne(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||te(e))}function re(e){let t=[],n=[];return Array.from(e.querySelectorAll(Z)).forEach((e,r)=>{let i=ee(e);i===-1||!ne(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 ie(){return!0}function ae(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=re,isEnabled:o=ie,open:s}=e,c=O.useRef(!1),l=O.useRef(null),u=O.useRef(null),d=O.useRef(null),f=O.useRef(null),p=O.useRef(!1),m=O.useRef(null),_=b(g(t),m),v=O.useRef(null);O.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),O.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=A(h(m.current)),t=X(m.current)??m.current;return J(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),O.useEffect(()=>{if(!s||!m.current)return;let e=h(m.current),t=t=>{v.current=t,!(r||!o()||t.key!==`Tab`)&&A(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=A(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(J(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=!!(v.current?.shiftKey&&v.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=A(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 y=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},x=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,k.jsxs)(O.Fragment,{children:[(0,k.jsx)(`div`,{tabIndex:s?0:-1,onFocus:x,ref:l,"data-testid":`sentinelStart`}),O.cloneElement(t,{ref:_,onFocus:y}),(0,k.jsx)(`div`,{tabIndex:s?0:-1,onFocus:x,ref:u,"data-testid":`sentinelEnd`})]})}function oe(e){return typeof e==`function`?e():e}function se(e){return e?e.props.hasOwnProperty(`in`):!1}var Q=()=>{},$=new q;function ce(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=O.useRef({}),f=O.useRef(null),p=O.useRef(null),m=b(p,u),[g,v]=O.useState(!l),y=se(s),x=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(x=!1);let C=()=>h(f.current),w=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),E=()=>{$.mount(w(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},D=_(()=>{let e=oe(t)||C().body;$.add(w(),e),p.current&&E()}),k=()=>$.isTopModal(w()),A=_(e=>{f.current=e,e&&(l&&k()?E():p.current&&B(p.current,x))}),j=O.useCallback(()=>{$.remove(w(),x)},[x]);O.useEffect(()=>()=>{j()},[j]),O.useEffect(()=>{l?D():(!y||!i)&&j()},[l,j,y,i,D]);let M=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!k())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},N=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=S(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:M(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:N(t),open:l}},getTransitionProps:()=>({onEnter:T(()=>{v(!1),a&&a()},s?.props.onEnter??Q),onExited:T(()=>{v(!0),o&&o(),i&&j()},s?.props.onExited??Q)}),rootRef:m,portalRef:A,isTopModal:k,exited:g,hasTransition:y}}function le(e){return n(`MuiModal`,e)}r(`MuiModal`,[`root`,`hidden`,`backdrop`]);var ue=e=>{let{open:t,exited:n,classes:r}=e;return l({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},le,r)},de=c(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(s(({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`}}]}))),fe=c(L,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),pe=O.forwardRef(function(e,n){let r=o({name:`MuiModal`,props:e}),{BackdropComponent:i=fe,BackdropProps:a,classes:s,className:c,closeAfterTransition:l=!1,children:u,container:d,component:f,components:p={},componentsProps:m={},disableAutoFocus:h=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:_=!1,disablePortal:v=!1,disableRestoreFocus:y=!1,disableScrollLock:b=!1,hideBackdrop:S=!1,keepMounted:w=!1,onClose:T,onTransitionEnter:E,onTransitionExited:D,open:A,slotProps:j={},slots:M={},theme:N,...P}=r,F={...r,closeAfterTransition:l,disableAutoFocus:h,disableEnforceFocus:g,disableEscapeKeyDown:_,disablePortal:v,disableRestoreFocus:y,disableScrollLock:b,hideBackdrop:S,keepMounted:w},{getRootProps:I,getBackdropProps:L,getTransitionProps:R,portalRef:z,isTopModal:B,exited:V,hasTransition:H}=ce({...F,rootRef:n}),U={...F,exited:V},W=ue(U),G={};if(u.props.tabIndex===void 0&&(G.tabIndex=`-1`),H){let{onEnter:e,onExited:t}=R();G.onEnter=e,G.onExited=t}let K={slots:{root:p.Root,backdrop:p.Backdrop,...M},slotProps:{...m,...j}},[q,J]=C(`root`,{ref:n,elementType:de,externalForwardedProps:{...K,...P,component:f},getSlotProps:I,ownerState:U,className:t(c,W?.root,!U.open&&U.exited&&W?.hidden)}),[Y,X]=C(`backdrop`,{ref:a?.ref,elementType:i,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:e=>L({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:t(a?.className,W?.backdrop),ownerState:U});return!w&&!A&&(!H||V)?null:(0,k.jsx)(x,{ref:z,container:d,disablePortal:v,children:(0,k.jsxs)(q,{...J,children:[!S&&i?(0,k.jsx)(Y,{...X}):null,(0,k.jsx)(ae,{disableEnforceFocus:g,disableAutoFocus:h,disableRestoreFocus:y,isEnabled:B,open:A,children:O.cloneElement(u,G)})]})})});export{N as a,T as c,L as i,Y as n,A as o,R as r,E 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.