@sheetxl/utils-mui 0.7.5 → 0.7.6

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.
@@ -0,0 +1,11 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.6
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */const d=require("react"),f=require("react/jsx-runtime"),se=require("@mui/system"),_=require("@mui/material"),ve=require("@sheetxl/utils"),B=require("@sheetxl/utils-react"),ze=require("@mui/material/styles"),go=require("@mui/utils"),Zt=require("react-dom");function bo(e){var o,n,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(o=0;o<a;o++)e[o]&&(n=bo(e[o]))&&(t&&(t+=" "),t+=n)}else for(n in e)e[n]&&(t&&(t+=" "),t+=n);return t}function he(){for(var e,o,n=0,t="",a=arguments.length;n<a;n++)(e=arguments[n])&&(o=bo(e))&&(t&&(t+=" "),t+=o);return t}const Bt=(e,o,n,t)=>{const{style:a,...s}=e,i=f.jsx(_.IconButton,{component:"div",...s,style:{...a,padding:"0px"},sx:{padding:"0"},color:e.disabled?void 0:"primary","aria-label":n,size:"small",children:o});return f.jsx(He,{title:e.disabled?n:t,enterDelay:800,enterNextDelay:1600,children:e.disabled?f.jsx("div",{style:{display:"flex"},children:i}):i})},xo=d.memo(d.forwardRef((e,o)=>{const{orientation:n="vertical",sx:t,...a}=e,s=n==="vertical";return f.jsx(_.Divider,{ref:o,sx:{marginLeft:s?"1px":void 0,marginRight:s?"1px":void 0,backgroundColor:"transparent !important",borderColor:i=>i.palette.divider,...t},orientation:n,variant:"middle",flexItem:!0,...a})}));function It(e,o){if(typeof e=="function")return e(o);e&&(e.current=o)}var kt=parseInt(d.version.split(".")[0],10)>=19?function(e){return o=>{const n=[];for(const t of e){const a=It(t,o),s=typeof a=="function";n.push(s?a:()=>It(t,null))}return()=>{for(const t of n)t()}}}:function(e){return o=>{for(const n of e)It(n,o)}},gr=function(){},vo=typeof window<"u";function wo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ko(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var o=e.default;if(typeof o=="function"){var n=function t(){var a=!1;try{a=this instanceof t}catch{}return a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};n.prototype=o.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}),n}var So=vo?d.useLayoutEffect:d.useEffect,xn={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const vn=vo&&window.ResizeObserver!==void 0?function(){var e=d.useState(null),o=e[0],n=e[1],t=d.useState(xn),a=t[0],s=t[1],i=d.useMemo(function(){return new window.ResizeObserver(function(c){if(c[0]){var r=c[0].contentRect,l=r.x,m=r.y,k=r.width,g=r.height,v=r.top,w=r.left,x=r.bottom,h=r.right;s({x:l,y:m,width:k,height:g,top:v,left:w,bottom:x,right:h})}})},[]);return So(function(){if(o)return i.observe(o),function(){i.disconnect()}},[o]),[n,a]}:function(){return[gr,xn]},br="_traverse-ellipsis_14l1h_1",xr=d.memo(e=>{const{sx:o,speed:n=2,size:t=70,...a}=e;return f.jsx(_.Box,{sx:{width:`${t}px`,height:`${t}px`,zIndex:1,"& .primary":{stroke:s=>s.palette.grey[600],fill:"none"},...o},...a,children:f.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[f.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"48"}),f.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"85",y2:"50.5",children:f.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})}),f.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"49.5",y2:"74",children:f.jsx("animateTransform",{attributeName:"transform",dur:7.5*n+"s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})}),Co=d.memo(e=>{const{sx:o,speed:n=1.5,size:t=70,...a}=e;return f.jsx(_.Box,{sx:{width:`${t}px`,height:`${t}px`,zIndex:1,"& .primary":{fill:s=>s.palette.grey[600]},"& .secondary":{stroke:s=>s.palette.grey[600],fill:"none",opacity:.5},...o},...a,children:f.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[f.jsx("circle",{className:"secondary",strokeWidth:"4",cx:"50",cy:"50",r:"21"}),f.jsx("path",{className:"primary",d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50",children:f.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:1*n+"s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})}),vr=d.memo(e=>{const{sx:o,speed:n=1,size:t=70,...a}=e;return f.jsx(_.Box,{sx:{width:`${t}px`,height:`${t}px`,zIndex:1,...o},...a,children:f.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[f.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:f.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.1"})}),f.jsx("circle",{className:"primary",cx:"26",cy:"50",r:"6",children:f.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.2"})}),f.jsx("circle",{className:"primary",cx:"46",cy:"50",r:"6",children:f.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.3"})})]})})}),wr=d.memo(e=>{const{sx:o,speed:n=1,size:t=70,...a}=e;return f.jsx(_.Box,{sx:{width:`${t}px`,height:`${t}px`,zIndex:1,"& .primary":{fill:s=>s.palette.grey[600],stroke:"none"},...o},...a,children:f.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[f.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:f.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 15 ; 0 -15; 0 15",repeatCount:"indefinite",begin:"0.1"})}),f.jsx("circle",{className:"primary",cx:"30",cy:"50",r:"6",children:f.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 10 ; 0 -10; 0 10",repeatCount:"indefinite",begin:"0.2"})}),f.jsx("circle",{className:"primary",cx:"54",cy:"50",r:"6",children:f.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 5 ; 0 -5; 0 5",repeatCount:"indefinite",begin:"0.3"})})]})})}),kr=d.memo(e=>{const{sx:o,speed:n=2,size:t=70,...a}=e;return f.jsx(_.Box,{sx:{width:`${t}px`,height:`${t}px`,zIndex:1,"& .primary":{stroke:s=>s.palette.grey[600],opacity:.5,fill:"none"},"& .secondary":{fillOpacity:s=>s.palette.grey[600],opacity:.8,stroke:s=>s.palette.background.paper},...o},...a,children:f.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[f.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"44"}),f.jsx("circle",{className:"secondary",strokeWidth:"3",cx:"8",cy:"54",r:"6",children:f.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 48",to:"360 50 52",repeatCount:"indefinite"})})]})})}),Sr=d.memo(e=>{const{sx:o,speed:n=1,size:t=13,width:a=64,height:s=17,...i}=e,c=(s-t)/2;return f.jsxs(_.Box,{sx:{width:`${a}px`,height:`${s}px`,"& .primary":{backgroundColor:r=>r.palette.grey[600],top:`${c}px`,width:()=>`${t}px`,height:()=>`${t}px`},...o},className:he(br,"animated-icon"),...i,children:[f.jsx("div",{className:"primary"}),f.jsx("div",{className:"primary"}),f.jsx("div",{className:"primary"}),f.jsx("div",{className:"primary"})]})}),Cr=f.jsx(Co,{}),Do=d.memo(d.forwardRef((e,o)=>{const{sx:n,style:t,onMount:a,onUnmount:s,transitionDelay:i="1200ms",panel:c=!1,transparentBackground:r=!0,icon:l=Cr,label:m,...k}=e,g=d.useMemo(()=>typeof m=="string"?f.jsx(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:m}):m,[m]),v=d.useRef(null),w=d.useMemo(()=>{let y=f.jsxs(_.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"8px"},children:[g,l]});return c===!0&&(y=f.jsx(_.Paper,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"center",marginBottom:"5%",backgroundColor:u=>u.palette.info.light,color:u=>u.palette.info.contrastText,paddingLeft:u=>u.spacing(2),paddingRight:u=>u.spacing(2),paddingTop:u=>u.spacing(2),paddingBottom:u=>u.spacing(1),rowGap:u=>u.spacing(1),borderRadius:u=>`${u.shape.borderRadius}px`,boxShadow:u=>u.shadows[2],"& .primary":{background:u=>`${se.alpha(u.palette.info.contrastText,.9)} !important`,boxShadow:u=>`0 0 0 1px ${u.palette.mode==="dark"?u.palette.text.secondary:u.palette.divider}`,boxSizing:"content-box",border:"solid transparent"},zIndex:1},children:y})),f.jsx(_.Box,{ref:kt([v,o]),className:"animatable",sx:{cursor:"wait",boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"column",willChange:"opacity",opacity:r?.001:1,transitionProperty:"opacity",transitionDelay:i,transitionDuration:"320ms",transitionTimingFunction:"ease-in",overflow:"hidden",outline:"none",width:"100%",height:"100%",minWidth:0,minHeight:0,zIndex:99999,"&.animating":{opacity:1},"&.animating-exit":{opacity:0,transition:"opacity 210ms"},...n,...t},...k,children:f.jsxs(_.Box,{className:"center",sx:{display:"flex",flex:"1 1 100%",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[f.jsx(_.Box,{className:"backdrop",sx:{opacity:u=>r?1.5*u.palette.action.disabledOpacity:void 0,background:u=>r?void 0:u.palette.background.paper,backdropFilter:"blur(4px)",borderRadius:u=>`${u.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),y]})})},[n,c]),x=d.useRef(!1),h=d.useRef(!1);return So(()=>{if(v.current&&!x.current&&!h.current){if(h.current=!0,v.current.classList.contains("animatable")&&!v.current.classList.contains("animating")){let y=!1;const u=()=>{h.current&&(x.current=!0,h.current=!1,y=!0,a?.())};v.current&&v.current.addEventListener("transitionrun",u,{once:!0,capture:!0,passive:!0}),h.current&&v.current&&(window.getComputedStyle(v.current,null).opacity,v.current.classList.add("animating")),setTimeout(()=>{!y&&h.current&&v.current&&(v.current?.removeEventListener("transitionrun",u),u())},100)}else x.current=!0,h.current=!1,a?.();return()=>{}}},[v.current]),d.useEffect(()=>()=>{x.current&&(v.current?.classList.remove("animating"),x.current=!1,h.current=!1,s?.())},[]),w}));Do.displayName="LoadingPanel";const Dr=/^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,Or=/^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,wn=e=>{if(!e)return"";try{e=new URL(e).pathname}catch{}return e=(e=e.replace(/^\/+/,"")).replace(/^@?fs[\\/]/,"")},en=d.memo(({error:e,maxLines:o=Number.MAX_SAFE_INTEGER,hideLineNumbers:n=!1})=>{const[t,a]=d.useState(null);if(!e?.stack)return null;const s=(l=>{const m=[],k=(g,v=0)=>{g&&(m.push({error:g,depth:v}),g.cause&&g.cause instanceof Error&&k(g.cause,v+1))};return k(l),m.reverse()})(e).reverse(),i=[];s.forEach(({error:l},m)=>{const k=(l.stack||"").split(`
7
+ `).filter(Boolean).map(g=>{let v=g.match(Dr);if(v){const[,w="",x,h,y,u]=v;return{line:`at ${w?w+" ":""}${x}`,location:`${wn(h).split(/[\\/]/).pop()}:${y}:${u}`}}if(v=g.match(Or),v){const[,w="",x,h,y]=v,u=wn(x),S=`${u.split(/[\\/]/).pop()}:${h}:${y}`;return{line:`at ${w?w+" ":""}${S}`,location:u!==S?`${u}:${h}:${y}`:void 0}}return{line:g.trim()}});k.length&&(i.push({line:m?`Caused by: ${k[0].line}`:k[0].line,isBoundary:!0}),i.push(...k.slice(1)))});const c=o?i.slice(0,o):i,r=o&&i.length>o;return f.jsxs(_.Box,{sx:{width:"100%",mt:1},children:[f.jsxs(_.Box,{sx:{display:"flex",alignItems:"center",gap:1,borderRadius:1,px:1,py:.5},children:[f.jsxs(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",opacity:.8},children:["Stack Trace(",s.length>1?` (${s.length} frames)`:"",")"]}),f.jsx(_.Box,{sx:{flex:1}}),t&&f.jsx(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.8},children:t}),f.jsx(_.IconButton,{size:"small",onClick:async()=>{try{let l=0;const m=i.map(k=>{if(k.isBoundary)return l=0,k.line;l++;let g=k.location&&k.line!==k.location?`${k.line} (${k.location})`:k.line;return l>=1&&(g=` ${g}`),g}).join(`
8
+ `);await navigator.clipboard.writeText(m),a("Copied!"),setTimeout(()=>a(null),2e3)}catch(l){a("Can't copy!"),console.warn("Failed to copy stack trace:",l)}},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Copy stack trace",children:f.jsx(B.DynamicIcon,{iconKey:"ContentCopy",style:{fontSize:"0.875rem"}})}),f.jsx(_.IconButton,{size:"small",onClick:()=>{a("Logged!"),setTimeout(()=>a(null),2e3),console.log(e)},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Log error to console",children:f.jsx(B.DynamicIcon,{iconKey:"BugReport",style:{fontSize:"0.875rem"}})})]}),f.jsxs(_.Box,{sx:{mt:1,backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:1,p:1,maxHeight:"300px",overflow:"auto",fontFamily:"monospace",fontSize:"0.75rem",lineHeight:1.4},children:[c.map((l,m)=>l.isBoundary?f.jsx(_.Box,{sx:{py:1,mt:m>0?1:0,mb:.5,borderTop:m>0?"1px solid rgba(255, 255, 255, 0.1)":"none"},children:f.jsx(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",fontWeight:"bold",color:k=>l.isBoundary?k.palette.text.primary:k.palette.text.secondary,display:"block"},children:l.line})},`error-${m}`):f.jsxs(_.Box,{sx:{display:"flex",alignItems:"flex-start",gap:1,py:.25,pl:1,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}},children:[!n&&f.jsx(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.5,minWidth:"20px",textAlign:"right",userSelect:"none"},children:m+1}),f.jsxs(_.Box,{sx:{flex:1,overflow:"hidden"},children:[f.jsx(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"inherit"},children:l.line}),l.location&&l.line!==l.location&&f.jsx(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic"},children:l.location})]})]},`stack-${m}`)),r&&f.jsxs(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic",textAlign:"center",display:"block",mt:1},children:["... and ",i.length-o," more frames"]})]})]})});en.displayName="StackTrace";const Oo=(e,o=!1,n=!1)=>{if(d.isValidElement(e))return e;if(e instanceof Error)return f.jsxs(_.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"500px",width:"100%"},children:[f.jsx(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,mb:1},children:e.message}),e.cause?f.jsxs(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",mb:1,opacity:.8},children:["Caused by: ",e.cause instanceof Error?e.cause.message:String(e.cause)]}):null,!o&&f.jsx(en,{error:e,hideLineNumbers:!0})]});const t=e==="string"?e:`Unknown Error: ${String(e)}`;return f.jsx(_.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:t})},Eo=d.memo(d.forwardRef((e,o)=>{const{sx:n,icon:t=f.jsx(B.DynamicIcon,{iconKey:"Error",style:{fontSize:48}}),error:a,hideStackTrace:s=!1,stackTraceExpanded:i=!1,...c}=e,r=d.useMemo(()=>Oo(a,s,i),[a,s,i]);return d.useMemo(()=>f.jsx(_.Box,{ref:o,sx:{boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",overflow:"hidden",width:"100%",height:"100%",...n},...c,children:f.jsxs(_.Box,{sx:{display:"flex",flex:"1 1 100%",height:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[f.jsx(_.Box,{className:"backdrop",sx:{backdropFilter:"blur(4px)",borderRadius:l=>`${l.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),f.jsx(_.Paper,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",rowGap:"8px",alignSelf:"center",marginBottom:"5%",backgroundColor:l=>l.palette.error.light,color:l=>l.palette.error.contrastText,paddingLeft:l=>l.spacing(2),paddingRight:l=>l.spacing(2),paddingTop:l=>l.spacing(2),paddingBottom:l=>l.spacing(2),borderRadius:l=>`${l.shape.borderRadius}px`,boxShadow:l=>l.shadows[2],"& .primary":{background:l=>`${l.palette.error.contrastText} !important`,border:"solid transparent"},zIndex:1},children:f.jsx(_.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:l=>l.spacing(2),width:"100%",maxWidth:"600px"},children:f.jsxs(_.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:l=>l.spacing(2)},children:[t,r]})})})]})}),[n])}));Eo.displayName="ErrorPanel";const tn=d.memo(d.forwardRef((e,o)=>{const{chips:n,sx:t,...a}=e,s=d.useMemo(()=>{if(!n)return null;let i=null;i=Array.isArray(n)?n:[n];const c=[];for(let r=0;r<i.length;r++){const l=i[r];let m=null;typeof l=="string"?m=f.jsx(_.Chip,{label:l,color:"primary",size:"small",sx:{scale:"0.8"}},"chip-"+r):d.cloneElement(l,{key:"chip-"+r}),c.push(m)}return c},[n]);return f.jsx(_.Box,{ref:o,sx:{display:"flex",flexDirection:"row",marginLeft:"4px",gap:"2px",...t},...a,children:s})}));var zt="top",bt="bottom",Wt="right",Mo="left",Er=[zt,bt,Wt,Mo],To="viewport",Je="popper";function $e(e){return e?(e.nodeName||"").toLowerCase():null}function je(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var o=e.ownerDocument;return o&&o.defaultView||window}return e}function qe(e){return e instanceof je(e).Element||e instanceof Element}function Ge(e){return e instanceof je(e).HTMLElement||e instanceof HTMLElement}function nn(e){return typeof ShadowRoot<"u"&&(e instanceof je(e).ShadowRoot||e instanceof ShadowRoot)}var at=Math.max,kn=Math.min,Sn=Math.round;function Ht(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function jo(){return!/^((?!chrome|android).)*safari/i.test(Ht())}function on(e,o,n){o===void 0&&(o=!1),n===void 0&&(n=!1);var t=e.getBoundingClientRect(),a=1,s=1;o&&Ge(e)&&(a=e.offsetWidth>0&&Sn(t.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Sn(t.height)/e.offsetHeight||1);var i=(qe(e)?je(e):window).visualViewport,c=!jo()&&n,r=(t.left+(c&&i?i.offsetLeft:0))/a,l=(t.top+(c&&i?i.offsetTop:0))/s,m=t.width/a,k=t.height/s;return{width:m,height:k,top:l,right:r+m,bottom:l+k,left:r,x:r,y:l}}function _e(e){return je(e).getComputedStyle(e)}function Mr(e){return["table","td","th"].indexOf($e(e))>=0}function Ye(e){return((qe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tt(e){return $e(e)==="html"?e:e.assignedSlot||e.parentNode||(nn(e)?e.host:null)||Ye(e)}function Cn(e){return Ge(e)&&_e(e).position!=="fixed"?e.offsetParent:null}function Tr(e){for(var o=je(e),n=Cn(e);n&&Mr(n)&&_e(n).position==="static";)n=Cn(n);return n&&($e(n)==="html"||$e(n)==="body"&&_e(n).position==="static")?o:n||(function(t){var a=/firefox/i.test(Ht());if(/Trident/i.test(Ht())&&Ge(t)&&_e(t).position==="fixed")return null;var s=Tt(t);for(nn(s)&&(s=s.host);Ge(s)&&["html","body"].indexOf($e(s))<0;){var i=_e(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||a&&i.willChange==="filter"||a&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null})(e)||o}function Po(e){var o=je(e);return{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function Dn(e){return on(Ye(e)).left+Po(e).scrollLeft}function Ro(e){var o=_e(e),n=o.overflow,t=o.overflowX,a=o.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+t)}function Fo(e){return["html","body","#document"].indexOf($e(e))>=0?e.ownerDocument.body:Ge(e)&&Ro(e)?e:Fo(Tt(e))}function No(e,o){var n;o===void 0&&(o=[]);var t=Fo(e),a=t===((n=e.ownerDocument)==null?void 0:n.body),s=je(t),i=a?[s].concat(s.visualViewport||[],Ro(t)?t:[]):t,c=o.concat(i);return a?c:c.concat(No(Tt(i)))}function Ut(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function On(e,o,n){return o===To?Ut((function(t,a){var s=je(t),i=Ye(t),c=s.visualViewport,r=i.clientWidth,l=i.clientHeight,m=0,k=0;if(c){r=c.width,l=c.height;var g=jo();(g||!g&&a==="fixed")&&(m=c.offsetLeft,k=c.offsetTop)}return{width:r,height:l,x:m+Dn(t),y:k}})(e,n)):qe(o)?(function(t,a){var s=on(t,!1,a==="fixed");return s.top=s.top+t.clientTop,s.left=s.left+t.clientLeft,s.bottom=s.top+t.clientHeight,s.right=s.left+t.clientWidth,s.width=t.clientWidth,s.height=t.clientHeight,s.x=s.left,s.y=s.top,s})(o,n):Ut((function(t){var a,s=Ye(t),i=Po(t),c=(a=t.ownerDocument)==null?void 0:a.body,r=at(s.scrollWidth,s.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=at(s.scrollHeight,s.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),m=-i.scrollLeft+Dn(t),k=-i.scrollTop;return _e(c||s).direction==="rtl"&&(m+=at(s.clientWidth,c?c.clientWidth:0)-r),{width:r,height:l,x:m,y:k}})(Ye(e)))}function jr(e){var o=No(Tt(e)),n=["absolute","fixed"].indexOf(_e(e).position)>=0&&Ge(e)?Tr(e):e;return qe(n)?o.filter(function(t){return qe(t)&&(function(a,s){var i=s.getRootNode&&s.getRootNode();if(a.contains(s))return!0;if(i&&nn(i)){var c=s;do{if(c&&a.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1})(t,n)&&$e(t)!=="body"}):[]}function Pr(e,o){o===void 0&&(o={});var n,t=o,a=t.placement,s=a===void 0?e.placement:a,i=t.strategy,c=i===void 0?e.strategy:i,r=t.boundary,l=r===void 0?"clippingParents":r,m=t.rootBoundary,k=m===void 0?To:m,g=t.elementContext,v=g===void 0?Je:g,w=t.altBoundary,x=w!==void 0&&w,h=t.padding,y=h===void 0?0:h,u=(function(A){return Object.assign({},{top:0,right:0,bottom:0,left:0},A)})(typeof y!="number"?y:(n=y,Er.reduce(function(A,$){return A[$]=n,A},{}))),S=v===Je?"reference":Je,M=e.rects.popper,j=e.elements[x?S:v],z=(function(A,$,W,U){var ee=$==="clippingParents"?jr(A):[].concat($),X=[].concat(ee,[W]),J=X[0],oe=X.reduce(function(te,Z){var re=On(A,Z,U);return te.top=at(re.top,te.top),te.right=kn(re.right,te.right),te.bottom=kn(re.bottom,te.bottom),te.left=at(re.left,te.left),te},On(A,J,U));return oe.width=oe.right-oe.left,oe.height=oe.bottom-oe.top,oe.x=oe.left,oe.y=oe.top,oe})(qe(j)?j:j.contextElement||Ye(e.elements.popper),l,k,c),O=on(e.elements.reference),R=(function(A){var $,W=A.reference,U=A.element,ee=A.placement,X=ee?(function(ce){return ce.split("-")[0]})(ee):null,J=ee?(function(ce){return ce.split("-")[1]})(ee):null,oe=W.x+W.width/2-U.width/2,te=W.y+W.height/2-U.height/2;switch(X){case zt:$={x:oe,y:W.y-U.height};break;case bt:$={x:oe,y:W.y+W.height};break;case Wt:$={x:W.x+W.width,y:te};break;case Mo:$={x:W.x-U.width,y:te};break;default:$={x:W.x,y:W.y}}var Z=X?(function(ce){return["top","bottom"].indexOf(ce)>=0?"x":"y"})(X):null;if(Z!=null){var re=Z==="y"?"height":"width";switch(J){case"start":$[Z]=$[Z]-(W[re]/2-U[re]/2);break;case"end":$[Z]=$[Z]+(W[re]/2-U[re]/2)}}return $})({reference:O,element:M,placement:s}),C=Ut(Object.assign({},M,R)),D=v===Je?C:O,P={top:z.top-D.top+u.top,bottom:D.bottom-z.bottom+u.bottom,left:z.left-D.left+u.left,right:D.right-z.right+u.right},T=e.modifiersData.offset;if(v===Je&&T){var L=T[s];Object.keys(P).forEach(function(A){var $=[Wt,bt].indexOf(A)>=0?1:-1,W=[zt,bt].indexOf(A)>=0?"y":"x";P[A]+=L[W]*$})}return P}const Rr={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var o=e.state,n=e.name,t=Pr(o,e.options),a=o.modifiersData.preventOverflow||{x:0,y:0},s=a.x,i=a.y;let c=o.rects.popper,r=c.width,l=c.height,m=o.placement.split("-")[0],k=m==="left"?"left":"right",g=m==="top"?"top":"bottom";o.modifiersData[n]={width:r-t[k]-s,height:l-t[g]-i}}},Fr=[0,2],rn=d.memo(d.forwardRef((e,o)=>{const{sx:n,open:t,children:a,label:s,offsets:i=Fr,anchorEl:c,anchorPosition:r,onMount:l,onOpening:m,onOpen:k,onClosing:g,onClose:v,resizeOnOverflow:w=!0,...x}=e;if(Array.isArray(a))throw new Error("children can not be an array");const h=ze.useTheme(),y={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:X}){const{height:J}=X.modifiersData.maxSize;X.styles.popper.maxHeight=J-10+"px"}},u=d.useMemo(()=>{const X=[{name:"offset",options:{offset:i}},{name:"flip",enabled:!0,options:{rootBoundary:"document"}}];return w&&X.unshift(Rr,y),X},[w,i]),[S,M]=d.useState(!1),j=d.useRef(null),z=B.useCallbackRef(()=>{l?.(L.current,j.current)},[m]),O=B.useCallbackRef(m,[m]),R=B.useCallbackRef(k,[k]),C=B.useCallbackRef(g,[g]),D=B.useCallbackRef(()=>{M(!1),v?.()},[v]),[P,T]=d.useState(!1),L=d.useRef(null),A=d.useRef(!0),$=d.useMemo(()=>({onFirstUpdate:()=>{A.current&&(T(!0),z?.(),A.current=!1)}}),[t,S]);d.useEffect(()=>{t&&P?O?.():!t&&S&&C?.(),t&&M(t)},[t,P]);const W=d.useMemo(()=>({getBoundingClientRect:()=>r?new DOMRect(r?.left||0,r?.top||0,0,0):c.getBoundingClientRect()}),[r,c]);d.useImperativeHandle(o,()=>({instance:()=>j.current,element:()=>L.current}),[]);const{getPortalContainer:U}=B.useFullscreenPortal(),ee=d.useMemo(()=>({zIndex:t?"1300":"1299",display:"flex",pointerEvents:S&&t?void 0:"none",maxWidth:"100%",maxHeight:"100%",...n}),[n,t,S]);return f.jsx(_.Popper,{ref:L,popperRef:j,container:U,anchorEl:W,open:S,role:void 0,popperOptions:$,transition:!0,sx:ee,placement:"bottom-start",modifiers:u,...x,children:({TransitionProps:X,placement:J,...oe})=>{const{in:te,onEnter:Z,onExited:re,...ce}=X??{};return f.jsx(_.Grow,{...ce,in:t,onEnter:()=>{Z?.(),R()},onExited:()=>{re?.(),D()},timeout:{enter:h.transitions.duration.shorter,exit:0},style:{transformOrigin:J==="bottom-start"?"left top":"center bottom"},children:typeof a=="function"?a({TransitionProps:X,placement:J,...oe}):a||{}})}})}));rn.displayName="ExhibitPopper";const Kt=e=>f.jsx(B.DynamicIcon,{...e,iconKey:"ArrowDownOutline"}),Bo=e=>f.jsx(B.DynamicIcon,{...e,iconKey:"ArrowRightOutline"}),Nr=d.memo(d.forwardRef((e,o)=>{const{sx:n,size:t="small",activeColor:a,children:s,className:i,...c}=e;let r="1rem",l="1rem";return t==="medium"?(r="1.25rem",l="1.25rem"):t==="large"&&(r="1.5rem",l="1.5rem"),f.jsx(_.Box,{ref:o,className:he("icon",i),sx:{width:r,height:l,...n},...c,children:s})})),Br=ze.styled(Nr)(({theme:e})=>({fill:"currentColor","& .activeColor":{fill:e.palette.primary.main},"& .styled.high_contrast":{fill:e.palette.primary.main},"& .styled.background":{fill:e.palette.background.paper},"& .styled.current_color":{fill:"currentColor"},"& .styled.secondary":{fill:e.palette.secondary.main},"& .styled.secondary_dark":{fill:e.palette.secondary.dark},"& .styled.secondary_light":{fill:e.palette.secondary.light},"& .styled.info":{fill:e.palette.info.main},"& .styled.info.stroked":{stroke:e.palette.info.main},"& .styled.info_dark":{fill:e.palette.info.dark},"& .styled.info_light":{fill:e.palette.info.light},"& .styled.warning":{fill:e.palette.warning.main},"& .styled.warning.stroked":{stroke:e.palette.warning.main},"& .styled.warning_dark":{fill:e.palette.warning.dark},"& .styled.warning_light":{fill:e.palette.warning.light},"& .styled.error.info":{fill:e.palette.error.main},"& .styled.error.stroked":{stroke:e.palette.error.main},"& .styled.error_dark":{fill:e.palette.error.dark},"& .styled.error_light":{fill:e.palette.error.light},"& .styled.success":{fill:e.palette.success.main},"& .styled.success_dark":{fill:e.palette.success.dark},"& .styled.success_light":{fill:e.palette.success.light},"& .styled.grey":{fill:e.palette.text.icon??e.palette.action.active}})),Ir=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,_r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Io=function(e,o=null){if(!e)return e;e=e.replace(Ir,function(t,a,s,i){return a+a+s+s+i+i});let n=_r.exec(e);return n?o===null?`rgb(${parseInt(n[1],16)}, ${parseInt(n[2],16)}, ${parseInt(n[3],16)})`:`rgb(${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)} / ${100*o}%)`:e},Yt=function(e,o=.2,n="light"){if(!e)return e;let t=n!=="dark";return o<0&&(t=!t,o*=-1),e=Io(e),t?se.darken(e,Math.max(0,Math.min(1,1*o))):se.lighten(e,Math.max(0,Math.min(1,1.5*o)))};function an(e,o){o=go.deepmerge({track:Yt(e.palette.background.paper,.05,e?.palette.mode),thumb:Yt(e.palette.background.paper,.3,e?.palette.mode),active:e.palette.primary.main,corner:e.palette.background.paper,outline:!1},o||{});const n={"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:se.alpha(o.track,.2),width:"13px",height:"13px"},"&::-webkit-scrollbar-button":{display:"none"},"& .scrollbar-button":{fill:o.thumb,backgroundColor:"transparent",transition:"fill opacity 260ms ease",width:"13px",height:"13px"},"& .scrollbar-button:hover:not([disabled])":{fill:o.active},"& .scrollbar-button:disabled":{opacity:.8},"&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track":{},"&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece":{},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:o.thumb,minHeight:"24px",minWidth:"24px",border:`2px solid ${o.track}`},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:o.active,border:o.outline?o.outline:void 0},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:o.active,border:o.outline?o.outline:void 0},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:o.active,border:o.outline?o.outline:void 0},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:o.corner||o.thumb}};return ve.CommonUtils.getOS()===ve.CommonUtils.OSType.Firefox&&(n["* .pseudo-scrollbar"]={scrollbarColor:`${o.thumb} transparent`},n["* .pseudo-scrollbar:hover:not([disabled])"]={scrollbarColor:`${o.active} transparent`}),n}function En(){if(typeof document>"u")return null;const e=[...Array.from(document.body.classList),...document.documentElement?Array.from(document.documentElement.classList):[]];return e.includes("dark")?"dark":e.includes("light")?"light":null}function Mn(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const _o={Toolbar:"toolbar",Menuitem:"menuitem"},jt=e=>{const{closeFloat:o,closeFloatAll:n,floatReference:t,popupContainer:a,children:s,className:i,sx:c,...r}=e;return f.jsx(_.Box,{className:he("menu",i),sx:{display:"flex",flexDirection:"column",...c},...r,children:s})},qt=(e,o,n)=>{let t;return n&&(t=(t?t+" ":"")+"rotate(180deg)"),f.jsx(Kt,{style:{marginLeft:e?void 0:o?"-0.25rem":"-3px",marginRight:e?void 0:o?"-0.25rem":"-6px",transform:t},color:"inherit"})},sn=d.memo(d.forwardRef((e,o)=>{const{open:n,anchorEl:t,anchorPosition:a,label:s,floatReference:i,createPopupPanel:c=jt,popperProps:r,onMount:l,onClosing:m,onClose:k,onOpening:g,onOpen:v,children:w,sx:x,...h}=e,y=B.useCallbackRef(m,[m]),u=B.useCallbackRef(k,[k]),S=B.useCallbackRef(g,[g]),M=B.useCallbackRef(v,[v]),[j,z]=d.useState(),O=d.useRef(null),R=B.useCallbackRef((D,P)=>{z(D),l?.(O.current,P)},[l]),C=d.useMemo(()=>{const D={popupContainer:j,floatReference:i,children:w,...h},P=c(D);return f.jsx(_.Paper,{elevation:8,ref:O,sx:{display:"flex",overflow:"auto",outline:"none","&.MuiPaper-root":T=>an(T)},tabIndex:0,children:P})},[c,w,j,i]);return f.jsx(rn,{ref:o,anchorEl:t,anchorPosition:a,label:s,open:n,onMount:R,onOpening:S,onOpen:M,onClosing:y,onClose:u,...r,children:C})}));sn.displayName="ExhibitFloatPanel";const Fe=new Map;let _t=null;const Ne=new Map;let Te=null;const At=(e=null,o,n,t)=>(Te&&(Te.fn.clear(),Te=null),e===0?o:(e===null&&(e=120),Te={fn:ve.CommonUtils.debounce(()=>o(),e),setReferences:n,isClose:t},Te.fn)),Ao=(e,o)=>{if(o===null)return;e.add(o);const n=Fe.get(o.key);if(!n)return;const t=Ne.get(n);t&&Ao(e,t)},Tn=e=>{const o=new Set;return Ao(o,e),o},dt=e=>{const{anchor:o,label:n=null,parentFloat:t=null,onOpen:a,onClose:s,popperProps:i,createPopupPanel:c=jt}=e??{},r=B.useCallbackRef(a,[a]),l=B.useCallbackRef(s,[s]),[m,k]=d.useState(null),[g,v]=d.useState(!1),[w,x]=d.useState(!1),h=d.useMemo(()=>t===null?(_t===null&&(_t={key:{label:"root"},isRoot:!0,parent:null,open:()=>null,close:b=>null,closeChild:b=>null,onChildVisible:()=>{},onChildHidden:()=>{},closeAll:()=>W(0),floatElement:()=>null,anchorElement:()=>null}),_t):t,[]),y=d.useMemo(()=>({label:n}),[]),u=d.useRef(null),S=d.useRef(o);d.useEffect(()=>{S.current=o},[o]);const M=b=>{const E=Fe.get(b);let F=null;return E&&(F=Ne.get(E)?.close(0)),F},j=()=>M(X.key),[z,O]=d.useState(),R=()=>{if(!m)return void T();const b=new Promise((E,F)=>{O(I=>({resolve:E,reject:F}))});return j(),Fe.delete(h.key),k(!1),b};d.useEffect(()=>{z&&(z.resolve(),O(null))},[g,w,z]);const C=d.useCallback(()=>{let b=h;for(;b.parent;)b=b.parent;return M(b.key)},[]),D=()=>{if(m)return void T();h&&Ne.get(h.key)?.open(0);const b=Fe.get(h.key);b&&b!==y&&Ne.get(b)?.close(0),requestAnimationFrame(()=>{Fe.set(h.key,X.key),k(!0)})},[P,T]=d.useReducer(b=>b+1,0),L=d.useCallback(b=>c===null?null:c({closeFloat:W,closeFloatAll:ee,...b}),[c]),A=c===null,$=B.useCallbackRef((b=120)=>At(b,D,new Set([X]),!1)(),[D]),W=B.useCallbackRef((b=60)=>At(b,R,Tn(X),!0)(),[R]),U=B.useCallbackRef((b=360)=>At(b,j,Tn((E=>{const F=Fe.get(E.key);return F&&Ne.get(F)||null})(X)),!0)(),[j]),ee=B.useCallbackRef(C,[C]),X=d.useMemo(()=>({key:y,isRoot:!1,label:n,parent:h,onChildVisible:()=>{x(!0)},onChildHidden:()=>{x(!1)},open:$,close:W,closeChild:U,closeAll:ee,floatElement:()=>u.current,anchorElement:()=>S.current}),[]);d.useEffect(()=>{Ne.set(y,X)},[X]),d.useEffect(()=>()=>{Ne.delete(y),W(0)},[]),d.useEffect(()=>{m&&!A&&(v(!0),h.onChildVisible())},[m,A]);const J=d.useCallback(b=>{b.which===B.KeyCodes.Escape&&(b.preventDefault(),b.stopPropagation(),W(0))},[]),oe=d.useRef(null),te=d.useCallback(()=>{const b=oe.current,E=u.current;b&&E&&(requestAnimationFrame(()=>{(E.contains(document.activeElement)||document.activeElement===document.body)&&b.focus()}),oe.current=null),l?.()},[]),Z=d.useCallback(b=>{u.current=b,b.addEventListener("focus",F=>{oe.current=F.relatedTarget},{once:!0,passive:!0});const E=document.activeElement;requestAnimationFrame(()=>{E===document.activeElement&&b.focus()})},[]),[re,ce]=d.useState();d.useEffect(()=>{A&&(m?r?.():m===!1&&l?.()),ce(g?f.jsx(sn,{floatReference:X,open:m,label:n,anchorEl:o,onOpening:()=>{r?.(),h.onChildVisible()},onClosing:te,onClose:()=>{v(!1),h.onChildHidden()},onMount:Z,popperProps:{onKeyDown:J,onMouseEnter:b=>{m&&Te?.isClose&&Te.setReferences.has(X)&&(Te.fn.clear(),Te=null,X.closeChild())},...i},createPopupPanel:L}):null)},[g,m,n,A,i,L,P]);const p=B.useCallbackRef(b=>{if(Fe.size===0)return;let E=!1;Fe.forEach(F=>{const I=Ne.get(F);if(E||!I)return;I.floatElement()?.contains?.(b.target)&&(E=!0),I.anchorElement()?.contains?.(b.target)&&(E=!0)}),E||C()},[C]);return d.useEffect(()=>{if(!m||!h.isRoot)return;const b=E=>{p(E)};return document.addEventListener("mousedown",b),document.addEventListener("touchstart",b),document.addEventListener("focus",b),()=>{document.removeEventListener("mousedown",b),document.removeEventListener("touchstart",b),document.removeEventListener("focus",b)}},[m,h]),{component:re,reference:X}},Lo=d.memo(d.forwardRef((e,o)=>{const{nestedChildren:n,variant:t,disabled:a=!1,createPopupPanel:s,...i}=e,c={disabled:a,createPopupPanel:B.useCallbackRef(r=>{if(!n||n.length===0)return null;const{popupContainer:l,floatReference:m,ref:k,...g}=r,v=[];for(let w=0;w<n.length;w++){const x=n[w];x&&v.push(f.jsx(Lo,{parentFloat:m,...g,...x},w))}return f.jsxs(_.Box,{ref:o,sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:["Children here",v,f.jsx(Xe,{parentFloat:m,children:"Close other children"})]})},[n]),...i};return t===_o.Toolbar?f.jsx(Pt,{...c}):f.jsx(cn,{...c})})),Ar={placement:"right-start"},Lr=d.memo(d.forwardRef((e,o)=>{const{children:n,sx:t,parentFloat:a,createPopupPanel:s,popperProps:i=Ar,label:c,...r}=e;(function(h){if(!h)throw new Error("Invariant failed")})(d.isValidElement(n));const l=n,m=d.useMemo(()=>({...l?.props,...r,onContextMenu:h=>{l?.props?.onContextMenu?.(h),h.isDefaultPrevented()||(r?.onContextMenu?.(h),h.isDefaultPrevented()||(v(h),h.preventDefault()))}}),[r,l?.props]),k=B.useCallbackRef(s,[s]),[g,v]=d.useState(null),{reference:w,component:x}=dt({label:c??"contextMenu",popperProps:i,parentFloat:a,anchor:{getBoundingClientRect:()=>new DOMRect(g?.clientX||0,g?.clientY||0)},onClose:()=>v(null),createPopupPanel:k});return d.useEffect(()=>{g?w.open(0):w.close(0)},[g]),f.jsxs(f.Fragment,{children:[d.cloneElement(n,m),x]})})),He=d.forwardRef((e,o)=>{const{slotProps:n,...t}=e,{getPortalContainer:a}=B.useFullscreenPortal();return f.jsx(_.Tooltip,{ref:o,slotProps:{...n,popper:{container:a,...n?.popper||{}}},...t})});He.displayName="SimpleTooltip";const Ze=d.memo(e=>{const{modifier:o,sx:n,...t}=e;return f.jsx(_.Box,{sx:{marginLeft:"1px",marginRight:"1px",borderRadius:"4px",borderStyle:"solid",borderTopWidth:"1px",borderLeftWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"2px",borderTopColor:a=>se.alpha(a.palette.background.paper,a.palette.action.disabledOpacity),borderLeftColor:a=>se.alpha(a.palette.background.paper,a.palette.action.disabledOpacity),borderRightColor:a=>se.alpha(a.palette.background.paper,a.palette.action.disabledOpacity),borderBottomColor:a=>se.alpha(a.palette.background.paper,1-a.palette.action.disabledOpacity),backgroundColor:a=>se.alpha(a.palette.action.hover,a.palette.action.disabledOpacity),paddingLeft:"4px",paddingRight:"4px",minHeight:"1.6em",display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"content-box",overflow:"hidden",...n},...t,children:f.jsx(_.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center","& *":{fontWeight:"500"}},children:o})})}),Vr=ve.CommonUtils.getOS()===ve.CommonUtils.OSType.MacOS||ve.CommonUtils.getOS()===ve.CommonUtils.OSType.IOS?"Cmd":"Ctrl",ln=(e,o=!1,n=null)=>{if(Array.isArray(e)){let s=[],i=e;for(let c=0;c<i.length;c++)s.push(ln(i[c],o,n??""+c));return f.jsx(_.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"column"},children:s},n)}if(!e?.key)return null;const t={};for(let s=0;e.modifiers&&s<e.modifiers.length;s++)t[e.modifiers[s]]=!0;const a=[];return t?.[B.KeyModifiers.Ctrl]&&(a.push(f.jsx(Ze,{modifier:o?"^":f.jsx("div",{style:{paddingRight:"1px"},children:Vr})},"ctrl")),a.push("+")),t?.[B.KeyModifiers.Alt]&&(a.push(f.jsx(Ze,{modifier:o?"⌥":"Alt"},"alt")),a.push("+")),t?.[B.KeyModifiers.Shift]&&(a.push(f.jsx(Ze,{modifier:o?"⇧":f.jsx("div",{style:{paddingRight:"1px"},children:"Shift"})},"shift")),a.push("+")),t?.[B.KeyModifiers.Meta]&&(a.push(f.jsx(Ze,{modifier:o?f.jsx("div",{style:{paddingTop:"1px"},children:"⌘"}):"Meta"},"meta")),a.push("+")),a.push(f.jsx(Ze,{modifier:B.ReactUtils.toPrettyKeyCode(e.key)},"character")),f.jsx(_.Box,{sx:{display:"flex",alignItems:"center"},children:a},n)},Ue=d.memo(d.forwardRef((e,o)=>{const{disabled:n=!1,label:t,shortcut:a,chips:s,description:i,maxWidth:c=280,useModifierSymbols:r=!1,children:l,simple:m,componentDisabled:k=!1,sx:g,...v}=e;let w=null;a&&(w=ln(a,r));const[x,h]=d.useState(null);d.useEffect(()=>{Promise.resolve(t).then(u=>{h(u)})},[t]);const y=f.jsxs(_.Box,{sx:{maxWidth:`${c}px`},ref:o,children:[f.jsxs(_.Box,{sx:{display:"flex",flexDirection:"row",marginBottom:i?"4px":"0px"},children:[f.jsx(_.Typography,{variant:"subtitle1",component:"div",flex:"1 1 100%",children:x}),s?f.jsx(tn,{chips:s}):null,w?f.jsx(_.Box,{sx:{marginLeft:"8px"}},"leadingSpace"):f.jsx(f.Fragment,{}),w]}),i?f.jsx(_.Typography,{variant:"caption",sx:{whiteSpace:"pre-line",lineHeight:"1.4"},children:i}):f.jsx(f.Fragment,{})]});return f.jsx(He,{slotProps:{popper:{sx:{"& .MuiTooltip-tooltip":{marginTop:"0px !important"},...g},modifiers:[{name:"offset",options:{offset:[0,14]}}]}},className:"tooltip-wrapper",tabIndex:-1,title:!n&&x?y:"",enterDelay:260,enterNextDelay:130,leaveDelay:230,disableInteractive:!0,...v,children:f.jsx("div",{style:{display:"flex",alignItems:"stretch",justifyContent:"stretch"},children:l})})})),$r=f.jsx(B.DynamicIcon,{}),zr=f.jsx(B.DynamicIcon,{iconKey:"Check"}),pt=d.memo(d.forwardRef((e,o)=>{const{dense:n=!0,outlined:t=!1,disableHover:a=!1,parentFloat:s,selected:i,icon:c,tooltipProps:r,children:l,primary:m,sx:k,disabled:g,className:v,onFocus:w,onBlur:x,...h}=e,[y,u]=d.useState(!1),S={marginRight:"0px",padding:n?"2px":"7px",borderRadius:R=>`${R.shape.borderRadius}px`,color:R=>m?void 0:R.palette.text.icon??R.palette.action.active,border:R=>`solid ${t?R.palette.divider:"transparent"} 1px`,"& .MuiTouchRipple-child":{borderRadius:R=>`${R.shape.borderRadius}px !important`},"&.Mui-selected":{backgroundColor:R=>se.alpha(R.palette.text.primary,R.palette.action.selectedOpacity),border:R=>`solid ${t?R.palette.text?.primary:R.palette.divider} 1px`},"&.Mui-disabled":{border:R=>`solid ${t?R.palette.divider:"transparent"} 1px`},"&.Mui-disabled > .icon path":{filter:"grayscale(65%)",opacity:".8"},"&.Mui-focusVisible":{outline:"solid transparent 1px",border:"1px solid transparent"},...k},M={"&:hover:not(.Mui-disabled, [disabled])":{color:R=>R.palette.text.primary,border:R=>`solid ${t?R.palette.text?.primary:R.palette.divider} 1px`,"&.Mui-selected":{backgroundColor:R=>se.alpha(R.palette.text.primary,R.palette.action.selectedOpacity+R.palette.action.hoverOpacity)},"> .outline-hover":{outline:R=>`solid ${t?R.palette.text?.primary:R.palette.divider} 1px`},backgroundColor:null},"&.Mui-focusVisible":{outline:R=>`solid ${R.palette.primary.main} 1px`,border:R=>`1px solid ${R.palette?.primary?.main}`,zIndex:1}};let j=S;a||(j=ve.CommonUtils.mergeContentful(S,M));const z=d.useMemo(()=>{let R=typeof c=="function"?c():c;return R===null?R:R||(i===void 0?$r:zr)},[c,i]);let O=f.jsxs(_.IconButton,{component:"div",ref:o,className:he({"Mui-focusVisible":y,"Mui-selected":i,"Mui-disabled":g},v),onFocus:R=>{u(!0),w?.(R)},onBlur:R=>{u(!1),x?.(R)},size:"small",TouchRippleProps:{center:!1},sx:j,edge:"end",...h,disabled:g||!1,children:[z,l]});if(r)if(r.simple&&r.label&&!r.disabled){const{label:R,description:C,maxWidth:D,shortcut:P,useModifierSymbols:T,componentDisabled:L,simple:A,chips:$,ref:W,...U}=r;O=f.jsx(He,{disableInteractive:!0,title:R??"",...U,children:f.jsx(_.Box,{sx:{display:"flex"},children:O})})}else O=f.jsx(Ue,{children:O,...r});return O})),Wr=f.jsx(B.DynamicIcon,{}),Hr=e=>e.icon,Xe=d.memo(d.forwardRef((e,o)=>{const{icon:n=Wr,renderIcon:t=Hr,parentFloat:a,className:s,onFocus:i,selected:c,onBlur:r,onMouseOver:l,onMouseOut:m,onMouseEnter:k,disabled:g,children:v,sx:w,tooltipProps:x,chips:h,primary:y,...u}=e,[S,M]=d.useState(!1),[j,z]=d.useState(!1),O=d.useMemo(()=>{const C=t?.({icon:n,disabled:g,selected:c});return C?f.jsx(_.ListItemIcon,{className:he({"Mui-focusVisible":S,"Mui-hovered":j}),sx:{"& .MuiSvgIcon-root":{color:D=>y?void 0:D.palette.text.icon??D.palette.action.active},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{"& .MuiSvgIcon-root":{color:D=>D.palette.text.primary}}},children:C}):null},[t,g,n,S,j,y,c]);let R=f.jsxs(_.MenuItem,{ref:o,disabled:g,onMouseOver:C=>{l?.(C),C.isDefaultPrevented()||z(!0)},onMouseOut:C=>{m?.(C),C.isDefaultPrevented()||z(!1)},onMouseEnter:C=>{k?.(C),C.isDefaultPrevented()||a?.closeChild()},TouchRippleProps:{center:!1},className:he({"Mui-focusVisible":S,"Mui-hovered":j},s),onFocus:C=>{i?.(C),M(!0)},onBlur:C=>{r?.(C),M(!1)},sx:{flex:"1 1 100%","&.Mui-disabled > .icon path":{filter:"grayscale(65%)"},"&.Mui-selected":{color:C=>C.palette.text.primary},color:C=>C.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:C=>C.palette.text.primary},...w},...u,children:[O,v,h?f.jsx(tn,{chips:h}):null]});return x&&(R=f.jsx(Ue,{children:R,placement:"right-start",...x})),R})),Ur=d.memo(d.forwardRef((e,o)=>{const{children:n,sx:t,primary:a=!1,variant:s="subtitle1",...i}=e;return f.jsx(f.Fragment,{children:f.jsx(_.Typography,{ref:o,variant:s,component:"div",sx:{userSelect:"none",fontWeight:"500",paddingLeft:"8px",paddingTop:s==="subtitle1"?"2px":void 0,paddingBottom:s==="subtitle1"?"2px":void 0,color:c=>a?void 0:c.palette.text.secondary,...t},...i,children:n})})})),Pt=d.memo(d.forwardRef((e,o)=>{const{dense:n=!0,outlined:t=!1,label:a,selected:s=!1,onQuickClick:i,parentFloat:c,createPopupPanel:r,popupProps:l,onPopupOpen:m,onPopupClose:k,quickButtonProps:g,createQuickButton:v,tooltip:w="",createTooltip:x,icon:h,disabled:y,buttonProps:u=ve.CommonUtils.EmptyObject,disableHover:S,touchRippleRef:M,primary:j,children:z,sx:O,className:R,...C}=e,D=ze.useTheme(),P=d.useMemo(()=>{const Q=(ne,ie,ue,Se=ue)=>{const V=typeof t=="boolean"?null:t[ne];return typeof V=="function"?V(ie):V||(t?ue:Se)};return{outline:{color:ne=>Q("color",ne,ne.palette.divider,"transparent"),hoverColor:ne=>Q("hoverColor",ne,ne.palette.text?.primary,ne.palette.divider),focusColor:ne=>Q("focusColor",ne,ne.palette?.primary?.main)},active:D.palette.mode==="dark"?D.palette.text.secondary:D.palette.text.primary,text:D.palette.text.icon??D.palette.action.active}},[t,D]),[T,L]=d.useState(!1),[A,$]=d.useState(!1),[W,U]=d.useState(!1),ee=d.useRef(null),X=d.useRef(null),J=dt({anchor:ee.current,label:a,createPopupPanel:r,parentFloat:c,popperProps:l?.popperProps,onClose:()=>{L(!1),k?.()},onOpen:()=>{L(!0),m?.()}}),oe=B.useCallbackRef(Q=>{i?.(Q),J.reference.close(0)},[i,J]),te=B.useCallbackRef(()=>{T?J.reference.close(0):J.reference.open(0)},[T,J,c,a]),Z=d.useMemo(()=>{const Q={"&.bordered":{borderWidth:"1px",borderRadius:"0px",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:K=>P.outline.color(K),"&.Mui-focusVisible":{border:K=>`1px solid ${P.outline.focusColor(K)} !important`},"&:hover:not(.Mui-disabled, [disabled])":{borderColor:()=>S?"transparent":void 0,backgroundColor:()=>S?"transparent":void 0},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{borderColor:K=>P.outline.hoverColor(K)},"&.Mui-selected:not(.Mui-disabled, [disabled])":{borderColor:K=>P.outline.hoverColor(K)},"&.left":{borderTopLeftRadius:K=>`${K.shape.borderRadius}px`,borderBottomLeftRadius:K=>`${K.shape.borderRadius}px`,borderLeftStyle:"solid"},"&.hard-right":{borderRightStyle:"solid",borderRightWidth:"1px",borderRightColor:K=>P.outline.color(K)},"&.right":{borderTopRightRadius:K=>`${K.shape.borderRadius}px`,borderBottomRightRadius:K=>`${K.shape.borderRadius}px`,borderRightStyle:"solid"},"&.divider":{borderLeftWidth:"0px !important"}},"& .MuiTouchRipple-child":{borderRadius:K=>`${K.shape.borderRadius}px !important`}},ne={"&.Mui-selected":{backgroundColor:K=>se.alpha(K.palette.primary.main,K.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:K=>se.alpha(K.palette.primary.main,K.palette.action.selectedOpacity+K.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:K=>se.alpha(K.palette.primary.main,K.palette.action.selectedOpacity)}}}},ie={maxHeight:"100%","&.Mui-selected":{backgroundColor:K=>se.alpha(K.palette.text.icon??K.palette.action.active,K.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:K=>se.alpha(K.palette.text.icon??K.palette.action.active,K.palette.action.selectedOpacity+K.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:K=>se.alpha(K.palette.text.icon??K.palette.action.active,K.palette.action.selectedOpacity)}}},"&:hover:not(.Mui-disabled, [disabled])":{color:K=>K.palette.text.primary},backgroundColor:()=>S?"transparent":void 0,color:K=>K.palette.text.icon,"&.Mui-disabled > .icon path":{filter:"grayscale(65%)",opacity:".8"},padding:()=>n?"2px 3px":"7px",marginRight:"0"},ue=ve.CommonUtils.mergeContentful(ie,Q),Se=ve.CommonUtils.mergeContentful(ue,ne),V=ve.CommonUtils.mergeContentful(ie,Q);return{quickButtonStyling:ue,openQuickButtonStyling:Se,compoundStyling:V,openCompoundStyling:ve.CommonUtils.mergeContentful(V,ne)}},[P,S]),re=B.useCallbackRef(Q=>{const{children:ne,ref:ie,...ue}=Q;return f.jsx(He,{ref:ie,...ue,disableInteractive:!0,children:ne})},[]),ce=i||v,p=ce&&(g?.tooltip||g?.createTooltip),b=Q=>{const{tooltip:ne,createTooltip:ie,sx:ue,...Se}=Q;let V=f.jsx(_.IconButton,{sx:{...ue},component:"div",...Se});return p&&(V=(ie??re)({title:T?"":ne??w,children:f.jsx("div",{children:V})},T)),V},E={onKeyDown:Q=>{Q.keyCode===B.KeyCodes.Space?te():Q.keyCode===B.KeyCodes.F4||Q.keyCode===B.KeyCodes.Down?J.reference.open(0):Q.keyCode===B.KeyCodes.Up&&J.reference.close(0)}};let F=f.jsx(f.Fragment,{});const I=d.useMemo(()=>typeof h=="function"?h():h,[h]);if(ce){let Q=T?Z.openQuickButtonStyling:Z.quickButtonStyling;const ne=(v||b)({tabIndex:-1,disabled:y,size:"small",edge:"end",onMouseEnter:()=>{J.reference.parent.closeChild()},onMouseDown:ue=>{ue.button===0&&(ue.preventDefault(),oe(ue))},touchRippleRef:M,children:I,...g,className:he({"Mui-focusVisible":A||T,"Mui-selected":s,"Mui-hovered":W||T,"Mui-disabled":y,bordered:!0,left:!0,"hard-right":!0},g?.className),sx:{...Z.quickButtonStyling,height:"100%",...g?.sx}});let ie=qt(!0,n,T);p&&(ie=(x??re)({title:T?"":w,children:ie},T)),F=f.jsxs(f.Fragment,{children:[ne,f.jsx(_.IconButton,{ref:X,component:"div",className:he({"Mui-selected":T,"Mui-hovered":W||T,"Mui-disabled":y,"Mui-focusVisible":A||T,bordered:!0,right:!0,divider:!0}),sx:{paddingLeft:(n?0:2)+"px",paddingRight:(n?0:2)+"px",width:()=>"calc(var(--icon-size, 1.25em) * 0.8)",...Z.quickButtonStyling,...Q},TouchRippleProps:{center:!1},tabIndex:-1,disabled:y,size:"small",edge:"end",onMouseDown:ue=>{ue.button===0&&(ue.preventDefault(),te())},children:ie})]})}else{let Q=T?Z.openCompoundStyling:Z.compoundStyling;F=f.jsx(pt,{ref:X,tabIndex:-1,disabled:y,size:"small",icon:I,className:he({"Mui-selected":T||s,"Mui-hovered":W,"Mui-disabled":y,"Mui-focusVisible":A||T,bordered:!0,left:!0,right:!0}),sx:{...Z.quickButtonStyling,...Q},onMouseDown:ne=>{ne.button===0&&(ne.preventDefault(),te())},children:qt(!1,n,T)})}const{className:N,sx:H,...q}=u;let G=f.jsx(_.Box,{onFocus:()=>$(!0),onBlur:()=>$(!1),onMouseOver:()=>U(!0),onMouseOut:()=>U(!1),...E,"aria-label":"split button",ref:ee,tabIndex:y?void 0:0,className:he(N,"split-button-root",{"Mui-focusVisible":A||T,"Mui-selected":T||s,"Mui-hovered":W,"Mui-disabled":y}),sx:{display:"flex",flex:"1 1 100%",alignItems:"stretch",width:"fit-content","&:not(.Mui-disabled)":{cursor:"pointer"},marginLeft:t?"1px":"0px",marginRight:t?"1px":"0px",borderRadius:Q=>`${Q.shape.borderRadius}px`,"&.Mui-focusVisible":{outline:Q=>`solid ${Q.palette.primary.main} 1px`,zIndex:2},...H},...q,children:F});return p||(G=(x??re)({title:T?"":w,children:G},T)),f.jsxs(_.Box,{className:he(R,"popupIconButton"),ref:o,...C,sx:{zIndex:A||T?2:void 0,display:"flex",alignItems:"center",...O},children:[G,J.component]})}));Pt.displayName="ExhibitPopupIconButton";const Kr={},cn=d.memo(d.forwardRef((e,o)=>{const{selected:n=!1,label:t,onQuickClick:a,parentFloat:s,createPopupPanel:i,popupProps:c=Kr,onPopupOpen:r,onPopupClose:l,quickButtonProps:m,createQuickButton:k,tooltip:g="",createTooltip:v,icon:w,disabled:x,touchRippleRef:h,primary:y,children:u,sx:S,...M}=e,[j,z]=d.useState(!1),[O,R]=d.useState(!1),[C,D]=d.useState(!1),[P,T]=d.useState(!1),L=d.useRef(null),A=d.useRef(null),$=d.useMemo(()=>{if(!c)return;const{popperProps:p}=c;return{placement:"right-start",offsets:[-4,-2],...p}},[c]),W=dt({anchor:L.current,label:t,createPopupPanel:i,parentFloat:s,popperProps:$,onClose:()=>{z(!1),l?.()},onOpen:()=>{z(!0),r?.()}}),U=B.useCallbackRef(p=>{p.button===0&&(a?.(p),W.reference.close(0))},[a]),ee=f.jsx(Bo,{}),X={"&.Mui-selected":{color:p=>p.palette.text.primary,"& svg * ":{color:p=>p.palette.text.primary}}},J=d.useCallback(p=>{const{children:b,ref:E,...F}=p;return f.jsx(He,{ref:E,...F,disableInteractive:!0,children:b})},[]),oe=a||k,te=p=>{const{tooltip:b,createTooltip:E,...F}=p;return f.jsx(Xe,{icon:w,className:he({"Mui-hovered":C}),sx:{flex:"1 1 100%",...X},...F,children:t})},Z={onFocus:()=>{R(!0)},onBlur:()=>R(!1),onMouseOver:()=>{D(!0)},onMouseLeave:()=>{D(!1)},onMouseEnter:()=>{W.reference.open()},onMouseDown:p=>{p.button===0&&p.preventDefault()}};let re=f.jsx(f.Fragment,{});if(oe){const p=(k||te)({tabIndex:-1,disabled:x,onMouseEnter:()=>{W.reference.parent.closeChild()},onMouseDown:b=>{b.button===0&&(b.preventDefault(),U(b))},className:he("quick-left",{},m?.className),...m});re=f.jsxs(f.Fragment,{children:[p,f.jsx(_.Divider,{sx:{ml:"0px",mr:"0px"},orientation:"vertical",variant:"middle",flexItem:!0}),f.jsx(_.MenuItem,{ref:A,className:he({"Mui-selected":j,"Mui-hovered":C}),sx:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",paddingLeft:"0px",paddingRight:"0px",marginLeft:"0px",color:b=>y?void 0:b.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:b=>b.palette.text.primary},...X},tabIndex:-1,disabled:x,...Z,children:f.jsx(_.Box,{className:"expand-icon",sx:{flex:"none",display:"flex",border:"1px solid transparent",paddingTop:"1px",paddingBottom:"1px",color:b=>y?void 0:b.palette.text.icon??b.palette.action.active},onMouseOver:b=>{b.preventDefault(),T(!0)},onMouseLeave:()=>{T(!1)},onClick:b=>{b.preventDefault(),j?W.reference.close():W.reference.open()},children:ee})})]})}else re=f.jsxs(Xe,{ref:A,tabIndex:-1,disabled:x,icon:w,className:he({"Mui-selected":j||n,"Mui-hovered":C}),sx:{flex:"1 1 100%",paddingRight:"0px",...X},onClick:p=>{p.preventDefault(),j?W.reference.close():W.reference.open()},...Z,children:[f.jsx("div",{style:{flex:"1 1 100%"},children:t}),f.jsx(_.Box,{className:"expand-icon",sx:{flex:"none",display:"flex",color:p=>y?void 0:p.palette.text.icon??p.palette.action.active},children:ee})]});let ce=f.jsx(_.Box,{"aria-label":"split button",ref:L,tabIndex:x?void 0:0,className:he({"Mui-disabled":x,"Mui-selected":j,"Mui-focusVisible":O||j,"Mui-hovered":C}),sx:{display:"flex",flex:"1 1 100%",alignItems:"center",width:"fit-content","& .quick-left":{borderTopRightRadius:"0px",borderBottomRightRadius:"0px",marginRight:"-1px"},"&.Mui-disabled > .icon path":{filter:"grayscale(65%)"},...S},...M,children:re});return oe&&!P&&(m?.tooltip||m?.createTooltip)&&(ce=(m?.createTooltip??J)({title:j?"":ce??m?.tooltip,children:ce},j)),f.jsxs(_.Box,{ref:o,sx:{zIndex:O||j?2:void 0,display:"flex"," .tooltip-wrapper":{display:"flex",flex:"1 1 100%"}},children:[ce,W.component]})})),Yr=d.memo(d.forwardRef((e,o)=>{const{onSelectToggle:n,selected:t=!1,label:a,shortcut:s,tabIndex:i=0,preventFocus:c=!1,...r}=e;return f.jsx(Ue,{label:a,shortcut:s,children:f.jsx(pt,{ref:o,outlined:!1,tabIndex:i,selected:t,onMouseDown:l=>{c&&l.preventDefault()},onClick:()=>{n?.(!t)},...r})})})),qr=f.jsx(B.DynamicIcon,{}),Gr=f.jsx(B.DynamicIcon,{iconKey:"Check"}),Vo=d.memo(d.forwardRef((e,o)=>{const{children:n,selected:t=!0,outlined:a=!0,sx:s,...i}=e,c={display:"flex",border:l=>t?`solid ${a?l.palette.divider:"transparent"} 1px`:"solid transparent 1px",borderRadius:l=>`${l.shape.borderRadius}px`,backgroundColor:l=>{if(t)return se.alpha(l.palette.text.icon??l.palette.action.active,l.palette.action.selectedOpacity)}};let r=n;return r===null&&(r=qr),r||(r=Gr),f.jsx(_.Box,{ref:o,sx:{...c,...s},...i,children:r})}));function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},ge.apply(null,arguments)}function $o(e,o){if(e==null)return{};var n={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(o.indexOf(t)!==-1)continue;n[t]=e[t]}return n}var we,Xr={state:{},updateModal:function(){},hideModal:function(){},destroyModal:function(){},destroyModalsByRootId:function(){},showModal:function(){return{id:"id",hide:function(){},destroy:function(){},update:function(){}}}},zo=d.createContext(void 0);(function(e){e.SHOW="SHOW",e.HIDE="HIDE",e.UPDATE="UPDATE",e.DESTROY="DESTROY",e.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",e.UNKNOWN="UNKNOWN"})(we||(we={}));var Qr={};function Jr(e,o){switch(o.type){case we.SHOW:var n,t=o.payload,a=t.id,s=t.component,i=t.props,c=t.options;return ge({},e,((n={})[a]={component:s,props:ge({},i,{open:!0}),options:c},n));case we.HIDE:var r,l=o.payload.id;return e[l]?ge({},e,((r={})[l]=ge({},e[l],{props:ge({},e[l].props,{open:!1})}),r)):e;case we.UPDATE:var m,k=o.payload,g=k.id,v=k.props;return e[g]?ge({},e,((m={})[g]=ge({},e[g],{props:ge({},e[g].props,v)}),m)):e;case we.DESTROY:var w=o.payload.id,x=ge({},e);return delete x[w],x;case we.DESTROY_BY_ROOT_ID:var h=o.payload.rootId;return Object.keys(e).filter(function(y){return y.split(".")[0]!==h}).reduce(function(y,u){var S;return ge({},y,((S={})[u]=e[u],S))},{});default:throw new Error("Unexpected action")}}var Lt="[ERROR]: Modal ID is missing",Wo=function(e){e===void 0&&(e=8);for(var o=[],n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<e;t++)o[t]=n.charAt(Math.floor(62*Math.random()));return o.join("")},Zr=["open"],Ho={enforceProvider:!1};function Uo(){return Ho}var ei=["showModal","destroyModalsByRootId"],jn={disableAutoDestroy:!1};function mt(e){e===void 0&&(e=jn);var o=ge({},jn,e).disableAutoDestroy,n=(function(){var c=d.useContext(zo);if(Uo().enforceProvider&&c===void 0)throw new Error("useModalContext must be used within a ModalProvider");return c||Xr})(),t=n.showModal,a=n.destroyModalsByRootId,s=$o(n,ei),i=d.useRef(Wo(6));return d.useEffect(function(){return function(){!o&&a&&a(i.current)}},[o,a]),ge({showModal:d.useCallback(function(c,r,l){return t(c,r,ge({rootId:i.current,hideOnClose:!0},l))},[t]),destroyModalsByRootId:a},s)}var Pn,Rn,Fn,Nn,Bn,In={exports:{}};function ti(){return Rn?Pn:(Rn=1,Pn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function ni(){if(Nn)return Fn;Nn=1;var e=ti();function o(){}function n(){}return n.resetWarningCache=o,Fn=function(){function t(i,c,r,l,m,k){if(k!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}function a(){return t}t.isRequired=t;var s={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:a,element:t,elementType:t,instanceOf:a,node:t,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:o};return s.PropTypes=s,s}}function un(){return Bn||(Bn=1,In.exports=ni()()),In.exports}var Ko=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],St=Ko.join(","),Yo=typeof Element>"u",We=Yo?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,xt=!Yo&&Element.prototype.getRootNode?function(e){var o;return e==null||(o=e.getRootNode)===null||o===void 0?void 0:o.call(e)}:function(e){return e?.ownerDocument},Ct=function e(o,n){var t;n===void 0&&(n=!0);var a=o==null||(t=o.getAttribute)===null||t===void 0?void 0:t.call(o,"inert");return a===""||a==="true"||n&&o&&e(o.parentNode)},qo=function(e,o,n){if(Ct(e))return[];var t=Array.prototype.slice.apply(e.querySelectorAll(St));return o&&We.call(e,St)&&t.unshift(e),t=t.filter(n)},Go=function e(o,n,t){for(var a=[],s=Array.from(o);s.length;){var i=s.shift();if(!Ct(i,!1))if(i.tagName==="SLOT"){var c=i.assignedElements(),r=e(c.length?c:i.children,!0,t);t.flatten?a.push.apply(a,r):a.push({scopeParent:i,candidates:r})}else{We.call(i,St)&&t.filter(i)&&(n||!o.includes(i))&&a.push(i);var l=i.shadowRoot||typeof t.getShadowRoot=="function"&&t.getShadowRoot(i),m=!Ct(l,!1)&&(!t.shadowRootFilter||t.shadowRootFilter(i));if(l&&m){var k=e(l===!0?i.children:l.children,!0,t);t.flatten?a.push.apply(a,k):a.push({scopeParent:i,candidates:k})}else s.unshift.apply(s,i.children)}}return a},Xo=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Be=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||(function(o){var n,t=o==null||(n=o.getAttribute)===null||n===void 0?void 0:n.call(o,"contenteditable");return t===""||t==="true"})(e))&&!Xo(e)?0:e.tabIndex},oi=function(e,o){return e.tabIndex===o.tabIndex?e.documentOrder-o.documentOrder:e.tabIndex-o.tabIndex},Qo=function(e){return e.tagName==="INPUT"},ri=function(e){return(function(o){return Qo(o)&&o.type==="radio"})(e)&&!(function(o){if(!o.name)return!0;var n,t=o.form||xt(o),a=function(i){return t.querySelectorAll('input[type="radio"][name="'+i+'"]')};if(typeof window<"u"&&window.CSS!==void 0&&typeof window.CSS.escape=="function")n=a(window.CSS.escape(o.name));else try{n=a(o.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=(function(i,c){for(var r=0;r<i.length;r++)if(i[r].checked&&i[r].form===c)return i[r]})(n,o.form);return!s||s===o})(e)},_n=function(e){var o=e.getBoundingClientRect(),n=o.width,t=o.height;return n===0&&t===0},ii=function(e,o){var n=o.displayCheck,t=o.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=We.call(e,"details>summary:first-of-type")?e.parentElement:e;if(We.call(a,"details:not([open]) *"))return!0;if(n&&n!=="full"&&n!=="legacy-full"){if(n==="non-zero-area")return _n(e)}else{if(typeof t=="function"){for(var s=e;e;){var i=e.parentElement,c=xt(e);if(i&&!i.shadowRoot&&t(i)===!0)return _n(e);e=e.assignedSlot?e.assignedSlot:i||c===e.ownerDocument?i:c.host}e=s}if((function(r){var l,m,k,g,v=r&&xt(r),w=(l=v)===null||l===void 0?void 0:l.host,x=!1;if(v&&v!==r)for(x=!!((m=w)!==null&&m!==void 0&&(k=m.ownerDocument)!==null&&k!==void 0&&k.contains(w)||r!=null&&(g=r.ownerDocument)!==null&&g!==void 0&&g.contains(r));!x&&w;){var h,y,u;x=!((y=w=(h=v=xt(w))===null||h===void 0?void 0:h.host)===null||y===void 0||(u=y.ownerDocument)===null||u===void 0||!u.contains(w))}return x})(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}return!1},Dt=function(e,o){return!(o.disabled||Ct(o)||(function(n){return Qo(n)&&n.type==="hidden"})(o)||ii(o,e)||(function(n){return n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(t){return t.tagName==="SUMMARY"})})(o)||(function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a<t.children.length;a++){var s=t.children.item(a);if(s.tagName==="LEGEND")return!!We.call(t,"fieldset[disabled] *")||!s.contains(n)}return!0}t=t.parentElement}return!1})(o))},Gt=function(e,o){return!(ri(o)||Be(o)<0||!Dt(e,o))},ai=function(e){var o=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(o)||o>=0)},si=function e(o){var n=[],t=[];return o.forEach(function(a,s){var i=!!a.scopeParent,c=i?a.scopeParent:a,r=(function(m,k){var g=Be(m);return g<0&&k&&!Xo(m)?0:g})(c,i),l=i?e(a.candidates):c;r===0?i?n.push.apply(n,l):n.push(c):t.push({documentOrder:s,tabIndex:r,item:a,isScope:i,content:l})}),t.sort(oi).reduce(function(a,s){return s.isScope?a.push.apply(a,s.content):a.push(s.content),a},[]).concat(n)},Jo=function(e,o){var n;return n=(o=o||{}).getShadowRoot?Go([e],o.includeContainer,{filter:Gt.bind(null,o),flatten:!1,getShadowRoot:o.getShadowRoot,shadowRootFilter:ai}):qo(e,o.includeContainer,Gt.bind(null,o)),si(n)},Zo=function(e,o){return(o=o||{}).getShadowRoot?Go([e],o.includeContainer,{filter:Dt.bind(null,o),flatten:!0,getShadowRoot:o.getShadowRoot}):qo(e,o.includeContainer,Dt.bind(null,o))},Le=function(e,o){if(o=o||{},!e)throw new Error("No node provided");return We.call(e,St)!==!1&&Gt(o,e)},li=Ko.concat("iframe").join(","),vt=function(e,o){if(o=o||{},!e)throw new Error("No node provided");return We.call(e,li)!==!1&&Dt(o,e)};const ci=Object.freeze(Object.defineProperty({__proto__:null,focusable:Zo,getTabIndex:Be,isFocusable:vt,isTabbable:Le,tabbable:Jo},Symbol.toStringTag,{value:"Module"}));function Vt(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,t=Array(o);n<o;n++)t[n]=e[n];return t}function ui(e,o,n){return(o=(function(t){var a=(function(s,i){if(typeof s!="object"||!s)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var r=c.call(s,i);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(s)})(t,"string");return typeof a=="symbol"?a:a+""})(o))in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function An(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);o&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,t)}return n}function Ln(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?An(Object(n),!0).forEach(function(t){ui(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function di(e){return(function(o){if(Array.isArray(o))return Vt(o)})(e)||(function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)})(e)||(function(o,n){if(o){if(typeof o=="string")return Vt(o,n);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Vt(o,n):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}var pi=function(e,o){if(e.length>0){var n=e[e.length-1];n!==o&&n._setPausedState(!0)}var t=e.indexOf(o);t===-1||e.splice(t,1),e.push(o)},fi=function(e,o){var n=e.indexOf(o);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},st=function(e){return e?.key==="Tab"||e?.keyCode===9},mi=function(e){return st(e)&&!e.shiftKey},hi=function(e){return st(e)&&e.shiftKey},Vn=function(e){return setTimeout(e,0)},et=function(e){for(var o=arguments.length,n=new Array(o>1?o-1:0),t=1;t<o;t++)n[t-1]=arguments[t];return typeof e=="function"?e.apply(void 0,n):e},ht=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},yi=[];const gi=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:function(e,o){var n,t=o?.document||document,a=o?.trapStack||yi,s=Ln({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:mi,isKeyBackward:hi},o),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c=function(C,D,P){return C&&C[D]!==void 0?C[D]:s[P||D]},r=function(C,D){var P=typeof D?.composedPath=="function"?D.composedPath():void 0;return i.containerGroups.findIndex(function(T){var L=T.container,A=T.tabbableNodes;return L.contains(C)||P?.includes(L)||A.find(function($){return $===C})})},l=function(C){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=D.hasFallback,T=P!==void 0&&P,L=D.params,A=L===void 0?[]:L,$=s[C];if(typeof $=="function"&&($=$.apply(void 0,di(A))),$===!0&&($=void 0),!$){if($===void 0||$===!1)return $;throw new Error("`".concat(C,"` was specified but was not a node, or did not return a node"))}var W=$;if(typeof $=="string"){try{W=t.querySelector($)}catch(U){throw new Error("`".concat(C,'` appears to be an invalid selector; error="').concat(U.message,'"'))}if(!W&&!T)throw new Error("`".concat(C,"` as selector refers to no known node"))}return W},m=function(){var C=l("initialFocus",{hasFallback:!0});if(C===!1)return!1;if(C===void 0||C&&!vt(C,s.tabbableOptions))if(r(t.activeElement)>=0)C=t.activeElement;else{var D=i.tabbableGroups[0];C=D&&D.firstTabbableNode||l("fallbackFocus")}else C===null&&(C=l("fallbackFocus"));if(!C)throw new Error("Your focus-trap needs to have at least one focusable element");return C},k=function(){if(i.containerGroups=i.containers.map(function(C){var D=Jo(C,s.tabbableOptions),P=Zo(C,s.tabbableOptions),T=D.length>0?D[0]:void 0,L=D.length>0?D[D.length-1]:void 0,A=P.find(function(U){return Le(U)}),$=P.slice().reverse().find(function(U){return Le(U)}),W=!!D.find(function(U){return Be(U)>0});return{container:C,tabbableNodes:D,focusableNodes:P,posTabIndexesFound:W,firstTabbableNode:T,lastTabbableNode:L,firstDomTabbableNode:A,lastDomTabbableNode:$,nextTabbableNode:function(U){var ee=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],X=D.indexOf(U);return X<0?ee?P.slice(P.indexOf(U)+1).find(function(J){return Le(J)}):P.slice(0,P.indexOf(U)).reverse().find(function(J){return Le(J)}):D[X+(ee?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(C){return C.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(C){return C.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},g=function(C){var D=C.activeElement;if(D)return D.shadowRoot&&D.shadowRoot.activeElement!==null?g(D.shadowRoot):D},v=function(C){C!==!1&&C!==g(document)&&(C&&C.focus?(C.focus({preventScroll:!!s.preventScroll}),i.mostRecentlyFocusedNode=C,(function(D){return D.tagName&&D.tagName.toLowerCase()==="input"&&typeof D.select=="function"})(C)&&C.select()):v(m()))},w=function(C){var D=l("setReturnFocus",{params:[C]});return D||D!==!1&&C},x=function(C){var D=C.target,P=C.event,T=C.isBackward,L=T!==void 0&&T;D=D||ht(P),k();var A=null;if(i.tabbableGroups.length>0){var $=r(D,P),W=$>=0?i.containerGroups[$]:void 0;if($<0)A=L?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(L){var U=i.tabbableGroups.findIndex(function(Z){var re=Z.firstTabbableNode;return D===re});if(U<0&&(W.container===D||vt(D,s.tabbableOptions)&&!Le(D,s.tabbableOptions)&&!W.nextTabbableNode(D,!1))&&(U=$),U>=0){var ee=U===0?i.tabbableGroups.length-1:U-1,X=i.tabbableGroups[ee];A=Be(D)>=0?X.lastTabbableNode:X.lastDomTabbableNode}else st(P)||(A=W.nextTabbableNode(D,!1))}else{var J=i.tabbableGroups.findIndex(function(Z){var re=Z.lastTabbableNode;return D===re});if(J<0&&(W.container===D||vt(D,s.tabbableOptions)&&!Le(D,s.tabbableOptions)&&!W.nextTabbableNode(D))&&(J=$),J>=0){var oe=J===i.tabbableGroups.length-1?0:J+1,te=i.tabbableGroups[oe];A=Be(D)>=0?te.firstTabbableNode:te.firstDomTabbableNode}else st(P)||(A=W.nextTabbableNode(D))}}else A=l("fallbackFocus");return A},h=function(C){var D=ht(C);r(D,C)>=0||(et(s.clickOutsideDeactivates,C)?n.deactivate({returnFocus:s.returnFocusOnDeactivate}):et(s.allowOutsideClick,C)||C.preventDefault())},y=function(C){var D=ht(C),P=r(D,C)>=0;if(P||D instanceof Document)P&&(i.mostRecentlyFocusedNode=D);else{var T;C.stopImmediatePropagation();var L=!0;if(i.mostRecentlyFocusedNode)if(Be(i.mostRecentlyFocusedNode)>0){var A=r(i.mostRecentlyFocusedNode),$=i.containerGroups[A].tabbableNodes;if($.length>0){var W=$.findIndex(function(U){return U===i.mostRecentlyFocusedNode});W>=0&&(s.isKeyForward(i.recentNavEvent)?W+1<$.length&&(T=$[W+1],L=!1):W-1>=0&&(T=$[W-1],L=!1))}}else i.containerGroups.some(function(U){return U.tabbableNodes.some(function(ee){return Be(ee)>0})})||(L=!1);else L=!1;L&&(T=x({target:i.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(i.recentNavEvent)})),v(T||i.mostRecentlyFocusedNode||m())}i.recentNavEvent=void 0},u=function(C){(s.isKeyForward(C)||s.isKeyBackward(C))&&(function(D){var P=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.recentNavEvent=D;var T=x({event:D,isBackward:P});T&&(st(D)&&D.preventDefault(),v(T))})(C,s.isKeyBackward(C))},S=function(C){var D;((D=C)==null?void 0:D.key)!=="Escape"&&D?.key!=="Esc"&&D?.keyCode!==27||et(s.escapeDeactivates,C)===!1||(C.preventDefault(),n.deactivate())},M=function(C){var D=ht(C);r(D,C)>=0||et(s.clickOutsideDeactivates,C)||et(s.allowOutsideClick,C)||(C.preventDefault(),C.stopImmediatePropagation())},j=function(){if(i.active)return pi(a,n),i.delayInitialFocusTimer=s.delayInitialFocus?Vn(function(){v(m())}):v(m()),t.addEventListener("focusin",y,!0),t.addEventListener("mousedown",h,{capture:!0,passive:!1}),t.addEventListener("touchstart",h,{capture:!0,passive:!1}),t.addEventListener("click",M,{capture:!0,passive:!1}),t.addEventListener("keydown",u,{capture:!0,passive:!1}),t.addEventListener("keydown",S),n},z=function(){if(i.active)return t.removeEventListener("focusin",y,!0),t.removeEventListener("mousedown",h,!0),t.removeEventListener("touchstart",h,!0),t.removeEventListener("click",M,!0),t.removeEventListener("keydown",u,!0),t.removeEventListener("keydown",S),n},O=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(function(C){C.some(function(D){return Array.from(D.removedNodes).some(function(P){return P===i.mostRecentlyFocusedNode})})&&v(m())}):void 0,R=function(){O&&(O.disconnect(),i.active&&!i.paused&&i.containers.map(function(C){O.observe(C,{subtree:!0,childList:!0})}))};return n={get active(){return i.active},get paused(){return i.paused},activate:function(C){if(i.active)return this;var D=c(C,"onActivate"),P=c(C,"onPostActivate"),T=c(C,"checkCanFocusTrap");T||k(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=g(t),D?.();var L=function(){T&&k(),j(),R(),P?.()};return T?(T(i.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(C){if(!i.active)return this;var D=Ln({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},C);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,z(),i.active=!1,i.paused=!1,R(),fi(a,n);var P=c(D,"onDeactivate"),T=c(D,"onPostDeactivate"),L=c(D,"checkCanReturnFocus"),A=c(D,"returnFocus","returnFocusOnDeactivate");P?.();var $=function(){Vn(function(){A&&v(w(i.nodeFocusedBeforeActivation)),T?.()})};return A&&L?(L(w(i.nodeFocusedBeforeActivation)).then($,$),this):($(),this)},pause:function(C){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,C)):this},unpause:function(C){return i.active?(i.manuallyPaused=!1,a[a.length-1]!==this?this:this._setPausedState(!1,C)):this},updateContainerElements:function(C){var D=[].concat(C).filter(Boolean);return i.containers=D.map(function(P){return typeof P=="string"?t.querySelector(P):P}),i.active&&k(),R(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(C,D){if(i.paused===C)return this;if(i.paused=C,C){var P=c(D,"onPause"),T=c(D,"onPostPause");P?.(),z(),R(),T?.()}else{var L=c(D,"onUnpause"),A=c(D,"onPostUnpause");L?.(),k(),j(),R(),A?.()}return this}}}),n.updateContainerElements(e),n}},Symbol.toStringTag,{value:"Module"})),bi=ko(gi),xi=ko(ci);var $n,zn,vi=(function(){if(zn)return $n;function e(v){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},e(v)}function o(v,w,x){return w&&(function(h,y){for(var u=0;u<y.length;u++){var S=y[u];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(h,i(S.key),S)}})(v.prototype,w),Object.defineProperty(v,"prototype",{writable:!1}),v}function n(v,w,x){return w=a(w),(function(h,y){if(y&&(e(y)=="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u})(h)})(v,t()?Reflect.construct(w,x||[],a(v).constructor):w.apply(v,x))}function t(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t=function(){return!!v})()}function a(v){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},a(v)}function s(v,w){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,h){return x.__proto__=h,x},s(v,w)}function i(v){var w=(function(x,h){if(e(x)!="object"||!x)return x;var y=x[Symbol.toPrimitive];if(y!==void 0){var u=y.call(x,h);if(e(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(x)})(v,"string");return e(w)=="symbol"?w:w+""}zn=1;var c=d,r=un(),l=bi.createFocusTrap,m=xi.isFocusable,k=(function(v){function w(x){var h;(function(S,M){if(!(S instanceof M))throw new TypeError("Cannot call a class as a function")})(this,w),(function(S,M,j){(M=i(M))in S?Object.defineProperty(S,M,{value:j,enumerable:!0,configurable:!0,writable:!0}):S[M]=j})(h=n(this,w,[x]),"getNodeForOption",function(S){var M,j=(M=this.internalOptions[S])!==null&&M!==void 0?M:this.originalOptions[S];if(typeof j=="function"){for(var z=arguments.length,O=new Array(z>1?z-1:0),R=1;R<z;R++)O[R-1]=arguments[R];j=j.apply(void 0,O)}if(j===!0&&(j=void 0),!j){if(j===void 0||j===!1)return j;throw new Error("`".concat(S,"` was specified but was not a node, or did not return a node"))}var C,D=j;if(typeof j=="string"&&!(D=(C=this.getDocument())===null||C===void 0?void 0:C.querySelector(j)))throw new Error("`".concat(S,"` as selector refers to no known node"));return D}),h.handleDeactivate=h.handleDeactivate.bind(h),h.handlePostDeactivate=h.handlePostDeactivate.bind(h),h.handleClickOutsideDeactivates=h.handleClickOutsideDeactivates.bind(h),h.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:h.handleDeactivate,onPostDeactivate:h.handlePostDeactivate,clickOutsideDeactivates:h.handleClickOutsideDeactivates},h.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var y=x.focusTrapOptions;for(var u in y)Object.prototype.hasOwnProperty.call(y,u)&&(u!=="returnFocusOnDeactivate"&&u!=="onDeactivate"&&u!=="onPostDeactivate"&&u!=="checkCanReturnFocus"&&u!=="clickOutsideDeactivates"?h.internalOptions[u]=y[u]:h.originalOptions[u]=y[u]);return h.outsideClick=null,h.focusTrapElements=x.containerElements||[],h.updatePreviousElement(),h}return(function(x,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(h&&h.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),Object.defineProperty(x,"prototype",{writable:!1}),h&&s(x,h)})(w,v),o(w,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var x=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return x||x!==!1&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var x=this.getDocument();x&&(this.previouslyFocusedElement=x.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(x){var h=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,x):this.originalOptions.clickOutsideDeactivates;return h&&(this.outsideClick={target:x.target,allowDeactivation:h}),h}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var x=this,h=function(){var y=x.getReturnFocusNode(),u=!(!x.originalOptions.returnFocusOnDeactivate||y==null||!y.focus||x.outsideClick&&(!x.outsideClick.allowDeactivation||m(x.outsideClick.target,x.internalOptions.tabbableOptions))),S=x.internalOptions.preventScroll,M=S!==void 0&&S;u&&y.focus({preventScroll:M}),x.originalOptions.onPostDeactivate&&x.originalOptions.onPostDeactivate.call(null),x.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(h,h):h()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(x){if(this.focusTrap){x.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var h=!x.active&&this.props.active,y=x.active&&!this.props.active,u=!x.paused&&this.props.paused,S=x.paused&&!this.props.paused;if(h&&(this.updatePreviousElement(),this.focusTrap.activate()),y)return void this.deactivateTrap();u&&this.focusTrap.pause(),S&&this.focusTrap.unpause()}else x.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var x=this,h=this.props.children?c.Children.only(this.props.children):void 0;if(h){if(h.type&&h.type===c.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return c.cloneElement(h,{ref:function(y){var u=x.props.containerElements;h&&(typeof h.ref=="function"?h.ref(y):h.ref&&(h.ref.current=y)),x.focusTrapElements=u||[y]}})}return null}}])})(c.Component),g=typeof Element>"u"?Function:Element;return k.propTypes={active:r.bool,paused:r.bool,focusTrapOptions:r.shape({document:r.object,onActivate:r.func,onPostActivate:r.func,checkCanFocusTrap:r.func,onPause:r.func,onPostPause:r.func,onUnpause:r.func,onPostUnpause:r.func,onDeactivate:r.func,onPostDeactivate:r.func,checkCanReturnFocus:r.func,initialFocus:r.oneOfType([r.instanceOf(g),r.string,r.bool,r.func]),fallbackFocus:r.oneOfType([r.instanceOf(g),r.string,r.func]),escapeDeactivates:r.oneOfType([r.bool,r.func]),clickOutsideDeactivates:r.oneOfType([r.bool,r.func]),returnFocusOnDeactivate:r.bool,setReturnFocus:r.oneOfType([r.instanceOf(g),r.string,r.bool,r.func]),allowOutsideClick:r.oneOfType([r.bool,r.func]),preventScroll:r.bool,tabbableOptions:r.shape({displayCheck:r.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:r.oneOfType([r.bool,r.func])}),trapStack:r.array,isKeyForward:r.func,isKeyBackward:r.func}),containerElements:r.arrayOf(r.instanceOf(g)),children:r.oneOfType([r.element,r.instanceOf(g)])},k.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:l},$n=k})();const wi=wo(vi);var Wn,tt={exports:{}},Hn={},yt={exports:{}},Un,de={},Pe={};function Rt(){return Un||(Un=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.dontSetMe=function(e,o,n){if(e[o])return new Error(`Invalid prop ${o} passed to ${n} - do not set this, set it on the child.`)},Pe.findInArray=function(e,o){for(let n=0,t=e.length;n<t;n++)if(o.apply(o,[e[n],n,e]))return e[n]},Pe.int=function(e){return parseInt(e,10)},Pe.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},Pe.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),Pe}var Kn,Yn,Re={};function dn(){if(Yn)return de;Yn=1,Object.defineProperty(de,"__esModule",{value:!0}),de.addClassName=i,de.addEvent=function(r,l,m,k){if(!r)return;const g={capture:!0,...k};r.addEventListener?r.addEventListener(l,m,g):r.attachEvent?r.attachEvent("on"+l,m):r["on"+l]=m},de.addUserSelectStyles=function(r){if(!r)return;let l=r.getElementById("react-draggable-style-el");l||(l=r.createElement("style"),l.type="text/css",l.id="react-draggable-style-el",l.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
10
+ `,l.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
11
+ `,r.getElementsByTagName("head")[0].appendChild(l)),r.body&&i(r.body,"react-draggable-transparent-selection")},de.createCSSTransform=function(r,l){const m=a(r,l,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:m}},de.createSVGTransform=function(r,l){return a(r,l,"")},de.getTouch=function(r,l){return r.targetTouches&&(0,e.findInArray)(r.targetTouches,m=>l===m.identifier)||r.changedTouches&&(0,e.findInArray)(r.changedTouches,m=>l===m.identifier)},de.getTouchIdentifier=function(r){if(r.targetTouches&&r.targetTouches[0])return r.targetTouches[0].identifier;if(r.changedTouches&&r.changedTouches[0])return r.changedTouches[0].identifier},de.getTranslation=a,de.innerHeight=function(r){let l=r.clientHeight;const m=r.ownerDocument.defaultView.getComputedStyle(r);return l-=(0,e.int)(m.paddingTop),l-=(0,e.int)(m.paddingBottom),l},de.innerWidth=function(r){let l=r.clientWidth;const m=r.ownerDocument.defaultView.getComputedStyle(r);return l-=(0,e.int)(m.paddingLeft),l-=(0,e.int)(m.paddingRight),l},de.matchesSelector=t,de.matchesSelectorAndParentsTo=function(r,l,m){let k=r;do{if(t(k,l))return!0;if(k===m)return!1;k=k.parentNode}while(k);return!1},de.offsetXYFromParent=function(r,l,m){const k=l===l.ownerDocument.body?{left:0,top:0}:l.getBoundingClientRect(),g=(r.clientX+l.scrollLeft-k.left)/m,v=(r.clientY+l.scrollTop-k.top)/m;return{x:g,y:v}},de.outerHeight=function(r){let l=r.clientHeight;const m=r.ownerDocument.defaultView.getComputedStyle(r);return l+=(0,e.int)(m.borderTopWidth),l+=(0,e.int)(m.borderBottomWidth),l},de.outerWidth=function(r){let l=r.clientWidth;const m=r.ownerDocument.defaultView.getComputedStyle(r);return l+=(0,e.int)(m.borderLeftWidth),l+=(0,e.int)(m.borderRightWidth),l},de.removeClassName=c,de.removeEvent=function(r,l,m,k){if(!r)return;const g={capture:!0,...k};r.removeEventListener?r.removeEventListener(l,m,g):r.detachEvent?r.detachEvent("on"+l,m):r["on"+l]=null},de.scheduleRemoveUserSelectStyles=function(r){window.requestAnimationFrame?window.requestAnimationFrame(()=>{s(r)}):s(r)};var e=Rt(),o=(function(r,l){if(typeof WeakMap=="function")var m=new WeakMap,k=new WeakMap;return(function(g,v){if(!v&&g&&g.__esModule)return g;var w,x,h={__proto__:null,default:g};if(g===null||typeof g!="object"&&typeof g!="function")return h;if(w=v?k:m){if(w.has(g))return w.get(g);w.set(g,h)}for(const y in g)y!=="default"&&{}.hasOwnProperty.call(g,y)&&((x=(w=Object.defineProperty)&&Object.getOwnPropertyDescriptor(g,y))&&(x.get||x.set)?w(h,y,x):h[y]=g[y]);return h})(r,l)})((function(){if(Kn)return Re;Kn=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.browserPrefixToKey=m,Re.browserPrefixToStyle=function(k,g){return g?`-${g.toLowerCase()}-${k}`:k},Re.default=void 0,Re.getPrefix=l;const r=["Moz","Webkit","O","ms"];function l(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const g=window.document?.documentElement?.style;if(!g||k in g)return"";for(let v=0;v<r.length;v++)if(m(k,r[v])in g)return r[v];return""}function m(k,g){return g?`${g}${(function(v){let w="",x=!0;for(let h=0;h<v.length;h++)x?(w+=v[h].toUpperCase(),x=!1):v[h]==="-"?x=!0:w+=v[h];return w})(k)}`:k}return Re.default=l(),Re})());let n="";function t(r,l){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(m){return(0,e.isFunction)(r[m])})),!!(0,e.isFunction)(r[n])&&r[n](l)}function a(r,l,m){let{x:k,y:g}=r,v=`translate(${k}${m},${g}${m})`;return l&&(v=`translate(${`${typeof l.x=="string"?l.x:l.x+m}`}, ${`${typeof l.y=="string"?l.y:l.y+m}`})`+v),v}function s(r){if(r)try{if(r.body&&c(r.body,"react-draggable-transparent-selection"),r.selection)r.selection.empty();else{const l=(r.defaultView||window).getSelection();l&&l.type!=="Caret"&&l.removeAllRanges()}}catch{}}function i(r,l){r.classList?r.classList.add(l):r.className.match(new RegExp(`(?:^|\\s)${l}(?!\\S)`))||(r.className+=` ${l}`)}function c(r,l){r.classList?r.classList.remove(l):r.className=r.className.replace(new RegExp(`(?:^|\\s)${l}(?!\\S)`,"g"),"")}return de}var qn,Oe={};function er(){if(qn)return Oe;qn=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.canDragX=function(t){return t.props.axis==="both"||t.props.axis==="x"},Oe.canDragY=function(t){return t.props.axis==="both"||t.props.axis==="y"},Oe.createCoreData=function(t,a,s){const i=!(0,e.isNum)(t.lastX),c=n(t);return i?{node:c,deltaX:0,deltaY:0,lastX:a,lastY:s,x:a,y:s}:{node:c,deltaX:a-t.lastX,deltaY:s-t.lastY,lastX:t.lastX,lastY:t.lastY,x:a,y:s}},Oe.createDraggableData=function(t,a){const s=t.props.scale;return{node:a.node,x:t.state.x+a.deltaX/s,y:t.state.y+a.deltaY/s,deltaX:a.deltaX/s,deltaY:a.deltaY/s,lastX:t.state.x,lastY:t.state.y}},Oe.getBoundPosition=function(t,a,s){if(!t.props.bounds)return[a,s];let{bounds:i}=t.props;i=typeof i=="string"?i:(function(r){return{left:r.left,top:r.top,right:r.right,bottom:r.bottom}})(i);const c=n(t);if(typeof i=="string"){const{ownerDocument:r}=c,l=r.defaultView;let m;if(i==="parent"?m=c.parentNode:m=c.getRootNode().querySelector(i),!(m instanceof l.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');const k=m,g=l.getComputedStyle(c),v=l.getComputedStyle(k);i={left:-c.offsetLeft+(0,e.int)(v.paddingLeft)+(0,e.int)(g.marginLeft),top:-c.offsetTop+(0,e.int)(v.paddingTop)+(0,e.int)(g.marginTop),right:(0,o.innerWidth)(k)-(0,o.outerWidth)(c)-c.offsetLeft+(0,e.int)(v.paddingRight)-(0,e.int)(g.marginRight),bottom:(0,o.innerHeight)(k)-(0,o.outerHeight)(c)-c.offsetTop+(0,e.int)(v.paddingBottom)-(0,e.int)(g.marginBottom)}}return(0,e.isNum)(i.right)&&(a=Math.min(a,i.right)),(0,e.isNum)(i.bottom)&&(s=Math.min(s,i.bottom)),(0,e.isNum)(i.left)&&(a=Math.max(a,i.left)),(0,e.isNum)(i.top)&&(s=Math.max(s,i.top)),[a,s]},Oe.getControlPosition=function(t,a,s){const i=typeof a=="number"?(0,o.getTouch)(t,a):null;if(typeof a=="number"&&!i)return null;const c=n(s),r=s.props.offsetParent||c.offsetParent||c.ownerDocument.body;return(0,o.offsetXYFromParent)(i||t,r,s.props.scale)},Oe.snapToGrid=function(t,a,s){const i=Math.round(a/t[0])*t[0],c=Math.round(s/t[1])*t[1];return[i,c]};var e=Rt(),o=dn();function n(t){const a=t.findDOMNode();if(!a)throw new Error("<DraggableCore>: Unmounted during event!");return a}return Oe}var Gn,Xn,Qn,Jn,nt={},gt={};function tr(){return Gn||(Gn=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.default=function(){}),gt}function ki(){if(Xn)return nt;Xn=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=void 0;var e=(function(v,w){if(typeof WeakMap=="function")var x=new WeakMap,h=new WeakMap;return(function(y,u){if(!u&&y&&y.__esModule)return y;var S,M,j={__proto__:null,default:y};if(y===null||typeof y!="object"&&typeof y!="function")return j;if(S=u?h:x){if(S.has(y))return S.get(y);S.set(y,j)}for(const z in y)z!=="default"&&{}.hasOwnProperty.call(y,z)&&((M=(S=Object.defineProperty)&&Object.getOwnPropertyDescriptor(y,z))&&(M.get||M.set)?S(j,z,M):j[z]=y[z]);return j})(v,w)})(d),o=c(un()),n=c(Zt),t=dn(),a=er(),s=Rt(),i=c(tr());function c(v){return v&&v.__esModule?v:{default:v}}function r(v,w,x){return(w=(function(h){var y=(function(u,S){if(typeof u!="object"||!u)return u;var M=u[Symbol.toPrimitive];if(M!==void 0){var j=M.call(u,S);if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(u)})(h,"string");return typeof y=="symbol"?y:y+""})(w))in v?Object.defineProperty(v,w,{value:x,enumerable:!0,configurable:!0,writable:!0}):v[w]=x,v}const l={start:"touchstart",move:"touchmove",stop:"touchend"},m={start:"mousedown",move:"mousemove",stop:"mouseup"};let k=m,g=class extends e.Component{constructor(){super(...arguments),r(this,"dragging",!1),r(this,"lastX",NaN),r(this,"lastY",NaN),r(this,"touchIdentifier",null),r(this,"mounted",!1),r(this,"handleDragStart",v=>{if(this.props.onMouseDown(v),!this.props.allowAnyClick&&typeof v.button=="number"&&v.button!==0)return!1;const w=this.findDOMNode();if(!w||!w.ownerDocument||!w.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:x}=w;if(this.props.disabled||!(v.target instanceof x.defaultView.Node)||this.props.handle&&!(0,t.matchesSelectorAndParentsTo)(v.target,this.props.handle,w)||this.props.cancel&&(0,t.matchesSelectorAndParentsTo)(v.target,this.props.cancel,w))return;v.type!=="touchstart"||this.props.allowMobileScroll||v.preventDefault();const h=(0,t.getTouchIdentifier)(v);this.touchIdentifier=h;const y=(0,a.getControlPosition)(v,h,this);if(y==null)return;const{x:u,y:S}=y,M=(0,a.createCoreData)(this,u,S);(0,i.default)("DraggableCore: handleDragStart: %j",M),(0,i.default)("calling",this.props.onStart),this.props.onStart(v,M)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,t.addUserSelectStyles)(x),this.dragging=!0,this.lastX=u,this.lastY=S,(0,t.addEvent)(x,k.move,this.handleDrag),(0,t.addEvent)(x,k.stop,this.handleDragStop))}),r(this,"handleDrag",v=>{const w=(0,a.getControlPosition)(v,this.touchIdentifier,this);if(w==null)return;let{x,y:h}=w;if(Array.isArray(this.props.grid)){let u=x-this.lastX,S=h-this.lastY;if([u,S]=(0,a.snapToGrid)(this.props.grid,u,S),!u&&!S)return;x=this.lastX+u,h=this.lastY+S}const y=(0,a.createCoreData)(this,x,h);if((0,i.default)("DraggableCore: handleDrag: %j",y),this.props.onDrag(v,y)!==!1&&this.mounted!==!1)this.lastX=x,this.lastY=h;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(S)}}),r(this,"handleDragStop",v=>{if(!this.dragging)return;const w=(0,a.getControlPosition)(v,this.touchIdentifier,this);if(w==null)return;let{x,y:h}=w;if(Array.isArray(this.props.grid)){let S=x-this.lastX||0,M=h-this.lastY||0;[S,M]=(0,a.snapToGrid)(this.props.grid,S,M),x=this.lastX+S,h=this.lastY+M}const y=(0,a.createCoreData)(this,x,h);if(this.props.onStop(v,y)===!1||this.mounted===!1)return!1;const u=this.findDOMNode();u&&this.props.enableUserSelectHack&&(0,t.scheduleRemoveUserSelectStyles)(u.ownerDocument),(0,i.default)("DraggableCore: handleDragStop: %j",y),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,u&&((0,i.default)("DraggableCore: Removing handlers"),(0,t.removeEvent)(u.ownerDocument,k.move,this.handleDrag),(0,t.removeEvent)(u.ownerDocument,k.stop,this.handleDragStop))}),r(this,"onMouseDown",v=>(k=m,this.handleDragStart(v))),r(this,"onMouseUp",v=>(k=m,this.handleDragStop(v))),r(this,"onTouchStart",v=>(k=l,this.handleDragStart(v))),r(this,"onTouchEnd",v=>(k=l,this.handleDragStop(v)))}componentDidMount(){this.mounted=!0;const v=this.findDOMNode();v&&(0,t.addEvent)(v,l.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const v=this.findDOMNode();if(v){const{ownerDocument:w}=v;(0,t.removeEvent)(w,m.move,this.handleDrag),(0,t.removeEvent)(w,l.move,this.handleDrag),(0,t.removeEvent)(w,m.stop,this.handleDragStop),(0,t.removeEvent)(w,l.stop,this.handleDragStop),(0,t.removeEvent)(v,l.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,t.scheduleRemoveUserSelectStyles)(w)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return nt.default=g,r(g,"displayName","DraggableCore"),r(g,"propTypes",{allowAnyClick:o.default.bool,allowMobileScroll:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(v,w){if(v[w]&&v[w].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),r(g,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),nt}function Si(){return Qn||(Qn=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return r.default}}),e.default=void 0;var o=(function(w,x){if(typeof WeakMap=="function")var h=new WeakMap,y=new WeakMap;return(function(u,S){if(!S&&u&&u.__esModule)return u;var M,j,z={__proto__:null,default:u};if(u===null||typeof u!="object"&&typeof u!="function")return z;if(M=S?y:h){if(M.has(u))return M.get(u);M.set(u,z)}for(const O in u)O!=="default"&&{}.hasOwnProperty.call(u,O)&&((j=(M=Object.defineProperty)&&Object.getOwnPropertyDescriptor(u,O))&&(j.get||j.set)?M(z,O,j):z[O]=u[O]);return z})(w,x)})(d),n=m(un()),t=m(Zt),a=(function(){if(Wn)return yt.exports;function w(h){var y,u,S="";if(typeof h=="string"||typeof h=="number")S+=h;else if(typeof h=="object")if(Array.isArray(h)){var M=h.length;for(y=0;y<M;y++)h[y]&&(u=w(h[y]))&&(S&&(S+=" "),S+=u)}else for(u in h)h[u]&&(S&&(S+=" "),S+=u);return S}function x(){for(var h,y,u=0,S="",M=arguments.length;u<M;u++)(h=arguments[u])&&(y=w(h))&&(S&&(S+=" "),S+=y);return S}return Wn=1,yt.exports=x,yt.exports.clsx=x,yt.exports})(),s=dn(),i=er(),c=Rt(),r=m(ki()),l=m(tr());function m(w){return w&&w.__esModule?w:{default:w}}function k(){return k=Object.assign?Object.assign.bind():function(w){for(var x=1;x<arguments.length;x++){var h=arguments[x];for(var y in h)({}).hasOwnProperty.call(h,y)&&(w[y]=h[y])}return w},k.apply(null,arguments)}function g(w,x,h){return(x=(function(y){var u=(function(S,M){if(typeof S!="object"||!S)return S;var j=S[Symbol.toPrimitive];if(j!==void 0){var z=j.call(S,M);if(typeof z!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(M==="string"?String:Number)(S)})(y,"string");return typeof u=="symbol"?u:u+""})(x))in w?Object.defineProperty(w,x,{value:h,enumerable:!0,configurable:!0,writable:!0}):w[x]=h,w}class v extends o.Component{static getDerivedStateFromProps(x,h){let{position:y}=x,{prevPropsPosition:u}=h;return!y||u&&y.x===u.x&&y.y===u.y?null:((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:y,prevPropsPosition:u}),{x:y.x,y:y.y,prevPropsPosition:{...y}})}constructor(x){super(x),g(this,"onDragStart",(h,y)=>{if((0,l.default)("Draggable: onDragStart: %j",y),this.props.onStart(h,(0,i.createDraggableData)(this,y))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),g(this,"onDrag",(h,y)=>{if(!this.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",y);const u=(0,i.createDraggableData)(this,y),S={x:u.x,y:u.y,slackX:0,slackY:0};if(this.props.bounds){const{x:M,y:j}=S;S.x+=this.state.slackX,S.y+=this.state.slackY;const[z,O]=(0,i.getBoundPosition)(this,S.x,S.y);S.x=z,S.y=O,S.slackX=this.state.slackX+(M-S.x),S.slackY=this.state.slackY+(j-S.y),u.x=S.x,u.y=S.y,u.deltaX=S.x-this.state.x,u.deltaY=S.y-this.state.y}if(this.props.onDrag(h,u)===!1)return!1;this.setState(S)}),g(this,"onDragStop",(h,y)=>{if(!this.state.dragging||this.props.onStop(h,(0,i.createDraggableData)(this,y))===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",y);const u={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:S,y:M}=this.props.position;u.x=S,u.y=M}this.setState(u)}),this.state={dragging:!1,dragged:!1,x:x.position?x.position.x:x.defaultPosition.x,y:x.position?x.position.y:x.defaultPosition.y,prevPropsPosition:{...x.position},slackX:0,slackY:0,isElementSVG:!1},!x.position||x.onDrag||x.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??t.default.findDOMNode(this)}render(){const{axis:x,bounds:h,children:y,defaultPosition:u,defaultClassName:S,defaultClassNameDragging:M,defaultClassNameDragged:j,position:z,positionOffset:O,scale:R,...C}=this.props;let D={},P=null;const T=!z||this.state.dragging,L=z||u,A={x:(0,i.canDragX)(this)&&T?this.state.x:L.x,y:(0,i.canDragY)(this)&&T?this.state.y:L.y};this.state.isElementSVG?P=(0,s.createSVGTransform)(A,O):D=(0,s.createCSSTransform)(A,O);const $=(0,a.clsx)(y.props.className||"",S,{[M]:this.state.dragging,[j]:this.state.dragged});return o.createElement(r.default,k({},C,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(y),{className:$,style:{...y.props.style,...D},transform:P}))}}e.default=v,g(v,"displayName","Draggable"),g(v,"propTypes",{...r.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),g(v,"defaultProps",{...r.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(Hn)),Hn}var Ci=(function(){if(Jn)return tt.exports;Jn=1;const{default:e,DraggableCore:o}=Si();return tt.exports=e,tt.exports.default=e,tt.exports.DraggableCore=o,tt.exports})();const Di=wo(Ci),Zn={x:0,y:0},Oi=d.memo(d.forwardRef((e,o)=>{const{defaultPosition:n=Zn,PaperComponent:t=_.Paper,onDragStop:a,rootSel:s=".MuiModal-root",handleSel:i=".draggable-title",titleSize:c,rootSize:r,...l}=e,m=d.useRef(null),k=d.useMemo(()=>c&&r?{left:0,top:0,right:r.width-c.width,bottom:r.height-c.height}:null,[c,r]),[g,v]=d.useState(null),[w,x]=d.useState(null),[h,y]=d.useState(null);return d.useLayoutEffect(()=>{!g&&n&&v(n??Zn)},[n]),d.useEffect(()=>{k&&g&&x({x:Math.max(0,Math.min(g.x,k.right)),y:Math.max(0,Math.min(g.y,k.bottom))})},[g,k]),f.jsx(Di,{nodeRef:m,handle:i,cancel:'[class*="MuiDialogContent-root"]',position:w,bounds:k??".MuiModal-root",onStop:a,onStart:(u,S)=>{const M=u;y({x:(M.clientX??M.touches?.[0]?.clientX)-S.x,y:(M.clientY??M.touches?.[0]?.clientY)-S.y})},onDrag:(u,S)=>{const M=u,j=M.clientX??M.touches?.[0]?.clientX,z=M.clientY??M.touches?.[0]?.clientY;v({x:j-h.x,y:z-h.y})},children:f.jsx(t,{ref:kt([m,o]),...l})})})),Ei={x:"50",y:"50"},nr=d.memo(d.forwardRef((e,o)=>{const n=ze.useThemeProps({props:e,name:"MuiDialog"}),t=ze.useTheme(),a={enter:.66*t.transitions.duration.enteringScreen,exit:.66*t.transitions.duration.leavingScreen},{title:s="SheetXL",key:i="draggable-window",onCancel:c,onDone:r,onShow:l,onShown:m,onHide:k,open:g,autoFocusSel:v,children:w,TransitionComponent:x=_.Fade,TransitionProps:h,transitionDuration:y=a,BackdropComponent:u=_.Backdrop,BackdropProps:S,PaperComponent:M=_.Paper,PaperProps:j,onBackdropClick:z,sx:O,className:R,onMouseDown:C,initialPosition:D=Ei,isModal:P=!1,...T}=n,L=d.useRef(null),[A,$]=d.useState(null),[W,U]=d.useState(!1),[ee,X]=d.useState(!1),J=d.useRef(null),[oe,te]=vn(),Z=d.useRef(null),[re,ce]=vn(),p=d.useRef(null);d.useEffect(()=>{A&&U(g)},[g,A]);const b=B.useCallbackRef(()=>{c?.(),U(!1)},[c]);d.useEffect(()=>{if(te.width===0&&te.height===0||A)return;const V=p.current?.getBoundingClientRect(),K=te.height-V.height,ae=te.width-V.width;let Ae=.5*ae,De=.5*K;typeof D?.x=="number"?Ae=D.x:typeof D?.x=="string"&&(Ae=ae*(parseFloat(D.x)/100)),typeof D?.y=="number"?De=D.y:typeof D?.y=="string"&&(De=K*(parseFloat(D.y)/100)),$({x:Ae,y:De})},[te,ce]);const[E,F]=d.useState(!1),[I,N]=d.useState(null),[H,q]=d.useState(null),G=B.useCallbackRef(V=>{if(I)return I.focus(V),!0;if(v){const K=Z.current?.querySelectorAll?.(v);if(K&&K.length>0)return K[0]?.focus?.(V),!0}return Z.current?.focus?.(V),!1},[I,v]),Q=B.useImperativeElement(o,()=>({focus:V=>{G(V)}}),[]),ne={...h,onExited:V=>{r?.(null),h?.onExited?.(V)},onExit:V=>{const K=H;K&&requestAnimationFrame(()=>{Q.current?.contains(document.activeElement)&&K.focus()}),k?.(),X(!1),h?.onExit?.(V)},onEntered:(V,K)=>{l?.(),h?.onEntered?.(V,K)},onEntering:(V,K)=>{X(!0),m?.(Q.current)}};d.useEffect(()=>{ee&&G()},[ee]);let ie=f.jsx(wi,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:L,active:ee,children:f.jsx(x,{in:W,timeout:y,role:"presentation",...ne,children:f.jsx(_.Box,{className:"MuiDialog-container",ref:Z,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:V=>{V.which===B.KeyCodes.Escape&&(b(),J.current?.start(V,{center:!1}),setTimeout(()=>J.current?.stop(V),180)),V.stopPropagation()},children:f.jsxs(Oi,{ref:kt([p,o]),className:he({"Mui-focusVisible":E},R,"draggable"),sx:{"& *":V=>an(V),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:V=>`solid ${se.alpha(V.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:V=>`solid ${se.alpha(V.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",...O},defaultPosition:A,titleSize:ce,rootSize:te,PaperComponent:M,...T,...j,children:[s?f.jsx(_.DialogTitle,{className:he({"Mui-selected":E},"draggable-title"),sx:{cursor:"move",display:"flex",color:V=>V.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:V=>`${V.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:V=>V.transitions.duration.shortest/2+"ms"},backgroundColor:V=>se.alpha(V.palette.action.hover,.03)},ref:re,children:f.jsxs(_.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:V=>V.spacing(1),marginLeft:V=>V.spacing(1),marginRight:V=>V.spacing(1)},children:[f.jsx(_.Box,{sx:{flex:"1 1 100%",paddingLeft:V=>V.spacing(1)},children:s}),f.jsx(Ue,{label:"Close",children:f.jsx(_.IconButton,{"aria-label":"close",sx:{color:V=>V.palette.text.icon??V.palette.action.active},touchRippleRef:J,onPointerDown:V=>{J.current?.start(V,{center:!1}),V.stopPropagation(),V.preventDefault()},onPointerUp:b,children:f.jsx(B.DynamicIcon,{iconKey:"Close"})})})]})}):null,w]})})})}),ue=null;P&&(ue=f.jsx(u,{...S,open:W,onMouseDown:V=>{b(),S?.onMouseDown?.(V)},onClick:V=>{z?.(V),S?.onClick?.(V)},sx:{pointerEvents:"auto",...S?.sx}}));const{getPortalContainer:Se}=B.useFullscreenPortal();return Zt.createPortal(f.jsxs(_.Box,{className:"MuiModal-root",sx:{position:"fixed",zIndex:"1300",right:"0",bottom:"0",top:"0",left:"0",outline:"0",display:"block",pointerEvents:"none"},ref:kt([Q,oe]),onPointerDown:V=>{E&&(V.target===Z.current||V.target.tabIndex<0)&&Z.current?.contains(document.activeElement)},onContextMenu:V=>{V.isPropagationStopped()||V.preventDefault()},onFocus:V=>{!E&&(V.target===Z.current||V.target.tabIndex<0)&&setTimeout(()=>{G()},100),L.current?.focusTrap?.unpause(),F(!0),Z.current?.contains(V.target)&&V.target!==Z.current&&N(V.target),V.relatedTarget&&!H&&q(V.relatedTarget)},onBlur:V=>{Q?.current?.contains(V.relatedTarget)||(q(null),L.current?.focusTrap?.pause(),F(!1))},children:[ue,ie]}),Se(),i+"")}));var ke=typeof window<"u"?window:{screen:{},navigator:{}},Qe=(ke.matchMedia||function(){return{matches:!1}}).bind(ke),Mi={get passive(){return!0}},eo=function(){};ke.addEventListener&&ke.addEventListener("p",eo,Mi),ke.removeEventListener&&ke.removeEventListener("p",eo,!1);var pn="ontouchstart"in ke,Ti=pn||"TouchEvent"in ke&&Qe("(any-pointer: coarse)").matches,to=(ke.navigator.maxTouchPoints||0)>0||Ti,or=ke.navigator.userAgent||"",ji=Qe("(pointer: coarse)").matches&&/iPad|Macintosh/.test(or)&&Math.min(ke.screen.width||0,ke.screen.height||0)>=768,rr=(Qe("(pointer: coarse)").matches||!Qe("(pointer: fine)").matches&&pn)&&!/Windows.*Firefox/.test(or),Pi=Qe("(any-pointer: fine)").matches||Qe("(any-hover: hover)").matches||ji||!pn,no=!to||!Pi&&rr?to?"touchOnly":"mouseOnly":"hybrid",Ri=no==="mouseOnly"?"mouse":no==="touchOnly"||rr?"touch":"mouse",lt=e=>e.type==="checkbox",Ve=e=>e instanceof Date,be=e=>e==null;const ir=e=>typeof e=="object";var pe=e=>!be(e)&&!Array.isArray(e)&&ir(e)&&!Ve(e),fn=typeof window<"u"&&window.HTMLElement!==void 0&&typeof document<"u";function ye(e){let o;const n=Array.isArray(e),t=typeof FileList<"u"&&e instanceof FileList;if(e instanceof Date)o=new Date(e);else{if(fn&&(e instanceof Blob||t)||!n&&!pe(e))return e;if(o=n?[]:Object.create(Object.getPrototypeOf(e)),n||(a=>{const s=a.constructor&&a.constructor.prototype;return pe(s)&&s.hasOwnProperty("isPrototypeOf")})(e))for(const a in e)e.hasOwnProperty(a)&&(o[a]=ye(e[a]));else o=e}return o}var Ft=e=>/^\w*$/.test(e),me=e=>e===void 0,Xt=e=>Array.isArray(e)?e.filter(Boolean):[],mn=e=>Xt(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Y=(e,o,n)=>{if(!o||!pe(e))return n;const t=(Ft(o)?[o]:mn(o)).reduce((a,s)=>be(a)?a:a[s],e);return me(t)||t===e?me(e[o])?n:e[o]:t},Ee=e=>typeof e=="boolean",le=(e,o,n)=>{let t=-1;const a=Ft(o)?[o]:mn(o),s=a.length,i=s-1;for(;++t<s;){const c=a[t];let r=n;if(t!==i){const l=e[c];r=pe(l)||Array.isArray(l)?l:isNaN(+a[t+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=r,e=e[c]}};const Fi="blur",Ni="focusout",Bi="onBlur",ar="onChange",sr="onSubmit",Ii="onTouched",ut="all",_i="max",Ai="min",Li="maxLength",Vi="minLength",oo="pattern",ro="required",$i="validate",lr=d.createContext(null);lr.displayName="HookFormContext";const zi=e=>{const{children:o,...n}=e;return d.createElement(lr.Provider,{value:n},o)},Wi=typeof window<"u"?d.useLayoutEffect:d.useEffect;var Me=e=>typeof e=="string",Qt=e=>be(e)||!ir(e);function Ie(e,o,n=new WeakSet){if(Qt(e)||Qt(o))return e===o;if(Ve(e)&&Ve(o))return e.getTime()===o.getTime();const t=Object.keys(e),a=Object.keys(o);if(t.length!==a.length)return!1;if(n.has(e)||n.has(o))return!0;n.add(e),n.add(o);for(const s of t){const i=e[s];if(!a.includes(s))return!1;if(s!=="ref"){const c=o[s];if(Ve(i)&&Ve(c)||pe(i)&&pe(c)||Array.isArray(i)&&Array.isArray(c)?!Ie(i,c,n):i!==c)return!1}}return!0}var Hi=(e,o,n,t,a)=>o?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[t]:a||!0}}:{},it=e=>Array.isArray(e)?e:[e],io=()=>{let e=[];return{get observers(){return e},next:o=>{for(const n of e)n.next&&n.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(n=>n!==o)}}),unsubscribe:()=>{e=[]}}},xe=e=>pe(e)&&!Object.keys(e).length,hn=e=>e.type==="file",Ce=e=>typeof e=="function",Ot=e=>{if(!fn)return!1;const o=e?e.ownerDocument:0;return e instanceof(o&&o.defaultView?o.defaultView.HTMLElement:HTMLElement)},cr=e=>e.type==="select-multiple",yn=e=>e.type==="radio",$t=e=>Ot(e)&&e.isConnected;function fe(e,o){const n=Array.isArray(o)?o:Ft(o)?[o]:mn(o),t=n.length===1?e:(function(i,c){const r=c.slice(0,-1).length;let l=0;for(;l<r;)i=me(i)?l++:i[c[l++]];return i})(e,n),a=n.length-1,s=n[a];return t&&delete t[s],a!==0&&(pe(t)&&xe(t)||Array.isArray(t)&&(function(i){for(const c in i)if(i.hasOwnProperty(c)&&!me(i[c]))return!1;return!0})(t))&&fe(e,n.slice(0,-1)),e}var ur=e=>{for(const o in e)if(Ce(e[o]))return!0;return!1};function Et(e,o={}){const n=Array.isArray(e);if(pe(e)||n)for(const t in e)Array.isArray(e[t])||pe(e[t])&&!ur(e[t])?(o[t]=Array.isArray(e[t])?[]:{},Et(e[t],o[t])):be(e[t])||(o[t]=!0);return o}function dr(e,o,n){const t=Array.isArray(e);if(pe(e)||t)for(const a in e)Array.isArray(e[a])||pe(e[a])&&!ur(e[a])?me(o)||Qt(n[a])?n[a]=Array.isArray(e[a])?Et(e[a],[]):{...Et(e[a])}:dr(e[a],be(o)?{}:o[a],n[a]):n[a]=!Ie(e[a],o[a]);return n}var ot=(e,o)=>dr(e,o,Et(o));const ao={value:!1,isValid:!1},so={value:!0,isValid:!0};var pr=e=>{if(Array.isArray(e)){if(e.length>1){const o=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:o,isValid:!!o.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!me(e[0].attributes.value)?me(e[0].value)||e[0].value===""?so:{value:e[0].value,isValid:!0}:so:ao}return ao},fr=(e,{valueAsNumber:o,valueAsDate:n,setValueAs:t})=>me(e)?e:o?e===""?NaN:e&&+e:n&&Me(e)?new Date(e):t?t(e):e;const lo={isValid:!1,value:null};var mr=e=>Array.isArray(e)?e.reduce((o,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:o,lo):lo;function co(e){const o=e.ref;return hn(o)?o.files:yn(o)?mr(e.refs).value:cr(o)?[...o.selectedOptions].map(({value:n})=>n):lt(o)?pr(e.refs).value:fr(me(o.value)?e.ref.value:o.value,e)}var Mt=e=>e instanceof RegExp,rt=e=>me(e)?e:Mt(e)?e.source:pe(e)?Mt(e.value)?e.value.source:e.value:e,uo=e=>({isOnSubmit:!e||e===sr,isOnBlur:e===Bi,isOnChange:e===ar,isOnAll:e===ut,isOnTouch:e===Ii});const po="AsyncFunction";var Ui=e=>!!e&&!!e.validate&&!!(Ce(e.validate)&&e.validate.constructor.name===po||pe(e.validate)&&Object.values(e.validate).find(o=>o.constructor.name===po)),fo=(e,o,n)=>!n&&(o.watchAll||o.watch.has(e)||[...o.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const ct=(e,o,n,t)=>{for(const a of n||Object.keys(e)){const s=Y(e,a);if(s){const{_f:i,...c}=s;if(i){if(i.refs&&i.refs[0]&&o(i.refs[0],a)&&!t||i.ref&&o(i.ref,i.name)&&!t)return!0;if(ct(c,o))break}else if(pe(c)&&ct(c,o))break}}};function mo(e,o,n){const t=Y(e,n);if(t||Ft(n))return{error:t,name:n};const a=n.split(".");for(;a.length;){const s=a.join("."),i=Y(o,s),c=Y(e,s);if(i&&!Array.isArray(i)&&n!==s)return{name:n};if(c&&c.type)return{name:s,error:c};if(c&&c.root&&c.root.type)return{name:`${s}.root`,error:c.root};a.pop()}return{name:n}}var Ki=(e,o,n)=>{const t=it(Y(e,n));return le(t,"root",o[n]),le(e,n,t),e},wt=e=>Me(e);function ho(e,o,n="validate"){if(wt(e)||Array.isArray(e)&&e.every(wt)||Ee(e)&&!e)return{type:n,message:wt(e)?e:"",ref:o}}var Ke=e=>pe(e)&&!Mt(e)?e:{value:e,message:""},yo=async(e,o,n,t,a,s)=>{const{ref:i,refs:c,required:r,maxLength:l,minLength:m,min:k,max:g,pattern:v,validate:w,name:x,valueAsNumber:h,mount:y}=e._f,u=Y(n,x);if(!y||o.has(x))return{};const S=c?c[0]:i,M=T=>{a&&S.reportValidity&&(S.setCustomValidity(Ee(T)?"":T||""),S.reportValidity())},j={},z=yn(i),O=lt(i),R=z||O,C=(h||hn(i))&&me(i.value)&&me(u)||Ot(i)&&i.value===""||u===""||Array.isArray(u)&&!u.length,D=Hi.bind(null,x,t,j),P=(T,L,A,$=Li,W=Vi)=>{const U=T?L:A;j[x]={type:T?$:W,message:U,ref:i,...D(T?$:W,U)}};if(s?!Array.isArray(u)||!u.length:r&&(!R&&(C||be(u))||Ee(u)&&!u||O&&!pr(c).isValid||z&&!mr(c).isValid)){const{value:T,message:L}=wt(r)?{value:!!r,message:r}:Ke(r);if(T&&(j[x]={type:ro,message:L,ref:S,...D(ro,L)},!t))return M(L),j}if(!(C||be(k)&&be(g))){let T,L;const A=Ke(g),$=Ke(k);if(be(u)||isNaN(u)){const W=i.valueAsDate||new Date(u),U=J=>new Date(new Date().toDateString()+" "+J),ee=i.type=="time",X=i.type=="week";Me(A.value)&&u&&(T=ee?U(u)>U(A.value):X?u>A.value:W>new Date(A.value)),Me($.value)&&u&&(L=ee?U(u)<U($.value):X?u<$.value:W<new Date($.value))}else{const W=i.valueAsNumber||u&&+u;be(A.value)||(T=W>A.value),be($.value)||(L=W<$.value)}if((T||L)&&(P(!!T,A.message,$.message,_i,Ai),!t))return M(j[x].message),j}if((l||m)&&!C&&(Me(u)||s&&Array.isArray(u))){const T=Ke(l),L=Ke(m),A=!be(T.value)&&u.length>+T.value,$=!be(L.value)&&u.length<+L.value;if((A||$)&&(P(A,T.message,L.message),!t))return M(j[x].message),j}if(v&&!C&&Me(u)){const{value:T,message:L}=Ke(v);if(Mt(T)&&!u.match(T)&&(j[x]={type:oo,message:L,ref:i,...D(oo,L)},!t))return M(L),j}if(w){if(Ce(w)){const T=ho(await w(u,n),S);if(T&&(j[x]={...T,...D($i,T.message)},!t))return M(T.message),j}else if(pe(w)){let T={};for(const L in w){if(!xe(T)&&!t)break;const A=ho(await w[L](u,n),S,L);A&&(T={...A,...D(L,A.message)},M(A.message),t&&(j[x]=T))}if(!xe(T)&&(j[x]={ref:S,...T},!t))return j}}return M(!0),j};const Yi={mode:sr,reValidateMode:ar,shouldFocusError:!0};function qi(e={}){let o,n={...Yi,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ce(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},s=(pe(n.defaultValues)||pe(n.values))&&ye(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:ye(s),c={action:!1,mount:!1,watch:!1},r={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let k={...m};const g={array:io(),state:io()},v=n.criteriaMode===ut,w=async p=>{if(!n.disabled&&(m.isValid||k.isValid||p)){const b=n.resolver?xe((await S()).errors):await M(a,!0);b!==t.isValid&&g.state.next({isValid:b})}},x=(p,b)=>{!n.disabled&&(m.isValidating||m.validatingFields||k.isValidating||k.validatingFields)&&((p||Array.from(r.mount)).forEach(E=>{E&&(b?le(t.validatingFields,E,b):fe(t.validatingFields,E))}),g.state.next({validatingFields:t.validatingFields,isValidating:!xe(t.validatingFields)}))},h=(p,b,E,F)=>{const I=Y(a,p);if(I){const N=Y(i,p,me(E)?Y(s,p):E);me(N)||F&&F.defaultChecked||b?le(i,p,b?N:co(I._f)):O(p,N),c.mount&&w()}},y=(p,b,E,F,I)=>{let N=!1,H=!1;const q={name:p};if(!n.disabled){if(!E||F){(m.isDirty||k.isDirty)&&(H=t.isDirty,t.isDirty=q.isDirty=j(),N=H!==q.isDirty);const G=Ie(Y(s,p),b);H=!!Y(t.dirtyFields,p),G?fe(t.dirtyFields,p):le(t.dirtyFields,p,!0),q.dirtyFields=t.dirtyFields,N=N||(m.dirtyFields||k.dirtyFields)&&H!==!G}if(E){const G=Y(t.touchedFields,p);G||(le(t.touchedFields,p,E),q.touchedFields=t.touchedFields,N=N||(m.touchedFields||k.touchedFields)&&G!==E)}N&&I&&g.state.next(q)}return N?q:{}},u=(p,b,E,F)=>{const I=Y(t.errors,p),N=(m.isValid||k.isValid)&&Ee(b)&&t.isValid!==b;var H;if(n.delayError&&E?(H=()=>((q,G)=>{le(t.errors,q,G),g.state.next({errors:t.errors})})(p,E),o=q=>{clearTimeout(l),l=setTimeout(H,q)},o(n.delayError)):(clearTimeout(l),o=null,E?le(t.errors,p,E):fe(t.errors,p)),(E?!Ie(I,E):I)||!xe(F)||N){const q={...F,...N&&Ee(b)?{isValid:b}:{},errors:t.errors,name:p};t={...t,...q},g.state.next(q)}},S=async p=>{x(p,!0);const b=await n.resolver(i,n.context,((E,F,I,N)=>{const H={};for(const q of E){const G=Y(F,q);G&&le(H,q,G._f)}return{criteriaMode:I,names:[...E],fields:H,shouldUseNativeValidation:N}})(p||r.mount,a,n.criteriaMode,n.shouldUseNativeValidation));return x(p),b},M=async(p,b,E={valid:!0})=>{for(const F in p){const I=p[F];if(I){const{_f:N,...H}=I;if(N){const q=r.array.has(N.name),G=I._f&&Ui(I._f);G&&m.validatingFields&&x([F],!0);const Q=await yo(I,r.disabled,i,v,n.shouldUseNativeValidation&&!b,q);if(G&&m.validatingFields&&x([F]),Q[N.name]&&(E.valid=!1,b))break;!b&&(Y(Q,N.name)?q?Ki(t.errors,Q,N.name):le(t.errors,N.name,Q[N.name]):fe(t.errors,N.name))}!xe(H)&&await M(H,b,E)}}return E.valid},j=(p,b)=>!n.disabled&&(p&&b&&le(i,p,b),!Ie(L(),s)),z=(p,b,E)=>((F,I,N,H,q)=>Me(F)?(H&&I.watch.add(F),Y(N,F,q)):Array.isArray(F)?F.map(G=>(H&&I.watch.add(G),Y(N,G))):(H&&(I.watchAll=!0),N))(p,r,{...c.mount?i:me(b)?s:Me(p)?{[p]:b}:b},E,b),O=(p,b,E={})=>{const F=Y(a,p);let I=b;if(F){const N=F._f;N&&(!N.disabled&&le(i,p,fr(b,N)),I=Ot(N.ref)&&be(b)?"":b,cr(N.ref)?[...N.ref.options].forEach(H=>H.selected=I.includes(H.value)):N.refs?lt(N.ref)?N.refs.forEach(H=>{H.defaultChecked&&H.disabled||(Array.isArray(I)?H.checked=!!I.find(q=>q===H.value):H.checked=I===H.value||!!I)}):N.refs.forEach(H=>H.checked=H.value===I):hn(N.ref)?N.ref.value="":(N.ref.value=I,N.ref.type||g.state.next({name:p,values:ye(i)})))}(E.shouldDirty||E.shouldTouch)&&y(p,I,E.shouldTouch,E.shouldDirty,!0),E.shouldValidate&&T(p)},R=(p,b,E)=>{for(const F in b){if(!b.hasOwnProperty(F))return;const I=b[F],N=p+"."+F,H=Y(a,N);(r.array.has(p)||pe(I)||H&&!H._f)&&!Ve(I)?R(N,I,E):O(N,I,E)}},C=(p,b,E={})=>{const F=Y(a,p),I=r.array.has(p),N=ye(b);le(i,p,N),I?(g.array.next({name:p,values:ye(i)}),(m.isDirty||m.dirtyFields||k.isDirty||k.dirtyFields)&&E.shouldDirty&&g.state.next({name:p,dirtyFields:ot(s,i),isDirty:j(p,N)})):!F||F._f||be(N)?O(p,N,E):R(p,N,E),fo(p,r)&&g.state.next({...t,name:p}),g.state.next({name:c.mount?p:void 0,values:ye(i)})},D=async p=>{c.mount=!0;const b=p.target;let E=b.name,F=!0;const I=Y(a,E),N=G=>{F=Number.isNaN(G)||Ve(G)&&isNaN(G.getTime())||Ie(G,Y(i,E,G))},H=uo(n.mode),q=uo(n.reValidateMode);if(I){let G,Q;const ne=b.type?co(I._f):(ae=>pe(ae)&&ae.target?lt(ae.target)?ae.target.checked:ae.target.value:ae)(p),ie=p.type===Fi||p.type===Ni,ue=!(ae=>ae.mount&&(ae.required||ae.min||ae.max||ae.maxLength||ae.minLength||ae.pattern||ae.validate))(I._f)&&!n.resolver&&!Y(t.errors,E)&&!I._f.deps||((ae,Ae,De,bn,ft)=>!ft.isOnAll&&(!De&&ft.isOnTouch?!(Ae||ae):(De?bn.isOnBlur:ft.isOnBlur)?!ae:!(De?bn.isOnChange:ft.isOnChange)||ae))(ie,Y(t.touchedFields,E),t.isSubmitted,q,H),Se=fo(E,r,ie);le(i,E,ne),ie?b&&b.readOnly||(I._f.onBlur&&I._f.onBlur(p),o&&o(0)):I._f.onChange&&I._f.onChange(p);const V=y(E,ne,ie),K=!xe(V)||Se;if(!ie&&g.state.next({name:E,type:p.type,values:ye(i)}),ue)return(m.isValid||k.isValid)&&(n.mode==="onBlur"?ie&&w():ie||w()),K&&g.state.next({name:E,...Se?{}:V});if(!ie&&Se&&g.state.next({...t}),n.resolver){const{errors:ae}=await S([E]);if(N(ne),F){const Ae=mo(t.errors,a,E),De=mo(ae,a,Ae.name||E);G=De.error,E=De.name,Q=xe(ae)}}else x([E],!0),G=(await yo(I,r.disabled,i,v,n.shouldUseNativeValidation))[E],x([E]),N(ne),F&&(G?Q=!1:(m.isValid||k.isValid)&&(Q=await M(a,!0)));F&&(I._f.deps&&T(I._f.deps),u(E,Q,G,V))}},P=(p,b)=>{if(Y(t.errors,b)&&p.focus)return p.focus(),1},T=async(p,b={})=>{let E,F;const I=it(p);if(n.resolver){const N=await(async H=>{const{errors:q}=await S(H);if(H)for(const G of H){const Q=Y(q,G);Q?le(t.errors,G,Q):fe(t.errors,G)}else t.errors=q;return q})(me(p)?p:I);E=xe(N),F=p?!I.some(H=>Y(N,H)):E}else p?(F=(await Promise.all(I.map(async N=>{const H=Y(a,N);return await M(H&&H._f?{[N]:H}:H)}))).every(Boolean),(F||t.isValid)&&w()):F=E=await M(a);return g.state.next({...!Me(p)||(m.isValid||k.isValid)&&E!==t.isValid?{}:{name:p},...n.resolver||!p?{isValid:E}:{},errors:t.errors}),b.shouldFocus&&!F&&ct(a,P,p?I:r.mount),F},L=p=>{const b={...c.mount?i:s};return me(p)?b:Me(p)?Y(b,p):p.map(E=>Y(b,E))},A=(p,b)=>({invalid:!!Y((b||t).errors,p),isDirty:!!Y((b||t).dirtyFields,p),error:Y((b||t).errors,p),isValidating:!!Y(t.validatingFields,p),isTouched:!!Y((b||t).touchedFields,p)}),$=(p,b,E)=>{const F=(Y(a,p,{_f:{}})._f||{}).ref,I=Y(t.errors,p)||{},{ref:N,message:H,type:q,...G}=I;le(t.errors,p,{...G,...b,ref:F}),g.state.next({name:p,errors:t.errors,isValid:!1}),E&&E.shouldFocus&&F&&F.focus&&F.focus()},W=p=>g.state.subscribe({next:b=>{var E,F,I;E=p.name,F=b.name,I=p.exact,E&&F&&E!==F&&!it(E).some(N=>N&&(I?N===F:N.startsWith(F)||F.startsWith(N)))||!((N,H,q,G)=>{q(N);const{name:Q,...ne}=N;return xe(ne)||Object.keys(ne).length>=Object.keys(H).length||Object.keys(ne).find(ie=>H[ie]===(!G||ut))})(b,p.formState||m,re,p.reRenderRoot)||p.callback({values:{...i},...t,...b,defaultValues:s})}}).unsubscribe,U=(p,b={})=>{for(const E of p?it(p):r.mount)r.mount.delete(E),r.array.delete(E),b.keepValue||(fe(a,E),fe(i,E)),!b.keepError&&fe(t.errors,E),!b.keepDirty&&fe(t.dirtyFields,E),!b.keepTouched&&fe(t.touchedFields,E),!b.keepIsValidating&&fe(t.validatingFields,E),!n.shouldUnregister&&!b.keepDefaultValue&&fe(s,E);g.state.next({values:ye(i)}),g.state.next({...t,...b.keepDirty?{isDirty:j()}:{}}),!b.keepIsValid&&w()},ee=({disabled:p,name:b})=>{(Ee(p)&&c.mount||p||r.disabled.has(b))&&(p?r.disabled.add(b):r.disabled.delete(b))},X=(p,b={})=>{let E=Y(a,p);const F=Ee(b.disabled)||Ee(n.disabled);return le(a,p,{...E||{},_f:{...E&&E._f?E._f:{ref:{name:p}},name:p,mount:!0,...b}}),r.mount.add(p),E?ee({disabled:Ee(b.disabled)?b.disabled:n.disabled,name:p}):h(p,!0,b.value),{...F?{disabled:b.disabled||n.disabled}:{},...n.progressive?{required:!!b.required,min:rt(b.min),max:rt(b.max),minLength:rt(b.minLength),maxLength:rt(b.maxLength),pattern:rt(b.pattern)}:{},name:p,onChange:D,onBlur:D,ref:I=>{if(I){X(p,b),E=Y(a,p);const N=me(I.value)&&I.querySelectorAll&&I.querySelectorAll("input,select,textarea")[0]||I,H=(G=>yn(G)||lt(G))(N),q=E._f.refs||[];if(H?q.find(G=>G===N):N===E._f.ref)return;le(a,p,{_f:{...E._f,...H?{refs:[...q.filter($t),N,...Array.isArray(Y(s,p))?[{}]:[]],ref:{type:N.type,name:p}}:{ref:N}}}),h(p,!1,void 0,N)}else E=Y(a,p,{}),E._f&&(E._f.mount=!1),(n.shouldUnregister||b.shouldUnregister)&&(!((N,H)=>N.has((q=>q.substring(0,q.search(/\.\d+(\.|$)/))||q)(H)))(r.array,p)||!c.action)&&r.unMount.add(p)}}},J=()=>n.shouldFocusError&&ct(a,P,r.mount),oe=(p,b)=>async E=>{let F;E&&(E.preventDefault&&E.preventDefault(),E.persist&&E.persist());let I=ye(i);if(g.state.next({isSubmitting:!0}),n.resolver){const{errors:N,values:H}=await S();t.errors=N,I=ye(H)}else await M(a);if(r.disabled.size)for(const N of r.disabled)fe(I,N);if(fe(t.errors,"root"),xe(t.errors)){g.state.next({errors:{}});try{await p(I,E)}catch(N){F=N}}else b&&await b({...t.errors},E),J(),setTimeout(J);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:xe(t.errors)&&!F,submitCount:t.submitCount+1,errors:t.errors}),F)throw F},te=(p,b={})=>{const E=p?ye(p):s,F=ye(E),I=xe(p),N=I?s:F;if(b.keepDefaultValues||(s=E),!b.keepValues){if(b.keepDirtyValues){const H=new Set([...r.mount,...Object.keys(ot(s,i))]);for(const q of Array.from(H))Y(t.dirtyFields,q)?le(N,q,Y(i,q)):C(q,Y(N,q))}else{if(fn&&me(p))for(const H of r.mount){const q=Y(a,H);if(q&&q._f){const G=Array.isArray(q._f.refs)?q._f.refs[0]:q._f.ref;if(Ot(G)){const Q=G.closest("form");if(Q){Q.reset();break}}}}if(b.keepFieldsRef)for(const H of r.mount)C(H,Y(N,H));else a={}}i=n.shouldUnregister?b.keepDefaultValues?ye(s):{}:ye(N),g.array.next({values:{...N}}),g.state.next({values:{...N}})}r={mount:b.keepDirtyValues?r.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!m.isValid||!!b.keepIsValid||!!b.keepDirtyValues,c.watch=!!n.shouldUnregister,g.state.next({submitCount:b.keepSubmitCount?t.submitCount:0,isDirty:!I&&(b.keepDirty?t.isDirty:!(!b.keepDefaultValues||Ie(p,s))),isSubmitted:!!b.keepIsSubmitted&&t.isSubmitted,dirtyFields:I?{}:b.keepDirtyValues?b.keepDefaultValues&&i?ot(s,i):t.dirtyFields:b.keepDefaultValues&&p?ot(s,p):b.keepDirty?t.dirtyFields:{},touchedFields:b.keepTouched?t.touchedFields:{},errors:b.keepErrors?t.errors:{},isSubmitSuccessful:!!b.keepIsSubmitSuccessful&&t.isSubmitSuccessful,isSubmitting:!1,defaultValues:s})},Z=(p,b)=>te(Ce(p)?p(i):p,b),re=p=>{t={...t,...p}},ce={control:{register:X,unregister:U,getFieldState:A,handleSubmit:oe,setError:$,_subscribe:W,_runSchema:S,_focusError:J,_getWatch:z,_getDirty:j,_setValid:w,_setFieldArray:(p,b=[],E,F,I=!0,N=!0)=>{if(F&&E&&!n.disabled){if(c.action=!0,N&&Array.isArray(Y(a,p))){const H=E(Y(a,p),F.argA,F.argB);I&&le(a,p,H)}if(N&&Array.isArray(Y(t.errors,p))){const H=E(Y(t.errors,p),F.argA,F.argB);I&&le(t.errors,p,H),((q,G)=>{!Xt(Y(q,G)).length&&fe(q,G)})(t.errors,p)}if((m.touchedFields||k.touchedFields)&&N&&Array.isArray(Y(t.touchedFields,p))){const H=E(Y(t.touchedFields,p),F.argA,F.argB);I&&le(t.touchedFields,p,H)}(m.dirtyFields||k.dirtyFields)&&(t.dirtyFields=ot(s,i)),g.state.next({name:p,isDirty:j(p,b),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else le(i,p,b)},_setDisabledField:ee,_setErrors:p=>{t.errors=p,g.state.next({errors:t.errors,isValid:!1})},_getFieldArray:p=>Xt(Y(c.mount?i:s,p,n.shouldUnregister?Y(s,p,[]):[])),_reset:te,_resetDefaultValues:()=>Ce(n.defaultValues)&&n.defaultValues().then(p=>{Z(p,n.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const p of r.unMount){const b=Y(a,p);b&&(b._f.refs?b._f.refs.every(E=>!$t(E)):!$t(b._f.ref))&&U(p)}r.unMount=new Set},_disableForm:p=>{Ee(p)&&(g.state.next({disabled:p}),ct(a,(b,E)=>{const F=Y(a,E);F&&(b.disabled=F._f.disabled||p,Array.isArray(F._f.refs)&&F._f.refs.forEach(I=>{I.disabled=F._f.disabled||p}))},0,!1))},_subjects:g,_proxyFormState:m,get _fields(){return a},get _formValues(){return i},get _state(){return c},set _state(p){c=p},get _defaultValues(){return s},get _names(){return r},set _names(p){r=p},get _formState(){return t},get _options(){return n},set _options(p){n={...n,...p}}},subscribe:p=>(c.mount=!0,k={...k,...p.formState},W({...p,formState:k})),trigger:T,register:X,handleSubmit:oe,watch:(p,b)=>Ce(p)?g.state.subscribe({next:E=>"values"in E&&p(z(void 0,b),E)}):z(p,b,!0),setValue:C,getValues:L,reset:Z,resetField:(p,b={})=>{Y(a,p)&&(me(b.defaultValue)?C(p,ye(Y(s,p))):(C(p,b.defaultValue),le(s,p,ye(b.defaultValue))),b.keepTouched||fe(t.touchedFields,p),b.keepDirty||(fe(t.dirtyFields,p),t.isDirty=b.defaultValue?j(p,ye(Y(s,p))):j()),b.keepError||(fe(t.errors,p),m.isValid&&w()),g.state.next({...t}))},clearErrors:p=>{p&&it(p).forEach(b=>fe(t.errors,b)),g.state.next({errors:p?t.errors:{}})},unregister:U,setError:$,setFocus:(p,b={})=>{const E=Y(a,p),F=E&&E._f;if(F){const I=F.refs?F.refs[0]:F.ref;I.focus&&(I.focus(),b.shouldSelect&&Ce(I.select)&&I.select())}},getFieldState:A};return{...ce,formControl:ce}}function Gi(e={}){const o=d.useRef(void 0),n=d.useRef(void 0),[t,a]=d.useState({isDirty:!1,isValidating:!1,isLoading:Ce(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Ce(e.defaultValues)?void 0:e.defaultValues});if(!o.current)if(e.formControl)o.current={...e.formControl,formState:t},e.defaultValues&&!Ce(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:i,...c}=qi(e);o.current={...c,formState:t}}const s=o.current.control;return s._options=e,Wi(()=>{const i=s._subscribe({formState:s._proxyFormState,callback:()=>a({...s._formState}),reRenderRoot:!0});return a(c=>({...c,isReady:!0})),s._formState.isReady=!0,i},[s]),d.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),d.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),d.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),d.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),d.useEffect(()=>{if(s._proxyFormState.isDirty){const i=s._getDirty();i!==t.isDirty&&s._subjects.state.next({isDirty:i})}},[s,t.isDirty]),d.useEffect(()=>{e.values&&!Ie(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),n.current=e.values,a(i=>({...i}))):s._resetDefaultValues()},[s,e.values]),d.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),o.current.formState=((i,c,r,l=!0)=>{const m={defaultValues:c._defaultValues};for(const k in i)Object.defineProperty(m,k,{get:()=>{const g=k;return c._proxyFormState[g]!==ut&&(c._proxyFormState[g]=!l||ut),i[g]}});return m})(t,s),o.current}const Xi=["Ok","Cancel"],Jt=d.memo(d.forwardRef((e,o)=>{const{description:n,icon:t,onCancel:a,onOption:s,onDone:i,onValidateOption:c,createOptionsButton:r,options:l=Xi,autoFocusSel:m=".defaultOption",defaultOption:k=l[0],cancelOption:g="Cancel",children:v,...w}=e,x=Gi({shouldUseNativeValidation:!1}),{handleSubmit:h,formState:y}=x,u=d.useRef(null),S=d.useRef(null),M=d.useRef(null),j=B.useCallbackRef(async P=>{let T;try{if(T=await Promise.resolve(c?.(P))??!0,T!==!0)return;await Promise.resolve(s?.(P,P===g,P===k)),i?.(P)}catch{}},[s,i,c,g,k]),z=B.useCallbackRef((P,T)=>{setTimeout(()=>{j(k)},180)},[j]),O=B.useCallbackRef(()=>{s?.(g,!0,!1),a?.(),i?.(null)},[s,g,a,i]),R=y&&(Object.keys(y.errors).length>0||y.disabled||y.isSubmitted),C=B.useCallbackRef((P,T)=>{const L=P===g,A={className:T?"defaultOption":"action",type:T?"submit":"button",style:{minWidth:"75px"},onClick:()=>{L?O():T||j(P)}};if(r)return r(P,A,T);const $={className:T?"defaultOption":"action",variant:T?"contained":"outlined",size:"small",disabled:!L&&R,color:"primary",...A};if(T||L){const W=T?u:S;$.touchRippleRef=W,$.onPointerDown=U=>{W.current?.start(U,{center:!1}),U.stopPropagation(),U.preventDefault()}}return f.jsx(_.Button,{...$,children:f.jsx("div",{style:{paddingTop:"3px"},children:P})},`action:${P}`)},[l,k,g,r,y]),D=d.useMemo(()=>{const P=[];for(let T=0;T<l.length;T++){const L=l[T],A=k?L===k:T===0;P.push(C(L,A))}return P},[l,k,y]);return f.jsx(nr,{onCancel:O,initialPosition:{y:Ri==="touch"?"15":"35"},onDone:i,autoFocusSel:m,isModal:!0,ref:o,PaperProps:{},...w,children:f.jsx(zi,{...x,children:f.jsxs("form",{ref:M,onSubmit:h(z),children:[f.jsx(_.DialogContent,{dividers:!0,onKeyDown:P=>{if(P.isDefaultPrevented())return;P.stopPropagation();let T=null,L=null;const A=P.which===B.KeyCodes.Escape&&g;if(A)T=g,L=S;else{if(R)return;P.which===B.KeyCodes.Enter&&(T=k??l[0],L=u)}T&&(L.current?.start(P,{center:!1}),setTimeout(()=>{L.current?.stop(P),A&&j(T)},180))},children:f.jsxs(_.Box,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:P=>P.spacing(t||n?1.5:0)},children:[f.jsxs(_.Box,{sx:{display:"flex",flexDirection:"column"},children:[t,f.jsx(_.Typography,{children:n})]}),v]})}),f.jsx(_.DialogActions,{sx:{paddingTop:P=>P.spacing(1),paddingBottom:P=>P.spacing(1),paddingLeft:P=>P.spacing(1),paddingRight:P=>P.spacing(1),backgroundColor:P=>se.alpha(P.palette.action.hover,.03)},children:D})]})})})})),Qi=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:Jt,default:Jt},Symbol.toStringTag,{value:"Module"})),Ji=d.lazy(()=>Promise.resolve().then(()=>Qi)),Zi=d.lazy(()=>Promise.resolve().then(()=>require("./BcDVTPwhjtaDt5bp.cjs"))),Nt=d.memo(d.forwardRef((e,o)=>{const{command:n,disabled:t=!1,shortcut:a,children:s,...i}=e;return B.useCommand(n),f.jsx(Ue,{ref:o,label:t!==void 0?n?.label():"",shortcut:a!==void 0?a:Array.isArray(n?.shortcut())?n?.shortcut()[0]:n?.shortcut(),description:n?.description(),disabled:t,chips:n?.tags(),componentDisabled:n?.disabled(),...i,children:f.jsx("div",{style:{display:"flex",flex:"1 1 0%"},children:s})})})),ea=f.jsx(B.DynamicIcon,{}),hr=d.memo(d.forwardRef((e,o)=>{const{command:n,commandHook:t,scope:a,context:s,icon:i,label:c,disabled:r=!1,variant:l=B.CommandButtonType.Toolbar,shortcut:m,commandState:k,tooltipProps:g,...v}=e,w=d.useRef(null),x=d.useRef(!1),h=d.useMemo(()=>{const R={onExecute(C,D){t?.onExecute?.(C,D),x.current||(w.current?.start({center:!1}),setTimeout(()=>w.current?.stop({}),180)),x.current=!1},onError(C,D,P){t?.onError(C,D,P)}};return t?.beforeExecute&&(R.beforeExecute=t.beforeExecute),R},[t]),y=B.useCommand(n,h),u=d.useCallback(R=>{R.button===0&&R.preventDefault()},[]),S=d.useCallback(R=>{R.button===0&&n?.execute(k,t)},[y,t,k]),M=d.useCallback(R=>{R.keyCode!==B.KeyCodes.Enter&&R.keyCode!==B.KeyCodes.Space||n?.execute(k,t)},[y,t,k]),j=d.useMemo(()=>{if(i)return typeof i=="function"?i(n):i;let R=n?.icon(s);return R?(typeof R=="string"&&(R=f.jsx(B.DynamicIcon,{iconKey:R})),R):l===B.CommandButtonType.Toolbar||n?.state()?void 0:ea},[y,i]),z=d.useMemo(()=>({tabIndex:0,ref:o,selected:n?.state(),icon:l===B.CommandButtonType.Toolbar?j:f.jsx(Vo,{selected:n?.state()??!1,children:j}),touchRippleRef:w,disabled:r||!n||n.disabled(),onMouseDown:u,onMouseUp:S,onKeyDown:M}),[y,t,r,j]);let O;return O=l===B.CommandButtonType.Menuitem?f.jsx(Xe,{...v,chips:n?.tags(),...z,children:c??n?.label(a,s)}):f.jsx(pt,{...v,...z}),(c||n?.label())&&((n.disabled()||r)&&(O=f.jsx("div",{children:O})),O=f.jsx(Nt,{command:n,placement:l===B.CommandButtonType.Toolbar?"bottom-start":"right-start",shortcut:m,...g,children:O})),O})),ta=f.jsx(B.DynamicIcon,{}),na=d.memo(d.forwardRef((e,o)=>{const{command:n,scope:t,icon:a=ta,label:s,variant:i=B.CommandButtonType.Toolbar,disabled:c=!1,commandHook:r,...l}=e,m=d.useRef(null),k=d.useRef(!1),g=d.useMemo(()=>{const O={onExecute(R,C){r?.onExecute?.(R,C),k.current||(m.current?.start({center:!1}),setTimeout(()=>m.current?.stop({}),180)),k.current=!1},onError(R,C,D){r?.onError(R,C,D)}};return r?.beforeExecute&&(O.beforeExecute=r.beforeExecute),O},[r]),v=B.useCommand(n,g),w=()=>n?.state()?.toString()||"0",[x,h]=d.useState(w),y=B.useCallbackRef(()=>{const O=parseFloat(x);isNaN(O)?h(w()):parseFloat(w())!==O&&n.execute(O,r)},[w,n,x,r]);d.useEffect(()=>{h(w())},[n?.state()]);const u=d.useMemo(()=>{let O=typeof a=="function"?a(n):a;return O&&(O=n?.icon()),typeof O=="string"&&(O=f.jsx(B.DynamicIcon,{iconKey:O})),O},[v,a,n?.icon]),S=d.useMemo(()=>s===void 0?n?.label(t):typeof s=="function"?s():s,[v]),M=d.useMemo(()=>f.jsx(_.IconButton,{...l,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:O=>O.stopPropagation(),onMouseDown:O=>{O.button===0&&O.stopPropagation()},onMouseUp:O=>{O.button===0&&O.stopPropagation()},children:f.jsx(_.Input,{inputMode:"numeric",disabled:c||!n||n.disabled(),inputProps:{tabIndex:0,name:`input-${n.key()}`,autoComplete:"off",type:"number",maxLength:4},sx:{paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:O=>`${Math.round(O.typography.fontSize)}px`,width:O=>"3.2em",input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield"},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:x,onFocus:O=>{O.target?.select()},onKeyDown:O=>{if(O.which===B.KeyCodes.Enter)w()!==x&&(O.stopPropagation(),O.preventDefault(),y());else if(O.which===B.KeyCodes.Escape)w()!==x&&(h(w()),setTimeout(()=>{O.target?.select()},0),O.stopPropagation(),O.preventDefault());else{if(O.key.match("[-]")||O.key.match("[0-9.]")&&(x+O.key).length>4)return O.stopPropagation(),void O.preventDefault();if(O.which===B.KeyCodes.Space)return void O.preventDefault()}},onBlur:()=>{y()},onChange:O=>{if(O.target.value.length>4)return O.stopPropagation(),void O.preventDefault();h(O.target.value)}})}),[x,c,n]),j={tabIndex:0,ref:o,icon:u,touchRippleRef:m,disabled:c||!n||n.disabled(),onMouseDown:O=>{O.button===0&&O.preventDefault()},onMouseUp:O=>{O.button!==0||O.isPropagationStopped()||O.isDefaultPrevented()||O.isDefaultPrevented()||(O.preventDefault(),n?.execute(!n?.state?.(),g))},onKeyDown:O=>{O.keyCode!==B.KeyCodes.Enter&&O.keyCode!==B.KeyCodes.Space||n?.execute(!n?.state?.(),g)}};let z;return z=i===B.CommandButtonType.Menuitem?f.jsxs(Xe,{...l,chips:n?.tags(),...j,children:[S,M]}):f.jsx(pt,{...l,...j}),n?.label()&&((n.disabled()||c)&&(z=f.jsx("div",{children:z})),z=f.jsx(Nt,{command:n,placement:i===B.CommandButtonType.Toolbar?"bottom-start":"right-start",children:z})),z})),gn=d.memo(d.forwardRef((e,o)=>{const{variant:n=B.CommandButtonType.Toolbar,quickCommand:t,onQuickClick:a,commands:s,commandState:i,commandHook:c,disabled:r,label:l,icon:m,createPopupPanel:k,tooltip:g,selected:v,scope:w,...x}=e,h=d.useRef(null),y=d.useRef(!1),u=d.useMemo(()=>{const D={onExecute(P,T){c?.onExecute?.(P,T),y.current||(h.current?.start({center:!1}),setTimeout(()=>h.current?.stop({}),180)),y.current=!1},onError(P,T,L){c?.onError(P,T,L)}};return c?.beforeExecute&&(D.beforeExecute=c.beforeExecute),D},[c]),S=B.useCommands(s,[t],null,[t]),M=S[0],{label:j,icon:z}=d.useMemo(()=>{let D=null;l&&(D=typeof l=="function"?l(M):l),D||(D=M?.label?.(w));let P=m;return P||(P=M?.icon?.()),typeof P=="string"?P=f.jsx(B.DynamicIcon,{iconKey:P}):typeof P=="function"&&(P=P(M)),{label:D,icon:P}},[S,l,m]),O={disabled:r,scope:w,touchRippleRef:h,onQuickClick:a,tooltip:g,label:j,icon:z};(j||g)&&(O.createTooltip=({children:D},P)=>f.jsx(Ue,{label:j,description:g,disabled:P,children:D}));const R=B.useCallbackRef(D=>k?.(D,s),[k,S]),C=B.useCallbackRef(D=>M?.execute(i,u),[M]);return M?(O.quickButtonProps={},O.quickButtonProps.createTooltip=({children:D,placement:P},T)=>f.jsx(Nt,{command:M,placement:P??n===B.CommandButtonType.Toolbar?"bottom-start":"right-start",disabled:T,children:D}),O.disabled=O.disabled??M?.disabled(),a||(O.onQuickClick=C)):t&&(O.onQuickClick=()=>{}),O.selected=v??M?.state(),O.createPopupPanel=R,n===B.CommandButtonType.Toolbar?f.jsx(Pt,{...x,...O,ref:o}):f.jsx(cn,{...x,...O,ref:o})}));gn.displayName="CommandPopupButton";const oa=f.jsx(B.DynamicIcon,{iconKey:"Check"}),yr=d.memo(d.forwardRef((e,o)=>{const{sx:n,commands:t,commandButtonProps:a,parentFloat:s,createToolbarPalette:i,children:c,...r}=e,l=B.useImperativeElement(o,()=>({}),[]),[m,k]=d.useState(null),{reference:g}=dt({label:"toolbar",anchor:l.current,parentFloat:s,createPopupPanel:null}),v=d.useCallback(()=>{const O=m;O&&requestAnimationFrame(()=>{l.current?.contains(document.activeElement)&&O.focus()})},[]),w=d.useMemo(()=>({dense:!0,outlined:!1}),[]),x=d.useMemo(()=>{const{commandHook:O,...R}=a||{};return{commandHook:{beforeExecute:(C,D)=>O?.beforeExecute?.(C,D)!==!1&&g.closeAll(),onExecute(C,D){O?.onExecute?.(C,D),v()},onError(C,D,P){O?.onError?.(C,D,P)}},...R}},[g,a]),h=d.useMemo(()=>({...w,...x}),[w,x]),[y,u]=d.useReducer(O=>O+1,0);B.useCommands(t,[],{onChange:()=>{u()}});const S=d.useMemo(()=>({commands:t,parentFloat:g,...x}),[y,h,g,a]);let M=0;w.dense||(M+=2),w.outlined&&M++;let j=2;w.dense||(j=4);const z=d.useMemo(()=>i({commands:t,commandButtonProps:h,commandPopupProps:{commands:t,...S,...a}}),[y,h,S,i]);return f.jsx(_.Toolbar,{variant:"dense",sx:{minHeight:"unset",height:"unset",paddingTop:`${j}px`,paddingBottom:`${j}px`,paddingLeft:"6px !important",paddingRight:"6px !important",flex:"1 1 0%",alignItems:"center",userSelect:"none",flexGrow:1,display:"flex",overflow:"hidden",...n},ref:l,onFocus:O=>{O.relatedTarget&&!m&&k(O.relatedTarget)},onBlur:O=>{m&&!l?.current?.contains(O.relatedTarget)&&k(null)},onKeyDown:O=>{m&&O.which===B.KeyCodes.Escape&&m.focus()},...r,children:f.jsx("div",{ref:l,style:{flex:"1 1 100%",display:"flex",flexWrap:"wrap",rowGap:`${j}px`,columnGap:`${M}px`,alignItems:"center",maxWidth:"100%"},children:z})})}));yr.displayName="CommandToolbar";const ra=e=>{const{key:o,...n}=e;return f.jsx(hr,{...n},o)},ia=d.memo(d.forwardRef((e,o)=>{const{popupCommandKeys:n,renderCommandButton:t=ra,scope:a,commands:s,quickCommand:i,popupScope:c=i,commandState:r,commandHook:l,disabled:m=!1,...k}=e,g=B.useCommands(s,n?[i,...n]:[i]),v=d.useCallback((w,x)=>{const h={variant:B.CommandButtonType.Menuitem,commandHook:l,commandState:r,scope:c,disabled:m},y=[];for(let u=0;u<n?.length;u++){const S=n[u];if(S===null||S==="-"){y.push(f.jsx(xo,{orientation:"horizontal"},`element-${y.length}`));continue}const M=x.getCommand(S),j={key:`${S}-${y.length}`,command:M,...h},z=t(j);z&&y.push(z)}return jt({...w,children:y})},[m,l,r,c,n,t]);return n?f.jsx(gn,{ref:o,commands:s,disabled:m,commandHook:l,commandState:r,scope:a,quickCommand:i,createPopupPanel:v,...k}):t({ref:o,disabled:m,commandHook:l,commandState:r,scope:a,command:g[0],...k})}));exports.AnimatedBouncingEllipsisIcon=wr,exports.AnimatedCircleIcon=Co,exports.AnimatedClockIcon=xr,exports.AnimatedFadingEllipsisIcon=vr,exports.AnimatedOrbitIcon=kr,exports.AnimatedTraversingEllipsisIcon=Sr,exports.ArrowDownIcon=Kt,exports.ArrowRightIcon=Bo,exports.ChipStrip=tn,exports.ClosingReason={ByPopup:"popupDone",Cancel:"popupCancel",ClickAway:"clickAway"},exports.CommandButton=hr,exports.CommandPopupButton=gn,exports.CommandToolbar=yr,exports.CommandTooltip=Nt,exports.ContextMenu=Lr,exports.ErrorPanel=Eo,exports.ExhibitDivider=xo,exports.ExhibitFloatPanel=sn,exports.ExhibitIconButton=pt,exports.ExhibitMenuHeader=Ur,exports.ExhibitMenuItem=Xe,exports.ExhibitOptionButton=Yr,exports.ExhibitPopper=rn,exports.ExhibitPopupIconButton=Pt,exports.ExhibitPopupMenuItem=cn,exports.ExhibitTooltip=Ue,exports.InputCommandButton=na,exports.InternalWindow=nr,exports.LabelIcon=e=>{const{command:o,label:n,scope:t,icon:a=oa,sx:s,...i}=e;return f.jsxs(_.Box,{sx:{display:"flex",flexDirection:"row",textTransform:"none",alignItems:"center",fontSize:c=>c.typography.subtitle2.fontSize,...s},...i,children:[a,f.jsx(_.Typography,{component:"div",sx:{whiteSpace:"nowrap",lineHeight:"1",paddingLeft:c=>c.spacing(.25),paddingRight:c=>c.spacing(.25),fontSize:"inherit"},children:o?.label(t)||n})]})},exports.LoadingPanel=Do,exports.ModalProvider=function(e){var o=e.children,n=e.legacy,t=n!==void 0&&n,a=e.suspense,s=a===void 0||a,i=e.fallback,c=i===void 0?null:i,r=d.useReducer(Jr,Qr),l=r[0],m=r[1],k=d.useCallback(function(y,u){var S=$o(u,Zr);y?m({type:we.UPDATE,payload:{id:y,props:S}}):console.error(Lt)},[m]),g=d.useCallback(function(y){y?m({type:we.HIDE,payload:{id:y}}):console.error(Lt)},[m]),v=d.useCallback(function(y){y?m({type:we.DESTROY,payload:{id:y}}):console.error(Lt)},[m]),w=d.useCallback(function(y){y?m({type:we.DESTROY_BY_ROOT_ID,payload:{rootId:y}}):console.error("[ERROR]: Modal root ID is missing")},[m]),x=d.useCallback(function(y,u,S){var M=Wo(8);return S&&S.rootId&&(M=S.rootId+"."+M),m({type:we.SHOW,payload:{id:M,component:y,props:u,options:S}}),{id:M,hide:function(){return g(M)},destroy:function(){return v(M)},update:function(j){return k(M,j)}}},[m,g,v,k]),h=s?d.Suspense:d.Fragment;return d.createElement(zo.Provider,{value:{state:l,updateModal:k,hideModal:g,destroyModal:v,showModal:x,destroyModalsByRootId:w}},o,d.createElement(h,Object.assign({},s&&{fallback:c}),Object.keys(l).map(function(y){var u=l[y],S=u.component,M=u.props,j=u.options,z=function(){var R,C;M!=null&&M.onExited&&M.onExited.apply(M,arguments),M!=null&&(R=M.TransitionProps)!=null&&R.onExited&&(C=M.TransitionProps).onExited.apply(C,arguments),v(y)},O={};return O=t?{onExited:z}:{TransitionProps:ge({},M?.TransitionProps,{onExited:z})},d.createElement(S,Object.assign({},M,{key:y,onClose:function(){j&&j.hideOnClose&&g(y),j&&j.destroyOnClose&&j.hideOnClose&&v(y),M&&M.onClose&&M.onClose.apply(M,arguments)}},j&&!j.destroyOnClose&&O))})))},exports.NestingPopupButton=Lo,exports.OptionsDialog=Jt,exports.PopupAutoFocus={Popup:"popup",Anchor:"anchor"},exports.PopupButtonType=_o,exports.SelectedIcon=Vo,exports.SimpleCommandPopupButton=ia,exports.SimpleTooltip=He,exports.StackTrace=en,exports.ThemeMode={Light:"light",Dark:"dark"},exports.ThemedIcon=Br,exports.clsx=he,exports.createDownArrow=qt,exports.createExhibitTheme=(e,o)=>{let n=ze.createTheme({palette:{mode:e?"dark":"light"}});const t={"--icon-primary":n.palette.primary.main,"--icon-secondary":n.palette.secondary.main,"--icon-secondary-light":n.palette.secondary.light,"--icon-success":n.palette.success.main,"--icon-success-light":n.palette.success.light,"--icon-info":n.palette.info.main,"--icon-warn":n.palette.warning.main,"--icon-error":n.palette.error.main,"--icon-error-light":n.palette.error.light,"--icon-grey":n.palette.text.icon??n.palette.action.active,"--icon-shadow":e?n.palette.text.primary:n.palette.divider,"--icon-size":"1.25rem","@media (pointer: coarse)":{"--icon-size":"1.75rem"}};let a={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:se.alpha(n.palette.text.secondary,.75),icon:e?se.alpha(n.palette.text.secondary,.7):se.alpha(n.palette.text.primary,.75)}},components:{MuiDialogTitle:{styleOverrides:{root:{fontWeight:"normal"}}},MuiSelect:{defaultProps:{IconComponent:Kt,MenuProps:{container:()=>document.fullscreenElement??void 0}},styleOverrides:{iconOutlined:{top:"unset"}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:"0px !important",overflow:"hidden",marginLeft:"0px",marginRight:"6px",padding:"1px 1px",border:"solid transparent 1px",color:"unset"}}},MuiMenuItem:{styleOverrides:{root:{paddingTop:"2px",paddingBottom:"2px",marginLeft:"4px",marginRight:"4px",paddingLeft:"6px",paddingRight:"18px",borderRadius:"4px",fontSize:"0.875em","@media (pointer: coarse)":{fontSize:"1em"},"&.Mui-selected":{}}}},MuiMenu:{defaultProps:{container:()=>document.fullscreenElement??void 0},styleOverrides:{root:{paddingTop:"2px",paddingBottom:"2px",marginLeft:"4px",marginRight:"4px",paddingLeft:"6px",paddingRight:"18px",borderRadius:"4px",fontSize:"0.875em","@media (pointer: coarse)":{fontSize:"1em"},"&.Mui-selected":{}}}},MuiToolbar:{styleOverrides:{root:{paddingTop:"4px",paddingBottom:"4px","@media (min-width: 600px)":{paddingTop:"4px",paddingBottom:"4px"}}}},MuiDivider:{styleOverrides:{root:{marginTop:"4px !important",marginBottom:"4px !important",marginLeft:"0px",marginRight:"0px"}}},MuiInputBase:{styleOverrides:{root:{}}},MuiPaper:{styleOverrides:{root:{...t}}},MuiPopper:{styleOverrides:{root:{"& .menu":{marginTop:"4px",marginBottom:"4px",borderRadius:"4px"}}}},SmartInputField:{styleOverrides:{automatic:{transition:"opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",color:function(){return n.palette.text.secondary}},dirty:{fontStyle:"italic",color:function(){return n.palette.text.secondary}}}}}},s=a;return o&&(s=go.deepmerge(a,o)),ze.createTheme(s)},exports.createScrollButton=Bt,exports.createScrollEdgeButton=e=>{const o={style:{cursor:"pointer"},...e};return B.defaultCreateScrollEdgeButton(o)},exports.createScrollEndButton=e=>Bt(e,B.ScrollbarOrientation.Horizontal?f.jsx(B.DynamicIcon,{iconKey:"ArrowRight",size:"small"}):f.jsx(B.DynamicIcon,{iconKey:"ArrowDownward",size:"small"}),"Scroll "+(e.orientation===B.ScrollbarOrientation.Horizontal?"Right":"Down"),`Scroll ${e.orientation===B.ScrollbarOrientation.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),exports.createScrollStartButton=e=>Bt(e,B.ScrollbarOrientation.Horizontal?f.jsx(B.DynamicIcon,{iconKey:"ArrowLeft",size:"small"}):f.jsx(B.DynamicIcon,{iconKey:"ArrowUpward",size:"small"}),"Scroll "+(e.orientation===B.ScrollbarOrientation.Horizontal?"Left":"Up"),`Scroll ${e.orientation===B.ScrollbarOrientation.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),exports.createStrokeShadowFilter=(e=1)=>o=>{if(o.palette.mode!=="dark")return;const n=o.palette.mode==="dark"?o.palette.text.primary:o.palette.divider;return`drop-shadow(0px 0px ${e}px ${n})`},exports.defaultCreatePopupPanel=jt,exports.elevateColor=Yt,exports.getModalConfig=Uo,exports.hexToRGB=Io,exports.overlayAlpha=function(e){let o=0;return o=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(o/100).toFixed(2)},exports.scrollbarTheming=an,exports.setModalConfig=function(e){Object.assign(Ho,e)},exports.strokeShadowFilter=e=>{if(e.palette.mode==="dark")return`drop-shadow(0px 0px 1px ${e.palette.mode==="dark"?e.palette.text.primary:e.palette.divider})`},exports.toShortcutElements=ln,exports.useFloatStack=dt,exports.useInputDialog=e=>{const{showModal:o}=mt();return n=>{const{defaultOption:t=n.options?.[0],cancelOption:a="Cancel",...s}=n;return new Promise(i=>{const c=o(Zi,{...e,defaultOption:t,cancelOption:a,...s,onOption(r){s?.onOption?.(r,r===a,r===t),i({input:"",option:r})},onInputOption(r,l){s?.onInputOption?.(r,l),i({input:r,option:l})},onDone:()=>{s?.onDone?.(),c.hide()}})})}},exports.useLazyWindow=function(e){const[o,n]=d.useState(()=>new Map),{showModal:t,updateModal:a,destroyModal:s,hideModal:i}=mt({disableAutoDestroy:!0});return(c,r,l,m)=>new Promise((k,g)=>{const v={...e,...l,onHide:()=>{const y=o.get(c);l?.onHide?.(),n(u=>(u.delete(c),u)),i(y.id)},onDone:y=>{const u=o.get(c);n(S=>(S.delete(c),S)),l?.onDone?.(y),u&&u.id&&!m?.disableAutoDestroy&&s(u.id)},onShown:y=>{n(u=>{const S=u.get(c);return u.set(c,{...S,element:y}),u}),k(y)},open:!0},w=o.get(c);if(w)return a(w.id,v),void k(w.element);if(!r)return void g("invalid function");const x=d.lazy(r),h=t(x,v,{destroyOnClose:!m?.disableAutoDestroy});n(y=>(y.set(c,{id:h.id,element:null}),y))})},exports.useModal=mt,exports.useOptionsDialog=e=>{const{showModal:o}=mt();return n=>new Promise(t=>{const a=o(Ji,{...e,...n,onOption(s){n?.onOption?.(s,s===n.cancelOption,s===n.defaultOption),t(s)},onDone:()=>{n?.onDone?.(),a.hide()}})})},exports.useResolvedThemeMode=function(e){const{mode:o}=e||{},[n,t]=d.useState(()=>{if(o==="light"||o==="dark")return{themeMode:o,source:"prop"};if(typeof document<"u"){const a=En();if(a)return{themeMode:a,source:"class"}}return{themeMode:Mn(),source:"media"}});return d.useEffect(()=>{const a=()=>{if(o)return void(o===n.themeMode&&n.source==="prop"||t(l=>({...l,themeMode:o,source:"prop"})));const r=En();if(r)t({themeMode:r,source:"class"});else{const l=Mn();t({themeMode:l,source:"media"})}},s=new MutationObserver(a),i=[document.documentElement,document.body].filter(Boolean);for(const r of i)s.observe(r,{attributes:!0,attributeFilter:["class"]});const c=window.matchMedia("(prefers-color-scheme: dark)");return c.addEventListener("change",a),a(),()=>{s.disconnect(),c.removeEventListener("change",a)}},[o]),n},exports.wrapErrorAsComponent=Oo;
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.5
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("react"),C=require("./CCGTlCxkpgzrK5Sh.cjs"),r=require("@mui/material/styles"),u=require("@mui/material"),n=require("@sheetxl/utils-react"),L=["Input"],N=o.memo(o.forwardRef((b,k)=>{const{initialValue:T="",onOption:v,onValidateOption:c,onInputOption:d,onValidateInputOption:s,onDone:g,inputProps:f,inputLabel:w,inputType:F,inputPlaceHolder:S,options:h=L,autoFocusSel:P=".autoFocus",cancelOption:m,defaultOption:x=h?.[0],...q}=b,[I,R]=o.useState(!1),[a,j]=o.useState(T),[D,V]=o.useState(""),[B,M]=o.useState(!0),i=n.useCallbackRef(async(e,t)=>{if(!s)return!0;const p=await s?.(e,t);V(p?.message??"");const O=p?.valid??!0;return M(O),O},[s]),y=n.useCallbackRef(async e=>{d?.(a,e)},[a,d,g,v,m,x]),A=n.useCallbackRef(async e=>{e.keyCode===n.KeyCodes.Enter&&await i?.(a,null)},[a,y]),H=n.useCallbackRef(e=>{j(e.target.value),i?.(e.target.value,null)},[c]),K=n.useCallbackRef(async e=>{let t=await i(a,e);try{t!==!1&&(t=await i(a,e))}catch{}return t??!0},[a,c]);return l.jsx(C.OptionsDialog,{options:h,onDone:g,onOption:(e,t)=>{t||y(e)},onValidateOption:K,cancelOption:m,defaultOption:x,autoFocusSel:P,ref:k,...q,children:l.jsx(u.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:l.jsx(u.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:l.jsx(u.TextField,{onFocus:e=>{I||e.target?.select(),R(!0)},type:F,label:w,helperText:D||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:B?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:S,spellCheck:!1,autoComplete:"off",...f,className:C.clsx("autoFocus",f?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${r.alpha("#fff",r.getOverlayAlpha(5))}, ${r.alpha("#fff",r.getOverlayAlpha(5))})`}}},value:a,onChange:H,onKeyDown:A,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=N;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("react"),C=require("./BYGsvpSTIDkazPUe.cjs"),r=require("@mui/material/styles"),u=require("@mui/material"),n=require("@sheetxl/utils-react"),L=["Input"],N=o.memo(o.forwardRef((b,k)=>{const{initialValue:T="",onOption:v,onValidateOption:c,onInputOption:d,onValidateInputOption:s,onDone:g,inputProps:f,inputLabel:w,inputType:F,inputPlaceHolder:S,options:h=L,autoFocusSel:P=".autoFocus",cancelOption:m,defaultOption:x=h?.[0],...q}=b,[I,R]=o.useState(!1),[a,j]=o.useState(T),[D,V]=o.useState(""),[B,M]=o.useState(!0),i=n.useCallbackRef(async(e,t)=>{if(!s)return!0;const p=await s?.(e,t);V(p?.message??"");const O=p?.valid??!0;return M(O),O},[s]),y=n.useCallbackRef(async e=>{d?.(a,e)},[a,d,g,v,m,x]),A=n.useCallbackRef(async e=>{e.keyCode===n.KeyCodes.Enter&&await i?.(a,null)},[a,y]),H=n.useCallbackRef(e=>{j(e.target.value),i?.(e.target.value,null)},[c]),K=n.useCallbackRef(async e=>{let t=await i(a,e);try{t!==!1&&(t=await i(a,e))}catch{}return t??!0},[a,c]);return l.jsx(C.OptionsDialog,{options:h,onDone:g,onOption:(e,t)=>{t||y(e)},onValidateOption:K,cancelOption:m,defaultOption:x,autoFocusSel:P,ref:k,...q,children:l.jsx(u.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:l.jsx(u.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:l.jsx(u.TextField,{onFocus:e=>{I||e.target?.select(),R(!0)},type:F,label:w,helperText:D||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:B?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:S,spellCheck:!1,autoComplete:"off",...f,className:C.clsx("autoFocus",f?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${r.alpha("#fff",r.getOverlayAlpha(5))}, ${r.alpha("#fff",r.getOverlayAlpha(5))})`}}},value:a,onChange:H,onKeyDown:A,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=N;
@@ -1,7 +1,7 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{position:absolute;border-radius:50%}._traverse-ellipsis_14l1h_1 div:nth-child(1){left:0;animation:_traverse-ellipsis1_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(2){left:0;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(3){left:24px;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(4){left:48px;animation:_traverse-ellipsis3_14l1h_1 .6s infinite}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
2
  "use strict";/**
3
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.5
3
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.6
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./CCGTlCxkpgzrK5Sh.cjs");exports.AnimatedBouncingEllipsisIcon=o.AnimatedBouncingEllipsisIcon,exports.AnimatedCircleIcon=o.AnimatedCircleIcon,exports.AnimatedClockIcon=o.AnimatedClockIcon,exports.AnimatedFadingEllipsisIcon=o.AnimatedFadingEllipsisIcon,exports.AnimatedOrbitIcon=o.AnimatedOrbitIcon,exports.AnimatedTraversingEllipsisIcon=o.AnimatedTraversingEllipsisIcon,exports.ArrowDownOutlineIcon=o.ArrowDownOutlineIcon,exports.ArrowRightOutlineIcon=o.ArrowRightOutlineIcon,exports.BLANK_ICON=o.BLANK_ICON,exports.BlankIcon=o.BlankIcon,exports.BorderAllIcon=o.BorderAllIcon,exports.BorderBottomIcon=o.BorderBottomIcon,exports.BorderHorizontalIcon=o.BorderHorizontalIcon,exports.BorderInnerIcon=o.BorderInnerIcon,exports.BorderLeftIcon=o.BorderLeftIcon,exports.BorderNoneIcon=o.BorderNoneIcon,exports.BorderOuterIcon=o.BorderOuterIcon,exports.BorderRightIcon=o.BorderRightIcon,exports.BorderTopIcon=o.BorderTopIcon,exports.BorderVerticalIcon=o.BorderVerticalIcon,exports.CalculateIcon=o.CalculateIcon,exports.CalculateSettingsIcon=o.CalculateSettingsIcon,exports.CalculateSheetIcon=o.CalculateSheetIcon,exports.CellSelectionEditIcon=o.CellSelectionEditIcon,exports.CellSelectionIcon=o.CellSelectionIcon,exports.CellSelectionInsertIcon=o.CellSelectionInsertIcon,exports.CellSelectionRemoveIcon=o.CellSelectionRemoveIcon,exports.CheckIcon=o.CheckIcon,exports.CheckSuccessIcon=o.CheckSuccessIcon,exports.ChipStrip=o.ChipStrip,exports.ClearAllIcon=o.ClearAllIcon,exports.ClearContentsIcon=o.ClearContentsIcon,exports.ClearFormatsIcon=o.ClearFormatsIcon,exports.CloseErrorIcon=o.CloseErrorIcon,exports.ClosingReason=o.ClosingReason,exports.CodeIcon=o.CodeIcon,exports.ColorizedCircleIcon=o.ColorizedCircleIcon,exports.ColorizedFillIcon=o.ColorizedFillIcon,exports.ColorizedStrokeIcon=o.ColorizedStrokeIcon,exports.ColorizedTextIcon=o.ColorizedTextIcon,exports.ColumnsResizeAutoIcon=o.ColumnsResizeAutoIcon,exports.ColumnsResizeIcon=o.ColumnsResizeIcon,exports.CommaIcon=o.CommaIcon,exports.CommandButton=o.CommandButton,exports.CommandPopupButton=o.CommandPopupButton,exports.CommandToolbar=o.CommandToolbar,exports.CommandTooltip=o.CommandTooltip,exports.ContextMenu=o.ContextMenu,exports.CopyIcon=o.CopyIcon,exports.CurrencyDollarIcon=o.CurrencyDollarIcon,exports.CutIcon=o.CutIcon,exports.DecreaseDecimalIcon=o.DecreaseDecimalIcon,exports.DecreaseDecimalIcon2=o.DecreaseDecimalIcon2,exports.DiscordIcon=o.DiscordIcon,exports.DocumentationIcon=o.DocumentationIcon,exports.DrawAlignBottomIcon=o.DrawAlignBottomIcon,exports.DrawAlignCenterIcon=o.DrawAlignCenterIcon,exports.DrawAlignDistributeHorzIcon=o.DrawAlignDistributeHorzIcon,exports.DrawAlignDistributeVertIcon=o.DrawAlignDistributeVertIcon,exports.DrawAlignLeftIcon=o.DrawAlignLeftIcon,exports.DrawAlignMiddleIcon=o.DrawAlignMiddleIcon,exports.DrawAlignRightIcon=o.DrawAlignRightIcon,exports.DrawAlignTopIcon=o.DrawAlignTopIcon,exports.DrawAspectIcon=o.DrawAspectIcon,exports.DrawFlipHorzIcon=o.DrawFlipHorzIcon,exports.DrawFlipVertIcon=o.DrawFlipVertIcon,exports.DrawGroupIcon=o.DrawGroupIcon,exports.DrawMoveBackwardIcon=o.DrawMoveBackwardIcon,exports.DrawMoveForwardIcon=o.DrawMoveForwardIcon,exports.DrawResizeIcon=o.DrawResizeIcon,exports.DrawSwapHorzIcon=o.DrawSwapHorzIcon,exports.DrawSwapVertIcon=o.DrawSwapVertIcon,exports.DrawToBackIcon=o.DrawToBackIcon,exports.DrawToFrontIcon=o.DrawToFrontIcon,exports.DrawUngroupIcon=o.DrawUngroupIcon,exports.ErrorAlertIcon=o.ErrorAlertIcon,exports.ErrorPanel=o.ErrorPanel,exports.ExhibitDivider=o.ExhibitDivider,exports.ExhibitFloatPanel=o.ExhibitFloatPanel,exports.ExhibitIconButton=o.ExhibitIconButton,exports.ExhibitMenuHeader=o.ExhibitMenuHeader,exports.ExhibitMenuItem=o.ExhibitMenuItem,exports.ExhibitOptionButton=o.ExhibitOptionButton,exports.ExhibitPopper=o.ExhibitPopper,exports.ExhibitPopupIconButton=o.ExhibitPopupIconButton,exports.ExhibitPopupMenuItem=o.ExhibitPopupMenuItem,exports.ExhibitTooltip=o.ExhibitTooltip,exports.FileDownloadAsCSVIcon=o.FileDownloadAsCSVIcon,exports.FileDownloadAsExcelIcon=o.FileDownloadAsExcelIcon,exports.FileDownloadAsSheetIcon=o.FileDownloadAsSheetIcon,exports.FileNewIcon=o.FileNewIcon,exports.FileOpenIcon=o.FileOpenIcon,exports.FillDownIcon=o.FillDownIcon,exports.FilterClearIcon=o.FilterClearIcon,exports.FilterReapplyIcon=o.FilterReapplyIcon,exports.FilterToggleIcon=o.FilterToggleIcon,exports.FindCaseSensitiveIcon=o.FindCaseSensitiveIcon,exports.FindIcon=o.FindIcon,exports.FindOptionsIcon=o.FindOptionsIcon,exports.FindRegExIcon=o.FindRegExIcon,exports.FindReplaceAllIcon=o.FindReplaceAllIcon,exports.FindReplaceIcon=o.FindReplaceIcon,exports.FindReplaceToggleIcon=o.FindReplaceToggleIcon,exports.FindWholeWordIcon=o.FindWholeWordIcon,exports.FormatIndentDecreaseIcon=o.FormatIndentDecreaseIcon,exports.FormatIndentIncreaseIcon=o.FormatIndentIncreaseIcon,exports.FormatPaintIcon=o.FormatPaintIcon,exports.FormulaCubeIcon=o.FormulaCubeIcon,exports.FormulaCustomIcon=o.FormulaCustomIcon,exports.FormulaDatabaseIcon=o.FormulaDatabaseIcon,exports.FormulaDateTimeIcon=o.FormulaDateTimeIcon,exports.FormulaEngineeringIcon=o.FormulaEngineeringIcon,exports.FormulaFinancialIcon=o.FormulaFinancialIcon,exports.FormulaGroupIcon=o.FormulaGroupIcon,exports.FormulaInformationIcon=o.FormulaInformationIcon,exports.FormulaLogicalIcon=o.FormulaLogicalIcon,exports.FormulaLookupReferenceIcon=o.FormulaLookupReferenceIcon,exports.FormulaMathTrigIcon=o.FormulaMathTrigIcon,exports.FormulaStatisticalIcon=o.FormulaStatisticalIcon,exports.FormulaTextIcon=o.FormulaTextIcon,exports.FormulaViewIcon=o.FormulaViewIcon,exports.FormulaWebIcon=o.FormulaWebIcon,exports.FreezeBothIcon=o.FreezeBothIcon,exports.FreezeColumnsIcon=o.FreezeColumnsIcon,exports.FreezeIcon=o.FreezeIcon,exports.FreezeRowsIcon=o.FreezeRowsIcon,exports.FullScreenIcon=o.FullScreenIcon,exports.FullScreenOffIcon=o.FullScreenOffIcon,exports.FunctionIcon=o.FunctionIcon,exports.FunctionSumIcon=o.FunctionSumIcon,exports.FunctionThinIcon=o.FunctionThinIcon,exports.GithubIcon=o.GithubIcon,exports.GotoIcon=o.GotoIcon,exports.HelpIcon=o.HelpIcon,exports.HideColumnIcon=o.HideColumnIcon,exports.HideRowIcon=o.HideRowIcon,exports.IncreaseDecimalIcon=o.IncreaseDecimalIcon,exports.IncreaseDecimalIcon2=o.IncreaseDecimalIcon2,exports.InputCommandButton=o.InputCommandButton,exports.InsertCells=o.InsertCells,exports.InsertColumn2Icon=o.InsertColumn2Icon,exports.InsertColumnIcon=o.InsertColumnIcon,exports.InsertCommentIcon=o.InsertCommentIcon,exports.InsertHyperlinkIcon=o.InsertHyperlinkIcon,exports.InsertImageIcon=o.InsertImageIcon,exports.InsertRowIcon=o.InsertRowIcon,exports.InsertTableIcon=o.InsertTableIcon,exports.InternalWindow=o.InternalWindow,exports.LabelIcon=o.LabelIcon,exports.LoadingPanel=o.LoadingPanel,exports.MergeAllIcon=o.MergeAllIcon,exports.MergeHIcon=o.MergeHIcon,exports.MergeHorizontalIcon=o.MergeHorizontalIcon,exports.MergeUnMergeIcon=o.MergeUnMergeIcon,exports.MergeVerticalIcon=o.MergeVerticalIcon,exports.ModalProvider=o.ModalProvider,exports.NestingPopupButton=o.NestingPopupButton,exports.NewPresetStylesIcon=o.NewPresetStylesIcon,exports.OptionsDialog=o.OptionsDialog,exports.PasteFormatsIcon=o.PasteFormatsIcon,exports.PasteFormulasIcon=o.PasteFormulasIcon,exports.PasteIcon=o.PasteIcon,exports.PasteLinksIcon=o.PasteLinksIcon,exports.PasteTransposeIcon=o.PasteTransposeIcon,exports.PasteValuesIcon=o.PasteValuesIcon,exports.PercentIcon=o.PercentIcon,exports.PopupAutoFocus=o.PopupAutoFocus,exports.PopupButtonType=o.PopupButtonType,exports.PresetStylesIcon=o.PresetStylesIcon,exports.RedoIcon=o.RedoIcon,exports.RemoveCellsIcon=o.RemoveCellsIcon,exports.RemoveColumn2Icon=o.RemoveColumn2Icon,exports.RemoveColumnIcon=o.RemoveColumnIcon,exports.RemoveRowIcon=o.RemoveRowIcon,exports.RowResizeIcon=o.RowResizeIcon,exports.RowsResizeAutoIcon=o.RowsResizeAutoIcon,exports.ScriptFormulaIcon=o.ScriptFormulaIcon,exports.ScriptMacroIcon=o.ScriptMacroIcon,exports.ScriptNewIcon=o.ScriptNewIcon,exports.ScriptRunIcon=o.ScriptRunIcon,exports.ScriptSaveIcon=o.ScriptSaveIcon,exports.SelectAreaModeIcon=o.SelectAreaModeIcon,exports.SelectRangeModeIcon=o.SelectRangeModeIcon,exports.SelectedIcon=o.SelectedIcon,exports.SettingsIcon=o.SettingsIcon,exports.SheetIcon=o.SheetIcon,exports.ShowColumnIcon=o.ShowColumnIcon,exports.ShowRowIcon=o.ShowRowIcon,exports.SimpleCommandPopupButton=o.SimpleCommandPopupButton,exports.SimpleTooltip=o.SimpleTooltip,exports.SortAlphaCustomIcon=o.SortAlphaCustomIcon,exports.SortAlphaDecreaseIcon=o.SortAlphaDecreaseIcon,exports.SortAlphaIncreaseIcon=o.SortAlphaIncreaseIcon,exports.SortCustomIcon=o.SortCustomIcon,exports.SortDecreaseIcon=o.SortDecreaseIcon,exports.SortIncreaseIcon=o.SortIncreaseIcon,exports.StackTrace=o.StackTrace,exports.SystemDefaultDarkMode=o.SystemDefaultDarkMode,exports.SystemDefaultLightMode=o.SystemDefaultLightMode,exports.TableIcon=o.TableIcon,exports.TableInsertIcon=o.TableInsertIcon,exports.TableRemoveIcon=o.TableRemoveIcon,exports.TerminalIcon=o.TerminalIcon,exports.TextBoldIcon=o.TextBoldIcon,exports.TextHorizontalClipIcon=o.TextHorizontalClipIcon,exports.TextHorizontalOverflowIcon=o.TextHorizontalOverflowIcon,exports.TextHorizontalShrinkIcon=o.TextHorizontalShrinkIcon,exports.TextHorizontalWrapIcon=o.TextHorizontalWrapIcon,exports.TextItalicIcon=o.TextItalicIcon,exports.TextRotation0Icon=o.TextRotation0Icon,exports.TextRotation2702Icon=o.TextRotation2702Icon,exports.TextRotation270Icon=o.TextRotation270Icon,exports.TextRotation315Icon=o.TextRotation315Icon,exports.TextRotation45Icon=o.TextRotation45Icon,exports.TextRotation90Icon=o.TextRotation90Icon,exports.TextRotationCustomIcon=o.TextRotationCustomIcon,exports.TextRotationVerticalIcon=o.TextRotationVerticalIcon,exports.TextSizeDecreaseIcon=o.TextSizeDecreaseIcon,exports.TextSizeIncreaseIcon=o.TextSizeIncreaseIcon,exports.TextStrikeIcon=o.TextStrikeIcon,exports.TextSubscriptIcon=o.TextSubscriptIcon,exports.TextSuperscriptIcon=o.TextSuperscriptIcon,exports.TextUnderlineAccountingDoubleIcon=o.TextUnderlineAccountingDoubleIcon,exports.TextUnderlineAccountingIcon=o.TextUnderlineAccountingIcon,exports.TextUnderlineDoubleIcon=o.TextUnderlineDoubleIcon,exports.TextUnderlineIcon=o.TextUnderlineIcon,exports.TextVerticalBottomIcon=o.TextVerticalBottomIcon,exports.TextVerticalCenterIcon=o.TextVerticalCenterIcon,exports.TextVerticalTopIcon=o.TextVerticalTopIcon,exports.Theme1Icon=o.Theme1Icon,exports.Theme2Icon=o.Theme2Icon,exports.ThemeMode=o.ThemeMode,exports.ThemedIcon=o.ThemedIcon,exports.TicketIcon=o.TicketIcon,exports.UndoIcon=o.UndoIcon,exports.ViewZeroIcon=o.ViewZeroIcon,exports.VisibilityOffIcon=o.VisibilityOffIcon,exports.WalkingCopyIcon=o.WalkingCopyIcon,exports.createDownArrow=o.createDownArrow,exports.createExhibitTheme=o.createExhibitTheme,exports.createScrollButton=o.createScrollButton,exports.createScrollEdgeButton=o.createScrollEdgeButton,exports.createScrollEndButton=o.createScrollEndButton,exports.createScrollStartButton=o.createScrollStartButton,exports.createStrokeShadowFilter=o.createStrokeShadowFilter,exports.defaultCreatePopupPanel=o.defaultCreatePopupPanel,exports.elevateColor=o.elevateColor,exports.getModalConfig=o.getModalConfig,exports.hexToRGB=o.hexToRGB,exports.overlayAlpha=o.overlayAlpha,exports.scrollbarTheming=o.scrollbarTheming,exports.setModalConfig=o.setModalConfig,exports.strokeShadowFilter=o.strokeShadowFilter,exports.themeIcon=o.themeIcon,exports.toShortcutElements=o.toShortcutElements,exports.useFloatStack=o.useFloatStack,exports.useInputDialog=o.useInputDialog,exports.useLazyWindow=o.useLazyWindow,exports.useModal=o.useModal,exports.useOptionsDialog=o.useOptionsDialog,exports.useResolvedThemeMode=o.useResolvedThemeMode,exports.wrapErrorAsComponent=o.wrapErrorAsComponent;
7
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./BYGsvpSTIDkazPUe.cjs");exports.AnimatedBouncingEllipsisIcon=o.AnimatedBouncingEllipsisIcon,exports.AnimatedCircleIcon=o.AnimatedCircleIcon,exports.AnimatedClockIcon=o.AnimatedClockIcon,exports.AnimatedFadingEllipsisIcon=o.AnimatedFadingEllipsisIcon,exports.AnimatedOrbitIcon=o.AnimatedOrbitIcon,exports.AnimatedTraversingEllipsisIcon=o.AnimatedTraversingEllipsisIcon,exports.ArrowDownIcon=o.ArrowDownIcon,exports.ArrowRightIcon=o.ArrowRightIcon,exports.ChipStrip=o.ChipStrip,exports.ClosingReason=o.ClosingReason,exports.CommandButton=o.CommandButton,exports.CommandPopupButton=o.CommandPopupButton,exports.CommandToolbar=o.CommandToolbar,exports.CommandTooltip=o.CommandTooltip,exports.ContextMenu=o.ContextMenu,exports.ErrorPanel=o.ErrorPanel,exports.ExhibitDivider=o.ExhibitDivider,exports.ExhibitFloatPanel=o.ExhibitFloatPanel,exports.ExhibitIconButton=o.ExhibitIconButton,exports.ExhibitMenuHeader=o.ExhibitMenuHeader,exports.ExhibitMenuItem=o.ExhibitMenuItem,exports.ExhibitOptionButton=o.ExhibitOptionButton,exports.ExhibitPopper=o.ExhibitPopper,exports.ExhibitPopupIconButton=o.ExhibitPopupIconButton,exports.ExhibitPopupMenuItem=o.ExhibitPopupMenuItem,exports.ExhibitTooltip=o.ExhibitTooltip,exports.InputCommandButton=o.InputCommandButton,exports.InternalWindow=o.InternalWindow,exports.LabelIcon=o.LabelIcon,exports.LoadingPanel=o.LoadingPanel,exports.ModalProvider=o.ModalProvider,exports.NestingPopupButton=o.NestingPopupButton,exports.OptionsDialog=o.OptionsDialog,exports.PopupAutoFocus=o.PopupAutoFocus,exports.PopupButtonType=o.PopupButtonType,exports.SelectedIcon=o.SelectedIcon,exports.SimpleCommandPopupButton=o.SimpleCommandPopupButton,exports.SimpleTooltip=o.SimpleTooltip,exports.StackTrace=o.StackTrace,exports.ThemeMode=o.ThemeMode,exports.ThemedIcon=o.ThemedIcon,exports.createDownArrow=o.createDownArrow,exports.createExhibitTheme=o.createExhibitTheme,exports.createScrollButton=o.createScrollButton,exports.createScrollEdgeButton=o.createScrollEdgeButton,exports.createScrollEndButton=o.createScrollEndButton,exports.createScrollStartButton=o.createScrollStartButton,exports.createStrokeShadowFilter=o.createStrokeShadowFilter,exports.defaultCreatePopupPanel=o.defaultCreatePopupPanel,exports.elevateColor=o.elevateColor,exports.getModalConfig=o.getModalConfig,exports.hexToRGB=o.hexToRGB,exports.overlayAlpha=o.overlayAlpha,exports.scrollbarTheming=o.scrollbarTheming,exports.setModalConfig=o.setModalConfig,exports.strokeShadowFilter=o.strokeShadowFilter,exports.toShortcutElements=o.toShortcutElements,exports.useFloatStack=o.useFloatStack,exports.useInputDialog=o.useInputDialog,exports.useLazyWindow=o.useLazyWindow,exports.useModal=o.useModal,exports.useOptionsDialog=o.useOptionsDialog,exports.useResolvedThemeMode=o.useResolvedThemeMode,exports.wrapErrorAsComponent=o.wrapErrorAsComponent;